Index: binary-improvements2/WebServer/webserver/static/js/main.b4f546c3.js
===================================================================
--- binary-improvements2/WebServer/webserver/static/js/main.d22853ff.js	(revision 428)
+++ binary-improvements2/WebServer/webserver/static/js/main.b4f546c3.js	(revision 429)
@@ -1,3 +1,3 @@
-/*! For license information please see main.d22853ff.js.LICENSE.txt */
-!function(){var e={8539:function(e,t,n){"use strict";n.d(t,{Gd:function(){return m},cu:function(){return f}});var o=n(1413),r=n(5671),i=n(3144),s=n(6870),a=n(9846),l=n(6017),u=n(2968),c=n(9509),p=n(1917),d=n(3082),h=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new p.s,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4;(0,r.Z)(this,e),this._version=o,e.prototype.__init.call(this),this.getStackTop().scope=n,t&&this.bindClient(t)}return(0,i.Z)(e,[{key:"__init",value:function(){this._stack=[{}]}},{key:"isOlderThan",value:function(e){return this._version<e}},{key:"bindClient",value:function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}},{key:"pushScope",value:function(){var e=p.s.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}},{key:"popScope",value:function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}},{key:"withScope",value:function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}}},{key:"getClient",value:function(){return this.getStackTop().client}},{key:"getScope",value:function(){return this.getStackTop().scope}},{key:"getStack",value:function(){return this._stack}},{key:"getStackTop",value:function(){return this._stack[this._stack.length-1]}},{key:"captureException",value:function(e,t){var n=this._lastEventId=t&&t.event_id?t.event_id:(0,s.DM)(),r=new Error("Sentry syntheticException");return this._withClient((function(i,s){i.captureException(e,(0,o.Z)((0,o.Z)({originalException:e,syntheticException:r},t),{},{event_id:n}),s)})),n}},{key:"captureMessage",value:function(e,t,n){var r=this._lastEventId=n&&n.event_id?n.event_id:(0,s.DM)(),i=new Error(e);return this._withClient((function(s,a){s.captureMessage(e,t,(0,o.Z)((0,o.Z)({originalException:e,syntheticException:i},n),{},{event_id:r}),a)})),r}},{key:"captureEvent",value:function(e,t){var n=t&&t.event_id?t.event_id:(0,s.DM)();return"transaction"!==e.type&&(this._lastEventId=n),this._withClient((function(r,i){r.captureEvent(e,(0,o.Z)((0,o.Z)({},t),{},{event_id:n}),i)})),n}},{key:"lastEventId",value:function(){return this._lastEventId}},{key:"addBreadcrumb",value:function(e,t){var n=this.getStackTop(),r=n.scope,i=n.client;if(r&&i){var s=i.getOptions&&i.getOptions()||{},u=s.beforeBreadcrumb,c=void 0===u?null:u,p=s.maxBreadcrumbs,d=void 0===p?100:p;if(!(d<=0)){var h=(0,a.yW)(),f=(0,o.Z)({timestamp:h},e),g=c?(0,l.Cf)((function(){return c(f,t)})):f;null!==g&&r.addBreadcrumb(g,d)}}}},{key:"setUser",value:function(e){var t=this.getScope();t&&t.setUser(e)}},{key:"setTags",value:function(e){var t=this.getScope();t&&t.setTags(e)}},{key:"setExtras",value:function(e){var t=this.getScope();t&&t.setExtras(e)}},{key:"setTag",value:function(e,t){var n=this.getScope();n&&n.setTag(e,t)}},{key:"setExtra",value:function(e,t){var n=this.getScope();n&&n.setExtra(e,t)}},{key:"setContext",value:function(e,t){var n=this.getScope();n&&n.setContext(e,t)}},{key:"configureScope",value:function(e){var t=this.getStackTop(),n=t.scope,o=t.client;n&&o&&e(n)}},{key:"run",value:function(e){var t=g(this);try{e(this)}finally{g(t)}}},{key:"getIntegration",value:function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(n){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("Cannot retrieve integration ".concat(e.id," from the current Hub")),null}}},{key:"startTransaction",value:function(e,t){return this._callExtensionMethod("startTransaction",e,t)}},{key:"traceHeaders",value:function(){return this._callExtensionMethod("traceHeaders")}},{key:"captureSession",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e)return this.endSession();this._sendSessionUpdate()}},{key:"endSession",value:function(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&(0,d.RJ)(n),this._sendSessionUpdate(),t&&t.setSession()}},{key:"startSession",value:function(e){var t=this.getStackTop(),n=t.scope,r=t.client,i=r&&r.getOptions()||{},s=i.release,a=i.environment,l=((0,u.R)().navigator||{}).userAgent,c=(0,d.Hv)((0,o.Z)((0,o.Z)((0,o.Z)({release:s,environment:a},n&&{user:n.getUser()}),l&&{userAgent:l}),e));if(n){var p=n.getSession&&n.getSession();p&&"ok"===p.status&&(0,d.CT)(p,{status:"exited"}),this.endSession(),n.setSession(c)}return c}},{key:"shouldSendDefaultPii",value:function(){var e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}},{key:"_sendSessionUpdate",value:function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var o=t.getSession();o&&n&&n.captureSession&&n.captureSession(o)}}},{key:"_withClient",value:function(e){var t=this.getStackTop(),n=t.scope,o=t.client;o&&e(o,n)}},{key:"_callExtensionMethod",value:function(e){var t=f(),n=t.__SENTRY__;if(n&&n.extensions&&"function"===typeof n.extensions[e]){for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return n.extensions[e].apply(this,r)}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("Extension method ".concat(e," couldn't be found, doing nothing."))}}]),e}();function f(){var e=(0,u.R)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function g(e){var t=f(),n=y(t);return C(t,e),n}function m(){var e=f();return v(e)&&!y(e).isOlderThan(4)||C(e,new h),(0,c.KV)()?function(e){try{var t=f().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return y(e);if(!v(n)||y(n).isOlderThan(4)){var o=y(e).getStackTop();C(n,new h(o.client,p.s.clone(o.scope)))}return y(n)}catch(r){return y(e)}}(e):y(e)}function v(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function y(e){return(0,u.Y)("hub",(function(){return new h}),e)}function C(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},1917:function(e,t,n){"use strict";n.d(t,{c:function(){return m},s:function(){return f}});var o=n(2982),r=n(4942),i=n(1413),s=n(5671),a=n(3144),l=n(8805),u=n(9846),c=n(9153),p=n(6017),d=n(2968),h=n(3082),f=function(){function e(){(0,s.Z)(this,e),this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return(0,a.Z)(e,[{key:"addScopeListener",value:function(e){this._scopeListeners.push(e)}},{key:"addEventProcessor",value:function(e){return this._eventProcessors.push(e),this}},{key:"setUser",value:function(e){return this._user=e||{},this._session&&(0,h.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}},{key:"getUser",value:function(){return this._user}},{key:"getRequestSession",value:function(){return this._requestSession}},{key:"setRequestSession",value:function(e){return this._requestSession=e,this}},{key:"setTags",value:function(e){return this._tags=(0,i.Z)((0,i.Z)({},this._tags),e),this._notifyScopeListeners(),this}},{key:"setTag",value:function(e,t){return this._tags=(0,i.Z)((0,i.Z)({},this._tags),{},(0,r.Z)({},e,t)),this._notifyScopeListeners(),this}},{key:"setExtras",value:function(e){return this._extra=(0,i.Z)((0,i.Z)({},this._extra),e),this._notifyScopeListeners(),this}},{key:"setExtra",value:function(e,t){return this._extra=(0,i.Z)((0,i.Z)({},this._extra),{},(0,r.Z)({},e,t)),this._notifyScopeListeners(),this}},{key:"setFingerprint",value:function(e){return this._fingerprint=e,this._notifyScopeListeners(),this}},{key:"setLevel",value:function(e){return this._level=e,this._notifyScopeListeners(),this}},{key:"setTransactionName",value:function(e){return this._transactionName=e,this._notifyScopeListeners(),this}},{key:"setContext",value:function(e,t){return null===t?delete this._contexts[e]:this._contexts=(0,i.Z)((0,i.Z)({},this._contexts),{},(0,r.Z)({},e,t)),this._notifyScopeListeners(),this}},{key:"setSpan",value:function(e){return this._span=e,this._notifyScopeListeners(),this}},{key:"getSpan",value:function(){return this._span}},{key:"getTransaction",value:function(){var e=this.getSpan();return e&&e.transaction}},{key:"setSession",value:function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}},{key:"getSession",value:function(){return this._session}},{key:"update",value:function(t){if(!t)return this;if("function"===typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=(0,i.Z)((0,i.Z)({},this._tags),t._tags),this._extra=(0,i.Z)((0,i.Z)({},this._extra),t._extra),this._contexts=(0,i.Z)((0,i.Z)({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):(0,l.PO)(t)&&(this._tags=(0,i.Z)((0,i.Z)({},this._tags),t.tags),this._extra=(0,i.Z)((0,i.Z)({},this._extra),t.extra),this._contexts=(0,i.Z)((0,i.Z)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this}},{key:"clear",value:function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}},{key:"addBreadcrumb",value:function(e,t){var n="number"===typeof t?Math.min(t,100):100;if(n<=0)return this;var r=(0,i.Z)({timestamp:(0,u.yW)()},e);return this._breadcrumbs=[].concat((0,o.Z)(this._breadcrumbs),[r]).slice(-n),this._notifyScopeListeners(),this}},{key:"clearBreadcrumbs",value:function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}},{key:"addAttachment",value:function(e){return this._attachments.push(e),this}},{key:"getAttachments",value:function(){return this._attachments}},{key:"clearAttachments",value:function(){return this._attachments=[],this}},{key:"applyToEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._extra&&Object.keys(this._extra).length&&(e.extra=(0,i.Z)((0,i.Z)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=(0,i.Z)((0,i.Z)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=(0,i.Z)((0,i.Z)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=(0,i.Z)((0,i.Z)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=(0,i.Z)({trace:this._span.getTraceContext()},e.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags=(0,i.Z)({transaction:n},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=[].concat((0,o.Z)(e.breadcrumbs||[]),(0,o.Z)(this._breadcrumbs)),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata=(0,i.Z)((0,i.Z)({},e.sdkProcessingMetadata),this._sdkProcessingMetadata),this._notifyEventProcessors([].concat((0,o.Z)(g()),(0,o.Z)(this._eventProcessors)),e,t)}},{key:"setSDKProcessingMetadata",value:function(e){return this._sdkProcessingMetadata=(0,i.Z)((0,i.Z)({},this._sdkProcessingMetadata),e),this}},{key:"_notifyEventProcessors",value:function(e,t,n){var o=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new c.cW((function(s,a){var u=e[r];if(null===t||"function"!==typeof u)s(t);else{var c=u((0,i.Z)({},t),n);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.id&&null===c&&p.kg.log('Event processor "'.concat(u.id,'" dropped event')),(0,l.J8)(c)?c.then((function(t){return o._notifyEventProcessors(e,t,n,r+1).then(s)})).then(null,a):o._notifyEventProcessors(e,c,n,r+1).then(s).then(null,a)}}))}},{key:"_notifyScopeListeners",value:function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)}},{key:"_applyFingerprint",value: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}}],[{key:"clone",value:function(t){var n=new e;return t&&(n._breadcrumbs=(0,o.Z)(t._breadcrumbs),n._tags=(0,i.Z)({},t._tags),n._extra=(0,i.Z)({},t._extra),n._contexts=(0,i.Z)({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=(0,o.Z)(t._eventProcessors),n._requestSession=t._requestSession,n._attachments=(0,o.Z)(t._attachments)),n}}]),e}();function g(){return(0,d.Y)("globalEventProcessors",(function(){return[]}))}function m(e){g().push(e)}},3082:function(e,t,n){"use strict";n.d(t,{CT:function(){return a},Hv:function(){return s},RJ:function(){return l}});var o=n(9846),r=n(6870),i=n(5256);function s(e){var t=(0,o.ph)(),n={sid:(0,r.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:function(){return function(e){return(0,i.Jr)({sid:"".concat(e.sid),init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"===typeof e.did||"string"===typeof e.did?"".concat(e.did):void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)}};return e&&a(n,e),n}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,o.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,r.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did="".concat(t.did)),"number"===typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"===typeof t.duration)e.duration=t.duration;else{var n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"===typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function l(e,t){var n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),a(e,n)}},3499:function(e,t,n){"use strict";n.d(t,{ro:function(){return y},lb:function(){return v}});var o=n(2982),r=n(1413),i=n(8539),s=n(6017),a=n(8805),l=n(9509),u=n(2034),c=n(5129);function p(){var e=(0,c.x1)();if(e){var t="internal_error";("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] Transaction: ".concat(t," -> Global error occured")),e.setStatus(t)}}var d=n(5522),h=n(4281);function f(){var e=this.getScope();if(e){var t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}}function g(e,t,n){return(0,c.zu)(t)?void 0!==e.sampled?(e.setMetadata({transactionSampling:{method:"explicitly_set"}}),e):("function"===typeof t.tracesSampler?(o=t.tracesSampler(n),e.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(o)}})):void 0!==n.parentSampled?(o=n.parentSampled,e.setMetadata({transactionSampling:{method:"inheritance"}})):(o=t.tracesSampleRate,e.setMetadata({transactionSampling:{method:"client_rate",rate:Number(o)}})),function(e){if((0,a.i2)(e)||"number"!==typeof e&&"boolean"!==typeof e)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ".concat(JSON.stringify(e)," of type ").concat(JSON.stringify(typeof e),".")),!1;if(e<0||e>1)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ".concat(e,".")),!1;return!0}(o)?o?(e.sampled=Math.random()<o,e.sampled?(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] starting ".concat(e.op," transaction - ").concat(e.name)),e):(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ".concat(Number(o),")")),e)):(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] Discarding transaction because ".concat("function"===typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)):(e.sampled=!1,e);var o}function m(e,t){var n=this.getClient(),o=n&&n.getOptions()||{},i=new h.Y(e,this);return(i=g(i,o,(0,r.Z)({parentSampled:e.parentSampled,transactionContext:e},t))).sampled&&i.initSpanRecorder(o._experiments&&o._experiments.maxSpans),i}function v(e,t,n,o,i,s){var a=e.getClient(),l=a&&a.getOptions()||{},u=new d.io(t,e,n,o,i);return(u=g(u,l,(0,r.Z)({parentSampled:t.parentSampled,transactionContext:t},s))).sampled&&u.initSpanRecorder(l._experiments&&l._experiments.maxSpans),u}function y(){!function(){var e=(0,i.cu)();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=m),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=f))}(),(0,l.KV)()&&function(){var t=(0,i.cu)();if(t.__SENTRY__){var n={mongodb:function(){return new((0,l.l$)(e,"./integrations/node/mongo").Mongo)},mongoose:function(){return new((0,l.l$)(e,"./integrations/node/mongo").Mongo)({mongoose:!0})},mysql:function(){return new((0,l.l$)(e,"./integrations/node/mysql").Mysql)},pg:function(){return new((0,l.l$)(e,"./integrations/node/postgres").Postgres)}},r=Object.keys(n).filter((function(e){return!!(0,l.$y)(e)})).map((function(e){try{return n[e]()}catch(t){return}})).filter((function(e){return e}));r.length>0&&(t.__SENTRY__.integrations=[].concat((0,o.Z)(t.__SENTRY__.integrations||[]),(0,o.Z)(r)))}}(),(0,u.o)("error",p),(0,u.o)("unhandledrejection",p)}e=n.hmd(e)},5522:function(e,t,n){"use strict";n.d(t,{io:function(){return y},mg:function(){return m},nT:function(){return g}});var o=n(7762),r=n(7326),i=n(5671),s=n(3144),a=n(1752),l=n(1120),u=n(136),c=n(7277),p=n(9846),d=n(6017),h=n(4533),f=n(4281),g=1e3,m=3e4,v=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e,o,r,s){var a;return(0,i.Z)(this,n),(a=t.call(this,s))._pushActivity=e,a._popActivity=o,a.transactionSpanId=r,a}return(0,s.Z)(n,[{key:"add",value:function(e){var t=this;e.spanId!==this.transactionSpanId&&(e.finish=function(n){e.endTimestamp="number"===typeof n?n:(0,p._I)(),t._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),(0,a.Z)((0,l.Z)(n.prototype),"add",this).call(this,e)}}]),n}(h.gB),y=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e,o){var s,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:m,u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,i.Z)(this,n),(s=t.call(this,e,o))._idleHub=o,s._idleTimeout=a,s._finalTimeout=l,s._onScope=u,n.prototype.__init.call((0,r.Z)(s)),n.prototype.__init2.call((0,r.Z)(s)),n.prototype.__init3.call((0,r.Z)(s)),n.prototype.__init4.call((0,r.Z)(s)),u&&(C(o),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("Setting idle transaction on scope. Span ID: ".concat(s.spanId)),o.configureScope((function(e){return e.setSpan((0,r.Z)(s))}))),s._startIdleTimeout(),setTimeout((function(){s._finished||(s.setStatus("deadline_exceeded"),s.finish())}),s._finalTimeout),s}return(0,s.Z)(n,[{key:"__init",value:function(){this.activities={}}},{key:"__init2",value:function(){this._heartbeatCounter=0}},{key:"__init3",value:function(){this._finished=!1}},{key:"__init4",value:function(){this._beforeFinishCallbacks=[]}},{key:"finish",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,p._I)();if(this._finished=!0,this.activities={},this.spanRecorder){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);var r,i=(0,o.Z)(this._beforeFinishCallbacks);try{for(i.s();!(r=i.n()).done;){var s=r.value;s(this,t)}}catch(u){i.e(u)}finally{i.f()}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(n){if(n.spanId===e.spanId)return!0;n.endTimestamp||(n.endTimestamp=t,n.setStatus("cancelled"),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(n,void 0,2)));var o=n.startTimestamp<t;return o||("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(n,void 0,2)),o})),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("[Tracing] flushing IdleTransaction")}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("[Tracing] No active IdleTransaction");return this._onScope&&C(this._idleHub),(0,a.Z)((0,l.Z)(n.prototype),"finish",this).call(this,t)}},{key:"registerBeforeFinishCallback",value:function(e){this._beforeFinishCallbacks.push(e)}},{key:"initSpanRecorder",value:function(e){var t=this;if(!this.spanRecorder){this.spanRecorder=new v((function(e){t._finished||t._pushActivity(e)}),(function(e){t._finished||t._popActivity(e)}),this.spanId,e),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}},{key:"_cancelIdleTimeout",value:function(){this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0)}},{key:"_startIdleTimeout",value:function(e){var t=this;this._cancelIdleTimeout(),this._idleTimeoutID=setTimeout((function(){t._finished||0!==Object.keys(t.activities).length||t.finish(e)}),this._idleTimeout)}},{key:"_pushActivity",value:function(e){this._cancelIdleTimeout(),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("[Tracing] pushActivity: ".concat(e)),this.activities[e]=!0,("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}},{key:"_popActivity",value:function(e){if(this.activities[e]&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("[Tracing] popActivity ".concat(e)),delete this.activities[e],("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var t=(0,p._I)()+this._idleTimeout/1e3;this._startIdleTimeout(t)}}},{key:"_beat",value:function(){if(!this._finished){var e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.finish()):this._pingHeartbeat()}}},{key:"_pingHeartbeat",value:function(){var e=this;("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("pinging Heartbeat -> current counter: ".concat(this._heartbeatCounter)),setTimeout((function(){e._beat()}),5e3)}}]),n}(f.Y);function C(e){var t=e.getScope();t&&(t.getTransaction()&&t.setSpan(void 0))}},4533:function(e,t,n){"use strict";n.d(t,{Dr:function(){return h},gB:function(){return d}});var o=n(4942),r=n(1413),i=n(5671),s=n(3144),a=n(7717),l=n(6870),u=n(9846),c=n(6017),p=n(5256),d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;(0,i.Z)(this,e),e.prototype.__init.call(this),this._maxlen=t}return(0,s.Z)(e,[{key:"__init",value:function(){this.spans=[]}},{key:"add",value:function(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}]),e}(),h=function(){function e(t){if((0,i.Z)(this,e),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this),e.prototype.__init6.call(this),!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}return(0,s.Z)(e,[{key:"__init2",value:function(){this.traceId=(0,l.DM)()}},{key:"__init3",value:function(){this.spanId=(0,l.DM)().substring(16)}},{key:"__init4",value:function(){this.startTimestamp=(0,u._I)()}},{key:"__init5",value:function(){this.tags={}}},{key:"__init6",value:function(){this.data={}}},{key:"startChild",value:function(t){var n=new e((0,r.Z)((0,r.Z)({},t),{},{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));if(n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&n.transaction){var o=t&&t.op||"< unknown op >",i=n.transaction.name||"< unknown name >",s=n.transaction.spanId,a="[Tracing] Starting '".concat(o,"' span on transaction '").concat(i,"' (").concat(s,").");n.transaction.metadata.spanMetadata[n.spanId]={logMessage:a},c.kg.log(a)}return n}},{key:"setTag",value:function(e,t){return this.tags=(0,r.Z)((0,r.Z)({},this.tags),{},(0,o.Z)({},e,t)),this}},{key:"setData",value:function(e,t){return this.data=(0,r.Z)((0,r.Z)({},this.data),{},(0,o.Z)({},e,t)),this}},{key:"setStatus",value:function(e){return this.status=e,this}},{key:"setHttpStatus",value:function(e){this.setTag("http.status_code",String(e));var t=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this}},{key:"isSuccess",value:function(){return"ok"===this.status}},{key:"finish",value:function(e){if(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){var t=this.transaction.metadata.spanMetadata[this.spanId].logMessage;t&&c.kg.log(t.replace("Starting","Finishing"))}this.endTimestamp="number"===typeof e?e:(0,u._I)()}},{key:"toTraceparent",value:function(){var e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),"".concat(this.traceId,"-").concat(this.spanId).concat(e)}},{key:"toContext",value:function(){return(0,p.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}},{key:"updateWithContext",value:function(e){var t=this;return this.data=(0,a.h)(e.data,(function(){return{}})),this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=(0,a.h)(e.spanId,(function(){return t.spanId})),this.startTimestamp=(0,a.h)(e.startTimestamp,(function(){return t.startTimestamp})),this.status=e.status,this.tags=(0,a.h)(e.tags,(function(){return{}})),this.traceId=(0,a.h)(e.traceId,(function(){return t.traceId})),this}},{key:"getTraceContext",value:function(){return(0,p.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}},{key:"toJSON",value:function(){return(0,p.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}]),e}()},4281:function(e,t,n){"use strict";n.d(t,{Y:function(){return v}});var o=n(1413),r=n(5671),i=n(3144),s=n(7326),a=n(1752),l=n(1120),u=n(136),c=n(7277),p=n(7717),d=n(8539),h=n(6017),f=n(5256),g=n(437),m=n(4533),v=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e,i){var a;return(0,r.Z)(this,n),a=t.call(this,e),n.prototype.__init.call((0,s.Z)(a)),a._hub=i||(0,d.Gd)(),a._name=e.name||"",a.metadata=(0,o.Z)((0,o.Z)({},e.metadata),{},{spanMetadata:{}}),a._trimEnd=e.trimEnd,a.transaction=(0,s.Z)(a),a}return(0,i.Z)(n,[{key:"__init",value:function(){this._measurements={}}},{key:"name",get:function(){return this._name},set:function(e){this._name=e,this.metadata.source="custom"}},{key:"setName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom";this.name=e,this.metadata.source=t}},{key:"initSpanRecorder",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;this.spanRecorder||(this.spanRecorder=new m.gB(e)),this.spanRecorder.add(this)}},{key:"setMeasurement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";this._measurements[e]={value:t,unit:n}}},{key:"setMetadata",value:function(e){this.metadata=(0,o.Z)((0,o.Z)({},this.metadata),e)}},{key:"finish",value:function(e){var t=this;if(void 0===this.endTimestamp){if(this.name||(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),(0,a.Z)((0,l.Z)(n.prototype),"finish",this).call(this,e),!0===this.sampled){var r=this.spanRecorder?this.spanRecorder.spans.filter((function(e){return e!==t&&e.endTimestamp})):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce((function(e,t){return e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e})).endTimestamp);var i=this.metadata,s=(0,o.Z)({contexts:{trace:this.getTraceContext()},spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:(0,o.Z)((0,o.Z)({},i),{},{baggage:this.getBaggage()})},i.source&&{transaction_info:{source:i.source}});return Object.keys(this._measurements).length>0&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),s.measurements=this._measurements),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.kg.log("[Tracing] Finishing ".concat(this.op," transaction: ").concat(this.name,".")),this._hub.captureEvent(s)}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var u=this._hub.getClient();u&&u.recordDroppedEvent("sample_rate","transaction")}}},{key:"toContext",value:function(){var e=(0,a.Z)((0,l.Z)(n.prototype),"toContext",this).call(this);return(0,f.Jr)((0,o.Z)((0,o.Z)({},e),{},{name:this.name,trimEnd:this._trimEnd}))}},{key:"updateWithContext",value:function(e){return(0,a.Z)((0,l.Z)(n.prototype),"updateWithContext",this).call(this,e),this.name=(0,p.h)(e.name,(function(){return""})),this._trimEnd=e.trimEnd,this}},{key:"getBaggage",value:function(){var e=this.metadata.baggage,t=!e||(0,g.Gp)(e)?this._populateBaggageWithSentryValues(e):e;return this.metadata.baggage=t,t}},{key:"_populateBaggageWithSentryValues",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,g.Hn)({}),t=this._hub||(0,d.Gd)(),n=t&&t.getClient();if(!n)return e;var r=n.getOptions()||{},i=r.environment,s=r.release,a=n.getDsn()||{},l=a.publicKey,u=this.metadata&&this.metadata.transactionSampling&&this.metadata.transactionSampling.rate,c=void 0!==u?u.toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:16}):void 0,p=t.getScope(),h=p&&p.getUser()||{},m=h.segment,v=this.metadata.source,y=v&&"url"!==v?this.name:void 0;return(0,g.Hn)((0,f.Jr)((0,o.Z)({environment:i,release:s,transaction:y,user_segment:m,public_key:l,trace_id:this.traceId,sample_rate:c},(0,g.Hk)(e))),"",!1)}}]),n}(m.Dr)},5129:function(e,t,n){"use strict";n.d(t,{XL:function(){return s},x1:function(){return i},zu:function(){return r}});var o=n(8539);function r(e){var t=(0,o.Gd)().getClient(),n=e||t&&t.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function i(e){var t=(e||(0,o.Gd)()).getScope();return t&&t.getTransaction()}function s(e){return e/1e3}},437:function(e,t,n){"use strict";n.d(t,{Gp:function(){return d},Hk:function(){return p},Hn:function(){return c},J8:function(){return f},bU:function(){return l},rg:function(){return g}});var o=n(4942),r=n(885),i=n(1413),s=n(8805),a=n(6017),l="baggage",u=/^sentry-/;function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return[(0,i.Z)({},e),t,n]}function p(e){return e[0]}function d(e){return e[2]}function h(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Array.isArray(e)&&!(0,s.HD)(e)||"number"===typeof e)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("[parseBaggageHeader] Received input value of incompatible type: ",typeof e,e),c({},"");var n=((0,s.HD)(e)?e:e.join(",")).split(",").map((function(e){return e.trim()})).filter((function(e){return""!==e&&(t||u.test(e))}));return n.reduce((function(e,t){var n=(0,r.Z)(e,2),s=n[0],a=n[1],l=t.split("="),c=(0,r.Z)(l,2),p=c[0],d=c[1];if(u.test(p)){var h=decodeURIComponent(p.split("-")[1]);return[(0,i.Z)((0,i.Z)({},s),{},(0,o.Z)({},h,decodeURIComponent(d))),a,!0]}return[s,""===a?t:"".concat(a,",").concat(t),!0]}),[{},"",!0])}function f(e,t){if(!e&&!t)return"";var n=t&&h(t,!0)||void 0,o=n&&n[1];return function(e){return Object.keys(e[0]).reduce((function(t,n){var o=e[0][n],r="".concat("sentry-").concat(encodeURIComponent(n),"=").concat(encodeURIComponent(o)),i=""===t?r:"".concat(t,",").concat(r);return i.length>8192?(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("Not adding key: ".concat(n," with val: ").concat(o," to baggage due to exceeding baggage size limits.")),t):i}),e[1])}(c(e&&e[0]||{},o||""))}function g(e,t){var n=h(e||"");return(t||!function(e){return 0===Object.keys(e[0]).length}(n))&&function(e){e[2]=!1}(n),n}},128:function(e,t,n){"use strict";n.d(t,{R:function(){return i},l:function(){return a}});var o=n(2968),r=n(8805);function i(e,t){try{for(var n,o=e,r=[],i=0,a=0,l=" > ".length;o&&i++<5&&!("html"===(n=s(o,t))||i>1&&a+r.length*l+n.length>=80);)r.push(n),a+=n.length,o=o.parentNode;return r.reverse().join(" > ")}catch(u){return"<unknown>"}}function s(e,t){var n,o,i,s,a,l=e,u=[];if(!l||!l.tagName)return"";u.push(l.tagName.toLowerCase());var c=t&&t.length?t.filter((function(e){return l.getAttribute(e)})).map((function(e){return[e,l.getAttribute(e)]})):null;if(c&&c.length)c.forEach((function(e){u.push("[".concat(e[0],'="').concat(e[1],'"]'))}));else if(l.id&&u.push("#".concat(l.id)),(n=l.className)&&(0,r.HD)(n))for(o=n.split(/\s+/),a=0;a<o.length;a++)u.push(".".concat(o[a]));var p=["type","name","title","alt"];for(a=0;a<p.length;a++)i=p[a],(s=l.getAttribute(i))&&u.push("[".concat(i,'="').concat(s,'"]'));return u.join("")}function a(){var e=(0,o.R)();try{return e.document.location.href}catch(t){return""}}},7717:function(e,t,n){"use strict";function o(e,t){return null!=e?e:t()}n.d(t,{h:function(){return o}})},2968:function(e,t,n){"use strict";n.d(t,{R:function(){return i},Y:function(){return s}});var o=n(9509),r={};function i(){return(0,o.KV)()?n.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:r}function s(e,t,n){var o=n||i(),r=o.__SENTRY__=o.__SENTRY__||{};return r[e]||(r[e]=t())}},2034:function(e,t,n){"use strict";n.d(t,{o:function(){return m}});var o,r=n(1413),i=n(7762),s=n(2968),a=n(8805),l=n(6017),u=n(5256),c=n(8578),p=n(4678),d=(0,s.R)(),h={},f={};function g(e){if(!f[e])switch(f[e]=!0,e){case"console":!function(){if(!("console"in d))return;l.RU.forEach((function(e){e in d.console&&(0,u.hl)(d.console,e,(function(t){return function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];v("console",{args:o,level:e}),t&&t.apply(d.console,o)}}))}))}();break;case"dom":!function(){if(!("document"in d))return;var e=v.bind(null,"dom"),t=S(e,!0);d.document.addEventListener("click",t,!1),d.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((function(t){var n=d[t]&&d[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,u.hl)(n,"addEventListener",(function(t){return function(n,o,r){if("click"===n||"keypress"==n)try{var i=this,s=i.__sentry_instrumentation_handlers__=i.__sentry_instrumentation_handlers__||{},a=s[n]=s[n]||{refCount:0};if(!a.handler){var l=S(e);a.handler=l,t.call(this,n,l,r)}a.refCount+=1}catch(u){}return t.call(this,n,o,r)}})),(0,u.hl)(n,"removeEventListener",(function(e){return function(t,n,o){if("click"===t||"keypress"==t)try{var r=this,i=r.__sentry_instrumentation_handlers__||{},s=i[t];s&&(s.refCount-=1,s.refCount<=0&&(e.call(this,t,s.handler,o),s.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete r.__sentry_instrumentation_handlers__)}catch(a){}return e.call(this,t,n,o)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in d))return;var e=XMLHttpRequest.prototype;(0,u.hl)(e,"open",(function(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var r=this,i=n[1],s=r.__sentry_xhr__={method:(0,a.HD)(n[0])?n[0].toUpperCase():n[0],url:n[1]};(0,a.HD)(i)&&"POST"===s.method&&i.match(/sentry_key/)&&(r.__sentry_own_request__=!0);var l=function(){if(4===r.readyState){try{s.status_code=r.status}catch(e){}v("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:r})}};return"onreadystatechange"in r&&"function"===typeof r.onreadystatechange?(0,u.hl)(r,"onreadystatechange",(function(e){return function(){l();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e.apply(r,n)}})):r.addEventListener("readystatechange",l),e.apply(r,n)}})),(0,u.hl)(e,"send",(function(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return this.__sentry_xhr__&&void 0!==n[0]&&(this.__sentry_xhr__.body=n[0]),v("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),e.apply(this,n)}}))}();break;case"fetch":!function(){if(!(0,p.t$)())return;(0,u.hl)(d,"fetch",(function(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var i={args:n,fetchData:{method:y(n),url:C(n)},startTimestamp:Date.now()};return v("fetch",(0,r.Z)({},i)),e.apply(d,n).then((function(e){return v("fetch",(0,r.Z)((0,r.Z)({},i),{},{endTimestamp:Date.now(),response:e})),e}),(function(e){throw v("fetch",(0,r.Z)((0,r.Z)({},i),{},{endTimestamp:Date.now(),error:e})),e}))}}))}();break;case"history":!function(){if(!(0,p.Bf)())return;var e=d.onpopstate;function t(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.length>2?n[2]:void 0;if(i){var s=o,a=String(i);o=a,v("history",{from:s,to:a})}return e.apply(this,n)}}d.onpopstate=function(){var t=d.location.href,n=o;if(o=t,v("history",{from:n,to:t}),e)try{for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e.apply(this,i)}catch(a){}},(0,u.hl)(d.history,"pushState",t),(0,u.hl)(d.history,"replaceState",t)}();break;case"error":R=d.onerror,d.onerror=function(e,t,n,o,r){return v("error",{column:o,error:r,line:n,msg:e,url:t}),!!R&&R.apply(this,arguments)};break;case"unhandledrejection":O=d.onunhandledrejection,d.onunhandledrejection=function(e){return v("unhandledrejection",e),!O||O.apply(this,arguments)};break;default:return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("unknown instrumentation type:",e))}}function m(e,t){h[e]=h[e]||[],h[e].push(t),g(e)}function v(e,t){if(e&&h[e]){var n,o=(0,i.Z)(h[e]||[]);try{for(o.s();!(n=o.n()).done;){var r=n.value;try{r(t)}catch(s){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("Error while triggering instrumentation handler.\nType: ".concat(e,"\nName: ").concat((0,c.$P)(r),"\nError:"),s)}}}catch(a){o.e(a)}finally{o.f()}}}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return"Request"in d&&(0,a.V9)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return"string"===typeof e[0]?e[0]:"Request"in d&&(0,a.V9)(e[0],Request)?e[0].url:String(e[0])}var w,_;function b(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(n){}return!1}function E(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(n){}return!0}function S(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){if(n&&_!==n&&!E(n)){var o="keypress"===n.type?"input":n.type;(void 0===w||b(_,n))&&(e({event:n,name:o,global:t}),_=n),clearTimeout(w),w=d.setTimeout((function(){w=void 0}),1e3)}}}var R=null;var O=null},8805:function(e,t,n){"use strict";n.d(t,{Cy:function(){return m},HD:function(){return u},J8:function(){return g},Kj:function(){return f},PO:function(){return p},TX:function(){return a},V9:function(){return y},VW:function(){return s},VZ:function(){return r},cO:function(){return d},fm:function(){return l},i2:function(){return v},kK:function(){return h},pt:function(){return c}});var o=Object.prototype.toString;function r(e){switch(o.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(e,Error)}}function i(e,t){return o.call(e)==="[object ".concat(t,"]")}function s(e){return i(e,"ErrorEvent")}function a(e){return i(e,"DOMError")}function l(e){return i(e,"DOMException")}function u(e){return i(e,"String")}function c(e){return null===e||"object"!==typeof e&&"function"!==typeof e}function p(e){return i(e,"Object")}function d(e){return"undefined"!==typeof Event&&y(e,Event)}function h(e){return"undefined"!==typeof Element&&y(e,Element)}function f(e){return i(e,"RegExp")}function g(e){return Boolean(e&&e.then&&"function"===typeof e.then)}function m(e){return p(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e){return"number"===typeof e&&e!==e}function y(e,t){try{return e instanceof t}catch(n){return!1}}},6017:function(e,t,n){"use strict";n.d(t,{Cf:function(){return l},RU:function(){return a},kg:function(){return o}});var o,r=n(2968),i=(0,r.R)(),s="Sentry Logger ",a=["debug","info","warn","error","log","assert","trace"];function l(e){var t=(0,r.R)();if(!("console"in t))return e();var n=t.console,o={};a.forEach((function(e){var r=n[e]&&n[e].__sentry_original__;e in t.console&&r&&(o[e]=n[e],n[e]=r)}));try{return e()}finally{Object.keys(o).forEach((function(e){n[e]=o[e]}))}}function u(){var e=!1,t={enable:function(){e=!0},disable:function(){e=!1}};return"undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?a.forEach((function(n){t[n]=function(){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];e&&l((function(){var e;(e=i.console)[n].apply(e,["".concat(s,"[").concat(n,"]:")].concat(o))}))}})):a.forEach((function(e){t[e]=function(){}})),t}o="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,r.Y)("logger",u):u()},6870:function(e,t,n){"use strict";n.d(t,{DM:function(){return s},Db:function(){return c},EG:function(){return p},YO:function(){return d},en:function(){return a},jH:function(){return u}});var o=n(1413),r=n(2968),i=n(5256);function s(){var e=(0,r.R)(),t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");var n=t&&t.getRandomValues?function(){return t.getRandomValues(new Uint8Array(1))[0]}:function(){return 16*Math.random()};return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(function(e){return(e^(15&n())>>e/4).toString(16)}))}function a(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 l(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function u(e){var t=e.message,n=e.event_id;if(t)return t;var o=l(e);return o?o.type&&o.value?"".concat(o.type,": ").concat(o.value):o.type||o.value||n||"<unknown>":n||"<unknown>"}function c(e,t,n){var o=e.exception=e.exception||{},r=o.values=o.values||[],i=r[0]=r[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function p(e,t){var n=l(e);if(n){var r=n.mechanism;if(n.mechanism=(0,o.Z)((0,o.Z)((0,o.Z)({},{type:"generic",handled:!0}),r),t),t&&"data"in t){var i=(0,o.Z)((0,o.Z)({},r&&r.data),t.data);n.mechanism.data=i}}}function d(e){if(e&&e.__sentry_captured__)return!0;try{(0,i.xp)(e,"__sentry_captured__",!0)}catch(t){}return!1}},9509:function(e,t,n){"use strict";function o(){return!("undefined"!==typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof process?process:0)}function r(e,t){return e.require(t)}function i(t){var n;try{n=r(e,t)}catch(i){}try{var o=r(e,"process").cwd;n=r(e,"".concat(o(),"/node_modules/").concat(t))}catch(i){}return n}n.d(t,{l$:function(){return r},KV:function(){return o},$y:function(){return i}}),e=n.hmd(e)},5256:function(e,t,n){"use strict";n.d(t,{$Q:function(){return u},HK:function(){return c},Jr:function(){return m},Sh:function(){return d},_j:function(){return p},hl:function(){return a},xp:function(){return l},zf:function(){return g}});var o=n(1413),r=n(128),i=n(8805),s=n(7050);function a(e,t,n){if(t in e){var o=e[t],r=n(o);if("function"===typeof r)try{u(r,o)}catch(i){}e[t]=r}}function l(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function u(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,l(e,"__sentry_original__",t)}function c(e){return e.__sentry_original__}function p(e){return Object.keys(e).map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))})).join("&")}function d(e){if((0,i.VZ)(e))return(0,o.Z)({message:e.message,name:e.name,stack:e.stack},f(e));if((0,i.cO)(e)){var t=(0,o.Z)({type:e.type,target:h(e.target),currentTarget:h(e.currentTarget)},f(e));return"undefined"!==typeof CustomEvent&&(0,i.V9)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function h(e){try{return(0,i.kK)(e)?(0,r.R)(e):Object.prototype.toString.call(e)}catch(t){return"<unknown>"}}function f(e){if("object"===typeof e&&null!==e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,n=Object.keys(d(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,s.$G)(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:(0,s.$G)(r,t)}return""}function m(e){return v(e,new Map)}function v(e,t){if((0,i.PO)(e)){if(void 0!==(a=t.get(e)))return a;var n={};t.set(e,n);for(var o=0,r=Object.keys(e);o<r.length;o++){var s=r[o];"undefined"!==typeof e[s]&&(n[s]=v(e[s],t))}return n}if(Array.isArray(e)){var a;if(void 0!==(a=t.get(e)))return a;n=[];return t.set(e,n),e.forEach((function(e){n.push(v(e,t))})),n}return e}},8578:function(e,t,n){"use strict";n.d(t,{$P:function(){return c},Sq:function(){return a},pE:function(){return s}});var o=n(1413),r=n(2982),i=n(7762);function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.sort((function(e,t){return e[0]-t[0]})).map((function(e){return e[1]}));return function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[],s=(0,i.Z)(e.split("\n").slice(n));try{for(s.s();!(t=s.n()).done;){var a,u=t.value,c=(0,i.Z)(o);try{for(c.s();!(a=c.n()).done;){var p=a.value,d=p(u);if(d){r.push(d);break}}}catch(h){c.e(h)}finally{c.f()}}}catch(h){s.e(h)}finally{s.f()}return l(r)}}function a(e){return Array.isArray(e)?s.apply(void 0,(0,r.Z)(e)):e}function l(e){if(!e.length)return[];var t=e,n=t[0].function||"",r=t[t.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((function(e){return(0,o.Z)((0,o.Z)({},e),{},{filename:e.filename||t[0].filename,function:e.function||"?"})})).reverse()}var u="<anonymous>";function c(e){try{return e&&"function"===typeof e&&e.name||u}catch(t){return u}}},7050:function(e,t,n){"use strict";n.d(t,{$G:function(){return r},nK:function(){return i},zC:function(){return s}});var o=n(8805);function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!==typeof e||0===t||e.length<=t?e:"".concat(e.substr(0,t),"...")}function i(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(i){n.push("[value cannot be serialized]")}}return n.join(t)}function s(e,t){return!!(0,o.HD)(e)&&((0,o.Kj)(t)?t.test(e):"string"===typeof t&&-1!==e.indexOf(t))}},4678:function(e,t,n){"use strict";n.d(t,{Ak:function(){return i},Bf:function(){return l},Du:function(){return s},t$:function(){return a}});var o=n(2968),r=n(6017);function i(){if(!("fetch"in(0,o.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function s(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function a(){if(!i())return!1;var e=(0,o.R)();if(s(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"===typeof n.createElement)try{var a=n.createElement("iframe");a.hidden=!0,n.head.appendChild(a),a.contentWindow&&a.contentWindow.fetch&&(t=s(a.contentWindow.fetch)),n.head.removeChild(a)}catch(l){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",l)}return t}function l(){var e=(0,o.R)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}},9153:function(e,t,n){"use strict";n.d(t,{$2:function(){return l},WD:function(){return a},cW:function(){return u}});var o,r=n(5671),i=n(3144),s=n(8805);function a(e){return new u((function(t){t(e)}))}function l(e){return new u((function(t,n){n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(o||(o={}));var u=function(){function e(t){(0,r.Z)(this,e),e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this),e.prototype.__init6.call(this);try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}return(0,i.Z)(e,[{key:"__init",value:function(){this._state=o.PENDING}},{key:"__init2",value:function(){this._handlers=[]}},{key:"then",value:function(t,n){var o=this;return new e((function(e,r){o._handlers.push([!1,function(n){if(t)try{e(t(n))}catch(o){r(o)}else e(n)},function(t){if(n)try{e(n(t))}catch(o){r(o)}else r(t)}]),o._executeHandlers()}))}},{key:"catch",value:function(e){return this.then((function(e){return e}),e)}},{key:"finally",value: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)}))}))}},{key:"__init3",value:function(){var e=this;this._resolve=function(t){e._setResult(o.RESOLVED,t)}}},{key:"__init4",value:function(){var e=this;this._reject=function(t){e._setResult(o.REJECTED,t)}}},{key:"__init5",value:function(){var e=this;this._setResult=function(t,n){e._state===o.PENDING&&((0,s.J8)(n)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))}}},{key:"__init6",value:function(){var e=this;this._executeHandlers=function(){if(e._state!==o.PENDING){var t=e._handlers.slice();e._handlers=[],t.forEach((function(t){t[0]||(e._state===o.RESOLVED&&t[1](e._value),e._state===o.REJECTED&&t[2](e._value),t[0]=!0)}))}}}}]),e}()},9846:function(e,t,n){"use strict";n.d(t,{Z1:function(){return p},_I:function(){return c},ph:function(){return u},yW:function(){return l}});var o=n(2968),r=n(9509);e=n.hmd(e);var i={nowSeconds:function(){return Date.now()/1e3}};var s=(0,r.KV)()?function(){try{return(0,r.l$)(e,"perf_hooks").performance}catch(t){return}}():function(){var e=(0,o.R)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),a=void 0===s?i:{nowSeconds:function(){return(s.timeOrigin+s.now())/1e3}},l=i.nowSeconds.bind(i),u=a.nowSeconds.bind(a),c=u,p=function(){var e=(0,o.R)().performance;if(e&&e.now){var t=36e5,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=i<t,a=e.timing&&e.timing.navigationStart,l="number"===typeof a?Math.abs(a+n-r):t;return s||l<t?i<=l?("timeOrigin",e.timeOrigin):("navigationStart",a):("dateNow",r)}"none"}()},1167:function(e,t,n){"use strict";function o(e){return null==e||""===e?null:e}function r(e,t){return void 0===t&&(t=!1),null!=e&&(""!==e||t)}function i(e){return!r(e)}function s(e){return null==e||0===e.length}function a(e){return null!=e&&"function"===typeof e.toString?e.toString():null}function l(e){if(void 0!==e){if(null===e||""===e)return null;if("number"===typeof e)return isNaN(e)?void 0:e;var t=parseInt(e,10);return isNaN(t)?void 0:t}}function u(e){if(void 0!==e)return null!==e&&""!==e&&("boolean"===typeof e?e:/true/i.test(e))}function c(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)return i(e,t);if(!n)return i(e,t);try{return e.localeCompare(t)}catch(s){return i(e,t)}}function p(e){if(e instanceof Set||e instanceof Map){var t=[];return e.forEach((function(e){return t.push(e)})),t}return Object.values(e)}Object.defineProperty(t,"__esModule",{value:!0});var d=Object.freeze({makeNull:o,exists:r,missing:i,missingOrEmpty:s,toStringOrNull:a,attrToNumber:l,attrToBoolean:u,attrToString:function(e){if(null!=e&&""!==e)return e},referenceCompare:function(e,t){return null==e&&null==t||(null!=e||null==t)&&((null==e||null!=t)&&e===t)},jsonEquals:function(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)},defaultComparator:c,values:p}),h=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=a(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}();function f(e,t){null!=e&&(Array.isArray(e)?e.forEach((function(e,n){return t(""+n,e)})):Object.keys(e).forEach((function(n){return t(n,e[n])})))}function g(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}function m(e,t){if(e){var n=e,o={};return Object.keys(n).forEach((function(e){if(!(t&&t.indexOf(e)>=0)){var r=n[e],i=R(r)&&r.constructor===Object;o[e]=i?m(r):r}})),o}}function v(e,t){return e[t]}function y(e,t,n){e[t]=n}function C(e,t,n,o){var r=v(e,n);void 0!==r&&y(t,n,o?o(r):r)}function w(e){var t={};return e.filter((function(e){return null!=e})).forEach((function(e){Object.keys(e).forEach((function(e){return t[e]=null}))})),Object.keys(t)}function _(e){if(!e)return[];var t=Object;if("function"===typeof t.values)return t.values(e);var n=[];for(var o in e)e.hasOwnProperty(o)&&e.propertyIsEnumerable(o)&&n.push(e[o]);return n}function b(e,t,n,o){void 0===n&&(n=!0),void 0===o&&(o=!1),r(t)&&f(t,(function(t,r){var i=e[t];if(i!==r){if(o)if(null==i&&null!=r)"object"===typeof r&&r.constructor===Object&&(i={},e[t]=i);R(r)&&R(i)&&!Array.isArray(i)?b(i,r,n,o):(n||void 0!==r)&&(e[t]=r)}}))}function E(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(null==r)return;r=r[o[i]]}return r}}function S(e,t){Object.keys(e).forEach((function(t){"object"===typeof e[t]&&(e[t]=void 0)}));var n=Object.getPrototypeOf(e),o={};Object.keys(n).forEach((function(e){if("function"===typeof n[e]){o[e]={value:function(){console.warn("AG Grid: "+t+" function "+e+"() cannot be called as the grid has been destroyed.\n                     Please don't call grid API functions on destroyed grids - as a matter of fact you shouldn't\n                     be keeping the API reference, your application has a memory leak! Remove the API reference\n                     when the grid is destroyed.")},writable:!0}}})),Object.defineProperties(e,o)}function R(e){return"object"===typeof e&&null!==e}var O=Object.freeze({iterateObject:f,cloneObject:g,deepCloneObject:function(e){return JSON.parse(JSON.stringify(e))},deepCloneDefinition:m,getProperty:v,setProperty:y,copyPropertiesIfPresent:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];n.forEach((function(n){return C(e,t,n)}))},copyPropertyIfPresent:C,getAllKeysInObjects:w,getAllValuesInObject:_,mergeDeep:b,missingOrEmptyObject:function(e){return i(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),p(t).forEach((function(t){(R(t)||"function"===typeof t)&&e(t)})),t},getValueUsingField:E,removeAllReferences:S,isNonNullObject:R}),T=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,P=/([^\s,]+)/g,A={};function D(e,t){A[t]||(e(),A[t]=!0)}function x(e){if(e.name)return e.name;var t=/function\s+([^\(]+)/.exec(e.toString());return t&&2===t.length?t[1].trim():null}function N(e){return!!(e&&e.constructor&&e.call&&e.apply)}function M(e){k(e,400)}var I=[],L=!1;function F(e){I.push(e),L||(L=!0,window.setTimeout((function(){var e=I.slice();I.length=0,L=!1,e.forEach((function(e){return e()}))}),0))}function k(e,t){void 0===t&&(t=0),e.length>0&&window.setTimeout((function(){return e.forEach((function(e){return e()}))}),t)}function G(e,t,n){var 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)}}function H(e,t){var n=0;return function(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=this,s=(new Date).getTime();s-n<t||(n=s,e.apply(i,o))}}function B(e,t,n,o){void 0===n&&(n=100);var r=(new Date).getTime(),i=null,s=!1,a=function(){var a=(new Date).getTime()-r>n;(e()||a)&&(t(),s=!0,null!=i&&(window.clearInterval(i),i=null),a&&o&&console.warn(o))};a(),s||(i=window.setInterval(a,10))}function V(e){e&&e()}var W=Object.freeze({doOnce:D,getFunctionName:x,getFunctionParameters:function(e){var t=e.toString().replace(T,"");return t.slice(t.indexOf("(")+1,t.indexOf(")")).match(P)||[]},isFunction:N,executeInAWhile:M,executeNextVMTurn:F,executeAfter:k,debounce:G,throttle:H,waitUntil:B,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:V}),j=function(){function e(e,t){if(this.beanWrappers={},this.destroyed=!1,e&&e.beanClasses){this.contextParams=e,this.logger=t,this.logger.log(">> creating ag-Application Context"),this.createBeans();var n=this.getBeanInstances();this.wireBeans(n),this.logger.log(">> ag-Application Context ready - component is alive")}}return e.prototype.getBeanInstances=function(){return p(this.beanWrappers).map((function(e){return e.beanInstance}))},e.prototype.createBean=function(e,t){if(!e)throw Error("Can't wire to bean since it is null");return this.wireBeans([e],t),e},e.prototype.wireBeans=function(e,t){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),r(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),f(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=e.getBeansForParameters(o,n.bean.name),i=function(e,t){var n=[null].concat(t);return new(e.bind.apply(e,n))}(n.bean,r);n.beanInstance=i}));var t=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+t)},e.prototype.createBeanWrapper=function(e){var t=e.__agBeanMetaData;if(!t){var n=void 0;return n=e.prototype.constructor?x(e.prototype.constructor):""+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){f(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&&f(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){return n.callLifeCycleMethodsOnBean(e,t)}))},e.prototype.callLifeCycleMethodsOnBean=function(e,t,n){var o={};this.forEachMetaDataInHierarchy(e,(function(e){var r=e[t];r&&r.forEach((function(e){e!=n&&(o[e]=!0)}))})),Object.keys(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.destroyBeans(e),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},e.prototype.destroyBean=function(e){e&&this.destroyBeans([e])},e.prototype.destroyBeans=function(e){var t=this;return e?(e.forEach((function(e){t.callLifeCycleMethodsOnBean(e,"preDestroyMethods","destroy");var n=e;"function"===typeof n.destroy&&n.destroy()})),[]):[]},e}();function U(e,t,n){var o=J(e.constructor);o.preConstructMethods||(o.preConstructMethods=[]),o.preConstructMethods.push(t)}function z(e,t,n){var o=J(e.constructor);o.postConstructMethods||(o.postConstructMethods=[]),o.postConstructMethods.push(t)}function Z(e,t,n){var o=J(e.constructor);o.preDestroyMethods||(o.preDestroyMethods=[]),o.preDestroyMethods.push(t)}function Y(e){return function(t){J(t).beanName=e}}function K(e){return function(t,n,o){X(t,e,!1,t,n,null)}}function q(e){return function(t,n,o){X(t,e,!0,t,n,null)}}function X(e,t,n,o,r,i){if(null!==t)if("number"!==typeof i){var s=J(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 Q(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=J(i),s=n):(r=J(i),s="agConstructor"),r.autowireMethods||(r.autowireMethods={}),r.autowireMethods[s]||(r.autowireMethods[s]={}),r.autowireMethods[s][o]=e}}}function J(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}var $,ee=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},te=function(e,t){return function(n,o){t(n,o,e)}},ne=function(){function e(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return e.prototype.setBeans=function(e,t,n,o){if(void 0===o&&(o=null),this.frameworkOverrides=n,o){var r=t.useAsyncEvents();this.addGlobalListener(o,r)}},e.prototype.getListeners=function(e,t,n){var o=t?this.allAsyncListeners:this.allSyncListeners,r=o.get(e);return!r&&n&&(r=new Set,o.set(e,r)),r},e.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},e.prototype.addEventListener=function(e,t,n){void 0===n&&(n=!1),this.getListeners(e,n,!0).add(t)},e.prototype.removeEventListener=function(e,t,n){void 0===n&&(n=!1);var o=this.getListeners(e,n,!1);o&&(o.delete(t),0===o.size&&(n?this.allAsyncListeners:this.allSyncListeners).delete(e))},e.prototype.addGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)},e.prototype.removeGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)},e.prototype.dispatchEvent=function(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},e.prototype.dispatchEventOnce=function(e){this.firedEvents[e.type]||this.dispatchEvent(e)},e.prototype.dispatchToListeners=function(e,t){var n=this,o=e.type,r=this.getListeners(o,t,!1);r&&function(o){o.forEach((function(o){t?n.dispatchAsync((function(){return o(e)})):o(e)}))}(r),(t?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(r){t?n.dispatchAsync((function(){return n.frameworkOverrides.dispatchEvent(o,(function(){return r(o,e)}),!0)})):n.frameworkOverrides.dispatchEvent(o,(function(){return r(o,e)}),!0)}))},e.prototype.dispatchAsync=function(e){this.asyncFunctionsQueue.push(e),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},e.prototype.flushAsyncQueue=function(){this.scheduled=!1;var e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach((function(e){return e()}))},ee([te(0,Q("loggerFactory")),te(1,Q("gridOptionsWrapper")),te(2,Q("frameworkOverrides")),te(3,Q("globalEventListener"))],e.prototype,"setBeans",null),e=ee([Y("eventService")],e)}(),oe=function(){function e(){}return e.ROW_BUFFER_SIZE=10,e.LAYOUT_INTERVAL=500,e.BATCH_WAIT_MILLIS=50,e.EXPORT_TYPE_DRAG_COPY="dragCopy",e.EXPORT_TYPE_CLIPBOARD="clipboard",e.EXPORT_TYPE_EXCEL="excel",e.EXPORT_TYPE_CSV="csv",e.ROW_MODEL_TYPE_INFINITE="infinite",e.ROW_MODEL_TYPE_VIEWPORT="viewport",e.ROW_MODEL_TYPE_CLIENT_SIDE="clientSide",e.ROW_MODEL_TYPE_SERVER_SIDE="serverSide",e.ALWAYS="always",e.ONLY_WHEN_GROUPING="onlyWhenGrouping",e.PINNED_TOP="top",e.PINNED_BOTTOM="bottom",e.DOM_LAYOUT_NORMAL="normal",e.DOM_LAYOUT_PRINT="print",e.DOM_LAYOUT_AUTO_HEIGHT="autoHeight",e.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",e.SOURCE_PASTE="paste",e.PINNED_RIGHT="right",e.PINNED_LEFT="left",e.SORT_ASC="asc",e.SORT_DESC="desc",e.INPUT_SELECTOR="input, select, button, textarea",e.FOCUSABLE_SELECTOR="[tabindex], input, select, button, textarea",e.FOCUSABLE_EXCLUDE=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *",e}();($=t.ModuleNames||(t.ModuleNames={})).CommunityCoreModule="@ag-grid-community/core",$.CommunityAllModules="@ag-grid-community/all",$.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",$.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",$.CsvExportModule="@ag-grid-community/csv-export",$.EnterpriseCoreModule="@ag-grid-enterprise/core",$.EnterpriseAllModules="@ag-grid-enterprise/all",$.RowGroupingModule="@ag-grid-enterprise/row-grouping",$.ColumnToolPanelModule="@ag-grid-enterprise/column-tool-panel",$.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",$.MenuModule="@ag-grid-enterprise/menu",$.SetFilterModule="@ag-grid-enterprise/set-filter",$.MultiFilterModule="@ag-grid-enterprise/multi-filter",$.StatusBarModule="@ag-grid-enterprise/status-bar",$.SideBarModule="@ag-grid-enterprise/side-bar",$.RangeSelectionModule="@ag-grid-enterprise/range-selection",$.MasterDetailModule="@ag-grid-enterprise/master-detail",$.RichSelectModule="@ag-grid-enterprise/rich-select",$.GridChartsModule="@ag-grid-enterprise/charts",$.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",$.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",$.ExcelExportModule="@ag-grid-enterprise/excel-export",$.ClipboardModule="@ag-grid-enterprise/clipboard",$.SparklinesModule="@ag-grid-enterprise/sparklines",$.AngularModule="@ag-grid-community/angular",$.ReactModule="@ag-grid-community/react",$.VueModule="@ag-grid-community/vue",$.PolymerModule="@ag-grid-community/polymer";var re=function(){function e(){}return e.register=function(t,n){void 0===n&&(n=!0),e.modulesMap[t.moduleName]=t,void 0===e.moduleBased?e.moduleBased=n:e.moduleBased!==n&&D((function(){console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.")}),"ModulePackageCheck")},e.registerModules=function(t,n){void 0===n&&(n=!0),t&&t.forEach((function(t){return e.register(t,n)}))},e.assertRegistered=function(t,n){if(this.isRegistered(t))return!0;var o,r=n+t;return o=e.moduleBased?"AG Grid: unable to use "+n+" as module "+t+" is not present. Please see: https://www.ag-grid.com/javascript-grid/modules/":"AG Grid: unable to use "+n+" as package 'ag-grid-enterprise' is not present. Please see: https://www.ag-grid.com/javascript-grid/packages/",D((function(){console.warn(o)}),r),!1},e.isRegistered=function(t){return!!e.modulesMap[t]},e.getRegisteredModules=function(){return p(e.modulesMap)},e.isPackageBased=function(){return!e.moduleBased},e.modulesMap={},e}(),ie=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},se=0,ae=function(){function e(e,t,n,o){this.instanceId=se++,this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new ne,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.colId=n,this.primary=o,this.setState(e)}return e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setState=function(e){void 0!==e.sort?e.sort!==oe.SORT_ASC&&e.sort!==oe.SORT_DESC||(this.sort=e.sort):e.initialSort!==oe.SORT_ASC&&e.initialSort!==oe.SORT_DESC||(this.sort=e.initialSort);var t=l(e.sortIndex),n=l(e.initialSortIndex);void 0!==t?null!==t&&(this.sortIndex=t):null!==n&&(this.sortIndex=n);var o=u(e.hide),r=u(e.initialHide);this.visible=void 0!==o?!o:!r,void 0!==e.pinned?this.setPinned(e.pinned):this.setPinned(e.initialPinned);var i=l(e.flex),s=l(e.initialFlex);void 0!==i?this.flex=i:void 0!==s&&(this.flex=s)},e.prototype.setColDef=function(e,t){this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation()},e.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},e.prototype.setParent=function(e){this.parent=e},e.prototype.getParent=function(){return this.parent},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.validate()},e.prototype.initDotNotation=function(){var e=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=r(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!e,this.tooltipFieldContainsDots=r(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!e},e.prototype.initMinAndMaxWidths=function(){var e=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(e),this.maxWidth=this.columnUtils.calculateColMaxWidth(e)},e.prototype.resetActualWidth=function(e){void 0===e&&(e="api");var t=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){if(i(this.colDef)||i(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,n=this.colDef.showRowGroup===e;return t||n},e.prototype.isPrimary=function(){return this.primary},e.prototype.isFilterAllowed=function(){return!!this.colDef.filter||!!this.colDef.filterFramework},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){D((function(){n?console.warn(e,n):D((function(){return console.warn(e)}),t)}),t)}if(this.gridOptionsWrapper.isRowModelDefault()&&!re.isRegistered(t.ModuleNames.RowGroupingModule)){["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].forEach((function(o){r(e[o])&&(re.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(re.isRegistered(t.ModuleNames.RichSelectModule)||"agRichSelect"===this.colDef.cellEditor&&(re.isPackageBased()?n("AG Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnRichSelectMissing"):n("AG Grid: "+this.colDef.cellEditor+" can only be used with AG Grid Enterprise Module "+t.ModuleNames.RichSelectModule,"ColumnRichSelectMissing")),this.gridOptionsWrapper.isTreeData()){["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach((function(t){r(e[t])&&n("AG Grid: "+t+" is not possible when doing tree data, your column definition should not have "+t,"TreeDataCannotRowGroup")}))}r(this.colDef.width)&&"number"!==typeof this.colDef.width&&n("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef"),e.pinnedRowCellRenderer&&n("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowCellRendererParams&&n("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowCellRendererFramework&&n("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowValueGetter&&n("AG Grid: pinnedRowCellRenderer is deprecated, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue.","colDef.pinnedRowCellRenderer-deprecated")},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.createColumnFunctionCallbackParams=function(e){return{node:e,data:e.data,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.isSuppressNavigable=function(e){if("boolean"===typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"===typeof this.colDef.suppressNavigable){var t=this.createColumnFunctionCallbackParams(e);return(0,this.colDef.suppressNavigable)(t)}return!1},e.prototype.isCellEditable=function(e){return!(e.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(e,this.colDef.editable)},e.prototype.isSuppressFillHandle=function(){return!!u(this.colDef.suppressFillHandle)},e.prototype.isAutoHeight=function(){return!!u(this.colDef.autoHeight)},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!!u(this.colDef.resizable)},e.prototype.isColumnFunc=function(e,t){return"boolean"===typeof t?t:"function"===typeof t&&t(this.createColumnFunctionCallbackParams(e))},e.prototype.setMoving=function(t,n){void 0===n&&(n="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MOVING_CHANGED,n))},e.prototype.createColumnEvent=function(e,t){return{api:this.gridApi,columnApi:this.columnApi,type:e,column:this,columns:[this],source:t}},e.prototype.isMoving=function(){return this.moving},e.prototype.getSort=function(){return this.sort},e.prototype.setSort=function(t,n){void 0===n&&(n="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_SORT_CHANGED,n)))},e.prototype.setMenuVisible=function(t,n){void 0===n&&(n="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MENU_VISIBLE_CHANGED,n)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortAscending=function(){return this.sort===oe.SORT_ASC},e.prototype.isSortDescending=function(){return this.sort===oe.SORT_DESC},e.prototype.isSortNone=function(){return i(this.sort)},e.prototype.isSorting=function(){return r(this.sort)},e.prototype.getSortIndex=function(){return this.sortIndex},e.prototype.setSortIndex=function(e){this.sortIndex=e},e.prototype.setAggFunc=function(e){this.aggFunc=e},e.prototype.getAggFunc=function(){return this.aggFunc},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.getRight=function(){return this.left+this.actualWidth},e.prototype.setLeft=function(t,n){void 0===n&&(n="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LEFT_CHANGED,n)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(t,n,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&&b(r,o),this.eventService.dispatchEvent(r)},e.prototype.setPinned=function(e){!0===e||e===oe.PINNED_LEFT?this.pinned=oe.PINNED_LEFT:e===oe.PINNED_RIGHT?this.pinned=oe.PINNED_RIGHT:this.pinned=null},e.prototype.setFirstRightPinned=function(t,n){void 0===n&&(n="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FIRST_RIGHT_PINNED_CHANGED,n)))},e.prototype.setLastLeftPinned=function(t,n){void 0===n&&(n="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LAST_LEFT_PINNED_CHANGED,n)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return this.pinned===oe.PINNED_LEFT||this.pinned===oe.PINNED_RIGHT},e.prototype.isPinnedLeft=function(){return this.pinned===oe.PINNED_LEFT},e.prototype.isPinnedRight=function(){return this.pinned===oe.PINNED_RIGHT},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(t,n){void 0===n&&(n="api");var 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.getUniqueId=function(){return this.getId()},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(i(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(i(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.rowSpan(t);return Math.max(n,1)},e.prototype.setActualWidth=function(e,t,n){void 0===t&&(t="api"),void 0===n&&(n=!1),null!=this.minWidth&&(e=Math.max(e,this.minWidth)),null!=this.maxWidth&&(e=Math.min(e,this.maxWidth)),this.actualWidth!==e&&(this.actualWidth=e,this.flex&&"flex"!==t&&"gridInitializing"!==t&&(this.flex=null),n||this.fireColumnWidthChangedEvent(t))},e.prototype.fireColumnWidthChangedEvent=function(t){this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_WIDTH_CHANGED,t))},e.prototype.isGreaterThanMax=function(e){return null!=this.maxWidth&&e>this.maxWidth},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMaxWidth=function(){return this.maxWidth},e.prototype.getFlex=function(){return this.flex||0},e.prototype.setFlex=function(e){this.flex!==e&&(this.flex=e)},e.prototype.setMinimum=function(e){void 0===e&&(e="api"),r(this.minWidth)&&this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(t,n){void 0===n&&(n="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_ROW_GROUP_CHANGED,n)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(t,n){void 0===n&&(n="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_PIVOT_CHANGED,n)))},e.prototype.isPivotActive=function(){return this.pivotActive},e.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},e.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},e.prototype.setValueActive=function(t,n){void 0===n&&(n="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VALUE_CHANGED,n)))},e.prototype.isValueActive=function(){return this.aggregationActive},e.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},e.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},e.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},e.prototype.getMenuTabs=function(e){var t=this.getColDef().menuTabs;return null==t&&(t=e),t},e.prototype.isLockPosition=function(){return console.warn("AG Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead."),!!this.colDef&&!!this.colDef.lockPosition},e.prototype.isLockVisible=function(){return console.warn("AG Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead."),!!this.colDef&&!!this.colDef.lockVisible},e.prototype.isLockPinned=function(){return console.warn("AG Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead."),!!this.colDef&&!!this.colDef.lockPinned},e.EVENT_MOVING_CHANGED="movingChanged",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_WIDTH_CHANGED="widthChanged",e.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",e.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",e.EVENT_VISIBLE_CHANGED="visibleChanged",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",e.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_PIVOT_CHANGED="columnPivotChanged",e.EVENT_VALUE_CHANGED="columnValueChanged",ie([K("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ie([K("columnUtils")],e.prototype,"columnUtils",void 0),ie([K("columnApi")],e.prototype,"columnApi",void 0),ie([K("gridApi")],e.prototype,"gridApi",void 0),ie([K("context")],e.prototype,"context",void 0),ie([z],e.prototype,"initialise",null),e}();function le(){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(r(o))return o}return null}function ue(e){if(e&&e.length)return e[e.length-1]}function ce(e,t,n){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&e.every((function(e,o){return n?n(e,t[o]):t[o]===e}))}function pe(e){return e.sort((function(e,t){return e-t}))}function de(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function he(e,t){t.forEach((function(t){return de(e,t)}))}function fe(e,t,n){e.splice(n,0,t)}function ge(e,t,n){he(e,t),t.slice().reverse().forEach((function(t){return fe(e,t,n)}))}function me(e,t){return e.indexOf(t)>-1}function ve(e,t){null!=t&&null!=e&&t.forEach((function(t){return e.push(t)}))}var ye=Object.freeze({firstExistingValue:le,existsAndNotEmpty:function(e){return null!=e&&e.length>0},last:ue,areEqual:ce,compareArrays:function(e,t){return ce(e,t)},shallowCompare:function(e,t){return ce(e,t)},sortNumerically:pe,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:de,removeAllFromArray:he,insertIntoArray:fe,insertArrayIntoArray:function(e,t,n){if(null!=e&&null!=t)for(var o=t.length-1;o>=0;o--){fe(e,t[o],n)}},moveInArray:ge,includes:me,flatten:function(e){return[].concat.apply([],e)},pushAll:ve,toStrings:function(e){return e.map(a)},forEachReverse:function(e,t){if(null!=e)for(var n=e.length-1;n>=0;n--)t(e[n],n)}}),Ce=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},we=function(){function e(e,t,n,o){this.displayedChildren=[],this.localEventService=new ne,this.groupId=t,this.instanceId=n,this.providedColumnGroup=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.getProvidedColumnGroup().getLeafColumns();return!(!e||0===e.length)&&e.every((function(e){return e.isMoving()}))},e.prototype.checkLeft=function(){if(this.displayedChildren.forEach((function(t){t instanceof e&&t.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsWrapper.isEnableRtl()){var t=ue(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()||0})),e},e.prototype.addChild=function(e){this.children||(this.children=[]),this.children.push(e)},e.prototype.getDisplayedChildren=function(){return this.displayedChildren},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.getDisplayedLeafColumns=function(){var e=[];return this.addDisplayedLeafColumns(e),e},e.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},e.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},e.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},e.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},e.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},e.prototype.setExpanded=function(e){this.providedColumnGroup.setExpanded(e)},e.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach((function(n){n instanceof ae?t.push(n):n instanceof e&&n.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(n){n instanceof ae?t.push(n):n instanceof e&&n.addLeafColumns(t)}))},e.prototype.getChildren=function(){return this.children},e.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},e.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},e.prototype.getOriginalColumnGroup=function(){return console.warn("AG Grid: columnGroup.getOriginalColumnGroup() is deprecated due to a method rename, use columnGroup.getProvidedColumnGroup() instead"),this.getProvidedColumnGroup()},e.prototype.getPaddingLevel=function(){var e=this.getParent();return this.isPadding()&&e&&e.isPadding()?1+e.getPaddingLevel():0},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];for(var n=this;null!=n&&n.isPadding();)n=n.getParent();if(!(!!n&&n.providedColumnGroup.isExpandable()))return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach((function(o){if(!(o instanceof e&&(!o.displayedChildren||!o.displayedChildren.length)))switch(o.getColumnGroupShow()){case e.HEADER_GROUP_SHOW_OPEN:n.providedColumnGroup.isExpanded()&&t.displayedChildren.push(o);break;case e.HEADER_GROUP_SHOW_CLOSED:n.providedColumnGroup.isExpanded()||t.displayedChildren.push(o);break;default:t.displayedChildren.push(o)}})),this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.HEADER_GROUP_SHOW_OPEN="open",e.HEADER_GROUP_SHOW_CLOSED="closed",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",Ce([K("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),_e=function(){function e(e,t,n,o){this.localEventService=new ne,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 ae?t.push(n):n instanceof e&&n.addLeafColumns(t)}))},e.prototype.getColumnGroupShow=function(){var e=this.colGroupDef;if(e)return e.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.getLeafColumns().forEach((function(t){return t.addEventListener(ae.EVENT_VISIBLE_CHANGED,e.onColumnVisibilityChanged.bind(e))}))},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,n=!1,o=!1,r=this.findChildrenRemovingPadding(),i=0,s=r.length;i<s;i++){var a=r[i];if(a.isVisible()){var l=a.getColumnGroupShow();l===we.HEADER_GROUP_SHOW_OPEN?(t=!0,o=!0):l===we.HEADER_GROUP_SHOW_CLOSED?(n=!0,o=!0):(t=!0,n=!0)}}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.findChildrenRemovingPadding=function(){var t=[];return function n(o){o.forEach((function(o){o instanceof e&&o.isPadding()?n(o.children):t.push(o)}))}(this.children),t},e.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_EXPANDABLE_CHANGED="expandableChanged",e}(),be={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},Ee="__ag_Grid_Stop_Propagation",Se=["touchstart","touchend","touchmove","touchcancel"],Re={};function Oe(e){e[Ee]=!0}function Te(e){return!0===e[Ee]}var Pe=function(){var e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(t){if("boolean"===typeof Re[t])return Re[t];var n=document.createElement(e[t]||"div");return Re[t="on"+t]=t in n}}();function Ae(e,t,n){for(var o=t.target;o;){var r=e.getDomData(o,n);if(r)return r;o=o.parentElement}return null}function De(e,t){return!(!t||!e)&&Ne(t).indexOf(e)>=0}function xe(e){for(var t=[],n=e.target;n;)t.push(n),n=n.parentElement;return t}function Ne(e){var t=e;return t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:xe(e)}function Me(e,t,n,o){var r=me(Se,n)?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(t,n,o,r)}var Ie=Object.freeze({stopPropagationForAgGrid:Oe,isStopPropagationForAgGrid:Te,isEventSupported:Pe,getCtrlForEvent:Ae,addChangeListener:function(e,t){e.addEventListener("changed",t),e.addEventListener("paste",t),e.addEventListener("input",t)},isElementInEventPath:De,createEventPath:xe,addAgGridEventPath:function(e){e.__agGridEventPath=Ne(e)},getEventPath:Ne,addSafePassiveEventListener:Me}),Le=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},Fe=function(){function e(){var e=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.isAlive=function(){return!e.destroyed}}return e.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},e.prototype.getContext=function(){return this.context},e.prototype.destroy=function(){this.destroyFunctions.forEach((function(e){return e()})),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:e.EVENT_DESTROYED})},e.prototype.addEventListener=function(e,t){this.localEventService||(this.localEventService=new ne),this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService&&this.localEventService.removeEventListener(e,t)},e.prototype.dispatchEventAsync=function(e){var t=this;window.setTimeout((function(){return t.dispatchEvent(e)}),0)},e.prototype.dispatchEvent=function(e){this.localEventService&&this.localEventService.dispatchEvent(e)},e.prototype.addManagedListener=function(e,t,n){var o=this;if(!this.destroyed){e instanceof HTMLElement?Me(this.getFrameworkOverrides(),e,t,n):e.addEventListener(t,n);var r=function r(){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.createManagedBean=function(e,t){var n=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),n},e.prototype.createBean=function(e,t,n){return(t||this.getContext()).createBean(e,n)},e.prototype.destroyBean=function(e,t){return(t||this.getContext()).destroyBean(e)},e.prototype.destroyBeans=function(e,t){var n=this;return e&&e.forEach((function(e){return n.destroyBean(e,t)})),[]},e.EVENT_DESTROYED="destroyed",Le([K("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Le([K("context")],e.prototype,"context",void 0),Le([K("eventService")],e.prototype,"eventService",void 0),Le([K("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Le([Z],e.prototype,"destroy",null),e}(),ke=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Ge=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},He=function(e,t){return function(n,o){t(n,o,e)}},Be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ke(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},t.prototype.createColumnTree=function(e,t,n){var o=new h,r=this.extractExistingTreeData(n),i=r.existingCols,s=r.existingGroups,a=r.existingColKeys;o.addExistingKeys(a);var l=this.recursivelyCreateColumns(e,0,t,i,o,s),u=this.findMaxDept(l,0);this.logger.log("Number of levels for grouped columns is "+u);var c=this.balanceColumnTree(l,0,u,o);return this.columnUtils.depthFirstOriginalTreeSearch(null,c,(function(e,t){e instanceof _e&&e.setupExpandable(),e.setOriginalParent(t)})),{columnTree:c,treeDept:u}},t.prototype.extractExistingTreeData=function(e){var t=[],n=[],o=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,(function(e){if(e instanceof _e){var r=e;n.push(r)}else{var i=e;o.push(i.getId()),t.push(i)}})),{existingCols:t,existingGroups:n,existingColKeys:o}},t.prototype.createForAutoGroups=function(e,t){var n=this;return e.map((function(e){return n.createAutoGroupTreeItem(t,e)}))},t.prototype.createAutoGroupTreeItem=function(e,t){for(var n=t,o=this.findDepth(e)-1;o>=0;o--){var r=new _e(null,"FAKE_PATH_"+t.getId()+"}_"+o,!0,o);this.context.createBean(r),r.setChildren([n]),n.setOriginalParent(r),n=r}return n},t.prototype.findDepth=function(e){for(var t=0,n=e;n&&n[0]&&n[0]instanceof _e;)t++,n=n[0].getChildren();return t},t.prototype.balanceColumnTree=function(e,t,n,o){for(var r=[],i=0;i<e.length;i++){var s=e[i];if(s instanceof _e){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 _e(h,d,!0,t);this.context.createBean(f),c&&c.setChildren([f]),c=f,u||(u=c)}if(u&&c){if(r.push(u),e.some((function(e){return e instanceof _e}))){c.setChildren([s]);continue}c.setChildren(e);break}r.push(s)}}return r},t.prototype.findMaxDept=function(e,t){for(var n=t,o=0;o<e.length;o++){var r=e[o];if(r instanceof _e){var i=r,s=this.findMaxDept(i.getChildren(),t+1);n<s&&(n=s)}}return n},t.prototype.recursivelyCreateColumns=function(e,t,n,o,r,i){var s=this;return(e||[]).map((function(e){return s.isColumnGroup(e)?s.createColumnGroup(n,e,t,o,r,i):s.createColumn(n,e,o,r)}))},t.prototype.createColumnGroup=function(e,t,n,o,r,i){var s=this.createMergedColGroupDef(t),a=r.getUniqueKey(s.groupId||null,null),l=new _e(s,a,!1,n);this.context.createBean(l);var u=this.findExistingGroup(t,i);u&&de(i,u),u&&u.isExpanded()&&l.setExpanded(!0);var c=this.recursivelyCreateColumns(s.children,n+1,e,o,r,i);return l.setChildren(c),l},t.prototype.createMergedColGroupDef=function(e){var t={};return Object.assign(t,this.gridOptionsWrapper.getDefaultColGroupDef()),Object.assign(t,e),this.checkForDeprecatedItems(t),t},t.prototype.createColumn=function(e,t,n,o){var r=this.mergeColDefs(t);this.checkForDeprecatedItems(r);var i=this.findExistingColumn(t,n);if(n&&i&&de(n,i),i)i.setColDef(r,t),this.applyColumnState(i,r);else{var s=o.getUniqueKey(r.colId,r.field);i=new ae(r,t,s,e),this.context.createBean(i)}return i},t.prototype.applyColumnState=function(e,t){var n=l(t.flex);if(void 0!==n&&e.setFlex(n),e.getFlex()<=0){var o=l(t.width);if(null!=o)e.setActualWidth(o);else{var r=e.getActualWidth();e.setActualWidth(r)}}void 0!==t.sort&&(t.sort==oe.SORT_ASC||t.sort==oe.SORT_DESC?e.setSort(t.sort):e.setSort(void 0));var i=l(t.sortIndex);void 0!==i&&e.setSortIndex(i);var s=u(t.hide);void 0!==s&&e.setVisible(!s),void 0!==t.pinned&&e.setPinned(t.pinned)},t.prototype.findExistingColumn=function(e,t){return(t||[]).find((function(t){var n=t.getUserProvidedColDef();if(!n)return!1;var o=null!=e.colId,r=null!=e.field;return o?t.getId()===e.colId:r?n.field===e.field:n===e}))},t.prototype.findExistingGroup=function(e,t){return t.find((function(t){return!!t.getColGroupDef()&&(!(null==e.groupId)&&t.getId()===e.groupId)}))},t.prototype.mergeColDefs=function(e){var t={},n=this.gridOptionsWrapper.getDefaultColDef();b(t,n,!1,!0);var o=e.type;return o||(o=n&&n.type),o&&this.assignColumnTypes(o,t),b(t,e,!1,!0),t},t.prototype.assignColumnTypes=function(e,t){var n=[];if(e instanceof Array){e.some((function(e){return"string"!==typeof e}))?console.warn("AG Grid: if colDef.type is supplied an array it should be of type 'string[]'"):n=e}else{if("string"!==typeof e)return void console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'");n=e.split(",")}var o=Object.assign({},be);f(this.gridOptionsWrapper.getColumnTypes()||{},(function(e,t){e in o?console.warn("AG Grid: the column type '"+e+"' is a default column type and cannot be overridden."):o[e]=t})),n.forEach((function(e){var n=o[e.trim()];n?b(t,n,!1,!0):console.warn("AG Grid: colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes")}))},t.prototype.checkForDeprecatedItems=function(e){if(e){var t=e;void 0!==t.group&&console.warn("AG Grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroup&&console.warn("AG Grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroupShow&&console.warn("AG Grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.suppressRowGroup&&console.warn("AG Grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==t.suppressAggregation&&console.warn("AG Grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(t.suppressRowGroup||t.suppressAggregation)&&console.warn("AG Grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),t.displayName&&(console.warn("AG Grid: Found displayName "+t.displayName+", please use headerName instead, displayName is deprecated."),t.headerName=t.displayName)}},t.prototype.isColumnGroup=function(e){return void 0!==e.children},Ge([K("columnUtils")],t.prototype,"columnUtils",void 0),Ge([He(0,Q("loggerFactory"))],t.prototype,"setBeans",null),t=Ge([Y("columnFactory")],t)}(Fe),Ve=function(){function e(){}return e.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",e.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",e.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",e.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",e.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",e.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",e.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",e.EVENT_COLUMN_MOVED="columnMoved",e.EVENT_COLUMN_VISIBLE="columnVisible",e.EVENT_COLUMN_PINNED="columnPinned",e.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",e.EVENT_COLUMN_RESIZED="columnResized",e.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",e.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",e.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",e.EVENT_ROW_GROUP_OPENED="rowGroupOpened",e.EVENT_ROW_DATA_CHANGED="rowDataChanged",e.EVENT_ROW_DATA_UPDATED="rowDataUpdated",e.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",e.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",e.EVENT_CHART_CREATED="chartCreated",e.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",e.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",e.EVENT_CHART_DESTROYED="chartDestroyed",e.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",e.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",e.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",e.EVENT_MODEL_UPDATED="modelUpdated",e.EVENT_PASTE_START="pasteStart",e.EVENT_PASTE_END="pasteEnd",e.EVENT_FILL_START="fillStart",e.EVENT_FILL_END="fillEnd",e.EVENT_CELL_CLICKED="cellClicked",e.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",e.EVENT_CELL_MOUSE_DOWN="cellMouseDown",e.EVENT_CELL_CONTEXT_MENU="cellContextMenu",e.EVENT_CELL_VALUE_CHANGED="cellValueChanged",e.EVENT_CELL_EDIT_REQUEST="cellEditRequest",e.EVENT_ROW_VALUE_CHANGED="rowValueChanged",e.EVENT_CELL_FOCUSED="cellFocused",e.EVENT_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_SELECTION_CHANGED="selectionChanged",e.EVENT_CELL_KEY_DOWN="cellKeyDown",e.EVENT_CELL_KEY_PRESS="cellKeyPress",e.EVENT_CELL_MOUSE_OVER="cellMouseOver",e.EVENT_CELL_MOUSE_OUT="cellMouseOut",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_MODIFIED="filterModified",e.EVENT_FILTER_OPENED="filterOpened",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",e.EVENT_ROW_CLICKED="rowClicked",e.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",e.EVENT_GRID_READY="gridReady",e.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",e.EVENT_VIEWPORT_CHANGED="viewportChanged",e.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",e.EVENT_FIRST_DATA_RENDERED="firstDataRendered",e.EVENT_DRAG_STARTED="dragStarted",e.EVENT_DRAG_STOPPED="dragStopped",e.EVENT_CHECKBOX_CHANGED="checkboxChanged",e.EVENT_ROW_EDITING_STARTED="rowEditingStarted",e.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",e.EVENT_CELL_EDITING_STARTED="cellEditingStarted",e.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",e.EVENT_BODY_SCROLL="bodyScroll",e.EVENT_BODY_SCROLL_END="bodyScrollEnd",e.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",e.EVENT_PAGINATION_CHANGED="paginationChanged",e.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",e.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",e.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",e.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",e.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",e.EVENT_FLASH_CELLS="flashCells",e.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOffsetChanged",e.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",e.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",e.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",e.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",e.EVENT_ROW_DRAG_ENTER="rowDragEnter",e.EVENT_ROW_DRAG_MOVE="rowDragMove",e.EVENT_ROW_DRAG_LEAVE="rowDragLeave",e.EVENT_ROW_DRAG_END="rowDragEnd",e.EVENT_POPUP_TO_FRONT="popupToFront",e.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",e.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",e.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",e.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",e.EVENT_KEYBOARD_FOCUS="keyboardFocus",e.EVENT_MOUSE_FOCUS="mouseFocus",e.EVENT_STORE_UPDATED="storeUpdated",e}(),We=function(){function e(){this.existingIds={}}return e.prototype.getInstanceIdForKey=function(e){var t,n=this.existingIds[e];return t="number"!==typeof n?0:n+1,this.existingIds[e]=t,t},e}(),je=/[&<>"']/g,Ue={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ze(e){return null===e||void 0===e?null:e.replace(/([A-Z])/g,(function(e){return"-"+e[0].toLowerCase()}))}function Ze(e){return null===e||void 0===e?null:e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))}function Ye(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()}function Ke(e){return null==e?null:e.toString().toString().replace(je,(function(e){return Ue[e]}))}function qe(e){if(!e||null==e)return null;return e.replace(/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,"$1$4 $2$3$5").replace("."," ").split(" ").map((function(e){return e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):"")})).join(" ")}var Xe=Object.freeze({utf8_encode:function(e){var t=String.fromCharCode;function n(e,n){return t(e>>n&63|128)}function o(e){if(e>=0&&e<=31&&10!==e)return"_x"+e.toString(16).toUpperCase().padStart(4,"0")+"_";if(0==(4294967168&e))return t(e);var 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){var t=[];if(!e)return[];for(var n,o,r=e.length,i=0;i<r;)(n=e.charCodeAt(i++))>=55296&&n<=56319&&i<r?56320==(64512&(o=e.charCodeAt(i++)))?t.push(((1023&n)<<10)+(1023&o)+65536):(t.push(n),i--):t.push(n);return t}(e),i=r.length,s=-1,a="";++s<i;)a+=o(r[s]);return a},camelCaseToHyphen:ze,hyphenToCamelCase:Ze,capitalise:Ye,escapeString:Ke,camelCaseToHumanText:qe});function Qe(e){var t=new Map;return e.forEach((function(e){return t.set(e[0],e[1])})),t}var Je=Object.freeze({convertToMap:Qe,mapById:function(e,t){var n=new Map;return e.forEach((function(e){return n.set(t(e),e)})),n},keys:function(e){var t=[];return e.forEach((function(e,n){return t.push(n)})),t}}),$e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),et=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(e,t){return function(n,o){t(n,o,e)}},nt=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ot=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},rt=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ot(arguments[t]));return e},it=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.primaryHeaderRowCount=0,t.secondaryHeaderRowCount=0,t.gridHeaderRowCount=0,t.displayedColumnsLeft=[],t.displayedColumnsRight=[],t.displayedColumnsCenter=[],t.displayedColumns=[],t.displayedColumnsAndGroupsMap={},t.viewportColumns=[],t.viewportColumnsCenter=[],t.autoHeightActiveAtLeastOnce=!1,t.rowGroupColumns=[],t.valueColumns=[],t.pivotColumns=[],t.ready=!1,t.autoGroupsNeedBuilding=!1,t.forceRecreateAutoGroups=!1,t.pivotMode=!1,t.bodyWidth=0,t.leftWidth=0,t.rightWidth=0,t.bodyWidthDirty=!0,t.colDefVersion=0,t.flexColsCalculatedAtLestOnce=!1,t}return $e(t,e),t.prototype.init=function(){var e=this;this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation();var t=this.gridOptionsWrapper.isPivotMode();this.isPivotSettingAllowed(t)&&(this.pivotMode=t),this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.addManagedListener(this.gridOptionsWrapper,"autoGroupColumnDef",(function(){return e.onAutoGroupColumnDefChanged()})),this.addManagedListener(this.gridOptionsWrapper,"defaultColDef",(function(){return e.onDefaultColDefChanged()}))},t.prototype.onAutoGroupColumnDefChanged=function(){this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged")},t.prototype.onDefaultColDefChanged=function(){this.colDefVersion++,this.forceRecreateAutoGroups=!0,this.createColumnsFromColumnDefs(!0)},t.prototype.getColDefVersion=function(){return this.colDefVersion},t.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api");var n=!!this.columnDefs;this.colDefVersion++,this.columnDefs=e,this.createColumnsFromColumnDefs(n,t)},t.prototype.createColumnsFromColumnDefs=function(e,t){var n=this;void 0===t&&(t="api");var o=e?this.compareColumnStatesAndRaiseEvents(t):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var r=this.primaryColumns,i=this.primaryColumnTree,s=this.columnFactory.createColumnTree(this.columnDefs,!0,i);this.primaryColumnTree=s.columnTree,this.primaryHeaderRowCount=s.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach((function(e){return n.primaryColumnsMap[e.getId()]=e})),this.extractRowGroupColumns(t,r),this.extractPivotColumns(t,r),this.extractValueColumns(t,r),this.ready=!0;var a=void 0===this.gridColsArePrimary;(this.gridColsArePrimary||a)&&(this.updateGridColumns(),e&&!this.gridOptionsWrapper.isMaintainColumnOrder()&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(t),this.checkViewportColumns()),this.dispatchEverythingChanged(t),o&&o(),this.dispatchNewColumnsLoaded()},t.prototype.dispatchNewColumnsLoaded=function(){var e={type:Ve.EVENT_NEW_COLUMNS_LOADED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.dispatchEverythingChanged=function(e){void 0===e&&(e="api");var t={type:Ve.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:e};this.eventService.dispatchEvent(t)},t.prototype.orderGridColumnsLikePrimary=function(){var e=this,t=this.primaryColumns;t&&this.gridColumns.sort((function(n,o){var r=t.indexOf(n),i=t.indexOf(o),s=r>=0,a=i>=0;return s&&a?r-i:s?1:a?-1:e.gridColumns.indexOf(n)-e.gridColumns.indexOf(o)}))},t.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},t.prototype.setViewport=function(){this.gridOptionsWrapper.isEnableRtl()?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},t.prototype.getDisplayedColumnsStartingAt=function(e){for(var t=e,n=[];null!=t;)n.push(t),t=this.getDisplayedColAfter(t);return n},t.prototype.checkViewportColumns=function(){if(null!=this.displayedColumnsCenter){var e=this.viewportColumns.map((function(e){return e.getId()})).join("#");if(this.extractViewport(),e!==this.viewportColumns.map((function(e){return e.getId()})).join("#")){var t={type:Ve.EVENT_VIRTUAL_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}}},t.prototype.setViewportPosition=function(e,t){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns())},t.prototype.isPivotMode=function(){return this.pivotMode},t.prototype.isPivotSettingAllowed=function(e){return!e||!this.gridOptionsWrapper.isTreeData()||(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},t.prototype.setPivotMode=function(e,t){if(void 0===t&&(t="api"),e!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)){this.pivotMode=e,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(t);var n={type:Ve.EVENT_COLUMN_PIVOT_MODE_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},t.prototype.getSecondaryPivotColumn=function(e,t){if(i(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;ce(r,e)&&i===n&&(o=t)})),o},t.prototype.setBeans=function(e){this.logger=e.create("columnModel")},t.prototype.setFirstRightAndLastLeftPinned=function(e){var t,n;this.gridOptionsWrapper.isEnableRtl()?(t=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,n=this.displayedColumnsRight?ue(this.displayedColumnsRight):null):(t=this.displayedColumnsLeft?ue(this.displayedColumnsLeft):null,n=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach((function(o){o.setLastLeftPinned(o===t,e),o.setFirstRightPinned(o===n,e)}))},t.prototype.autoSizeColumns=function(e){var t=this,n=e.columns,o=e.skipHeader,r=e.skipHeaderGroups,i=e.stopAtGroup,s=e.source,a=void 0===s?"api":s;this.animationFrameService.flushAllFrames();for(var l=[],u=-1,c=null!=o?o:this.gridOptionsWrapper.isSkipHeaderOnAutoSize(),p=null!=r?r:c;0!==u;)u=0,this.actionOnGridColumns(n,(function(e){if(l.indexOf(e)>=0)return!1;var n=t.autoWidthCalculator.getPreferredWidthForColumn(e,c);if(n>0){var o=t.normaliseColumnWidth(e,n);e.setActualWidth(o,a),l.push(e),u++}return!0}),a);p||this.autoSizeColumnGroupsByColumns(n,i),this.fireColumnResizedEvent(l,!0,"autosizeColumns")},t.prototype.fireColumnResizedEvent=function(e,t,n,o){if(void 0===o&&(o=null),e&&e.length){var r={type:Ve.EVENT_COLUMN_RESIZED,columns:e,column:1===e.length?e[0]:null,flexColumns:o,finished:t,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(r)}},t.prototype.autoSizeColumn=function(e,t,n){void 0===n&&(n="api"),e&&this.autoSizeColumns({columns:[e],skipHeader:t,skipHeaderGroups:!0,source:n})},t.prototype.autoSizeColumnGroupsByColumns=function(e,t){var n,o,r,i,s,a=new Set;this.getGridColumns(e).forEach((function(e){for(var n=e.getParent();n&&n!=t;)n.isPadding()||a.add(n),n=n.getParent()}));try{for(var l=nt(a),u=l.next();!u.done;u=l.next()){var c=u.value;try{for(var p=(r=void 0,nt(this.ctrlsService.getHeaderRowContainerCtrls())),d=p.next();!d.done;d=p.next()){if(s=d.value.getHeaderCtrlForColumn(c))break}}catch(h){r={error:h}}finally{try{d&&!d.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}s&&s.resizeLeafColumnsToFit()}}catch(f){n={error:f}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}return[]},t.prototype.autoSizeAllColumns=function(e,t){void 0===t&&(t="api");var n=this.getAllDisplayedColumns();this.autoSizeColumns({columns:n,skipHeader:e,source:t})},t.prototype.getColumnsFromTree=function(e){var t=[];return function e(n){for(var o=0;o<n.length;o++){var r=n[o];r instanceof ae?t.push(r):r instanceof _e&&e(r.getChildren())}}(e),t},t.prototype.getAllDisplayedTrees=function(){return this.displayedTreeLeft&&this.displayedTreeRight&&this.displayedTreeCentre?this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight):null},t.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},t.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},t.prototype.getDisplayedTreeLeft=function(){return this.displayedTreeLeft},t.prototype.getDisplayedTreeRight=function(){return this.displayedTreeRight},t.prototype.getDisplayedTreeCentre=function(){return this.displayedTreeCentre},t.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=0},t.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},t.prototype.getViewportColumns=function(){return this.viewportColumns},t.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsLeft):this.displayedColumnsLeft},t.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsRight):this.displayedColumnsRight},t.prototype.getDisplayedColumnsForRow=function(e,t,n,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},t.prototype.getViewportCenterColumnsForRow=function(e){var t=this;if(!this.colSpanActive)return this.viewportColumnsCenter;var n=this.suppressColumnVirtualisation?null:this.isColumnInViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedColumnsCenter,n,(function(e){var n=e.getLeft();return r(n)&&n>t.viewportLeft}))},t.prototype.getAriaColumnIndex=function(e){return this.getAllGridColumns().indexOf(e)+1},t.prototype.isColumnInViewport=function(e){if(e.isAutoHeight())return!0;var t=e.getLeft()||0,n=t+e.getActualWidth(),o=this.viewportLeft-200,r=this.viewportRight+200;return!(t<o&&n<o)&&!(t>r&&n>r)},t.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},t.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},t.prototype.updatePrimaryColumnList=function(e,t,n,o,r,i){var a=this;if(void 0===i&&(i="api"),e&&!s(e)){var l=!1;if(e.forEach((function(e){var r=a.getPrimaryColumn(e);if(r){if(n){if(t.indexOf(r)>=0)return;t.push(r)}else{if(t.indexOf(r)<0)return;de(t,r)}o(r),l=!0}})),l){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i);var u={type:r,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:i};this.eventService.dispatchEvent(u)}}},t.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),t)},t.prototype.setRowGroupActive=function(e,t,n){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,n),e||this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()||t.setVisible(!0,n))},t.prototype.addRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.addRowGroupColumns([e],t)},t.prototype.addRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},t.prototype.removeRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},t.prototype.removeRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.removeRowGroupColumns([e],t)},t.prototype.addPivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,(function(e){return e.setPivotActive(!0,t)}),Ve.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.setPivotColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.pivotColumns,Ve.EVENT_COLUMN_PIVOT_CHANGED,(function(e,n){n.setPivotActive(e,t)}),t)},t.prototype.addPivotColumn=function(e,t){void 0===t&&(t="api"),this.addPivotColumns([e],t)},t.prototype.removePivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,(function(e){return e.setPivotActive(!1,t)}),Ve.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.removePivotColumn=function(e,t){void 0===t&&(t="api"),this.removePivotColumns([e],t)},t.prototype.setPrimaryColumnList=function(e,t,n,o,i){var s=this;t.length=0,r(e)&&e.forEach((function(e){var n=s.getPrimaryColumn(e);n&&t.push(n)})),(this.primaryColumns||[]).forEach((function(e){var n=t.indexOf(e)>=0;o(n,e)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i),this.fireColumnEvent(n,t,i)},t.prototype.setValueColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.valueColumns,Ve.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),t)},t.prototype.setValueActive=function(e,t,n){if(e!==t.isValueActive()&&(t.setValueActive(e,n),e&&!t.getAggFunc())){var o=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(o)}},t.prototype.addValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),Ve.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.addValueColumn=function(e,t){void 0===t&&(t="api"),e&&this.addValueColumns([e],t)},t.prototype.removeValueColumn=function(e,t){void 0===t&&(t="api"),this.removeValueColumns([e],t)},t.prototype.removeValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),Ve.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.normaliseColumnWidth=function(e,t){var n=e.getMinWidth();r(n)&&t<n&&(t=n);var o=e.getMaxWidth();return r(o)&&e.isGreaterThanMax(t)&&(t=o),t},t.prototype.getPrimaryOrGridColumn=function(e){return this.getPrimaryColumn(e)||this.getGridColumn(e)},t.prototype.setColumnWidths=function(e,t,n,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({resizeSets:i,finished:n,source:o})},t.prototype.checkMinAndMaxWidthsForSet=function(e){var t=e.columns,n=e.width,o=0,i=0,s=!0;return t.forEach((function(e){var t=e.getMinWidth();o+=t||0;var n=e.getMaxWidth();r(n)&&n>0?i+=n:s=!1})),n>=o&&(!s||n<=i)},t.prototype.resizeColumnSets=function(e){var t=this,n=e.resizeSets,o=e.finished,i=e.source;if(!n||n.every((function(e){return t.checkMinAndMaxWidthsForSet(e)}))){var s=[],a=[];n.forEach((function(e){var t=e.width,n=e.columns,o=e.ratios,l={},u={};n.forEach((function(e){return a.push(e)}));for(var c=!0,p=0,d=function(){if(++p>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";c=!1;var e=[],i=0,s=t;n.forEach((function(t,n){if(u[t.getId()])s-=l[t.getId()];else{e.push(t);var r=o[n];i+=r}}));var a=1/i;e.forEach((function(n,i){var p;i===e.length-1?p=s:(p=Math.round(o[i]*t*a),s-=p);var d=n.getMinWidth(),h=n.getMaxWidth();r(d)&&p<d?(p=d,u[n.getId()]=!0,c=!0):r(h)&&h>0&&p>h&&(p=h,u[n.getId()]=!0,c=!0),l[n.getId()]=p}))};c;){if("break"===d())break}n.forEach((function(e){var t=l[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t,i),s.push(e))}))}));var l=s.length>0,u=[];l&&(u=this.refreshFlexedColumns({resizingCols:a,skipSetLeft:!0}),this.setLeftValues(i),this.updateBodyWidths(),this.checkViewportColumns());var c=a.concat(u);(l||o)&&this.fireColumnResizedEvent(c,o,i,u)}else if(o){var p=n&&n.length>0?n[0].columns:null;this.fireColumnResizedEvent(p,o,i)}},t.prototype.setColumnAggFunc=function(e,t,n){if(void 0===n&&(n="api"),e){var o=this.getPrimaryColumn(e);o&&(o.setAggFunc(t),this.fireColumnEvent(Ve.EVENT_COLUMN_VALUE_CHANGED,[o],n))}},t.prototype.fireColumnEvent=function(e,t,n){var o={type:e,columns:t,column:t&&1==t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(o)},t.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:Ve.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)},t.prototype.moveColumns=function(e,t,n){if(void 0===n&&(n="api"),this.columnAnimationService.start(),t>this.gridColumns.length-e.length)return console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+t),void console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");var o=this.getGridColumns(e);if(!!this.doesMovePassRules(o,t)){ge(this.gridColumns,o,t),this.updateDisplayedColumns(n);var r={type:Ve.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()}},t.prototype.doesMovePassRules=function(e,t){var n=this.gridColumns.slice();return ge(n,e,t),!!this.doesMovePassMarryChildren(n)&&!!this.doesMovePassLockedPositions(n)},t.prototype.sortColumnsLikeGridColumns=function(e){var t=this;!e||e.length<=1||(e.filter((function(e){return t.gridColumns.indexOf(e)<0})).length>0||e.sort((function(e,n){return t.gridColumns.indexOf(e)-t.gridColumns.indexOf(n)})))},t.prototype.doesMovePassLockedPositions=function(e){var t=0,n=!0;return e.forEach((function(e){var o,r=(o=e.getColDef().lockPosition)?!0===o||"left"===o?0:2:1;r<t&&(n=!1),t=r})),n},t.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){if(n instanceof _e){var o=n,r=o.getColGroupDef();if(r&&r.marryChildren){var i=[];o.getLeafColumns().forEach((function(t){var n=e.indexOf(t);i.push(n)})),Math.max.apply(Math,i)-Math.min.apply(Math,i)>o.getLeafColumns().length-1&&(t=!1)}}})),t},t.prototype.moveColumn=function(e,t,n){void 0===n&&(n="api"),this.moveColumns([e],t,n)},t.prototype.moveColumnByIndex=function(e,t,n){void 0===n&&(n="api");var o=this.gridColumns[e];this.moveColumn(o,t,n)},t.prototype.getColumnDefs=function(){var e=this;if(this.primaryColumns){var t=this.primaryColumns.slice();return this.gridColsArePrimary?t.sort((function(t,n){return e.gridColumns.indexOf(t)-e.gridColumns.indexOf(n)})):this.lastPrimaryOrder&&t.sort((function(t,n){return e.lastPrimaryOrder.indexOf(t)-e.lastPrimaryOrder.indexOf(n)})),this.columnDefFactory.buildColumnDefs(t,this.rowGroupColumns,this.pivotColumns)}},t.prototype.getBodyContainerWidth=function(){return this.bodyWidth},t.prototype.getContainerWidth=function(e){switch(e){case oe.PINNED_LEFT:return this.leftWidth;case oe.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},t.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),t=this.getWidthOfColsInList(this.displayedColumnsLeft),n=this.getWidthOfColsInList(this.displayedColumnsRight);if(this.bodyWidthDirty=this.bodyWidth!==e,this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==n){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=n;var o={type:Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)}},t.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},t.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},t.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},t.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},t.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},t.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},t.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},t.prototype.getDisplayedColumns=function(e){switch(e){case oe.PINNED_LEFT:return this.getDisplayedLeftColumns();case oe.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},t.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},t.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},t.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},t.prototype.getAllGridColumns=function(){return this.gridColumns},t.prototype.isEmpty=function(){return s(this.gridColumns)},t.prototype.isRowGroupEmpty=function(){return s(this.rowGroupColumns)},t.prototype.setColumnVisible=function(e,t,n){void 0===n&&(n="api"),this.setColumnsVisible([e],t,n)},t.prototype.setColumnsVisible=function(e,t,n){var o=this;void 0===t&&(t=!1),void 0===n&&(n="api"),this.columnAnimationService.start(),this.actionOnGridColumns(e,(function(e){return e.isVisible()!==t&&(e.setVisible(t,n),!0)}),n,(function(){return{type:Ve.EVENT_COLUMN_VISIBLE,visible:t,column:null,columns:null,api:o.gridApi,columnApi:o.columnApi,source:n}})),this.columnAnimationService.finish()},t.prototype.setColumnPinned=function(e,t,n){void 0===n&&(n="api"),e&&this.setColumnsPinned([e],t,n)},t.prototype.setColumnsPinned=function(e,t,n){var o,r=this;(void 0===n&&(n="api"),"print"!==this.gridOptionsWrapper.getDomLayout())?(this.columnAnimationService.start(),o=!0===t||t===oe.PINNED_LEFT?oe.PINNED_LEFT:t===oe.PINNED_RIGHT?oe.PINNED_RIGHT:null,this.actionOnGridColumns(e,(function(e){return e.getPinned()!==o&&(e.setPinned(o),!0)}),n,(function(){return{type:Ve.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'")},t.prototype.actionOnGridColumns=function(e,t,n,o){var i=this;if(!s(e)){var a=[];if(e.forEach((function(e){var n=i.getGridColumn(e);n&&(!1!==t(n)&&a.push(n))})),a.length&&(this.updateDisplayedColumns(n),r(o)&&o)){var l=o();l.columns=a,l.column=1===a.length?a[0]:null,this.eventService.dispatchEvent(l)}}},t.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n>0?t[n-1]:null},t.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n<t.length-1?t[n+1]:null},t.prototype.getDisplayedGroupAfter=function(e){return this.getDisplayedGroupAtDirection(e,"After")},t.prototype.getDisplayedGroupBefore=function(e){return this.getDisplayedGroupAtDirection(e,"Before")},t.prototype.getDisplayedGroupAtDirection=function(e,t){for(var n=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),o=e.getDisplayedLeafColumns(),r="After"===t?ue(o):o[0],i="getDisplayedCol"+t;;){var s=this[i](r);if(!s)return null;var a=this.getColumnGroupAtLevel(s,n);if(a!==e)return a}},t.prototype.getColumnGroupAtLevel=function(e,t){for(var n=e.getParent();;){if(n.getProvidedColumnGroup().getLevel()+n.getPaddingLevel()<=t)break;n=n.getParent()}return n},t.prototype.isPinningLeft=function(){return this.displayedColumnsLeft.length>0},t.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},t.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e;return(e=[]).concat.apply(e,rt([this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]]))},t.prototype.getPrimaryAndAutoGroupCols=function(){var e;return(e=[]).concat.apply(e,rt([this.primaryColumns||[],this.groupAutoColumns||[]]))},t.prototype.getPrimaryAndSecondaryColumns=function(){var e;return(e=[]).concat.apply(e,rt([this.primaryColumns||[],this.secondaryColumns||[]]))},t.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,n=e.isPivotActive()?this.pivotColumns.indexOf(e):null,o=e.isValueActive()?e.getAggFunc():null,r=null!=e.getSort()?e.getSort():null,i=null!=e.getSortIndex()?e.getSortIndex():null,s=null!=e.getFlex()&&e.getFlex()>0?e.getFlex():null;return{colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:r,sortIndex:i,aggFunc:o,rowGroup:e.isRowGroupActive(),rowGroupIndex:t,pivot:e.isPivotActive(),pivotIndex:n,flex:s}},t.prototype.getColumnState=function(){if(i(this.primaryColumns)||!this.isAlive())return[];var e=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(e),e},t.prototype.orderColumnStateList=function(e){var t=Qe(this.gridColumns.map((function(e,t){return[e.getColId(),t]})));e.sort((function(e,n){return(t.has(e.colId)?t.get(e.colId):-1)-(t.has(n.colId)?t.get(n.colId):-1)}))},t.prototype.resetColumnState=function(e){void 0===e&&(e="api");var t=this.getColumnsFromTree(this.primaryColumnTree),n=[],o=1e3,r=1e3,s=[];this.groupAutoColumns&&(s=s.concat(this.groupAutoColumns)),t&&(s=s.concat(t)),s.forEach((function(e){var t=function(e,t){return null!=e?e:null!=t?t:null},s=e.getColDef(),a=t(s.sort,s.initialSort),l=t(s.sortIndex,s.initialSortIndex),u=t(s.hide,s.initialHide),c=t(s.pinned,s.initialPinned),p=t(s.width,s.initialWidth),d=t(s.flex,s.initialFlex),h=t(s.rowGroupIndex,s.initialRowGroupIndex),f=t(s.rowGroup,s.initialRowGroup);null!=h||null!=f&&0!=f||(h=null,f=null);var g=t(s.pivotIndex,s.initialPivotIndex),m=t(s.pivot,s.initialPivot);null!=g||null!=m&&0!=m||(g=null,m=null);var v=t(s.aggFunc,s.initialAggFunc),y={colId:e.getColId(),sort:a,sortIndex:l,hide:u,pinned:c,width:p,flex:d,rowGroup:f,rowGroupIndex:h,pivot:m,pivotIndex:g,aggFunc:v};i(h)&&f&&(y.rowGroupIndex=o++),i(g)&&m&&(y.pivotIndex=r++),n.push(y)})),this.applyColumnState({state:n,applyOrder:!0},e)},t.prototype.applyColumnState=function(e,t){var n=this;if(void 0===t&&(t="api"),s(this.primaryColumns))return!1;if(e&&e.state&&!e.state.forEach)return console.warn("AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state."),!1;var o=function(o,r,i){var s=n.compareColumnStatesAndRaiseEvents(t);n.autoGroupsNeedBuilding=!0;var a=r.slice(),l={},u={},c=[],p=[],d=0,h=n.rowGroupColumns.slice(),f=n.pivotColumns.slice();o.forEach((function(o){var r=o.colId||"";if(r.startsWith(oe.GROUP_AUTO_COLUMN_ID))return c.push(o),void p.push(o);var s=i(r);s?(n.syncColumnWithStateItem(s,o,e.defaultState,l,u,!1,t),de(a,s)):(p.push(o),d+=1)}));var g=function(o){return n.syncColumnWithStateItem(o,null,e.defaultState,l,u,!1,t)};a.forEach(g);var m=function(e,t,n,o){var r=e[n.getId()],i=e[o.getId()],s=null!=r,a=null!=i;if(s&&a)return r-i;if(s)return-1;if(a)return 1;var l=t.indexOf(n),u=t.indexOf(o),c=l>=0;return c&&u>=0?l-u:c?-1:1};n.rowGroupColumns.sort(m.bind(n,l,h)),n.pivotColumns.sort(m.bind(n,u,f)),n.updateGridColumns();var v=n.groupAutoColumns?n.groupAutoColumns.slice():[];return c.forEach((function(o){var r=n.getAutoColumn(o.colId);de(v,r),n.syncColumnWithStateItem(r,o,e.defaultState,null,null,!0,t)})),v.forEach(g),n.applyOrderAfterApplyState(e),n.updateDisplayedColumns(t),n.dispatchEverythingChanged(t),s(),{unmatchedAndAutoStates:p,unmatchedCount:d}};this.columnAnimationService.start();var i=o(e.state||[],this.primaryColumns||[],(function(e){return n.getPrimaryColumn(e)})),a=i.unmatchedAndAutoStates,l=i.unmatchedCount;return(a.length>0||r(e.defaultState))&&(l=o(a,this.secondaryColumns||[],(function(e){return n.getSecondaryColumn(e)})).unmatchedCount),this.columnAnimationService.finish(),0===l},t.prototype.applyOrderAfterApplyState=function(e){var t=this;if(e.applyOrder&&e.state){var n=[],o={};e.state.forEach((function(e){if(e.colId&&!o[e.colId]){var r=t.gridColumnsMap[e.colId];r&&(n.push(r),o[e.colId]=!0)}}));var r=0;this.gridColumns.forEach((function(e){var t=e.getColId();null!=o[t]||(t.startsWith(oe.GROUP_AUTO_COLUMN_ID)?fe(n,e,r++):n.push(e))})),n=this.placeLockedColumns(n),this.doesMovePassMarryChildren(n)?this.gridColumns=n:console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.")}},t.prototype.compareColumnStatesAndRaiseEvents=function(e){var t=this,n={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},o=this.getColumnState(),r={};return o.forEach((function(e){r[e.colId]=e})),function(){if(!t.gridOptionsWrapper.isSuppressColumnStateEvents()){var i=t.getPrimaryAndSecondaryAndAutoColumns(),s=function(n,o,r,i){if(!ce(o.map(i),r.map(i))){var s={type:n,columns:r,column:1===r.length?r[0]:null,api:t.gridApi,columnApi:t.columnApi,source:e};t.eventService.dispatchEvent(s)}},a=function(e){var t=[];return i.forEach((function(n){var o=r[n.getColId()];o&&e(o,n)&&t.push(n)})),t},l=function(e){return e.getColId()};s(Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,n.rowGroupColumns,t.rowGroupColumns,l),s(Ve.EVENT_COLUMN_PIVOT_CHANGED,n.pivotColumns,t.pivotColumns,l);a((function(e,t){var n=null!=e.aggFunc,o=n!=t.isValueActive(),r=n&&e.aggFunc!=t.getAggFunc();return o||r})).length>0&&t.fireColumnEvent(Ve.EVENT_COLUMN_VALUE_CHANGED,t.valueColumns,e);t.fireColumnResizedEvent(a((function(e,t){return e.width!=t.getActualWidth()})),!0,e);t.raiseColumnPinnedEvent(a((function(e,t){return e.pinned!=t.getPinned()})),e);t.raiseColumnVisibleEvent(a((function(e,t){return e.hide==t.isVisible()})),e);a((function(e,t){return e.sort!=t.getSort()||e.sortIndex!=t.getSortIndex()})).length>0&&t.sortController.dispatchSortChangedEvents(e),t.raiseColumnMovedEvent(o,e)}}},t.prototype.raiseColumnPinnedEvent=function(e,t){if(e.length){var n=1===e.length?e[0]:null,o=this.getCommonValue(e,(function(e){return e.getPinned()})),r={type:Ve.EVENT_COLUMN_PINNED,pinned:null!=o?o:null,columns:e,column:n,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(r)}},t.prototype.getCommonValue=function(e,t){if(e&&0!=e.length){for(var n=t(e[0]),o=1;o<e.length;o++)if(n!==t(e[o]))return;return n}},t.prototype.raiseColumnVisibleEvent=function(e,t){if(e.length){var n=1===e.length?e[0]:null,o=this.getCommonValue(e,(function(e){return e.isVisible()})),r={type:Ve.EVENT_COLUMN_VISIBLE,visible:o,columns:e,column:n,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(r)}},t.prototype.raiseColumnMovedEvent=function(e,t){var n=this,o=this.getColumnState(),r={};o.forEach((function(e){return r[e.colId]=e}));var i={};e.forEach((function(e){r[e.colId]&&(i[e.colId]=!0)}));var s=e.filter((function(e){return i[e.colId]})),a=o.filter((function(e){return i[e.colId]})),l=[];if(a.forEach((function(e,t){var o=s&&s[t];if(o&&o.colId!==e.colId){var r=n.getGridColumn(o.colId);r&&l.push(r)}})),l.length){var u={type:Ve.EVENT_COLUMN_MOVED,columns:l,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(u)}},t.prototype.syncColumnWithStateItem=function(e,t,n,o,i,s,a){if(e){var l=function(e,o){var i={value1:void 0,value2:void 0},s=!1;return t&&(void 0!==t[e]&&(i.value1=t[e],s=!0),r(o)&&void 0!==t[o]&&(i.value2=t[o],s=!0)),!s&&n&&(void 0!==n[e]&&(i.value1=n[e]),r(o)&&void 0!==n[o]&&(i.value2=n[o])),i},u=l("hide").value1;void 0!==u&&e.setVisible(!u,a);var c=l("pinned").value1;void 0!==c&&e.setPinned(c);var p=this.columnUtils.calculateColMinWidth(e.getColDef()),d=l("flex").value1;if(void 0!==d&&e.setFlex(d),e.getFlex()<=0){var h=l("width").value1;null!=h&&null!=p&&h>=p&&e.setActualWidth(h,a)}var f=l("sort").value1;void 0!==f&&(f===oe.SORT_DESC||f===oe.SORT_ASC?e.setSort(f,a):e.setSort(void 0,a));var g=l("sortIndex").value1;if(void 0!==g&&e.setSortIndex(g),!s&&e.isPrimary()){var m=l("aggFunc").value1;void 0!==m&&("string"===typeof m?(e.setAggFunc(m),e.isValueActive()||(e.setValueActive(!0,a),this.valueColumns.push(e))):(r(m)&&console.warn("AG Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON."),e.isValueActive()&&(e.setValueActive(!1,a),de(this.valueColumns,e))));var v=l("rowGroup","rowGroupIndex"),y=v.value1,C=v.value2;void 0===y&&void 0===C||("number"===typeof C||y?(e.isRowGroupActive()||(e.setRowGroupActive(!0,a),this.rowGroupColumns.push(e)),o&&"number"===typeof C&&(o[e.getId()]=C)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,a),de(this.rowGroupColumns,e)));var w=l("pivot","pivotIndex"),_=w.value1,b=w.value2;void 0===_&&void 0===b||("number"===typeof b||_?(e.isPivotActive()||(e.setPivotActive(!0,a),this.pivotColumns.push(e)),i&&"number"===typeof b&&(i[e.getId()]=b)):e.isPivotActive()&&(e.setPivotActive(!1,a),de(this.pivotColumns,e)))}}},t.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},t.prototype.getColumns=function(e,t){var n=[];return e&&e.forEach((function(e){var o=t(e);o&&n.push(o)})),n},t.prototype.getColumnWithValidation=function(e){if(null==e)return null;var t=this.getGridColumn(e);return t||console.warn("AG Grid: could not find column "+e),t},t.prototype.getPrimaryColumn=function(e){return this.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null},t.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},t.prototype.getSecondaryColumn=function(e){return this.secondaryColumns?this.getColumn(e,this.secondaryColumns,this.secondaryColumnsMap):null},t.prototype.getColumn=function(e,t,n){if(!e)return null;if("string"==typeof e&&n[e])return n[e];for(var o=0;o<t.length;o++)if(this.columnsMatch(t[o],e))return t[o];return this.getAutoColumn(e)},t.prototype.getAutoColumn=function(e){var t=this;return this.groupAutoColumns&&r(this.groupAutoColumns)&&!i(this.groupAutoColumns)&&this.groupAutoColumns.find((function(n){return t.columnsMatch(n,e)}))||null},t.prototype.columnsMatch=function(e,t){var n=e===t,o=e.getColDef()===t,r=e.getColId()==t;return n||o||r},t.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},t.prototype.getDisplayNameForProvidedColumnGroup=function(e,t,n){var o=t?t.getColGroupDef():null;return o?this.getHeaderName(o,null,e,t,n):null},t.prototype.getDisplayNameForColumnGroup=function(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)},t.prototype.getHeaderName=function(e,t,n,o,r){var i=e.headerValueGetter;if(i){var s={colDef:e,column:t,columnGroup:n,providedColumnGroup:o,location:r,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};return"function"===typeof i?i(s):"string"===typeof i?this.expressionService.evaluate(i,s):(console.warn("ag-grid: headerValueGetter must be a function or a string"),"")}return null!=e.headerName?e.headerName:e.field?qe(e.field):""},t.prototype.wrapHeaderNameWithAggFunc=function(e,t){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return t;var n,o=e.getColDef().pivotValueColumn,i=null;if(r(o)){var s=this.gridOptionsWrapper.isRemovePivotHeaderRowWhenSingleValueColumn()&&1===this.valueColumns.length,a=void 0!==e.getColDef().pivotTotalColumnIds;if(s&&!a)return t;i=o?o.getAggFunc():null,n=!0}else{var l=e.isValueActive(),u=this.pivotMode||!this.isRowGroupEmpty();l&&u?(i=e.getAggFunc(),n=!0):n=!1}if(n){var c="string"===typeof i?i:"func";return this.gridOptionsWrapper.getLocaleTextFunc()(c,c)+"("+t+")"}return t},t.prototype.getColumnGroup=function(e,t){if(!e)return null;if(e instanceof we)return e;var n=this.getAllDisplayedTrees(),o="number"===typeof t,r=null;return this.columnUtils.depthFirstAllColumnTreeSearch(n,(function(n){if(n instanceof we){var i=n;(o?e===i.getGroupId()&&t===i.getInstanceId():e===i.getGroupId())&&(r=i)}})),r},t.prototype.isReady=function(){return this.ready},t.prototype.extractValueColumns=function(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,(function(t,n){return t.setValueActive(n,e)}),(function(){}),(function(){}),(function(e){var t=e.aggFunc;return null===t||""===t?null:void 0!==t?!!t:void 0}),(function(e){return null!=e.initialAggFunc&&""!=e.initialAggFunc})),this.valueColumns.forEach((function(e){var t=e.getColDef();null!=t.aggFunc&&""!=t.aggFunc?e.setAggFunc(t.aggFunc):e.getAggFunc()||e.setAggFunc(t.initialAggFunc)}))},t.prototype.extractRowGroupColumns=function(e,t){this.rowGroupColumns=this.extractColumns(t,this.rowGroupColumns,(function(t,n){return t.setRowGroupActive(n,e)}),(function(e){return e.rowGroupIndex}),(function(e){return e.initialRowGroupIndex}),(function(e){return e.rowGroup}),(function(e){return e.initialRowGroup}))},t.prototype.extractColumns=function(e,t,n,o,r,i,s){void 0===e&&(e=[]),void 0===t&&(t=[]);var a=[],c=[];(this.primaryColumns||[]).forEach((function(n){var p=e.indexOf(n)<0,d=n.getColDef(),h=u(i(d)),f=u(s(d)),g=l(o(d)),m=l(r(d));(void 0!==h?h:void 0!==g?null!==g&&g>=0:p?void 0!==f?f:!!(void 0!==m)&&(null!=m&&m>=0):t.indexOf(n)>=0)&&((p?null!=g||null!=m:null!=g)?a.push(n):c.push(n))}));var p=function(e){var t=o(e.getColDef()),n=r(e.getColDef());return null!=t?t:n};a.sort((function(e,t){var n=p(e),o=p(t);return n===o?0:n<o?-1:1}));var d=[].concat(a);return t.forEach((function(e){c.indexOf(e)>=0&&d.push(e)})),c.forEach((function(e){d.indexOf(e)<0&&d.push(e)})),t.forEach((function(e){d.indexOf(e)<0&&n(e,!1)})),d.forEach((function(e){t.indexOf(e)<0&&n(e,!0)})),d},t.prototype.extractPivotColumns=function(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,(function(t,n){return t.setPivotActive(n,e)}),(function(e){return e.pivotIndex}),(function(e){return e.initialPivotIndex}),(function(e){return e.pivot}),(function(e){return e.initialPivot}))},t.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(e){if(e instanceof _e){var n=e.getColGroupDef(),o={groupId:e.getGroupId(),open:n?n.openByDefault:void 0};t.push(o)}})),this.setColumnGroupState(t,e)},t.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(t){t instanceof _e&&e.push({groupId:t.getGroupId(),open:t.isExpanded()})})),e},t.prototype.setColumnGroupState=function(e,t){var n=this;void 0===t&&(t="api"),this.columnAnimationService.start();var o=[];e.forEach((function(e){var t=e.groupId,r=e.open,i=n.getProvidedColumnGroup(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:Ve.EVENT_COLUMN_GROUP_OPENED,columnGroup:e,api:n.gridApi,columnApi:n.columnApi};n.eventService.dispatchEvent(t)})),this.columnAnimationService.finish()},t.prototype.setColumnGroupOpened=function(e,t,n){var o;void 0===n&&(n="api"),o=e instanceof _e?e.getId():e||"",this.setColumnGroupState([{groupId:o,open:t}],n)},t.prototype.getProvidedColumnGroup=function(e){"string"!==typeof e&&console.error("AG Grid: group key must be a string");var t=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){n instanceof _e&&n.getId()===e&&(t=n)})),t},t.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&i(this.secondaryColumns)?this.gridColumns.filter((function(t){var n=e.groupAutoColumns&&me(e.groupAutoColumns,t),o=e.valueColumns&&me(e.valueColumns,t);return n||o})):this.gridColumns.filter((function(t){return e.groupAutoColumns&&me(e.groupAutoColumns,t)||t.isVisible()}))},t.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach((function(e){r(e.getColDef().colSpan)&&(t=!0)})),t},t.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[];var t=function(t){var n=t.getColDef();n&&r(n.showRowGroup)&&e.groupDisplayColumns.push(t)};this.gridColumns.forEach(t),this.groupAutoColumns&&this.groupAutoColumns.forEach(t)},t.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},t.prototype.updateDisplayedColumns=function(e){var t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},t.prototype.isSecondaryColumnsPresent=function(){return r(this.secondaryColumns)},t.prototype.setSecondaryColumns=function(e,t){var n=this;void 0===t&&(t="api");var o=e&&e.length>0;if(o||!i(this.secondaryColumns)){if(o){this.processSecondaryColumnDefinitions(e);var r=this.columnFactory.createColumnTree(e,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0);this.secondaryBalancedTree=r.columnTree,this.secondaryHeaderRowCount=r.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach((function(e){return n.secondaryColumnsMap[e.getId()]=e})),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(t)}},t.prototype.processSecondaryColumnDefinitions=function(e){var t=this.gridOptionsWrapper.getProcessSecondaryColDefFunc(),n=this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();if(t||n){e&&function e(o){o.forEach((function(o){if(r(o.children)){var i=o;n&&n(i),e(i.children)}else t&&t(o)}))}(e)}},t.prototype.updateGridColumns=function(){var e=this;if(this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns,this.secondaryColumns&&this.secondaryBalancedTree){var t=this.secondaryColumns.every((function(t){return void 0!==e.gridColumnsMap[t.getColId()]}));this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,t&&this.orderGridColsLike(this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,this.orderGridColsLike(this.lastPrimaryOrder));this.addAutoGroupToGridColumns(),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.setupQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach((function(t){return e.gridColumnsMap[t.getId()]=t})),this.setAutoHeightActive();var n={type:Ve.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},t.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter((function(e){return e.isAutoHeight()})).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var e=this.rowModel.getType();if(!(e===oe.ROW_MODEL_TYPE_CLIENT_SIDE||e===oe.ROW_MODEL_TYPE_SERVER_SIDE)){D((function(){return console.warn("AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.")}),"autoHeightActive.wrongRowModel")}}},t.prototype.orderGridColsLike=function(e){if(!i(e)){var t=Qe(e.map((function(e,t){return[e,t]}))),n=!0;if(this.gridColumns.forEach((function(e){t.has(e)&&(n=!1)})),!n){var o=Qe(this.gridColumns.map((function(e){return[e,!0]}))),r=e.filter((function(e){return o.has(e)})),s=Qe(r.map((function(e){return[e,!0]}))),a=this.gridColumns.filter((function(e){return!s.has(e)})),l=r.slice();a.forEach((function(e){var t=e.getOriginalParent();if(t){for(var n=[];!n.length&&t;){t.getLeafColumns().forEach((function(e){var t=l.indexOf(e)>=0,o=n.indexOf(e)<0;t&&o&&n.push(e)})),t=t.getOriginalParent()}if(n.length){var o=n.map((function(e){return l.indexOf(e)})),r=Math.max.apply(Math,rt(o));fe(l,e,r+1)}else l.push(e)}else l.push(e)})),this.gridColumns=l}}},t.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},t.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=(this.primaryColumns||[]).concat(this.groupAutoColumns):this.primaryColumns&&(this.columnsForQuickFilter=this.primaryColumns)},t.prototype.placeLockedColumns=function(e){var t=[],n=[],o=[];return e.forEach((function(e){var r=e.getColDef().lockPosition;"right"===r?o.push(e):"left"===r||!0===r?t.push(e):n.push(e)})),rt(t,n,o)},t.prototype.addAutoGroupToGridColumns=function(){if(this.createGroupAutoColumnsIfNeeded(),!i(this.groupAutoColumns)){this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.gridBalancedTree=e.concat(this.gridBalancedTree)}},t.prototype.clearDisplayedAndViewportColumns=function(){this.displayedTreeLeft=[],this.displayedTreeRight=[],this.displayedTreeCentre=[],this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[]},t.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var t={type:Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.deriveDisplayedColumns=function(e){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinDisplayedColumns(),this.setLeftValues(e),this.displayedAutoHeightCols=this.displayedColumns.filter((function(e){return e.isAutoHeight()}))},t.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},t.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},t.prototype.joinDisplayedColumns=function(){this.gridOptionsWrapper.isEnableRtl()?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},t.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},t.prototype.setLeftValuesOfColumns=function(e){var t=this;if(this.primaryColumns){var n=this.primaryColumns.slice(0),o=this.gridOptionsWrapper.isEnableRtl();[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].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()}))}he(n,r)})),n.forEach((function(t){t.setLeft(null,e)}))}},t.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach((function(e){e.forEach((function(e){e instanceof we&&e.checkLeft()}))}))},t.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof ae&&t.push(e)}))},t.prototype.extractViewportColumns=function(){this.suppressColumnVirtualisation?this.viewportColumnsCenter=this.displayedColumnsCenter:this.viewportColumnsCenter=this.filterOutColumnsWithinViewport(),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},t.prototype.getVirtualHeaderGroupRow=function(e,t){var n;switch(e){case oe.PINNED_LEFT:n=this.viewportRowLeft[t];break;case oe.PINNED_RIGHT:n=this.viewportRowRight[t];break;default:n=this.viewportRowCenter[t]}return i(n)&&(n=[]),n},t.prototype.extractViewportRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var e={};this.viewportColumns.forEach((function(t){return e[t.getId()]=!0}));var t=function t(n,o,r){for(var i=!1,s=0;s<n.length;s++){var a=n[s],l=!1;if(a instanceof ae)l=!0===e[a.getId()];else{var u=a.getDisplayedChildren();u&&(l=t(u,o,r+1))}l&&(i=!0,o[r]||(o[r]=[]),o[r].push(a))}return i};t(this.displayedTreeLeft,this.viewportRowLeft,0),t(this.displayedTreeRight,this.viewportRowRight,0),t(this.displayedTreeCentre,this.viewportRowCenter,0)},t.prototype.extractViewport=function(){this.extractViewportColumns(),this.extractViewportRows()},t.prototype.filterOutColumnsWithinViewport=function(){return this.displayedColumnsCenter.filter(this.isColumnInViewport.bind(this))},t.prototype.refreshFlexedColumns=function(e){var t=this;void 0===e&&(e={});var n=e.source?e.source:"flex";if(null!=e.viewportWidth&&(this.flexViewportWidth=e.viewportWidth),!this.flexViewportWidth)return[];var o=-1;e.resizingCols&&e.resizingCols.forEach((function(e){var n=t.displayedColumnsCenter.indexOf(e);o<n&&(o=n)}));var i=function(e){var n=t.displayedColumnsCenter.indexOf(e)>o;return e.getFlex()&&n},s=this.displayedColumnsCenter.filter((function(e){return!i(e)})),a=this.displayedColumnsCenter.filter((function(e){return i(e)})),l=[];if(!a.length)return[];var u,c=[];e:for(;;){var p=a.reduce((function(e,t){return e+t.getFlex()}),0);u=this.flexViewportWidth-this.getWidthOfColsInList(s);for(var d=0;d<a.length;d++){var h=a[d],f=u*h.getFlex()/p,g=0,m=h.getMinWidth(),v=h.getMaxWidth();if(r(m)&&f<m?g=m:r(v)&&f>v&&(g=v),g){h.setActualWidth(g,n),de(a,h),l.push(h),s.push(h);continue e}c[d]=Math.round(f)}break}var y=u;return a.forEach((function(e,t){e.setActualWidth(Math.min(c[t],y),n),l.push(e),y-=c[t]})),e.skipSetLeft||this.setLeftValues(n),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.fireColumnResizedEvent(l,!0,n,a),this.flexColsCalculatedAtLestOnce||(this.gridOptionsWrapper.isRowModelDefault()&&this.rowModel.resetRowHeights(),this.flexColsCalculatedAtLestOnce=!0),a},t.prototype.sizeColumnsToFit=function(e,t,n){void 0===t&&(t="sizeColumnsToFit");var o=this.getAllDisplayedColumns();if(!(e<=0)&&o.length){var i=[],s=[];o.forEach((function(e){!0===e.getColDef().suppressSizeToFit?s.push(e):i.push(e)}));var a=i.slice(0),l=!1,u=function(e){de(i,e),s.push(e)};for(i.forEach((function(e){return e.resetActualWidth(t)}));!l;){l=!0;var c=e-this.getWidthOfColsInList(s);if(c<=0)i.forEach((function(e){e.setMinimum(t)}));else for(var p=c/this.getWidthOfColsInList(i),d=c,h=i.length-1;h>=0;h--){var f=i[h],g=f.getMinWidth(),m=f.getMaxWidth(),v=Math.round(f.getActualWidth()*p);r(g)&&v<g?(v=g,u(f),l=!1):r(m)&&f.isGreaterThanMax(v)?(v=m,u(f),l=!1):0===h&&(v=d),f.setActualWidth(v,t,!0),d-=v}}a.forEach((function(e){e.fireColumnWidthChangedEvent(t)})),this.setLeftValues(t),this.updateBodyWidths(),n||this.fireColumnResizedEvent(a,!0,t)}},t.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 We;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,r,oe.PINNED_LEFT,this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(n,this.gridBalancedTree,r,oe.PINNED_RIGHT,this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,r,null,this.displayedTreeCentre),this.updateDisplayedMap()},t.prototype.updateDisplayedMap=function(){var e=this;this.displayedColumnsAndGroupsMap={};var t=function(t){e.displayedColumnsAndGroupsMap[t.getUniqueId()]=t};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,t)},t.prototype.isDisplayed=function(e){return this.displayedColumnsAndGroupsMap[e.getUniqueId()]===e},t.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,(function(e){e instanceof we&&e.calculateDisplayedColumns()}))},t.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},t.prototype.createGroupAutoColumnsIfNeeded=function(){if(this.autoGroupsNeedBuilding){this.autoGroupsNeedBuilding=!1;var e=this.gridOptionsWrapper.isGroupUseEntireRow(this.pivotMode),t=this.pivotMode?this.gridOptionsWrapper.isPivotSuppressAutoColumn():this.gridOptionsWrapper.isGroupSuppressAutoColumn();if((this.rowGroupColumns.length>0||this.usingTreeData)&&!t&&!e){var n=this.groupAutoColumns||[],o=this.autoGroupColService.createAutoGroupColumns(n,this.rowGroupColumns);(!this.autoColsEqual(o,this.groupAutoColumns)||this.forceRecreateAutoGroups)&&(this.groupAutoColumns=o)}else this.groupAutoColumns=null}},t.prototype.autoColsEqual=function(e,t){return ce(e,t,(function(e,t){return e.getColId()===t.getColId()}))},t.prototype.getWidthOfColsInList=function(e){return e.reduce((function(e,t){return e+t.getActualWidth()}),0)},t.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},t.prototype.hasFloatingFilters=function(){return!!this.gridColumns&&this.gridColumns.some((function(e){return e.getColDef().floatingFilter}))},t.prototype.getFirstDisplayedColumn=function(){var e=this.gridOptionsWrapper.isEnableRtl(),t=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&t.reverse();for(var n=0;n<t.length;n++){var o=this[t[n]]();if(o.length)return e?ue(o):o[0]}return null},et([K("expressionService")],t.prototype,"expressionService",void 0),et([K("columnFactory")],t.prototype,"columnFactory",void 0),et([K("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),et([K("ctrlsService")],t.prototype,"ctrlsService",void 0),et([K("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),et([K("columnUtils")],t.prototype,"columnUtils",void 0),et([K("columnAnimationService")],t.prototype,"columnAnimationService",void 0),et([K("autoGroupColService")],t.prototype,"autoGroupColService",void 0),et([q("aggFuncService")],t.prototype,"aggFuncService",void 0),et([q("valueCache")],t.prototype,"valueCache",void 0),et([q("animationFrameService")],t.prototype,"animationFrameService",void 0),et([K("rowModel")],t.prototype,"rowModel",void 0),et([K("columnApi")],t.prototype,"columnApi",void 0),et([K("gridApi")],t.prototype,"gridApi",void 0),et([K("sortController")],t.prototype,"sortController",void 0),et([K("columnDefFactory")],t.prototype,"columnDefFactory",void 0),et([z],t.prototype,"init",null),et([tt(0,Q("loggerFactory"))],t.prototype,"setBeans",null),t=et([Y("columnModel")],t)}(Fe),st=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),at=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){function t(){return null!==e&&e.apply(this,arguments)||this}return st(t,e),t.prototype.calculateColMinWidth=function(e){return null!=e.minWidth?e.minWidth:this.gridOptionsWrapper.getMinColWidth()},t.prototype.calculateColMaxWidth=function(e){return null!=e.maxWidth?e.maxWidth:this.gridOptionsWrapper.getMaxColWidth()||Number.MAX_SAFE_INTEGER},t.prototype.calculateColInitialWidth=function(e){var t,n=this.calculateColMinWidth(e),o=this.calculateColMaxWidth(e),r=l(e.width),i=l(e.initialWidth);return t=null!=r?r:null!=i?i:this.gridOptionsWrapper.getColWidth(),Math.max(Math.min(t,o),n)},t.prototype.getOriginalPathForColumn=function(e,t){var n=[],o=!1;return function t(r,i){for(var s=0;s<r.length;s++){if(o)return;var a=r[s];if(a instanceof _e)t(a.getChildren(),i+1),n[i]=a;else a===e&&(o=!0)}}(t,0),o?n:null},t.prototype.depthFirstOriginalTreeSearch=function(e,t,n){var o=this;t&&t.forEach((function(t){t instanceof _e&&o.depthFirstOriginalTreeSearch(t,t.getChildren(),n),n(t,e)}))},t.prototype.depthFirstAllColumnTreeSearch=function(e,t){var n=this;e&&e.forEach((function(e){e instanceof we&&n.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)}))},t.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var n=this;e&&e.forEach((function(e){e instanceof we&&n.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)}))},t=at([Y("columnUtils")],t)}(Fe),ut=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),ct=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},pt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ut(t,e),t.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):ue(c).addChild(e);i=c,s=r})),this.setupParentsIntoColumns(l,null),l},t.prototype.createColumnGroup=function(e,t,n,o){var i=e.getGroupId(),s=t.getInstanceIdForKey(i),a=n[we.createUniqueId(i,s)];return a&&a.getProvidedColumnGroup()!==e&&(a=null),r(a)?a.reset():(a=new we(e,i,s,o),this.context.createBean(a)),a},t.prototype.mapOldGroupsById=function(e){var t={};return e&&function e(n){n.forEach((function(n){if(n instanceof we){var o=n;t[n.getUniqueId()]=o,e(o.getChildren())}}))}(e),t},t.prototype.setupParentsIntoColumns=function(e,t){var n=this;e.forEach((function(e){if(e.setParent(t),e instanceof we){var o=e;n.setupParentsIntoColumns(o.getChildren(),o)}}))},t.prototype.getOriginalPathForColumn=function(e,t){var n=[],o=!1;return function e(r,i){for(var s=0;s<r.length;s++){if(o)return;var a=r[s];a instanceof _e?(e(a.getChildren(),i+1),n[i]=a):a===t&&(o=!0)}}(e,0),o?n:(console.warn("AG Grid: could not get path"),null)},t=ct([Y("displayedGroupCreator")],t)}(Fe),dt=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},ht=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(dt(arguments[t]));return e},ft=function(){function e(){}return e.STRING_PROPERTIES=["sortingOrder","rowClass","rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","serverSideStoreType","groupDisplayType","treeDataDisplayType"],e.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultExportParams","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","colResizeDefault","statusBar","sideBar","chartThemeOverrides","customChartThemes"],e.ARRAY_PROPERTIES=["alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes"],e.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","colWidth","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","minColWidth","maxColWidth","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","scrollbarWidth","batchUpdateWaitMillis","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","tabIndex"],e.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressCellFocus","suppressHorizontalScroll","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","angularCompileRows","angularCompileFilters","groupSuppressAutoColumn","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupUseEntireRow","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressParentsInRowNodes","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","deprecatedEmbedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupMultiAutoColumn","pagination","stopEditingWhenGridLosesFocus","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","deltaRowDataMode","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressEnterpriseResetOnNewColumns","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","serverSideSortingAlwaysResets","suppressSetColumnStateEvents","suppressColumnStateEvents","enableCharts","deltaColumnMode","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","immutableData","immutableColumns","pivotSuppressAutoColumn","suppressExpandablePivotGroups","applyColumnDefOrder","debounceVerticalScrollbar","detailRowAutoHeight","serverSideFilteringAlwaysResets","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","maintainColumnOrder","groupMaintainOrder","columnHoverHighlight","reactUi","suppressReactUi","readOnlyEdit","suppressRowVirtualisation","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges"],e.FUNCTION_PROPERTIES=["localeTextFunc","getLocaleText","groupRowInnerRenderer","groupRowInnerRendererFramework","groupRowRenderer","groupRowRendererFramework","isExternalFilterPresent","getRowHeight","doesExternalFilterPass","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","groupRowAggNodes","getGroupRowAgg","getRowNodeId","isFullWidthCell","isFullWidthRow","fullWidthCellRenderer","fullWidthCellRendererFramework","processSecondaryColDef","processSecondaryColGroupDef","getBusinessKeyForNode","sendToClipboard","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework","isRowMaster","isRowSelectable","postSort","postSortRows","processHeaderForClipboard","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","suppressKeyboardEvent","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideStoreParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","defaultGroupSortComparator","defaultGroupOrderComparator","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","groupAggFiltering"],e.ALL_PROPERTIES=ht(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES,e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),gt=function(){return gt=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},gt.apply(this,arguments)},mt=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},vt=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(mt(arguments[t]));return e},yt=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){"object"!==typeof t&&(t={});var r=t,i=function(e){return"undefined"!==typeof n[e]};return i("groupAggFiltering")&&"function"!==typeof n.groupAggFiltering&&(r.groupAggFiltering=e.toBoolean(n.groupAggFiltering),delete n.groupAggFiltering),vt(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])})),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){var i=gt({},t),s=n,a=function(e){return i[e]};a("groupAggFiltering")&&("function"===typeof i.groupAggFiltering?s.groupAggFiltering=i.groupAggFiltering:s.groupAggFiltering=e.toBoolean(i.groupAggFiltering),delete i.groupAggFiltering),i.rowClass&&(o.setRowClass(i.rowClass.currentValue),delete i.rowClass),vt(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.getEventCallbacks()).filter(a).forEach((function(e){return s[e]=i[e].currentValue})),e.BOOLEAN_PROPERTIES.filter(a).forEach((function(t){return s[t]=e.toBoolean(i[t].currentValue)})),e.NUMBER_PROPERTIES.filter(a).forEach((function(t){return s[t]=e.toNumber(i[t].currentValue)})),i.enableCellTextSelection&&(o.setEnableCellTextSelection(e.toBoolean(i.enableCellTextSelection.currentValue)),delete i.enableCellTextSelection),i.quickFilterText&&(o.setQuickFilter(i.quickFilterText.currentValue),delete i.quickFilterText),i.autoGroupColumnDef&&(o.setAutoGroupColumnDef(i.autoGroupColumnDef.currentValue,"gridOptionsChanged"),delete i.autoGroupColumnDef),i.columnDefs&&(o.setColumnDefs(i.columnDefs.currentValue,"gridOptionsChanged"),delete i.columnDefs),i.defaultColDef&&(o.setDefaultColDef(i.defaultColDef.currentValue,"gridOptionsChanged"),delete i.defaultColDef),i.paginationPageSize&&(o.paginationSetPageSize(e.toNumber(i.paginationPageSize.currentValue)),delete i.paginationPageSize),i.pivotMode&&(r.setPivotMode(e.toBoolean(i.pivotMode.currentValue)),delete i.pivotMode),i.groupRemoveSingleChildren&&(o.setGroupRemoveSingleChildren(e.toBoolean(i.groupRemoveSingleChildren.currentValue)),delete i.groupRemoveSingleChildren),i.suppressRowDrag&&(o.setSuppressRowDrag(e.toBoolean(i.suppressRowDrag.currentValue)),delete i.suppressRowDrag),i.suppressMoveWhenRowDragging&&(o.setSuppressMoveWhenRowDragging(e.toBoolean(i.suppressMoveWhenRowDragging.currentValue)),delete i.suppressMoveWhenRowDragging),i.suppressRowClickSelection&&(o.setSuppressRowClickSelection(e.toBoolean(i.suppressRowClickSelection.currentValue)),delete i.suppressRowClickSelection),i.suppressClipboardPaste&&(o.setSuppressClipboardPaste(e.toBoolean(i.suppressClipboardPaste.currentValue)),delete i.suppressClipboardPaste),i.headerHeight&&(o.setHeaderHeight(e.toNumber(i.headerHeight.currentValue)),delete i.headerHeight);var l=o;Object.keys(i).forEach((function(e){var n="set"+e.charAt(0).toUpperCase()+e.substring(1);l[n]&&l[n](t[e].currentValue)}));var u={type:Ve.EVENT_COMPONENT_STATE_CHANGED,api:n.api,columnApi:n.columnApi};f(t,(function(e,t){u[e]=t})),o.dispatchEvent(u)}},e.toBoolean=function(e){return"boolean"===typeof e?e:"string"===typeof e&&("TRUE"===e.toUpperCase()||""==e)},e.toNumber=function(e){return"number"===typeof e?e:"string"===typeof e?Number(e):void 0},e.EVENTS=[],e.PUBLIC_EVENTS=[],e.EXCLUDED_INTERNAL_EVENTS=[],e.STRING_PROPERTIES=ft.STRING_PROPERTIES,e.OBJECT_PROPERTIES=ft.OBJECT_PROPERTIES,e.ARRAY_PROPERTIES=ft.ARRAY_PROPERTIES,e.NUMBER_PROPERTIES=ft.NUMBER_PROPERTIES,e.BOOLEAN_PROPERTIES=ft.BOOLEAN_PROPERTIES,e.FUNCTION_PROPERTIES=ft.FUNCTION_PROPERTIES,e.ALL_PROPERTIES=ft.ALL_PROPERTIES,e}();yt.EVENTS=p(Ve),yt.EXCLUDED_INTERNAL_EVENTS=[Ve.EVENT_SCROLLBAR_WIDTH_CHANGED,Ve.EVENT_CHECKBOX_CHANGED,Ve.EVENT_HEIGHT_SCALE_CHANGED,Ve.EVENT_BODY_HEIGHT_CHANGED,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,Ve.EVENT_SCROLL_VISIBILITY_CHANGED,Ve.EVENT_COLUMN_HOVER_CHANGED,Ve.EVENT_FLASH_CELLS,Ve.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,Ve.EVENT_DISPLAYED_ROWS_CHANGED,Ve.EVENT_LEFT_PINNED_WIDTH_CHANGED,Ve.EVENT_RIGHT_PINNED_WIDTH_CHANGED,Ve.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,Ve.EVENT_POPUP_TO_FRONT,Ve.EVENT_KEYBOARD_FOCUS,Ve.EVENT_MOUSE_FOCUS,Ve.EVENT_STORE_UPDATED,Ve.EVENT_COLUMN_PANEL_ITEM_DRAG_START,Ve.EVENT_COLUMN_PANEL_ITEM_DRAG_END,Ve.EVENT_FILL_START,Ve.EVENT_FILL_END,Ve.EVENT_FULL_WIDTH_ROW_FOCUSED],yt.PUBLIC_EVENTS=yt.EVENTS.filter((function(e){return!me(yt.EXCLUDED_INTERNAL_EVENTS,e)}));var Ct=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),wt=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},_t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.componentsMappedByName={},t}return Ct(t,e),t.prototype.setupComponents=function(e){var t=this;e&&e.forEach((function(e){return t.addComponent(e)}))},t.prototype.addComponent=function(e){var t=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[t]=e.componentClass},t.prototype.getComponentClass=function(e){return this.componentsMappedByName[e]},t=wt([Y("agStackComponentsRegistry")],t)}(Fe),bt=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Et=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(bt(arguments[t]));return e},St=function(){function e(){}return e.STRING_PROPERTIES=["headerName","columnGroupShow","headerClass","toolPanelClass","headerValueGetter","pivotKeys","groupId","colId","sort","initialSort","field","type","tooltipComponent","tooltipField","headerTooltip","cellClass","showRowGroup","filter","initialAggFunc","defaultAggFunc","aggFunc","pinned","initialPinned","chartDataType","cellEditorPopupPosition"],e.OBJECT_PROPERTIES=["headerGroupComponent","headerGroupComponentFramework","headerGroupComponentParams","cellStyle","cellRenderer","cellRendererParams","cellRendererFramework","cellEditor","cellEditorFramework","cellEditorParams","pinnedRowCellRendererFramework","pinnedRowCellRendererParams","filterFramework","filterParams","pivotValueColumn","headerComponent","headerComponentFramework","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","floatingFilterComponentFramework","floatingFilterFramework","tooltipComponent","tooltipComponentParams","tooltipComponentFramework","refData","columnsMenuParams"],e.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],e.NUMBER_PROPERTIES=["sortedAt","sortIndex","initialSortIndex","flex","initialFlex","width","initialWidth","minWidth","maxWidth","rowGroupIndex","initialRowGroupIndex","pivotIndex","initialPivotIndex"],e.BOOLEAN_PROPERTIES=["suppressCellFlash","suppressColumnsToolPanel","suppressFiltersToolPanel","openByDefault","marryChildren","hide","initialHide","rowGroup","initialRowGroup","pivot","initialPivot","checkboxSelection","headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","suppressMenu","suppressMovable","lockPosition","lockVisible","lockPinned","unSortIcon","suppressSizeToFit","suppressAutoSize","enableRowGroup","enablePivot","enableValue","editable","suppressPaste","suppressNavigable","enableCellChangeFlash","rowDrag","dndSource","autoHeight","wrapText","sortable","resizable","singleClickEdit","floatingFilter","cellEditorPopup","suppressFillHandle"],e.FUNCTION_PROPERTIES=["dndSourceOnRowDrag","valueGetter","valueSetter","filterValueGetter","keyCreator","pinnedRowCellRenderer","valueFormatter","pinnedRowValueFormatter","valueParser","comparator","equals","pivotComparator","suppressKeyboardEvent","suppressHeaderKeyboardEvent","colSpan","rowSpan","getQuickFilterText","newValueHandler","onCellValueChanged","onCellClicked","onCellDoubleClicked","onCellContextMenu","rowDragText","tooltipValueGetter","tooltipComponent","tooltipComponentFramework","cellRendererSelector","cellEditorSelector"],e.ALL_PROPERTIES=Et(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES,e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),Rt=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Ot=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.parseHex=function(e){var t;switch((e=e.replace(/ /g,"").slice(1)).length){case 6:case 8:t=[];for(var n=0;n<e.length;n+=2)t.push(parseInt(""+e[n]+e[n+1],16));break;case 3:case 4:t=e.split("").map((function(e){return parseInt(e,16)})).map((function(e){return e+16*e}))}if(t.length>=3&&t.every((function(e){return e>=0})))return 3===t.length&&t.push(255),t},e.fromHexString=function(t){var n=e.parseHex(t);if(n){var o=Rt(n,4);return new e(o[0]/255,o[1]/255,o[2]/255,o[3]/255)}throw new Error("Malformed hexadecimal color string: '"+t+"'")},e.stringToRgba=function(e){for(var t=Rt([NaN,NaN],2),n=t[0],o=t[1],r=0;r<e.length;r++){var i=e[r];if(n||"("!==i){if(")"===i){o=r;break}}else n=r}var s=n&&o&&e.substring(n+1,o);if(s){var a=s.split(","),l=[];for(r=0;r<a.length;r++){var u=a[r],c=parseFloat(u);if(isNaN(c))return;u.indexOf("%")>=0?(c=Math.max(0,Math.min(100,c)),c/=100):3===r?c=Math.max(0,Math.min(1,c)):(c=Math.max(0,Math.min(255,c)),c/=255),l.push(c)}return l}},e.fromRgbaString=function(t){var n=e.stringToRgba(t);if(n){if(3===n.length)return new e(n[0],n[1],n[2]);if(4===n.length)return new e(n[0],n[1],n[2],n[3])}throw new Error("Malformed rgb/rgba color string: '"+t+"'")},e.fromArray=function(t){if(4===t.length)return new e(t[0],t[1],t[2],t[3]);if(3===t.length)return new e(t[0],t[1],t[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},e.fromHSB=function(t,n,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.nameToHex=Object.freeze({aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}),e}();function Tt(e,t){void 0===t&&(t=",");var n=[],o=function(e){return"\r"===e||"\n"===e},r=!1;if(""===e)return[[""]];for(var i,s,a,l=function(l,u,c){var p=e[c-1],d=e[c],h=e[c+1],f=function(){n[l]||(n[l]=[]),n[l][u]||(n[l][u]="")};if(f(),'"'===d){if(r)return'"'===h?(n[l][u]+='"',c++):r=!1,i=l,s=u,a=c,"continue";if(void 0===p||p===t||o(p))return r=!0,i=l,s=u,a=c,"continue"}if(!r){if(d===t)return u++,f(),i=l,s=u,a=c,"continue";if(o(d))return u=0,l++,f(),"\r"===d&&"\n"===h&&c++,i=l,s=u,a=c,"continue"}n[l][u]+=d,i=l,s=u,a=c},u=0,c=0,p=0;p<e.length;p++)l(u,c,p),u=i,c=s,p=a;return n}var Pt,At,Dt,xt,Nt,Mt,It,Lt,Ft=Object.freeze({stringToArray:Tt}),kt=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function Gt(){return void 0===Dt&&(void 0===At&&(At=!!document.documentMode),Dt=!At&&!!window.StyleMedia),Dt}function Ht(){return void 0===Pt&&(Pt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Pt}function Bt(){if(void 0===xt){var e=window;xt=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return xt}function Vt(){if(void 0===Nt){var e=window;Nt="undefined"!==typeof e.InstallTrigger}return Nt}function Wt(){return void 0===Mt&&(Mt=(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream),Mt}function jt(e){if(!e)return null;var t=e.tabIndex,n=e.getAttribute("tabIndex");return-1!==t||null!==n&&(""!==n||Vt())?t.toString():null}function Ut(){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}function zt(){return null==Lt&&Zt(),Lt}function Zt(){var e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);var n=t.offsetWidth-t.clientWidth;0===n&&0===t.clientWidth&&(n=null),t.parentNode&&t.parentNode.removeChild(t),null!=n&&(Lt=n,It=0===n)}function Yt(){return null==It&&Zt(),It}function Kt(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1}function qt(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1}var Xt,Qt=Object.freeze({isBrowserEdge:Gt,isBrowserSafari:Ht,isBrowserChrome:Bt,isBrowserFirefox:Vt,isIOSUserAgent:Wt,getTabIndex:jt,getMaxDivHeight:Ut,getScrollbarWidth:zt,isInvisibleScrollbar:Yt,hasOverflowScrolling:function(){var e,t,n=["webkit","moz","o","ms"],o=document.createElement("div"),r=!1;document.getElementsByTagName("body")[0].appendChild(o),o.setAttribute("style",n.map((function(e){return"-"+e+"-overflow-scrolling: touch"})).concat("overflow-scrolling: touch").join(";"));var i=window.getComputedStyle(o);if("touch"===i.overflowScrolling&&(r=!0),!r)try{for(var s=kt(n),a=s.next();!a.done;a=s.next())if("touch"===i[a.value+"OverflowScrolling"]){r=!0;break}}catch(l){e={error:l}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return o.parentNode&&o.parentNode.removeChild(o),r},getBodyWidth:Kt,getBodyHeight:qt});function Jt(e){var t=Element.prototype.matches||Element.prototype.msMatchesSelector,n=t.call(e,oe.INPUT_SELECTOR),o=t.call(e,oe.FOCUSABLE_EXCLUDE),r=fn(e);return n&&!o&&r}function $t(e,t){e.classList.toggle("ag-hidden",!t)}function en(e,t){e.classList.toggle("ag-invisible",!t)}function tn(e,t){var n="disabled",o=t?function(e){return e.setAttribute(n,"")}:function(e){return e.removeAttribute(n)};o(e),In(e.querySelectorAll("input"),(function(e){return o(e)}))}function nn(e,t,n){for(var o=0;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,n&&++o>n)break}return!1}function on(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 rn(e){var t=on(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height}function sn(e){var t=on(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width}function an(e){var t=on(e),n=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+n)}function ln(e){var t=on(e),n=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+n)}function un(){if("boolean"===typeof Xt)return Xt;var e=document.createElement("div");return e.style.direction="rtl",e.style.width="1px",e.style.height="1px",e.style.position="fixed",e.style.top="0px",e.style.overflow="hidden",e.dir="rtl",e.innerHTML='<div style="width: 2px">\n            <span style="display: inline-block; width: 1px"></span>\n            <span style="display: inline-block; width: 1px"></span>\n        </div>',document.body.appendChild(e),e.scrollLeft=1,Xt=0===Math.floor(e.scrollLeft),document.body.removeChild(e),Xt}function cn(e,t){var n=e.scrollLeft;return t&&(n=Math.abs(n),Bt()&&!un()&&(n=e.scrollWidth-e.clientWidth-n)),n}function pn(e,t,n){n&&(un()?t*=-1:(Ht()||Bt())&&(t=e.scrollWidth-e.clientWidth-t)),e.scrollLeft=t}function dn(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function hn(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function fn(e){return null!==e.offsetParent}function gn(e){if(null!==DOMParser)return(new DOMParser).parseFromString(e,"text/html").body.firstChild;var t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function mn(e){return e&&e.clientHeight?e.clientHeight:0}function vn(e){return e&&e.clientWidth?e.clientWidth:0}function yn(e,t,n){n&&n.nextSibling===t||(n?n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t))}function Cn(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 wn(e,t,n){n?n.insertAdjacentElement("afterend",t):e.firstChild?e.insertAdjacentElement("afterbegin",t):e.appendChild(t)}function _n(e,t){t&&Object.keys(t).forEach((function(n){var o=Ze(n);o&&(e.style[o]=t[n])}))}function bn(e){return e.clientWidth<e.scrollWidth}function En(e){return e.clientHeight<e.scrollHeight}function Sn(e,t){"flex"===t?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Rn(e,t)}function Rn(e,t){t=Tn(t),e.style.width=t.toString(),e.style.maxWidth=t.toString(),e.style.minWidth=t.toString()}function On(e,t){t=Tn(t),e.style.height=t.toString(),e.style.maxHeight=t.toString(),e.style.minHeight=t.toString()}function Tn(e){return"number"===typeof e?e+"px":e}function Pn(e){return"function"===typeof Node?e instanceof Node:e&&"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName}function An(e){return"function"===typeof HTMLElement?e instanceof HTMLElement:e&&R(e)&&1===e.nodeType&&"string"===typeof e.nodeName}function Dn(e){return Pn(e)||An(e)}function xn(e){if(null==e)return[];var t=[];return In(e,(function(e){return t.push(e)})),t}function Nn(e,t){if(e)for(var n=0;n<e.length;n++){var o=e[n];t(o.name,o.value)}}function Mn(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n.toString())}function In(e,t){if(null!=e)for(var n=0;n<e.length;n++)t(e[n])}var Ln=Object.freeze({radioCssClass:function(e,t,n){for(var o=e.parentElement,r=o&&o.firstChild;r;)t&&r.classList.toggle(t,r===e),n&&r.classList.toggle(n,r!==e),r=r.nextSibling},isFocusableFormField:Jt,setDisplayed:$t,setVisible:en,setDisabled:tn,isElementChildOfClass:nn,getElementSize:on,getInnerHeight:rn,getInnerWidth:sn,getAbsoluteHeight:an,getAbsoluteWidth:ln,isRtlNegativeScroll:un,getScrollLeft:cn,setScrollLeft:pn,clearElement:dn,removeElement:function(e,t){hn(e.querySelector(t))},removeFromParent:hn,isVisible:fn,loadTemplate:gn,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:mn,offsetWidth:vn,ensureDomOrder:yn,setDomChildOrder:Cn,insertWithDomOrder:wn,prependDC:function(e,t){r(e.firstChild)?e.insertBefore(t,e.firstChild):e.appendChild(t)},addStylesToElement:_n,isHorizontalScrollShowing:bn,isVerticalScrollShowing:En,setElementWidth:Sn,setFixedWidth:Rn,setElementHeight:function(e,t){"flex"===t?(e.style.removeProperty("height"),e.style.removeProperty("minHeight"),e.style.removeProperty("maxHeight"),e.style.flex="1 1 auto"):On(e,t)},setFixedHeight:On,formatSize:Tn,isNode:Pn,isElement:An,isNodeOrElement:Dn,copyNodeList:xn,iterateNamedNodeMap:Nn,setCheckboxState:function(e,t){"boolean"===typeof t?(e.checked=t,e.indeterminate=!1):e.indeterminate=!0},addOrRemoveAttribute:Mn,nodeListForEach:In});var Fn=Object.freeze({getNameOfClass:function(e){var t=e.toString(),n=/function (.{1,})\(/.exec(t);return n&&n.length>1?n[1]:""},findLineByLeastSquares:function(e){var t=e.length,n=0;if(t<=1)return e;for(var o=0;o<e.length;o++){var r=e[o],i=r.toString().split("e-");i.length>1?n=Math.max(n,parseInt(i[1],10)):Math.floor(r)!==r&&(n=Math.max(n,r.toString().split(".")[1].length))}for(var s=0,a=0,l=0,u=0,c=0,p=0;p<t;p++)s+=p,a+=c=e[p],u+=p*p,l+=p*c;var d=(t*l-s*a)/(t*u-s*s),h=a/t-d*s/t,f=[];for(p=0;p<=t;p++)f.push(parseFloat((p*d+h).toFixed(n)));return f},cssStyleObjectToMarkup:function(e){if(!e)return"";var t=[];return f(e,(function(e,n){var o=ze(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=gn('<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)}))}});function kn(e,t,n){e.setAttribute(Hn(t),n.toString())}function Gn(e,t){e.removeAttribute(Hn(t))}function Hn(e){return"aria-"+e}function Bn(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function Vn(e){return e.isSortAscending()?"ascending":e.isSortDescending()?"descending":"none"}function Wn(e){return parseInt(e.getAttribute("aria-level"),10)}function jn(e){return parseInt(e.getAttribute("aria-posinset"),10)}function Un(e,t){var n="label";t?kn(e,n,t):Gn(e,n)}function zn(e,t){var n="labelledby";t?kn(e,n,t):Gn(e,n)}function Zn(e,t){var n="description";t?kn(e,n,t):Gn(e,n)}function Yn(e,t){var n="describedby";t?kn(e,n,t):Gn(e,n)}function Kn(e,t){kn(e,"level",t)}function qn(e,t){kn(e,"disabled",t)}function Xn(e,t){kn(e,"expanded",t)}function Qn(e){Gn(e,"expanded")}function Jn(e,t){kn(e,"setsize",t)}function $n(e,t){kn(e,"posinset",t)}function eo(e,t){kn(e,"multiselectable",t)}function to(e,t){kn(e,"rowcount",t)}function no(e,t){kn(e,"rowindex",t)}function oo(e,t){kn(e,"colcount",t)}function ro(e,t){kn(e,"colindex",t)}function io(e,t){kn(e,"colspan",t)}function so(e,t){kn(e,"sort",t)}function ao(e){Gn(e,"sort")}function lo(e,t){var n="selected";t?kn(e,n,t):Gn(e,n)}function uo(e,t){kn(e,"checked",void 0===t?"mixed":t)}var co=Object.freeze({setAriaRole:Bn,getAriaSortState:Vn,getAriaLevel:Wn,getAriaPosInSet:jn,getAriaDescribedBy:function(e){return e.getAttribute("aria-describedby")||""},setAriaLabel:Un,setAriaLabelledBy:zn,setAriaDescription:Zn,setAriaDescribedBy:Yn,setAriaLevel:Kn,setAriaDisabled:qn,setAriaExpanded:Xn,removeAriaExpanded:Qn,setAriaSetSize:Jn,setAriaPosInSet:$n,setAriaMultiSelectable:eo,setAriaRowCount:to,setAriaRowIndex:no,setAriaColCount:oo,setAriaColIndex:ro,setAriaColSpan:io,setAriaSort:so,removeAriaSort:ao,setAriaSelected:lo,setAriaChecked:uo});function po(e,t){return e.toString().padStart(t,"0")}function ho(e,t){for(var n=[],o=e;o<=t;o++)n.push(o);return n}function fo(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function go(e,t,n){return"number"!==typeof e?"":e.toString().replace(".",n).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+t)}var mo=Object.freeze({padStartWidthZeros:po,createArrayOfNumbers:ho,isNumeric:fo,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,t,n){return"number"!==typeof e?"":go(Math.round(100*e)/100,t,n)},formatNumberCommas:go,sum:function(e){return null==e?null:e.reduce((function(e,t){return e+t}),0)}}),vo=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s};function yo(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 po(e,2)})).join(n);return t&&(o+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map((function(e){return po(e,2)})).join(":")),o}function Co(e){if(!e)return null;var t=vo(e.split(" "),2),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=vo(r,3),s=i[0],a=i[1],l=i[2],u=new Date(s,a-1,l);if(u.getFullYear()!==s||u.getMonth()!==a-1||u.getDate()!==l)return null;if(!o||"00:00:00"===o)return u;var c=vo(o.split(":").map((function(e){return parseInt(e,10)})),3),p=c[0],d=c[1],h=c[2];return p>=0&&p<24&&u.setHours(p),d>=0&&d<60&&u.setMinutes(d),h>=0&&h<60&&u.setSeconds(h),u}var wo=Object.freeze({serialiseDate:yo,parseDateTimeFromString:Co});function _o(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]=bo(e,n)})),o}function bo(e,t,n,o){var r=o?Ro:So,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 Eo(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 So(e,t){if(0===e.length&&0===t.length)return 0;var n,o,r=Eo(e),i=Eo(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 Ro(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],i);-1!==a&&(r+=100-100*(i=a)/1e4*100)}return r}var Oo=Object.freeze({fuzzyCheckStrings:_o,fuzzySuggestions:bo,get_bigrams:Eo,string_distances:So,string_weighted_distances:Ro}),To={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"tree-closed",groupExpanded:"tree-open",chart:"chart",close:"cross",cancel:"cancel",check:"tick",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",groupLoading:"loading",menu:"menu",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",csvExport:"csv",excelExport:"excel",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"};function Po(e,t,n){var o=Ao(e,t,n);if(o&&o.className.indexOf("ag-icon")>-1)return o;var r=document.createElement("span");return r.appendChild(o),r}function Ao(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=To[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"),Bn(a,"presentation"),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?gn(u):Dn(u)?u:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}var Do=Object.freeze({iconNameClassMap:To,createIcon:Po,createIconNoSpan:Ao});function xo(e){if(e.altKey||e.ctrlKey||e.metaKey)return!1;var t=1===e.key.length,n=function(e){return Gt()&&"Del"===e.key&&46===e.charCode}(e);return t||n}function No(e,t,n,o,r){var i=e.getSuppressKeyboardEventFunc(),s=o?o.getColDef().suppressKeyboardEvent:void 0;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()};if(s&&s(a))return!0;return!!i&&i(a)}function Mo(e,t,n,o){var i=o.getDefinition(),s=i&&i.suppressHeaderKeyboardEvent;return!!r(s)&&!!s({api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext(),colDef:i,column:o,headerRowIndex:n,event:t})}var Io=Object.freeze({isEventFromPrintableCharacter:xo,isUserSuppressingKeyboardEvent:No,isUserSuppressingHeaderKeyboardEvent:Mo});function Lo(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}var Fo=Object.freeze({areEventsNear:Lo});var ko=Object.freeze({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){if(!o)return;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)}});function Go(e){var t=new Set;return e.forEach((function(e){return t.add(e)})),t}var Ho,Bo=Object.freeze({convertToSet:Go}),Vo=function(){return Vo=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},Vo.apply(this,arguments)},Wo=Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo({},Fn),co),ye),Qt),Ft),wo),Ln),Ie),W),Oo),d),Do),Io),Je),Fo),mo),O),ko),Bo),Xe),jo=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}();(Ho=t.AgPromiseStatus||(t.AgPromiseStatus={}))[Ho.IN_PROGRESS=0]="IN_PROGRESS",Ho[Ho.RESOLVED=1]="RESOLVED";var Uo,zo=function(){function e(e){var n=this;this.status=t.AgPromiseStatus.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);t.forEach((function(t,r){t.then((function(t){o[r]=t,0===--n&&e(o)}))}))}))},e.resolve=function(t){return void 0===t&&(t=null),new e((function(e){return e(t)}))},e.prototype.then=function(n){var o=this;return new e((function(e){o.status===t.AgPromiseStatus.RESOLVED?e(n(o.resolution)):o.waiters.push((function(t){return e(n(t))}))}))},e.prototype.resolveNow=function(e,n){return this.status===t.AgPromiseStatus.RESOLVED?n(this.resolution):e},e.prototype.onDone=function(e){this.status=t.AgPromiseStatus.RESOLVED,this.resolution=e,this.waiters.forEach((function(t){return t(e)}))},e.prototype.onReject=function(e){console.warn("TBI")},e}(),Zo=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}(),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])},e(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)}}(),Ko=function(){return Ko=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},Ko.apply(this,arguments)},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};!function(e){e[e.NOTHING=0]="NOTHING",e[e.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",e[e.SHOWING=2]="SHOWING"}(Uo||(Uo={}));var Xo=function(e){function t(t){var n=e.call(this)||this;return n.DEFAULT_SHOW_TOOLTIP_DELAY=2e3,n.DEFAULT_HIDE_TOOLTIP_DELAY=1e4,n.SHOW_QUICK_TOOLTIP_DIFF=1e3,n.FADE_OUT_TOOLTIP_TIMEOUT=1e3,n.state=Uo.NOTHING,n.tooltipInstanceCount=0,n.tooltipMouseTrack=!1,n.parentComp=t,n}return Yo(t,e),t.prototype.postConstruct=function(){this.tooltipShowDelay=this.gridOptionsWrapper.getTooltipDelay("show")||this.DEFAULT_SHOW_TOOLTIP_DELAY,this.tooltipHideDelay=this.gridOptionsWrapper.getTooltipDelay("hide")||this.DEFAULT_HIDE_TOOLTIP_DELAY,this.tooltipMouseTrack=this.gridOptionsWrapper.isTooltipMouseTrack();var e=this.parentComp.getGui();this.addManagedListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(e,"mouseleave",this.onMouseLeave.bind(this)),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(e,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this))},t.prototype.destroy=function(){this.setToDoNothing(),e.prototype.destroy.call(this)},t.prototype.onMouseEnter=function(e){if(!Wt()&&this.state==Uo.NOTHING){var t=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.lastMouseEvent=e,this.state=Uo.WAITING_TO_SHOW}},t.prototype.onMouseLeave=function(){this.setToDoNothing()},t.prototype.onKeyDown=function(){this.setToDoNothing()},t.prototype.setToDoNothing=function(){this.state===Uo.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=Uo.NOTHING},t.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===Uo.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=Uo.NOTHING},t.prototype.destroyTooltipComp=function(){var e=this;this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");var t=this.tooltipPopupDestroyFunc,n=this.tooltipComp;window.setTimeout((function(){t(),e.getContext().destroyBean(n)}),this.FADE_OUT_TOOLTIP_TIMEOUT),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},t.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-t.lastTooltipHideTime<this.SHOW_QUICK_TOOLTIP_DIFF},t.prototype.showTooltip=function(){var e=Ko({},this.parentComp.getTooltipParams());if(r(e.value)){this.state=Uo.SHOWING,this.tooltipInstanceCount++;var t=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.getTooltipCompDetails(e).newAgStackInstance().then(t)}else this.setToDoNothing()},t.prototype.newTooltipComponentCallback=function(e,t){if(this.state!==Uo.SHOWING||this.tooltipInstanceCount!==e)this.getContext().destroyBean(t);else{var n=t.getGui();this.tooltipComp=t,n.classList.contains("ag-tooltip")||n.classList.add("ag-tooltip-custom");var o=this.gridOptionsWrapper.getLocaleTextFunc(),r=this.popupService.addPopup({eChild:n,ariaLabel:o("ariaLabelTooltip","Tooltip")});r&&(this.tooltipPopupDestroyFunc=r.hideFunc),this.positionTooltipUnderLastMouseEvent(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.tooltipHideDelay)}},t.prototype.positionTooltipUnderLastMouseEvent=function(){this.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:this.lastMouseEvent,ePopup:this.tooltipComp.getGui(),nudgeY:18})},t.prototype.clearTimeouts=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0),this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},qo([K("popupService")],t.prototype,"popupService",void 0),qo([K("userComponentFactory")],t.prototype,"userComponentFactory",void 0),qo([K("columnApi")],t.prototype,"columnApi",void 0),qo([K("gridApi")],t.prototype,"gridApi",void 0),qo([z],t.prototype,"postConstruct",null),t}(Fe),Qo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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},$o=new jo,er=function(){function e(e){this.cssClassStates={},this.getGui=e}return e.prototype.addCssClass=function(e){var t=this,n=(e||"").split(" ");n.length>1?n.forEach((function(e){return t.addCssClass(e)})):!0!==this.cssClassStates[e]&&e.length&&(this.getGui().classList.add(e),this.cssClassStates[e]=!0)},e.prototype.removeCssClass=function(e){var t=this,n=(e||"").split(" ");n.length>1?n.forEach((function(e){return t.removeCssClass(e)})):!1!==this.cssClassStates[e]&&e.length&&(this.getGui().classList.remove(e),this.cssClassStates[e]=!1)},e.prototype.containsCssClass=function(e){return this.getGui().classList.contains(e)},e.prototype.addOrRemoveCssClass=function(e,t){var n=this,o=(e||"").split(" ");o.length>1?o.forEach((function(e){return n.addOrRemoveCssClass(e,t)})):this.cssClassStates[e]!==t&&e.length&&(this.getGui().classList.toggle(e,t),this.cssClassStates[e]=t)},e}(),tr=function(e){function t(t){var n=e.call(this)||this;return n.displayed=!0,n.visible=!0,n.compId=$o.next(),n.cssClassManager=new er((function(){return n.eGui})),t&&n.setTemplate(t),n}return Qo(t,e),t.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsWrapper.isEnableBrowserTooltips()},t.prototype.getCompId=function(){return this.compId},t.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},t.prototype.setTooltip=function(e){var t=this;this.tooltipText!=e&&(this.tooltipText&&(t.usingBrowserTooltips?t.getGui().removeAttribute("title"):t.tooltipFeature=t.destroyBean(t.tooltipFeature)),null!=e&&(this.tooltipText=e,this.tooltipText&&(t.usingBrowserTooltips?t.getGui().setAttribute("title",t.tooltipText):t.tooltipFeature=t.createBean(new Xo(t)))))},t.prototype.createChildComponentsFromTags=function(e,t){var n=this;xn(e.childNodes).forEach((function(o){if(o instanceof HTMLElement){var r=n.createComponentFromElement(o,(function(e){e.getGui()&&n.copyAttributesFromNode(o,e.getGui())}),t);if(r){if(r.addItems&&o.children.length){n.createChildComponentsFromTags(o,t);var i=Array.prototype.slice.call(o.children);r.addItems(i)}n.swapComponentForNode(r,e,o)}else o.childNodes&&n.createChildComponentsFromTags(o,t)}}))},t.prototype.createComponentFromElement=function(e,n,o){var r=e.nodeName,i=o?o[e.getAttribute("ref")]:void 0,s=this.agStackComponentsRegistry.getComponentClass(r);if(s){t.elementGettingCreated=e;var a=new s(i);return a.setParentComponent(this),this.createBean(a,null,n),a}return null},t.prototype.copyAttributesFromNode=function(e,t){Nn(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.addDestroyFunc(this.destroyBean.bind(this,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=x(t.constructor);n&&n[o]&&n[o].querySelectors&&n[o].querySelectors.forEach((function(t){return e(t)})),t=Object.getPrototypeOf(t)}},t.prototype.setTemplate=function(e,t){var n=gn(e);this.setTemplateFromElement(n,t)},t.prototype.setTemplateFromElement=function(e,t){this.eGui=e,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),t)},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui){var t=this;this.iterateOverQuerySelectors((function(n){var o=function(e){return t[n.attributeName]=e};if(n.refSelector&&e.eGui.getAttribute("ref")===n.refSelector)o(e.eGui);else{var r=e.eGui.querySelector(n.querySelector);r&&o(r.__agComponent||r)}}))}},t.prototype.getGui=function(){return this.eGui},t.prototype.getFocusableElement=function(){return this.eGui},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e,t){if(t||(t=this.eGui),null!=e)if(Dn(e))t.appendChild(e);else{var n=e;t.appendChild(n.getGui()),this.addDestroyFunc(this.destroyBean.bind(this,n))}},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e){e!==this.visible&&(this.visible=e,en(this.eGui,e))},t.prototype.setDisplayed=function(e){if(e!==this.displayed){this.displayed=e,$t(this.eGui,e);var n={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(n)}},t.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),e.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,t){var n=this;this.eGui.addEventListener(e,t),this.addDestroyFunc((function(){return n.eGui.removeEventListener(e,t)}))},t.prototype.addCssClass=function(e){this.cssClassManager.addCssClass(e)},t.prototype.removeCssClass=function(e){this.cssClassManager.removeCssClass(e)},t.prototype.containsCssClass=function(e){return this.cssClassManager.containsCssClass(e)},t.prototype.addOrRemoveCssClass=function(e,t){this.cssClassManager.addOrRemoveCssClass(e,t)},t.prototype.getAttribute=function(e){var t=this.eGui;return t?t.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_DISPLAYED_CHANGED="displayedChanged",Jo([K("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),Jo([U],t.prototype,"preConstructOnComponent",null),Jo([U],t.prototype,"createChildComponentsPreConstruct",null),t}(Fe);function nr(e){return or.bind(this,"[ref="+e+"]",e)}function or(e,t,n,o,r){null!==e?"number"!==typeof r?function(e,t,n){var o=function(e,t){e.__agComponentMetaData||(e.__agComponentMetaData={});e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={});return e.__agComponentMetaData[t]}(e,x(e.constructor));o[t]||(o[t]=[]);o[t].push(n)}(n,"querySelectors",{attributeName:o,querySelector:e,refSelector:t}):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}var rr,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])},e(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,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(){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 ir(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e;var t=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),n=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(t+" "+n("ariaFilterInput","Filter Input"))},t.prototype.onParentModelChanged=function(e){var t=this;e?this.params.parentFilterInstance((function(n){if(n.getModelAsString){var o=n.getModelAsString(e);t.eFloatingFilterText.setValue(o)}})):this.eFloatingFilterText.setValue("")},sr([nr("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),sr([K("columnModel")],t.prototype,"columnModel",void 0),t}(tr),lr=function(){function e(e,t,n,o){var r=this;this.alive=!0,this.context=e,this.eParent=o,t.getDateCompDetails(n).newAgStackInstance().then((function(t){r.alive?(r.dateComp=t,t&&(o.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached(),r.tempValue&&t.setDate(r.tempValue),null!=r.disabled&&r.setDateCompDisabled(r.disabled))):e.destroyBean(t)}))}return e.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},e.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},e.prototype.setDate=function(e){this.dateComp?this.dateComp.setDate(e):this.tempValue=e},e.prototype.setDisabled=function(e){this.dateComp?this.setDateCompDisabled(e):this.disabled=e},e.prototype.setDisplayed=function(e){$t(this.eParent,e)},e.prototype.setInputPlaceholder=function(e){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(e)},e.prototype.setInputAriaLabel=function(e){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(e)},e.prototype.afterGuiAttached=function(e){this.dateComp&&"function"===typeof this.dateComp.afterGuiAttached&&this.dateComp.afterGuiAttached(e)},e.prototype.setDateCompDisabled=function(e){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(e)},e}(),ur=function(){return ur=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},ur.apply(this,arguments)},cr=function(){function e(){this.customFilterOptions={}}return e.prototype.init=function(e,t){this.filterOptions=e.filterOptions||t,this.mapCustomOptions(),this.selectDefaultItem(e),this.checkForDeprecatedParams()},e.prototype.checkForDeprecatedParams=function(){this.filterOptions.some((function(e){return"string"!=typeof e&&null!=e.test}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate()."),this.filterOptions.some((function(e){return"string"!=typeof e&&null!=e.hideFilterInput}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.")},e.prototype.getFilterOptions=function(){return this.filterOptions},e.prototype.mapCustomOptions=function(){var e=this;this.filterOptions&&this.filterOptions.forEach((function(t){if("string"!==typeof t){if([["displayKey"],["displayName"],["predicate","test"]].every((function(e){return!!e.some((function(e){return null!=t[e]}))||(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '"+e+"'"),!1)}))){var n=t.test,o=ur({},t);null!=n&&null==t.predicate&&(o.predicate=function(e,t){return n(e[0],t)},delete o.test),o.hideFilterInput&&null==o.numberOfInputs&&(o.numberOfInputs=0,delete o.hideFilterInput),e.customFilterOptions[t.displayKey]=o}else e.filterOptions=e.filterOptions.filter((function(e){return e===t}))||[]}}))},e.prototype.selectDefaultItem=function(e){if(e.defaultOption)this.defaultOption=e.defaultOption;else if(this.filterOptions.length>=1){var t=this.filterOptions[0];"string"===typeof t?this.defaultOption=t:t.displayKey?this.defaultOption=t.displayKey:console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("AG Grid: no filter options for filter")},e.prototype.getDefaultOption=function(){return this.defaultOption},e.prototype.getCustomOption=function(e){return this.customFilterOptions[e]},e}(),pr={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},dr=function(){function e(){}return e.BACKSPACE="Backspace",e.TAB="Tab",e.ENTER="Enter",e.ESCAPE="Escape",e.SPACE=" ",e.LEFT="ArrowLeft",e.UP="ArrowUp",e.RIGHT="ArrowRight",e.DOWN="ArrowDown",e.DELETE="Delete",e.F2="F2",e.PAGE_UP="PageUp",e.PAGE_DOWN="PageDown",e.PAGE_HOME="Home",e.PAGE_END="End",e.A="KeyA",e.C="KeyC",e.V="KeyV",e.D="KeyD",e.Z="KeyZ",e.Y="KeyY",e}(),hr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),fr=function(){return fr=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},fr.apply(this,arguments)},gr=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},mr=function(e){function t(t,n){void 0===n&&(n={});var o=e.call(this)||this;return o.eFocusableElement=t,o.callbacks=n,o.callbacks=fr({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(e){if(!e.defaultPrevented){var t=o.focusService.findNextFocusableElement(o.eFocusableElement,!1,e.shiftKey);t&&(t.focus(),e.preventDefault())}}},n),o}return hr(t,e),t.prototype.postConstruct=function(){this.eFocusableElement.classList.add(t.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedListener(this.eFocusableElement,"focusin",this.callbacks.onFocusIn),this.callbacks.onFocusOut&&this.addManagedListener(this.eFocusableElement,"focusout",this.callbacks.onFocusOut)},t.prototype.addKeyDownListeners=function(e){var t=this;this.addManagedListener(e,"keydown",(function(e){e.defaultPrevented||Te(e)||(t.callbacks.shouldStopEventPropagation(e)?Oe(e):e.key===dr.TAB?t.callbacks.onTabKeyDown(e):t.callbacks.handleKeyDown&&t.callbacks.handleKeyDown(e))}))},t.FOCUS_MANAGED_CLASS="ag-focus-managed",gr([K("focusService")],t.prototype,"focusService",void 0),gr([z],t.prototype,"postConstruct",null),t}(Fe),vr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),yr=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},Cr=function(e){function t(t){var n=e.call(this)||this;return n.filterNameKey=t,n.applyActive=!1,n.hidePopup=null,n.appliedModel=null,n}return vr(t,e),t.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new mr(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)}))},t.prototype.handleKeyDown=function(e){},t.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},t.prototype.isFilterActive=function(){return!!this.appliedModel},t.prototype.resetTemplate=function(e){var t='\n            <div class="ag-filter-wrapper">\n                <div class="ag-filter-body-wrapper ag-'+this.getCssIdentifier()+'-body-wrapper">\n                    '+this.createBodyTemplate()+"\n                </div>\n            </div>";this.setTemplate(t,e)},t.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},t.prototype.init=function(e){var t=this;this.setParams(e),this.resetUiToDefaults(!0).then((function(){t.updateUiVisibility(),t.setupOnBtApplyDebounce()}))},t.prototype.setParams=function(e){this.providedFilterParams=e,this.applyActive=t.isUseApplyButton(e),this.createButtonPanel()},t.prototype.createButtonPanel=function(){var e=this,t=this.providedFilterParams.buttons;if(!(!t||t.length<1||this.isReadOnly())){var n=document.createElement("div");n.classList.add("ag-filter-apply-panel");Go(t).forEach((function(t){return function(t){var o,r;switch(t){case"apply":o=e.translate("applyFilter"),r=function(t){return e.onBtApply(!1,!1,t)};break;case"clear":o=e.translate("clearFilter"),r=function(){return e.onBtClear()};break;case"reset":o=e.translate("resetFilter"),r=function(){return e.onBtReset()};break;case"cancel":o=e.translate("cancelFilter"),r=function(t){e.onBtCancel(t)};break;default:return void console.warn("AG Grid: Unknown button type specified")}var i=gn('<button\n                    type="button"\n                    ref="'+t+'FilterButton"\n                    class="ag-standard-button ag-filter-apply-panel-button"\n                >'+o+"\n                </button>");n.appendChild(i),e.addManagedListener(i,"click",r)}(t)})),this.getGui().appendChild(n)}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=G(this.onBtApply.bind(this),e)},t.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},t.prototype.setModel=function(e){var t=this;return(null!=e?this.setModelIntoUi(e):this.resetUiToDefaults()).then((function(){t.updateUiVisibility(),t.applyModel()}))},t.prototype.onBtCancel=function(e){var t=this,n=this.getModel(),o=function(){t.onUiChanged(!1,"prevent"),t.providedFilterParams.closeOnApply&&t.close(e)};null!=n?this.setModelIntoUi(n).then(o):this.resetUiToDefaults().then(o)},t.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then((function(){return e.onUiChanged()}))},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(){var e=this.getModelFromUi();if(!this.isModelValid(e))return!1;var t=this.appliedModel;return this.appliedModel=e,!this.areModelsEqual(t,e)},t.prototype.isModelValid=function(e){return!0},t.prototype.onBtApply=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=!1),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t}),this.providedFilterParams.closeOnApply&&this.applyActive&&!e&&!t&&this.close(n)},t.prototype.onNewRowsLoaded=function(){},t.prototype.close=function(e){if(this.hidePopup){var t,n=e,o=n&&n.key;"Enter"!==o&&"Space"!==o||(t={keyboardEvent:n}),this.hidePopup(t),this.hidePopup=null}},t.prototype.onUiChanged=function(e,t){if(void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly){var n=this.isModelValid(this.getModelFromUi());tn(this.getRefElement("applyFilterButton"),!n)}e&&!t||"immediately"===t?this.onBtApply(e):(this.applyActive||t)&&"debounce"!==t||this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){null!=e&&(this.hidePopup=e.hidePopup)},t.getDebounceMs=function(e,n){return t.isUseApplyButton(e)?(null!=e.debounceMs&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):null!=e.debounceMs?e.debounceMs:n},t.isUseApplyButton=function(e){return!!e.buttons&&e.buttons.indexOf("apply")>=0},t.prototype.destroy=function(){this.hidePopup=null,e.prototype.destroy.call(this)},t.prototype.translate=function(e){return this.gridOptionsWrapper.getLocaleTextFunc()(e,pr[e])},t.prototype.getCellValue=function(e){var t=this.providedFilterParams,n=t.api,o=t.colDef,r=t.column,i=t.columnApi,s=t.context;return this.providedFilterParams.valueGetter({api:n,colDef:o,column:r,columnApi:i,context:s,data:e.data,getValue:function(t){return e.data[t]},node:e})},yr([K("rowModel")],t.prototype,"rowModel",void 0),yr([K("valueService")],t.prototype,"valueService",void 0),yr([z],t.prototype,"postConstruct",null),t}(tr),wr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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},br=function(e){function t(t,n){var o=e.call(this,n)||this;return o.labelSeparator="",o.labelAlignment="left",o.label="",o.config=t||{},o}return wr(t,e),t.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var e=this.config,t=e.labelSeparator,n=e.label,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(){dn(this.eLabel),"string"===typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(this.eLabel.classList.add("ag-hidden"),Bn(this.eLabel,"presentation")):(this.eLabel.classList.remove("ag-hidden"),Bn(this.eLabel,null))},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this},t.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-"+this.getCompId()+"-label",this.eLabel.id},t.prototype.getLabel=function(){return this.label},t.prototype.setLabel=function(e){return this.label===e||(this.label=e,this.refreshLabel()),this},t.prototype.setLabelAlignment=function(e){var t=this.getGui().classList;return t.toggle("ag-label-align-left","left"===e),t.toggle("ag-label-align-right","right"===e),t.toggle("ag-label-align-top","top"===e),this},t.prototype.setLabelWidth=function(e){return null==this.label||Sn(this.eLabel,e),this},_r([z],t.prototype,"postConstruct",null),t}(tr),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])},e(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(t,n,o){var r=e.call(this,t,n)||this;return r.className=o,r.disabled=!1,r}return Er(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className)},t.prototype.onValueChange=function(e){var n=this;return this.addManagedListener(this,t.EVENT_CHANGED,(function(){return e(n.getValue())})),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return Rn(this.getGui(),e),this},t.prototype.getPreviousValue=function(){return this.previousValue},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,n){return this.value===e||(this.previousValue=this.value,this.value=e,n||this.dispatchEvent({type:t.EVENT_CHANGED})),this},t.prototype.setDisabled=function(e){e=!!e;var t=this.getGui();return tn(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},t.EVENT_CHANGED="valueChange",t}(br),Rr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Or=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},Tr=function(e){function t(t,n,o,r){var i=e.call(this,t,'<div class="ag-picker-field" role="presentation">\n                <div ref="eLabel"></div>\n                <div ref="eWrapper"\n                    class="ag-wrapper ag-picker-field-wrapper"\n                    tabIndex="-1"\n                    aria-expanded="false"\n                    '+(r?'role="'+r+'"':"")+'\n                >\n                    <div ref="eDisplayField" class="ag-picker-field-display"></div>\n                    <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>\n                </div>\n            </div>',n)||this;return i.pickerIcon=o,i.isPickerDisplayed=!1,i.isDestroyingPicker=!1,i.skipClick=!1,i}return Rr(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this);var n=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",n),Yn(this.eWrapper,n);var o=function(){t.skipClick?t.skipClick=!1:t.isDisabled()||(t.pickerComponent=t.showPicker())},r=this.getGui();if(this.addManagedListener(r,"mousedown",(function(e){!t.skipClick&&t.pickerComponent&&t.pickerComponent.isAlive()&&fn(t.pickerComponent.getGui())&&r.contains(e.target)&&(t.skipClick=!0)})),this.addManagedListener(r,"keydown",(function(e){switch(e.key){case dr.UP:case dr.DOWN:case dr.ENTER:case dr.SPACE:o();case dr.ESCAPE:t.isPickerDisplayed&&e.preventDefault()}})),this.addManagedListener(this.eWrapper,"click",o),this.addManagedListener(this.eLabel,"click",o),this.pickerIcon){var i=Ao(this.pickerIcon,this.gridOptionsWrapper);i&&this.eIcon.appendChild(i)}},t.prototype.refreshLabel=function(){r(this.getLabel())?zn(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},t.prototype.setAriaLabel=function(e){return Un(this.eWrapper,e),this},t.prototype.setInputWidth=function(e){return Sn(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},Or([nr("eLabel")],t.prototype,"eLabel",void 0),Or([nr("eWrapper")],t.prototype,"eWrapper",void 0),Or([nr("eDisplayField")],t.prototype,"eDisplayField",void 0),Or([nr("eIcon")],t.prototype,"eIcon",void 0),t}(Sr),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])},e(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)}}(),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},Dr=function(e){function t(t){void 0===t&&(t="default");var n=e.call(this,'<div class="ag-list ag-'+t+'-list" role="listbox"></div>')||this;return n.cssIdentifier=t,n.options=[],n.itemEls=[],n}return Pr(t,e),t.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){var t=e.key;switch(t){case dr.ENTER:if(this.highlightedEl){var n=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(n)}else this.setValue(this.getValue());break;case dr.DOWN:case dr.UP:var o=t===dr.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=Ke(e.text||t);return this.options.push({value:t,text:n}),this.renderOption(t,n),this.updateIndices(),this},t.prototype.updateIndices=function(){var e=this.getGui().querySelectorAll(".ag-list-item");e.forEach((function(t,n){$n(t,n+1),Jn(t,e.length)}))},t.prototype.renderOption=function(e,t){var n=this,o=document.createElement("div");Bn(o,"option"),o.classList.add("ag-list-item","ag-"+this.cssIdentifier+"-list-item"),o.innerHTML="<span>"+t+"</span>",o.tabIndex=-1,this.itemEls.push(o),this.addManagedListener(o,"mouseover",(function(){return n.highlightItem(o)})),this.addManagedListener(o,"mouseleave",(function(){return n.clearHighlighted()})),this.addManagedListener(o,"click",(function(){return n.setValue(e)})),this.getGui().appendChild(o)},t.prototype.setValue=function(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(),this;var n=this.options.findIndex((function(t){return t.value===e}));if(-1!==n){var 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=this.options.findIndex((function(t){return t.value===e.value}));-1!==t&&this.highlightItem(this.itemEls[t])},t.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},t.prototype.highlightItem=function(e){e.offsetParent&&(this.clearHighlighted(),this.highlightedEl=e,this.highlightedEl.classList.add(t.ACTIVE_CLASS),lo(this.highlightedEl,!0),this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(this.highlightedEl.classList.remove(t.ACTIVE_CLASS),lo(this.highlightedEl,!1),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:Sr.EVENT_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED="selectedItem",t.ACTIVE_CLASS="ag-active-item",Ar([z],t.prototype,"init",null),t}(tr),xr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),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},Mr=function(e){function t(t){return e.call(this,t,"ag-select","smallDown","listbox")||this}return xr(t,e),t.prototype.init=function(){var e=this;this.listComponent=this.createBean(new Dr("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,Dr.EVENT_ITEM_SELECTED,(function(){e.hideList&&e.hideList()})),this.listComponent.addManagedListener(this.listComponent,Sr.EVENT_CHANGED,(function(){e.setValue(e.listComponent.getValue(),!1,!0),e.hideList&&e.hideList()}))},t.prototype.showPicker=function(){var e=this,t=this.listComponent.getGui(),n=this.gridOptionsWrapper.getDocument(),o=this.addManagedListener(n.body,"wheel",(function(n){!t.contains(n.target)&&e.hideList&&e.hideList()})),r=this.addManagedListener(t,"focusout",(function(n){!t.contains(n.relatedTarget)&&e.hideList&&e.hideList()})),i=this.gridOptionsWrapper.getLocaleTextFunc(),s=this.popupService.addPopup({modal:!0,eChild:t,closeOnEsc:!0,closedCallback:function(){e.hideList=null,e.isPickerDisplayed=!1,r(),o(),e.isAlive()&&(Xn(e.eWrapper,!1),e.getFocusableElement().focus())},ariaLabel:i("ariaLabelSelectField","Select Field")});return s&&(this.hideList=s.hideFunc),this.isPickerDisplayed=!0,Sn(t,ln(this.eWrapper)),Xn(this.eWrapper,!0),t.style.maxHeight=rn(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){return this.value===t?this:(o||this.listComponent.setValue(t,!0),this.listComponent.getValue()===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),e.prototype.setValue.call(this,t,n)))},t.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),e.prototype.destroy.call(this)},Nr([K("popupService")],t.prototype,"popupService",void 0),Nr([z],t.prototype,"init",null),t}(Tr),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])},e(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)}}(),Lr=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},Fr=function(e){function t(t,n,o,r){void 0===o&&(o="text"),void 0===r&&(r="input");var i=e.call(this,t,'\n            <div role="presentation">\n                <div ref="eLabel" class="ag-input-field-label"></div>\n                <div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">\n                    <'+r+' ref="eInput" class="ag-input-field-input"></'+r+">\n                </div>\n            </div>",n)||this;return i.inputType=o,i.displayFieldTag=r,i}return Ir(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add(this.className+"-label"),this.eWrapper.classList.add(this.className+"-input-wrapper"),this.eInput.classList.add(this.className+"-input"),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||"ag-"+this.getCompId()+"-input";var t=this.config,n=t.width,o=t.value;null!=n&&this.setWidth(n),null!=o&&this.setValue(o),this.addInputListeners()},t.prototype.refreshLabel=function(){r(this.getLabel())?zn(this.eInput,this.getLabelId()):this.eInput.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",(function(t){return e.setValue(t.target.value)}))},t.prototype.setInputType=function(){"input"===this.displayFieldTag&&this.eInput.setAttribute("type",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return Sn(this.eWrapper,e),this},t.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},t.prototype.getFocusableElement=function(){return this.eInput},t.prototype.setMaxLength=function(e){return this.eInput.maxLength=e,this},t.prototype.setInputPlaceholder=function(e){return Mn(this.eInput,"placeholder",e),this},t.prototype.setInputAriaLabel=function(e){return Un(this.eInput,e),this},t.prototype.setDisabled=function(t){return tn(this.eInput,t),e.prototype.setDisabled.call(this,t)},Lr([nr("eLabel")],t.prototype,"eLabel",void 0),Lr([nr("eWrapper")],t.prototype,"eWrapper",void 0),Lr([nr("eInput")],t.prototype,"eInput",void 0),t}(Sr),kr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Gr=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"}(rr||(rr={}));var Hr,Br=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kr(t,e),t.prototype.getNumberOfInputs=function(e){var n=this.optionsFactory.getCustomOption(e);if(n){var o=n.numberOfInputs;return null!=o?o:1}var r=[t.EMPTY,t.NOT_BLANK,t.BLANK];return e&&r.indexOf(e)>=0?0:e===t.IN_RANGE?2:1},t.prototype.onFloatingFilterChanged=function(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){this.eType1.setValue(e),this.eType2.setValue(this.optionsFactory.getDefaultOption()),(this.isDefaultOperator("AND")?this.eJoinOperatorAnd:this.eJoinOperatorOr).setValue(!0)},t.prototype.getModelFromUi=function(){return this.isConditionUiComplete(rr.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(rr.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(rr.One),condition2:this.createCondition(rr.Two)}:this.createCondition(rr.One):null},t.prototype.getConditionTypes=function(){return[this.eType1.getValue(),this.eType2.getValue()]},t.prototype.getJoinOperator=function(){return!0===this.eJoinOperatorOr.getValue()?"OR":"AND"},t.prototype.areModelsEqual=function(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var n,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,rr.One),this.setConditionIntoUi(t.condition2,rr.Two)}else{var o=e;this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND")),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR")),this.eType1.setValue(o.type),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.setConditionIntoUi(o,rr.One),this.setConditionIntoUi(null,rr.Two)}return zo.resolve()},t.prototype.doesFilterPass=function(e){var t=this,n=this.getModel();if(null==n)return!0;var o=n.operator,r=[];if(o){var i=n;r.push(i.condition1,i.condition2)}else r.push(n);return r[o&&"OR"===o?"some":"every"]((function(n){return t.individualConditionPasses(e,n)}))},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.optionsFactory=new cr,this.optionsFactory.init(t,this.getDefaultFilterOptions()),this.allowTwoConditions=!t.suppressAndOrCondition,this.alwaysShowBothConditions=!!t.alwaysShowBothConditions,this.defaultJoinOperator=this.getDefaultJoinOperator(t.defaultJoinOperator),this.putOptionsIntoDropdown(),this.addChangedListeners()},t.prototype.getDefaultJoinOperator=function(e){return me(["AND","OR"],e)?e:"AND"},t.prototype.putOptionsIntoDropdown=function(){var e=this,t=this.optionsFactory.getFilterOptions(),n=[this.eType1,this.eType2];t.forEach((function(t){var o="string"===typeof t?e.createBoilerplateListOption(t):e.createCustomListOption(t);n.forEach((function(e){return e.addOption(o)}))})),n.forEach((function(e){return e.setDisabled(t.length<=1)}))},t.prototype.createBoilerplateListOption=function(e){return{value:e,text:this.translate(e)}},t.prototype.createCustomListOption=function(e){var t=e.displayKey,n=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:n?this.gridOptionsWrapper.getLocaleTextFunc()(n.displayKey,n.displayName):this.translate(t)}},t.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},t.prototype.createBodyTemplate=function(){return'\n            <ag-select class="ag-filter-select" ref="eOptions1"></ag-select>\n            '+this.createValueTemplate(rr.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(rr.Two)},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this,t=[[this.eType1],[this.eType2,this.eJoinOperatorPanel,this.eJoinOperatorAnd,this.eJoinOperatorOr]],n=[this.eCondition1Body,this.eCondition2Body];t.forEach((function(t,n){var o=e.isConditionVisible(n),r=e.isConditionDisabled(n);t.forEach((function(e){e instanceof Fr||e instanceof Mr?(e.setDisabled(r),e.setDisplayed(o)):(tn(e,r),$t(e,o))}))})),n.forEach((function(t,n){$t(t,e.isConditionBodyVisible(n))})),this.forEachInput((function(t,n,o,r){e.setElementDisplayed(t,n<r),e.setElementDisabled(t,e.isConditionDisabled(o))})),this.resetPlaceholder()},t.prototype.afterGuiAttached=function(t){if(e.prototype.afterGuiAttached.call(this,t),this.resetPlaceholder(),!t||!t.suppressFocus&&!this.isReadOnly()){var n=this.getInputs()[0][0];if(!n)return;n instanceof Fr&&n.getInputElement().focus()}},t.prototype.resetPlaceholder=function(){var e=this,t=this.gridOptionsWrapper.getLocaleTextFunc();this.forEachInput((function(n,o,r,i){if(n instanceof Fr){var s=0===o&&i>1?"inRangeStart":0===o?"filterOoo":"inRangeEnd",a=0===o&&i>1?t("ariaFilterFromValue","Filter from value"):0===o?t("ariaFilterValue","Filter Value"):t("ariaFilterToValue","Filter to Value");n.setInputPlaceholder(e.translate(s)),n.setInputAriaLabel(a)}}))},t.prototype.setElementValue=function(e,t,n){e instanceof Fr&&e.setValue(null!=t?String(t):null,n)},t.prototype.setElementDisplayed=function(e,t){e instanceof tr&&$t(e.getGui(),t)},t.prototype.setElementDisabled=function(e,t){e instanceof tr&&tn(e.getGui(),t)},t.prototype.attachElementOnChange=function(e,t){e instanceof Fr&&e.onValueChange(t)},t.prototype.forEachInput=function(e){var t=this,n=this.getInputs();this.getConditionTypes().forEach((function(o,r){for(var i=t.getNumberOfInputs(o),s=0;s<n[r].length;s++){var a=n[r][s];null!=a&&e(a,s,r,i)}}))},t.prototype.isConditionVisible=function(e){return 0===e||!!this.allowTwoConditions&&(this.isReadOnly()?this.isConditionUiComplete(e):!!this.alwaysShowBothConditions||this.isConditionUiComplete(e-1))},t.prototype.isConditionDisabled=function(e){return!!this.isReadOnly()||(!this.isConditionVisible(e)||0!==e&&!this.isConditionUiComplete(e-1))},t.prototype.isConditionBodyVisible=function(e){if(!this.isConditionVisible(e))return!1;var t=this.getConditionTypes()[e];return this.getNumberOfInputs(t)>0},t.prototype.isConditionUiComplete=function(e){return this.getConditionTypes()[e]!==t.EMPTY&&!this.getValues(e).some((function(e){return null==e}))},t.prototype.resetUiToDefaults=function(e){var t=this,n=this.gridOptionsWrapper.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator"),o="ag-simple-filter-and-or-"+this.getCompId(),r=this.optionsFactory.getDefaultOption();return this.eType1.setValue(r,e).setAriaLabel(n).setDisabled(this.isReadOnly()),this.eType2.setValue(this.optionsFactory.getDefaultOption(),e).setAriaLabel(n).setDisabled(this.isReadOnly()),this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND"),e).setName(o).setLabel(this.translate("andCondition")).setDisabled(this.isReadOnly()),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR"),e).setName(o).setLabel(this.translate("orCondition")).setDisabled(this.isReadOnly()),this.forEachInput((function(n){t.setElementValue(n,null,e),t.setElementDisabled(n,t.isReadOnly())})),this.resetPlaceholder(),zo.resolve()},t.prototype.setConditionIntoUi=function(e,t){var n=this,o=this.mapValuesFromModel(e);this.forEachInput((function(e,r,i,s){i===t&&n.setElementValue(e,null!=o[r]?o[r]:null)}))},t.prototype.setValueFromFloatingFilter=function(e){var t=this;this.forEachInput((function(n,o,r,i){t.setElementValue(n,0===o&&0===r?e:null)}))},t.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},t.prototype.addChangedListeners=function(){var e=this;if(!this.isReadOnly()){var t=function(){return e.onUiChanged()};this.eType1.onValueChange(t),this.eType2.onValueChange(t),this.eJoinOperatorOr.onValueChange(t),this.eJoinOperatorAnd.onValueChange(t),this.forEachInput((function(n){e.attachElementOnChange(n,t)}))}},t.prototype.individualConditionPasses=function(e,t){var n=this.getCellValue(e.node),o=this.mapValuesFromModel(t),r=this.optionsFactory.getCustomOption(t.type),i=this.evaluateCustomFilter(r,o,n);return null!=i?i:null==n?this.evaluateNullValue(t.type):this.evaluateNonNullValue(o,n,t,e)},t.prototype.evaluateCustomFilter=function(e,t,n){if(null!=e){var o=e.predicate;return null==o||t.some((function(e){return null==e}))?void 0:o(t,n)}},t.prototype.isBlank=function(e){return null==e||"string"===typeof e&&0===e.trim().length},t.EMPTY="empty",t.BLANK="blank",t.NOT_BLANK="notBlank",t.EQUALS="equals",t.NOT_EQUAL="notEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.IN_RANGE="inRange",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.STARTS_WITH="startsWith",t.ENDS_WITH="endsWith",Gr([nr("eOptions1")],t.prototype,"eType1",void 0),Gr([nr("eOptions2")],t.prototype,"eType2",void 0),Gr([nr("eJoinOperatorPanel")],t.prototype,"eJoinOperatorPanel",void 0),Gr([nr("eJoinOperatorAnd")],t.prototype,"eJoinOperatorAnd",void 0),Gr([nr("eJoinOperatorOr")],t.prototype,"eJoinOperatorOr",void 0),Gr([nr("eCondition1Body")],t.prototype,"eCondition1Body",void 0),Gr([nr("eCondition2Body")],t.prototype,"eCondition2Body",void 0),t}(Cr),Vr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Wr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vr(t,e),t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.scalarFilterParams=t},t.prototype.evaluateNullValue=function(e){switch(e){case t.EQUALS:case t.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case t.GREATER_THAN:case t.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case t.LESS_THAN:case t.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case t.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case t.BLANK:return!0;case t.NOT_BLANK:return!1}return!1},t.prototype.evaluateNonNullValue=function(e,n,o){var r=this.comparator(),i=null!=e[0]?r(e[0],n):0;switch(o.type){case t.EQUALS:return 0===i;case t.NOT_EQUAL:return 0!==i;case t.GREATER_THAN:return i>0;case t.GREATER_THAN_OR_EQUAL:return i>=0;case t.LESS_THAN:return i<0;case t.LESS_THAN_OR_EQUAL:return i<=0;case t.IN_RANGE:var s=r(e[1],n);return this.scalarFilterParams.inRangeInclusive?i>=0&&s<=0:i>0&&s<0;case t.BLANK:return this.isBlank(n);case t.NOT_BLANK:return!this.isBlank(n);default:return console.warn('AG Grid: Unexpected type of filter "'+o.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},t}(Br),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])},e(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(){return Ur=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},Ur.apply(this,arguments)},zr=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},Zr=1/0,Yr=function(e){function t(){var t=e.call(this,"dateFilter")||this;return t.minValidYear=1e3,t.maxValidYear=Zr,t}return jr(t,e),t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.dateCondition1FromComp.afterGuiAttached(t)},t.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.dateFrom,o=t.dateTo,r=t.type;return[n&&Co(n)||null,o&&Co(o)||null].slice(0,this.getNumberOfInputs(r))},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,t){return null==t||t<e?-1:t>e?1:0},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.dateFilterParams=t;var n=function(e,n){if(null!=t[e]){if(!isNaN(t[e]))return null==t[e]?n:Number(t[e]);console.warn("AG Grid: DateFilter "+e+" is not a number")}return n};this.minValidYear=n("minValidYear",1e3),this.maxValidYear=n("maxValidYear",Zr),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),this.createDateComponents()},t.prototype.createDateComponents=function(){var e=this,t=function(t){return new lr(e.getContext(),e.userComponentFactory,{onDateChanged:function(){return e.onUiChanged()},filterParams:e.dateFilterParams},t)};this.dateCondition1FromComp=t(this.eCondition1PanelFrom),this.dateCondition1ToComp=t(this.eCondition1PanelTo),this.dateCondition2FromComp=t(this.eCondition2PanelFrom),this.dateCondition2ToComp=t(this.eCondition2PanelTo),this.addDestroyFunc((function(){e.forEachInput((function(e){return e.destroy()}))}))},t.prototype.setElementValue=function(e,t,n){e.setDate(t)},t.prototype.setElementDisplayed=function(e,t){e.setDisplayed(t)},t.prototype.setElementDisabled=function(e,t){e.setDisabled(t)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===rr.One?"1":"2";return'\n            <div class="ag-filter-body" ref="eCondition'+t+'Body">\n                <div class="ag-filter-from ag-filter-date-from" ref="eCondition'+t+'PanelFrom"></div>\n                <div class="ag-filter-to ag-filter-date-to" ref="eCondition'+t+'PanelTo"></div>\n            </div>'},t.prototype.isConditionUiComplete=function(t){var n=this;if(!e.prototype.isConditionUiComplete.call(this,t))return!1;var o=!0;return this.forEachInput((function(e,r,i,s){var a;i!==t||!o||r>=s||(o=o&&(null!=(a=e.getDate())&&a.getUTCFullYear()>=n.minValidYear&&a.getUTCFullYear()<=n.maxValidYear))})),o},t.prototype.areSimpleModelsEqual=function(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type},t.prototype.getFilterType=function(){return"date"},t.prototype.createCondition=function(e){var t=this.getConditionTypes()[e],n={},o=this.getValues(e);return o.length>0&&(n.dateFrom=yo(o[0])),o.length>1&&(n.dateTo=yo(o[1])),Ur({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:t},n)},t.prototype.resetPlaceholder=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),n=e("ariaFilterValue","Filter Value");this.forEachInput((function(e){e.setInputPlaceholder(t),e.setInputAriaLabel(n)}))},t.prototype.getInputs=function(){return[[this.dateCondition1FromComp,this.dateCondition1ToComp],[this.dateCondition2FromComp,this.dateCondition2ToComp]]},t.prototype.getValues=function(e){var t=[];return this.forEachInput((function(n,o,r,i){e===r&&o<i&&t.push(n.getDate())})),t},t.DEFAULT_FILTER_OPTIONS=[Wr.EQUALS,Wr.GREATER_THAN,Wr.LESS_THAN,Wr.NOT_EQUAL,Wr.IN_RANGE,Wr.BLANK,Wr.NOT_BLANK],zr([nr("eCondition1PanelFrom")],t.prototype,"eCondition1PanelFrom",void 0),zr([nr("eCondition1PanelTo")],t.prototype,"eCondition1PanelTo",void 0),zr([nr("eCondition2PanelFrom")],t.prototype,"eCondition2PanelFrom",void 0),zr([nr("eCondition2PanelTo")],t.prototype,"eCondition2PanelTo",void 0),zr([K("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(Wr),Kr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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){function t(){return null!==e&&e.apply(this,arguments)||this}return Kr(t,e),t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.getTextFromModel=function(e){if(!e)return null;if(null!=e.operator){var t=e,n=t||{},o=n.condition1,r=n.condition2,i=this.optionsFactory.getCustomOption(o.type),s=this.optionsFactory.getCustomOption(r.type);return[this.conditionToString(o,i),t.operator,this.conditionToString(r,s)].join(" ")}var a=e,l=this.optionsFactory.getCustomOption(a.type),u=l||{},c=u.displayKey,p=u.displayName,d=u.numberOfInputs;return c&&p&&0===d?(this.gridOptionsWrapper.getLocaleTextFunc()(c,p),p):this.conditionToString(a,l)},t.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter},t.prototype.getLastType=function(){return this.lastType},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setLastTypeFromModel=function(e){if(e){var t;if(e.operator)t=e.condition1;else t=e;this.lastType=t.type}else this.lastType=this.optionsFactory.getDefaultOption()},t.prototype.canWeEditAfterModelFromParentFilter=function(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;var t=e;return this.isTypeEditable(t.type)},t.prototype.init=function(e){this.optionsFactory=new cr,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption(),this.readOnly=!!e.filterParams.readOnly;var t=this.isTypeEditable(this.lastType);this.setEditable(t)},t.prototype.doesFilterHaveSingleInput=function(e){var t=(this.optionsFactory.getCustomOption(e)||{}).numberOfInputs;return null==t||1==t},t.prototype.isTypeEditable=function(e){var t=[Br.IN_RANGE,Br.EMPTY,Br.BLANK,Br.NOT_BLANK];return!!e&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(e)&&t.indexOf(e)<0},t}(tr),Xr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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},Jr=function(e){function t(){return e.call(this,'\n            <div class="ag-floating-filter-input" role="presentation">\n                <ag-input-text-field ref="eReadOnlyText"></ag-input-text-field>\n                <div ref="eDateWrapper" style="display: flex;"></div>\n            </div>')||this}return Xr(t,e),t.prototype.getDefaultFilterOptions=function(){return Yr.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e,t){var n=e.type,o=(t||{}).numberOfInputs,r=n==Br.IN_RANGE||2===o,i=Co(e.dateFrom),s=Co(e.dateTo);return r?yo(i,!1)+"-"+yo(s,!1):null!=i?""+yo(i,!1):""+n},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.createDateComponent();var n=this.gridOptionsWrapper.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(n("ariaDateFilterInput","Date Filter Input"))},t.prototype.setEditable=function(e){$t(this.eDateWrapper,e),$t(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(t,n){if(!this.isEventFromFloatingFilter(n)){e.prototype.setLastTypeFromModel.call(this,t);var o=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(t);if(this.setEditable(o),o){if(t){var r=t;this.dateComp.setDate(Co(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=yo(this.dateComp.getDate());this.params.parentFilterInstance((function(n){if(n){var o=Co(t);n.onFloatingFilterChanged(e.getLastType()||null,o)}}))},t.prototype.createDateComponent=function(){var e=this,t=Cr.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n={onDateChanged:G(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new lr(this.getContext(),this.userComponentFactory,n,this.eDateWrapper),this.addDestroyFunc((function(){return e.dateComp.destroy()}))},Qr([K("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Qr([nr("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),Qr([nr("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(qr),$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])},e(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)}}(),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},ti=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 $r(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var t=this,n=this.gridOptionsWrapper.getDocument(),o=this.eDateInput.getInputElement();this.shouldUseBrowserDatePicker(e)&&(o.type="date"),this.addManagedListener(o,"mousedown",(function(){t.eDateInput.isDisabled()||o.focus()})),this.addManagedListener(o,"input",(function(o){o.target===n.activeElement&&(t.eDateInput.isDisabled()||e.onDateChanged())}));var r=e.filterParams||{},i=r.minValidYear,s=r.maxValidYear;i&&(o.min=i+"-01-01"),s&&(o.max=s+"-12-31")},t.prototype.getDate=function(){return Co(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(yo(e,!1))},t.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},t.prototype.setDisabled=function(e){this.eDateInput.setDisabled(e)},t.prototype.afterGuiAttached=function(e){e&&e.suppressFocus||this.eDateInput.getInputElement().focus()},t.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&null!=e.filterParams.browserDatePicker?e.filterParams.browserDatePicker:Bt()||Vt()},ei([nr("eDateInput")],t.prototype,"eDateInput",void 0),t}(tr),ni=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),oi=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},ri=function(e){function t(){return e.call(this,"numberFilter")||this}return ni(t,e),t.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.filter,o=t.filterTo,r=t.type;return[null==n?null:n,null==o?null:o].slice(0,this.getNumberOfInputs(r))},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.comparator=function(){return function(e,t){return e===t?0:e<t?1:-1}},t.prototype.setParams=function(t){this.numberFilterParams=t;var n=this.getAllowedCharPattern();if(n){var o={allowedCharPattern:n};this.resetTemplate({"eValue-index0-1":o,"eValue-index1-1":o,"eValue-index0-2":o,"eValue-index1-2":o})}e.prototype.setParams.call(this,t)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===rr.One?"1":"2",n=this.getAllowedCharPattern()?"ag-input-text-field":"ag-input-number-field";return'\n            <div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n                <'+n+' class="ag-filter-from ag-filter-filter" ref="eValue-index0-'+t+'"></'+n+">\n                <"+n+' class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+t+'"></'+n+">\n            </div>"},t.prototype.getValues=function(e){var t=this,n=[];return this.forEachInput((function(o,r,i,s){e===i&&r<s&&n.push(t.stringToFloat(o.getValue()))})),n},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},t.prototype.getFilterType=function(){return"number"},t.prototype.stringToFloat=function(e){if("number"===typeof e)return e;var t=o(e);return null!=t&&""===t.trim()&&(t=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(t):null==t||"-"===t.trim()?null:parseFloat(t)},t.prototype.createCondition=function(e){var t=this.getConditionTypes()[e],n={filterType:this.getFilterType(),type:t},o=this.getValues(e);return o.length>0&&(n.filter=o[0]),o.length>1&&(n.filterTo=o[1]),n},t.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getAllowedCharPattern=function(){var e=(this.numberFilterParams||{}).allowedCharPattern;return e||(Bt()||Gt()?null:"\\d\\-\\.")},t.DEFAULT_FILTER_OPTIONS=[Wr.EQUALS,Wr.NOT_EQUAL,Wr.LESS_THAN,Wr.LESS_THAN_OR_EQUAL,Wr.GREATER_THAN,Wr.GREATER_THAN_OR_EQUAL,Wr.IN_RANGE,Wr.BLANK,Wr.NOT_BLANK],oi([nr("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),oi([nr("eValue-index1-1")],t.prototype,"eValueTo1",void 0),oi([nr("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),oi([nr("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}(Wr),ii=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),si=function(){return si=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},si.apply(this,arguments)},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 t(){return e.call(this,"textFilter")||this}return ii(t,e),t.trimInput=function(e){var t=e&&e.trim();return""===t?e:t},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.setParams=function(n){e.prototype.setParams.call(this,n),this.textFilterParams=n,this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER)},t.prototype.getTextMatcher=function(){var e=this.textFilterParams.textCustomComparator;return e?(Wo.doOnce((function(){return console.warn("AG Grid - textCustomComparator is deprecated, use textMatcher instead.")}),"textCustomComparator.deprecated"),function(t){var n=t.filterOption,o=t.value,r=t.filterText;return e(n,o,r)}):this.textFilterParams.textMatcher||t.DEFAULT_MATCHER},t.prototype.createCondition=function(e){var t=this.getConditionTypes()[e],n={filterType:this.getFilterType(),type:t},o=this.getValues(e);return o.length>0&&(n.filter=o[0]),o.length>1&&(n.filterTo=o[1]),n},t.prototype.getFilterType=function(){return"text"},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},t.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getValues=function(e){var n=this,r=[];return this.forEachInput((function(i,s,a,l){if(e===a&&s<l){var u=o(i.getValue()),c=(n.textFilterParams.trimInput?t.trimInput(u):u)||null;r.push(c),i.setValue(c,!0)}})),r},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===rr.One?"1":"2";return'\n            <div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n                <ag-input-text-field class=".ag-filter-from ag-filter-filter" ref="eValue-index0-'+t+'"></ag-input-text-field>\n                <ag-input-text-field class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+t+'"></ag-input-text-field>\n            </div>'},t.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.filter,o=t.filterTo,r=t.type;return[n||null,o||null].slice(0,this.getNumberOfInputs(r))},t.prototype.evaluateNullValue=function(e){var t=[Br.NOT_EQUAL,Br.NOT_CONTAINS,Br.BLANK];return!!e&&t.indexOf(e)>=0},t.prototype.evaluateNonNullValue=function(e,t,n,o){var r=this,i=e.map((function(e){return r.formatter(e)}))||[],s=this.formatter(t),a=this.textFilterParams,l=a.api,u=a.colDef,c=a.column,p=a.columnApi,d=a.context,h=a.textFormatter;if(n.type===Br.BLANK)return this.isBlank(t);if(n.type===Br.NOT_BLANK)return!this.isBlank(t);var f={api:l,colDef:u,column:c,columnApi:p,context:d,node:o.node,data:o.data,filterOption:n.type,value:s,textFormatter:h};return i.some((function(e){return r.matcher(si(si({},f),{filterText:e}))}))},t.DEFAULT_FILTER_OPTIONS=[Br.CONTAINS,Br.NOT_CONTAINS,Br.EQUALS,Br.NOT_EQUAL,Br.STARTS_WITH,Br.ENDS_WITH,Br.BLANK,Br.NOT_BLANK],t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},t.DEFAULT_MATCHER=function(e){var n=e.filterOption,o=e.value,r=e.filterText;if(null==r)return!1;switch(n){case t.CONTAINS:return o.indexOf(r)>=0;case t.NOT_CONTAINS:return o.indexOf(r)<0;case t.EQUALS:return o===r;case t.NOT_EQUAL:return o!=r;case t.STARTS_WITH:return 0===o.indexOf(r);case t.ENDS_WITH:var i=o.lastIndexOf(r);return i>=0&&i===o.length-r.length;default:return!1}},ai([nr("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),ai([nr("eValue-index1-1")],t.prototype,"eValueTo1",void 0),ai([nr("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),ai([nr("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}(Br),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])},e(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 null!==e&&e.apply(this,arguments)||this}return ui(t,e),t.prototype.postConstruct=function(){this.resetTemplate()},t.prototype.resetTemplate=function(e){this.setTemplate('\n            <div class="ag-floating-filter-input" role="presentation">\n                <ag-input-text-field ref="eFloatingFilterInput"></ag-input-text-field>\n            </div>\n        ',e)},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,t){this.isEventFromFloatingFilter(t)||(this.setLastTypeFromModel(e),this.eFloatingFilterInput.setValue(this.getTextFromModel(e)),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)))},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.applyActive=Cr.isUseApplyButton(this.params.filterParams);var n=this.params.filterParams.allowedCharPattern;if(null!=n&&this.resetTemplate({eFloatingFilterInput:{allowedCharPattern:n}}),!this.isReadOnly()){var o=Cr.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),r=G(this.syncUpWithParentFilter.bind(this),o),i=this.eFloatingFilterInput.getGui();this.addManagedListener(i,"input",r),this.addManagedListener(i,"keypress",r),this.addManagedListener(i,"keydown",r)}var s=t.column.getDefinition();(this.isReadOnly()||s.filterParams&&s.filterParams.filterOptions&&1===s.filterParams.filterOptions.length&&"inRange"===s.filterParams.filterOptions[0])&&this.eFloatingFilterInput.setDisabled(!0);var a=this.columnModel.getDisplayNameForColumn(t.column,"header",!0),l=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterInput.setInputAriaLabel(a+" "+l("ariaFilterInput","Filter Input"))},t.prototype.syncUpWithParentFilter=function(e){var t=this,n=e.key===dr.ENTER;if(!this.applyActive||n){var o=this.eFloatingFilterInput.getValue();this.params.filterParams.trimInput&&(o=li.trimInput(o),this.eFloatingFilterInput.setValue(o,!0)),this.params.parentFilterInstance((function(e){e&&e.onFloatingFilterChanged(t.getLastType()||null,o||null)}))}},t.prototype.conditionToString=function(e,t){var n=(t||{}).numberOfInputs;return e.type==Br.IN_RANGE||2===n?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t.prototype.setEditable=function(e){this.eFloatingFilterInput.setDisabled(!e)},ci([K("columnModel")],t.prototype,"columnModel",void 0),ci([nr("eFloatingFilterInput")],t.prototype,"eFloatingFilterInput",void 0),ci([z],t.prototype,"postConstruct",null),t}(qr),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])},e(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){function t(){return null!==e&&e.apply(this,arguments)||this}return di(t,e),t.prototype.getDefaultFilterOptions=function(){return ri.DEFAULT_FILTER_OPTIONS},t}(pi),fi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),gi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fi(t,e),t.prototype.getDefaultFilterOptions=function(){return li.DEFAULT_FILTER_OPTIONS},t}(pi),mi=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new ne,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)!Lo(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}(),vi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),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},Ci=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return vi(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()==this.currentTemplate&&(this.workOutShowMenu()==this.currentShowMenu&&(this.workOutSort()==this.currentSort&&(this.setDisplayName(e),!0)))},t.prototype.workOutTemplate=function(){var e=le(this.params.template,t.TEMPLATE);return e=e&&e.trim?e.trim():e},t.prototype.init=function(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(e.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(e)},t.prototype.setDisplayName=function(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;var t=Ke(this.currentDisplayName);this.eText&&(this.eText.innerHTML=t)}},t.prototype.setupIcons=function(e){this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,t,n){if(null!=t){var o=Ao(e,this.gridOptionsWrapper,n);o&&t.appendChild(o)}},t.prototype.setupTap=function(){var e=this,t=this.gridOptionsWrapper;if(!t.isSuppressTouch()){var n=new mi(this.getGui(),!0),o=t.isSuppressMenuHide(),i=o&&r(this.eMenu),s=i?new mi(this.eMenu,!0):n;if(this.params.enableMenu){var a=i?"EVENT_TAP":"EVENT_LONG_TAP";this.addManagedListener(s,mi[a],(function(n){t.getApi().showColumnMenuAfterMouseClick(e.params.column,n.touchStart)}))}if(this.params.enableSorting){this.addManagedListener(n,mi.EVENT_TAP,(function(t){var n=t.touchStart.target;o&&e.eMenu.contains(n)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")}))}this.addDestroyFunc((function(){return n.destroy()})),i&&this.addDestroyFunc((function(){return s.destroy()}))}},t.prototype.workOutShowMenu=function(){var e=!this.gridOptionsWrapper.isSuppressMenuHide(),t=Wt()&&e;return this.params.enableMenu&&!t},t.prototype.setMenu=function(){var e=this;if(this.eMenu)if(this.currentShowMenu=this.workOutShowMenu(),this.currentShowMenu){var t=this.gridOptionsWrapper.isSuppressMenuHide();this.addManagedListener(this.eMenu,"click",(function(){return e.showMenu(e.eMenu)})),this.eMenu.classList.toggle("ag-header-menu-always-show",t)}else hn(this.eMenu)},t.prototype.showMenu=function(e){e||(e=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,e,"columnMenu")},t.prototype.removeSortIcons=function(){hn(this.eSortAsc),hn(this.eSortDesc),hn(this.eSortNone),hn(this.eSortOrder)},t.prototype.workOutSort=function(){return this.params.enableSorting},t.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,this.currentSort){var t=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addManagedListener(this.params.column,ae.EVENT_MOVING_CHANGED,(function(){e.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addManagedListener(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.addManagedListener(this.params.column,ae.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.onSortChanged(),this.addManagedListener(this.eventService,Ve.EVENT_SORT_CHANGED,this.setMultiSortOrder.bind(this)),this.setMultiSortOrder()}else this.removeSortIcons()},t.prototype.onSortChanged=function(){if(this.addOrRemoveCssClass("ag-header-cell-sorted-asc",this.params.column.isSortAscending()),this.addOrRemoveCssClass("ag-header-cell-sorted-desc",this.params.column.isSortDescending()),this.addOrRemoveCssClass("ag-header-cell-sorted-none",this.params.column.isSortNone()),this.eSortAsc&&this.eSortAsc.classList.toggle("ag-hidden",!this.params.column.isSortAscending()),this.eSortDesc&&this.eSortDesc.classList.toggle("ag-hidden",!this.params.column.isSortDescending()),this.eSortNone){var e=!this.params.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();this.eSortNone.classList.toggle("ag-hidden",e||!this.params.column.isSortNone())}},t.prototype.setMultiSortOrder=function(){if(this.eSortOrder){var e=this.params.column,t=this.sortController.getColumnsWithSortingOrdered(),n=t.indexOf(e),o=t.length>1,r=e.isSorting()&&o;$t(this.eSortOrder,r),n>=0?this.eSortOrder.innerHTML=(n+1).toString():dn(this.eSortOrder)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,ae.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();this.eFilter.classList.toggle("ag-hidden",!e)},t.TEMPLATE='<div class="ag-cell-label-container" role="presentation">\n            <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>\n            <div ref="eLabel" class="ag-header-cell-label" role="presentation">\n                <span ref="eText" class="ag-header-cell-text"></span>\n                <span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>\n                <span ref="eSortOrder" class="ag-header-icon ag-header-label-icon ag-sort-order" aria-hidden="true"></span>\n                <span ref="eSortAsc" class="ag-header-icon ag-header-label-icon ag-sort-ascending-icon" aria-hidden="true"></span>\n                <span ref="eSortDesc" class="ag-header-icon ag-header-label-icon ag-sort-descending-icon" aria-hidden="true"></span>\n                <span ref="eSortNone" class="ag-header-icon ag-header-label-icon ag-sort-none-icon" aria-hidden="true"></span>\n            </div>\n        </div>',yi([K("sortController")],t.prototype,"sortController",void 0),yi([K("menuFactory")],t.prototype,"menuFactory",void 0),yi([nr("eFilter")],t.prototype,"eFilter",void 0),yi([nr("eSortAsc")],t.prototype,"eSortAsc",void 0),yi([nr("eSortDesc")],t.prototype,"eSortDesc",void 0),yi([nr("eSortNone")],t.prototype,"eSortNone",void 0),yi([nr("eSortOrder")],t.prototype,"eSortOrder",void 0),yi([nr("eMenu")],t.prototype,"eMenu",void 0),yi([nr("eLabel")],t.prototype,"eLabel",void 0),yi([nr("eText")],t.prototype,"eText",void 0),t}(tr),wi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),_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},bi=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return wi(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.checkWarnings=function(){if(this.params.template){D((function(){return console.warn("AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")}),"HeaderGroupComp.templateNotSupported")}},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var t=function(t){if(!Te(t)){var n=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getProvidedColumnGroup(),n,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var n=function(e){Oe(e)};this.addManagedListener(this.eCloseIcon,"dblclick",n),this.addManagedListener(this.eOpenIcon,"dblclick",n),this.addManagedListener(this.getGui(),"dblclick",t),this.updateIconVisibility();var o=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(o,_e.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(o,_e.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,t){var n=new mi(e,!0);this.addManagedListener(n,mi.EVENT_TAP,t),this.addDestroyFunc((function(){return n.destroy()})),this.addManagedListener(e,"click",t)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var e=this.params.columnGroup.isExpanded();$t(this.eOpenIcon,e),$t(this.eCloseIcon,!e)}else $t(this.eOpenIcon,!1),$t(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var n=Ao(e,this.gridOptionsWrapper,null);n&&this.getRefElement(t).appendChild(n)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return $t(this.eOpenIcon,!1),void $t(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){var e=this.params.displayName;if(r(e)){var t=Ke(e);this.getRefElement("agLabel").innerHTML=t}},t.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer" role="presentation">\n            <span ref="agLabel" class="ag-header-group-text" role="presentation"></span>\n            <span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>\n            <span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>\n        </div>',_i([K("columnModel")],t.prototype,"columnModel",void 0),_i([nr("agOpened")],t.prototype,"eOpenIcon",void 0),_i([nr("agClosed")],t.prototype,"eCloseIcon",void 0),t}(tr),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])},e(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)}}(),Si=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ei(t,e),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(t){t.addCssClass("ag-has-popup"),e.prototype.setParentComponent.call(this,t)},t.prototype.destroy=function(){var t=this.parentComponent;t&&t.isAlive()&&t.getGui().classList.remove("ag-has-popup"),e.prototype.destroy.call(this)},t}(tr),Ri=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Oi=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(e){function t(){return e.call(this,t.TEMPLATE)||this}return Ri(t,e),t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),r(e.value)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var t=e.key;(t===dr.LEFT||t===dr.UP||t===dr.RIGHT||t===dr.DOWN||e.shiftKey&&t===dr.ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},t.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},t.TEMPLATE='<div class="ag-large-text" tabindex="0">\n            <ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>\n        </div>',Oi([nr("eTextArea")],t.prototype,"eTextArea",void 0),t}(Si),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])},e(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},Di=function(e){function t(){var t=e.call(this,'<div class="ag-cell-edit-wrapper"><ag-select class="ag-cell-editor" ref="eSelect"></ag-select></div>')||this;return t.startedByEnter=!1,t}return Pi(t,e),t.prototype.init=function(e){var t=this;if(this.focusAfterAttached=e.cellStartedEdit,i(e.values))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=e.eventKey&&e.eventKey===dr.ENTER;var n=!1;e.values.forEach((function(o){var r={value:o},i=t.valueFormatterService.formatValue(e.column,null,null,o),s=null!==i&&void 0!==i;r.text=s?i:o,t.eSelect.addOption(r),n=n||e.value===o})),n?this.eSelect.setValue(e.value,!0):e.values.length&&this.eSelect.setValue(e.values[0],!0),this.gridOptionsWrapper.isFullRowEdit()||this.eSelect.onValueChange((function(){return e.stopEditing()}))}},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&this.eSelect.showPicker()},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},Ai([K("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Ai([nr("eSelect")],t.prototype,"eSelect",void 0),t}(Si),xi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Ni=function(e){function t(){var t=e.call(this)||this;return D((function(){return console.warn('AG Grid: The PopupSelectCellEditor (agPopupSelectCellEditor) is deprecated. Instead use {cellEditor: "agSelectCellEditor", cellEditorPopup: true} ')}),"PopupSelectCellEditor.deprecated"),t}return xi(t,e),t.prototype.isPopup=function(){return!0},t}(Di),Mi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),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},Li=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Mi(t,e),t.prototype.init=function(e){this.params=e;var t,n=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.eventKey===dr.BACKSPACE||e.eventKey===dr.DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.eventKey!==dr.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e)),null!=t&&n.setValue(t,!0),this.addManagedListener(n.getGui(),"keydown",(function(e){var t=e.key;t!==dr.PAGE_UP&&t!==dr.PAGE_DOWN||e.preventDefault()}))},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.eInput;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached){Ht()||t.getFocusableElement().focus();var n=t.getInputElement();if(this.highlightAllOnFocus)n.select();else{var o=t.getValue(),i=r(o)&&o.length||0;i&&n.setSelectionRange(i,i)}}},t.prototype.focusIn=function(){var e=this.eInput,t=e.getFocusableElement(),n=e.getInputElement();t.focus(),n.select()},t.prototype.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>',Ii([nr("eInput")],t.prototype,"eInput",void 0),t}(Si),Fi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),ki=function(e){function t(){var t=e.call(this)||this;return D((function(){return console.warn('AG Grid: The PopupTextCellEditor (agPopupTextCellEditor) is deprecated. Instead use {cellEditor: "agTextCellEditor", cellEditorPopup: true} ')}),"PopupTextCellEditor.deprecated"),t}return Fi(t,e),t.prototype.isPopup=function(){return!0},t}(Li),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])},e(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 t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n}return Gi(t,e),t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,t){var n=Math.abs(t),o=e.formatValue(n),i=r(o)?o:n,s=t>=0;this.eDelta.innerHTML=s?"\u2191"+i:"\u2193"+i,this.eDelta.classList.toggle("ag-value-change-delta-up",s),this.eDelta.classList.toggle("ag-value-change-delta-down",!s)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var t=this.refreshCount;window.setTimeout((function(){t===e.refreshCount&&e.hideDeltaValue()}),2e3)},t.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),dn(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t===this.lastValue)return!1;if(r(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:r(e.value)?this.eValue.innerHTML=t:dn(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering())return!1;if("number"===typeof t&&"number"===typeof this.lastValue){var n=t-this.lastValue;this.showDelta(e,n)}return this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=t,!0},t.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',Hi([K("filterManager")],t.prototype,"filterManager",void 0),t}(tr),Vi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Wi=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(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 Vi(t,e),t.prototype.init=function(e){this.refresh(e)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var t=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=gn('<span class="ag-value-slide-previous ag-value-slide-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){t===e.refreshCount&&e.ePrevious.classList.add("ag-value-slide-out-end")}),50),window.setTimeout((function(){t===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)}),3e3)},t.prototype.refresh=function(e){var t=e.value;return i(t)&&(t=""),t!==this.lastValue&&(!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=t,r(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:r(e.value)?this.eCurrent.innerHTML=t:dn(this.eCurrent),!0))},t.TEMPLATE='<span>\n            <span class="ag-value-slide-current"></span>\n        </span>',Wi([K("filterManager")],t.prototype,"filterManager",void 0),t}(tr);(Hr=t.RowHighlightPosition||(t.RowHighlightPosition={}))[Hr.Above=0]="Above",Hr[Hr.Below=1]="Below";var Ui,zi,Zi,Yi=function(){function e(t){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=e.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.selected=!1,this.onRowHeightChangedDebounced=G(this.onRowHeightChanged.bind(this),100),this.beans=t}return e.prototype.setData=function(e){this.setDataCommon(e,!1)},e.prototype.updateData=function(e){this.setDataCommon(e,!0)},e.prototype.setDataCommon=function(e,t){var n=this.data;this.data=e,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var o=this.createDataChangedEvent(e,n,t);this.dispatchLocalEvent(o)},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.getRowIndexString=function(){return this.rowPinned===oe.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===oe.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e(this.beans);return t.id=this.id,t.data=this.data,t.daemon=!0,t.selected=this.selected,t.level=this.level,t},e.prototype.setDataAndId=function(e,t){var n=r(this.id)?this.createDaemonNode():null,o=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.beans.selectionService.syncInRowNode(this,n),this.checkRowSelectable();var i=this.createDataChangedEvent(e,o,!1);this.dispatchLocalEvent(i)},e.prototype.checkRowSelectable=function(){var e=this.beans.gridOptionsWrapper.getIsRowSelectableFunc();this.setRowSelectable(!e||e(this))},e.prototype.setRowSelectable=function(t){this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_SELECTABLE_CHANGED)))},e.prototype.setId=function(t){var n=this.beans.gridOptionsWrapper.getRowIdFunc();if(n)if(this.data){var o=this.getGroupKeys(!0);this.id=n({data:this.data,parentKeys:o.length>0?o:void 0,level:this.level}),null!==this.id&&"string"===typeof this.id&&this.id.startsWith(e.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with "+e.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for AG Grid's row grouping feature."),null!==this.id&&"string"!==typeof this.id&&(this.id=""+this.id)}else this.id=void 0;else this.id=t},e.prototype.getGroupKeys=function(e){void 0===e&&(e=!1);var t=[],n=this;for(e&&(n=n.parent);n&&n.level>=0;)t.push(n.key),n=n.parent;return t.reverse(),t},e.prototype.isPixelInRange=function(e){return!(!r(this.rowTop)||!r(this.rowHeight))&&(e>=this.rowTop&&e<this.rowTop+this.rowHeight)},e.prototype.setFirstChild=function(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_FIRST_CHILD_CHANGED)))},e.prototype.setLastChild=function(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_LAST_CHILD_CHANGED)))},e.prototype.setChildIndex=function(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_CHILD_INDEX_CHANGED)))},e.prototype.setRowTop=function(t){this.oldRowTop=this.rowTop,this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_TOP_CHANGED)),this.setDisplayed(null!==t))},e.prototype.clearRowTopAndRowIndex=function(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)},e.prototype.setDisplayed=function(t){this.displayed!==t&&(this.displayed=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DISPLAYED_CHANGED)))},e.prototype.setDragging=function(t){this.dragging!==t&&(this.dragging=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DRAGGING_CHANGED)))},e.prototype.setHighlighted=function(t){t!==this.highlighted&&(this.highlighted=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HIGHLIGHT_CHANGED)))},e.prototype.setAllChildrenCount=function(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},e.prototype.setMaster=function(t){this.master!==t&&(this.master&&!t&&(this.expanded=!1),this.master=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_MASTER_CHANGED)))},e.prototype.setGroup=function(t){this.group!==t&&(this.group&&!t&&(this.expanded=!1),this.group=t,this.updateHasChildren(),this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_GROUP_CHANGED)))},e.prototype.setRowHeight=function(t,n){void 0===n&&(n=!1),this.rowHeight=t,this.rowHeightEstimated=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HEIGHT_CHANGED))},e.prototype.setRowAutoHeight=function(e,t){this.__autoHeights||(this.__autoHeights={}),this.__autoHeights[t.getId()]=e,null!=e&&(null==this.checkAutoHeightsDebounced&&(this.checkAutoHeightsDebounced=G(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())},e.prototype.checkAutoHeights=function(){var e=!1,t=!0,n=0,o=this.__autoHeights;null!=o&&(this.beans.columnModel.getAllDisplayedAutoHeightCols().forEach((function(r){var i=o[r.getId()];null!=i?(t=!1,i>n&&(n=i)):e=!0})),e||((t||n<10)&&(n=this.beans.gridOptionsWrapper.getRowHeightForNode(this).height),n!=this.rowHeight&&(this.setRowHeight(n),this.onRowHeightChangedDebounced())))},e.prototype.onRowHeightChanged=function(){var e=this.beans.rowModel;e.onRowHeightChanged&&e.onRowHeightChanged()},e.prototype.setRowIndex=function(t){this.rowIndex!==t&&(this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ROW_INDEX_CHANGED)))},e.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_UI_LEVEL_CHANGED)))},e.prototype.setExpanded=function(t,n){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var o=Object.assign({},this.createGlobalRowEvent(Ve.EVENT_ROW_GROUP_OPENED),{expanded:t,event:n||null});this.beans.rowNodeEventThrottle.dispatchExpanded(o),this.beans.gridOptionsWrapper.isGroupIncludeFooter()&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},e.prototype.createGlobalRowEvent=function(e){return{type:e,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi()}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t,n){var o=this.beans.columnModel.getPrimaryColumn(e),r=this.beans.valueService.getValue(o,this),i=this.beans.valueService.setValue(this,o,t,n);return this.dispatchCellChangedEvent(o,t,r),i},e.prototype.setGroupValue=function(e,t){var n=this.beans.columnModel.getGridColumn(e);i(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=w([this.aggData,e]),o=this.aggData;this.aggData=e,this.eventService&&n.forEach((function(e){var n=t.beans.columnModel.getGridColumn(e),r=t.aggData?t.aggData[e]:void 0,i=o?o[e]:void 0;t.dispatchCellChangedEvent(n,r,i)}))},e.prototype.updateHasChildren=function(){var t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;t!==this.__hasChildren&&(this.__hasChildren=!!t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HAS_CHILDREN_CHANGED)))},e.prototype.hasChildren=function(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren},e.prototype.isEmptyRowGroupNode=function(){return this.group&&s(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.footer||this.master)},e.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},e.prototype.depthFirstSearch=function(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(t){return t.depthFirstSearch(e)})),e(this)},e.prototype.calculateSelectedFromChildren=function(){var e,t,n=!1,o=!1,r=!1;if(null===(e=this.childrenAfterGroup)||void 0===e?void 0:e.length){for(var i=0;i<this.childrenAfterGroup.length;i++){var s=this.childrenAfterGroup[i];if(s.selectable)switch(s.isSelected()){case!0:n=!0;break;case!1:o=!0;break;default:r=!0}}t=r?void 0:!(!n||o)||!(!n&&o)&&void 0,this.selectThisNode(t)}},e.prototype.setSelectedInitialValue=function(e){this.selected=e},e.prototype.setSelected=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.setSelectedParams({newValue:e,clearSelection:t,suppressFinishActions:n,rangeSelect:!1})},e.prototype.isRowPinned=function(){return this.rowPinned===oe.PINNED_TOP||this.rowPinned===oe.PINNED_BOTTOM},e.prototype.setSelectedParams=function(e){var t,n=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),o=!0===e.newValue,r=!0===e.clearSelection,i=!0===e.suppressFinishActions,s=!0===e.rangeSelect,a=n&&!0===e.groupSelectsFiltered;if(void 0===this.id)return console.warn("AG Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.warn("AG Grid: cannot select pinned rows"),0;if(this.footer)return this.sibling.setSelectedParams(e);if(s&&this.beans.selectionService.getLastSelectedNode()){var l=this.beans.selectionService.getLastSelectedNode()!==this,u=this.beans.gridOptionsWrapper.isRowSelectionMulti();if(l&&u){var c=this.doRowRangeSelection(e.newValue);return this.beans.selectionService.setLastSelectedNode(this),c}}var p=0;a&&this.group||this.selectThisNode(o)&&p++;if(n&&(null===(t=this.childrenAfterGroup)||void 0===t?void 0:t.length)&&(p+=this.selectChildNodes(o,a)),!i){if(o&&(r||!this.beans.gridOptionsWrapper.isRowSelectionMulti())&&(p+=this.beans.selectionService.clearOtherNodes(this)),p>0){this.beans.selectionService.updateGroupsFromChildrenSelections();var d={type:Ve.EVENT_SELECTION_CHANGED,api:this.beans.gridApi,columnApi:this.beans.columnApi};this.beans.eventService.dispatchEvent(d)}o&&this.beans.selectionService.setLastSelectedNode(this)}return p},e.prototype.doRowRangeSelection=function(e){var t=this;void 0===e&&(e=!0);var n=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),o=this.beans.selectionService.getLastSelectedNode(),r=this.beans.rowModel.getNodesInRangeForSelection(this,o),i=0;r.forEach((function(o){o.group&&n||!1===e&&t===o||o.selectThisNode(e)&&i++})),this.beans.selectionService.updateGroupsFromChildrenSelections();var s={type:Ve.EVENT_SELECTION_CHANGED,api:this.beans.gridApi,columnApi:this.beans.columnApi};return this.beans.eventService.dispatchEvent(s),i},e.prototype.isParentOfNode=function(e){for(var t=this.parent;t;){if(t===e)return!0;t=t.parent}return!1},e.prototype.selectThisNode=function(t){var n=!this.selectable&&t,o=this.selected===t;if(n||o)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var r=this.createGlobalRowEvent(Ve.EVENT_ROW_SELECTED);return this.beans.eventService.dispatchEvent(r),!0},e.prototype.selectChildNodes=function(e,t){var n=t?this.childrenAfterAggFilter:this.childrenAfterGroup;if(i(n))return 0;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 ne),this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService&&(this.eventService.removeEventListener(e,t),this.eventService.noRegisteredListenersExist()&&(this.eventService=null))},e.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_ENTER))},e.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_LEAVE))},e.prototype.getFirstChildOfFirstChild=function(e){for(var t=this,n=!0,o=!1,i=null;n&&!o;){var s=t.parent;r(s)&&t.firstChild?s.rowGroupColumn===e&&(o=!0,i=s):n=!1,t=s}return o?i:null},e.prototype.isFullWidthCell=function(){var e=this.beans.gridOptionsWrapper.getIsFullWidthCellFunc();return!!e&&e({rowNode:this})},e.prototype.getRoute=function(){if(null!=this.key){for(var e=[],t=this;null!=t.key;)e.push(t.key),t=t.parent;return e.reverse()}},e.ID_PREFIX_ROW_GROUP="row-group-",e.ID_PREFIX_TOP_PINNED="t-",e.ID_PREFIX_BOTTOM_PINNED="b-",e.OBJECT_ID_SEQUENCE=0,e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_DATA_CHANGED="dataChanged",e.EVENT_CELL_CHANGED="cellChanged",e.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",e.EVENT_MASTER_CHANGED="masterChanged",e.EVENT_GROUP_CHANGED="groupChanged",e.EVENT_MOUSE_ENTER="mouseEnter",e.EVENT_MOUSE_LEAVE="mouseLeave",e.EVENT_HEIGHT_CHANGED="heightChanged",e.EVENT_TOP_CHANGED="topChanged",e.EVENT_DISPLAYED_CHANGED="displayedChanged",e.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",e.EVENT_LAST_CHILD_CHANGED="lastChildChanged",e.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",e.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_HAS_CHILDREN_CHANGED="hasChildrenChanged",e.EVENT_SELECTABLE_CHANGED="selectableChanged",e.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",e.EVENT_HIGHLIGHT_CHANGED="rowHighlightChanged",e.EVENT_DRAGGING_CHANGED="draggingChanged",e}(),Ki=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),qi=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(e){function t(){return e.call(this,'\n            <div class="ag-selection-checkbox" role="presentation">\n                <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>\n            </div>')||this}return Ki(t,e),t.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},t.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.rowNode.isSelected(),n=void 0===t?e("ariaIndeterminate","indeterminate"):!0===t?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),o=e("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(t,!0),this.eCheckbox.setInputAriaLabel(o+" ("+n+")")},t.prototype.onCheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.init=function(e){var t=this;if(this.rowNode=e.rowNode,this.column=e.column,this.onSelectionChanged(),this.addGuiEventListener("click",(function(e){return Oe(e)})),this.addGuiEventListener("dblclick",(function(e){return Oe(e)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(e){var n=t.eCheckbox.getValue();void 0===t.eCheckbox.getPreviousValue()||void 0===n?0===t.onUncheckedClicked(e||{})&&t.onCheckedClicked(e):n?t.onCheckedClicked(e):t.onUncheckedClicked(e||{})})),this.addManagedListener(this.rowNode,Yi.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsWrapper.getIsRowSelectableFunc()||this.checkboxCallbackExists()){var n=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addManagedListener(this.rowNode,Yi.EVENT_DATA_CHANGED,n),this.addManagedListener(this.rowNode,Yi.EVENT_CELL_CHANGED,n),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},t.prototype.showOrHideSelect=function(){var e=this.rowNode.selectable;e&&this.checkboxCallbackExists()&&(e=this.column.isCellCheckboxSelection(this.rowNode)),this.setVisible(e)},t.prototype.checkboxCallbackExists=function(){var e=this.column?this.column.getColDef():null;return!!e&&"function"===typeof e.checkboxSelection},qi([nr("eCheckbox")],t.prototype,"eCheckbox",void 0),qi([z],t.prototype,"postConstruct",null),t}(tr),Qi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Ji=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},$i=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};(Ui=t.DragSourceType||(t.DragSourceType={}))[Ui.ToolPanel=0]="ToolPanel",Ui[Ui.HeaderCell=1]="HeaderCell",Ui[Ui.RowDrag=2]="RowDrag",Ui[Ui.ChartPanel=3]="ChartPanel",(zi=t.VerticalDirection||(t.VerticalDirection={}))[zi.Up=0]="Up",zi[zi.Down=1]="Down",(Zi=t.HorizontalDirection||(t.HorizontalDirection={}))[Zi.Left=0]="Left",Zi[Zi.Right=1]="Right";var es,ts=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragSourceAndParamsList=[],t.dropTargets=[],t}var o;return Qi(n,e),o=n,n.prototype.init=function(){this.ePinnedIcon=Po("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=Po("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=Po("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=Po("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=Po("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=Po("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=Po("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=Po("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=Po("dropNotAllowed",this.gridOptionsWrapper,null)},n.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var n={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:n,dragSource:e}),this.dragService.addDragSource(n,t)},n.prototype.removeDragSource=function(e){var t=this.dragSourceAndParamsList.find((function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),de(this.dragSourceAndParamsList,t))},n.prototype.clearDragSourceParamsList=function(){var e=this;this.dragSourceAndParamsList.forEach((function(t){return e.dragService.removeDragSource(t.params)})),this.dragSourceAndParamsList.length=0},n.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},n.prototype.onDragStart=function(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},n.prototype.onDragStop=function(e){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var t=this.createDropTargetEvent(this.lastDropTarget,e,null,null,!1);this.lastDropTarget.onDragStop(t)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},n.prototype.onDragging=function(e,t){var n=this,o=this.getHorizontalDirection(e),r=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);var i=this.dropTargets.filter((function(t){return n.isMouseOnDropTarget(e,t)})),s=i.length,a=null;if(s>0&&(a=1===s?i[0]:i.reduce((function(e,t){if(!e)return t;var n=e.getContainer(),o=t.getContainer();return n.contains(o)?t:e}))),a!==this.lastDropTarget)this.leaveLastTargetIfExists(e,o,r,t),this.enterDragTargetIfExists(a,e,o,r,t),this.lastDropTarget=a;else if(a&&a.onDragging){var l=this.createDropTargetEvent(a,e,o,r,t);a.onDragging(l)}},n.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)}},n.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)}},n.prototype.getAllContainersFromDropTarget=function(e){var t=e.getSecondaryContainers?e.getSecondaryContainers():null,n=[[e.getContainer()]];return t?n.concat(t):n},n.prototype.allContainersIntersect=function(e,t){var n,o;try{for(var r=$i(t),i=r.next();!i.done;i=r.next()){var s=i.value.getBoundingClientRect();if(0===s.width||0===s.height)return!1;var a=e.clientX>=s.left&&e.clientX<s.right,l=e.clientY>=s.top&&e.clientY<s.bottom;if(!a||!l)return!1}}catch(u){n={error:u}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return!0},n.prototype.isMouseOnDropTarget=function(e,t){var n,o,r=this.getAllContainersFromDropTarget(t),i=!1;try{for(var s=$i(r),a=s.next();!a.done;a=s.next()){var l=a.value;if(this.allContainersIntersect(e,l)){i=!0;break}}}catch(u){n={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}return!(t.targetContainsSource&&!t.getContainer().contains(this.dragSource.eElement))&&(i&&t.isInterestedIn(this.dragSource.type,this.dragSource.eElement))},n.prototype.addDropTarget=function(e){this.dropTargets.push(e)},n.prototype.removeDropTarget=function(e){this.dropTargets=this.dropTargets.filter((function(t){return t.getContainer()!==e.getContainer()}))},n.prototype.hasExternalDropZones=function(){return this.dropTargets.some((function(e){return e.external}))},n.prototype.findExternalZone=function(e){return this.dropTargets.filter((function(e){return e.external})).find((function(t){return t.getContainer()===e.getContainer()}))||null},n.prototype.getHorizontalDirection=function(e){var n=this.eventLastTime&&this.eventLastTime.clientX,o=e.clientX;return n===o?null:n>o?t.HorizontalDirection.Left:t.HorizontalDirection.Right},n.prototype.getVerticalDirection=function(e){var n=this.eventLastTime&&this.eventLastTime.clientY,o=e.clientY;return n===o?null:n>o?t.VerticalDirection.Up:t.VerticalDirection.Down},n.prototype.createDropTargetEvent=function(e,t,n,o,r){var i=e.getContainer(),s=i.getBoundingClientRect(),a=this,l=a.gridApi,u=a.columnApi,c=a.dragItem,p=a.dragSource;return{event:t,x:t.clientX-s.left,y:t.clientY-s.top,vDirection:o,hDirection:n,dragSource:p,fromNudge:r,dragItem:c,api:l,columnApi:u,dropZoneTarget:i}},n.prototype.positionGhost=function(e){var t=this.eGhost;if(t){var n=t.getBoundingClientRect().height,o=Kt()-2,r=qt()-2,i=e.pageY-n/2,s=e.pageX-10,a=this.gridOptionsWrapper.getDocument(),l=a.defaultView||window,u=l.pageYOffset||a.documentElement.scrollTop,c=l.pageXOffset||a.documentElement.scrollLeft;o>0&&s+t.clientWidth>o+c&&(s=o+c-t.clientWidth),s<0&&(s=0),r>0&&i+t.clientHeight>r+u&&(i=r+u-t.clientHeight),i<0&&(i=0),t.style.left=s+"px",t.style.top=i+"px"}},n.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},n.prototype.createGhost=function(){this.eGhost=gn(o.GHOST_TEMPLATE);var e=this.environment.getTheme().theme;e&&this.eGhost.classList.add(e),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var t=this.eGhost.querySelector(".ag-dnd-ghost-label"),n=this.dragSource.dragItemName;N(n)&&(n=n()),t.innerHTML=Ke(n)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var r=this.gridOptionsWrapper.getDocument(),i=null;try{i=r.fullscreenElement}catch(s){}finally{i||(i=r.querySelector("body"))}this.eGhostParent=i,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},n.prototype.setGhostIcon=function(e,t){void 0===t&&(t=!1),dn(this.eGhostIcon);var n=null;switch(e||(e=this.dragSource.defaultIconName||o.ICON_NOT_ALLOWED),e){case o.ICON_PINNED:n=this.ePinnedIcon;break;case o.ICON_MOVE:n=this.eMoveIcon;break;case o.ICON_LEFT:n=this.eLeftIcon;break;case o.ICON_RIGHT:n=this.eRightIcon;break;case o.ICON_GROUP:n=this.eGroupIcon;break;case o.ICON_AGGREGATE:n=this.eAggregateIcon;break;case o.ICON_PIVOT:n=this.ePivotIcon;break;case o.ICON_NOT_ALLOWED:n=this.eDropNotAllowedIcon;break;case o.ICON_HIDE:n=this.eHideIcon}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",t),n===this.eHideIcon&&this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()||n&&this.eGhostIcon.appendChild(n)},n.ICON_PINNED="pinned",n.ICON_MOVE="move",n.ICON_LEFT="left",n.ICON_RIGHT="right",n.ICON_GROUP="group",n.ICON_AGGREGATE="aggregate",n.ICON_PIVOT="pivot",n.ICON_NOT_ALLOWED="notAllowed",n.ICON_HIDE="hide",n.GHOST_TEMPLATE='<div class="ag-dnd-ghost ag-unselectable">\n            <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>\n            <div class="ag-dnd-ghost-label"></div>\n        </div>',Ji([K("dragService")],n.prototype,"dragService",void 0),Ji([K("environment")],n.prototype,"environment",void 0),Ji([K("columnApi")],n.prototype,"columnApi",void 0),Ji([K("gridApi")],n.prototype,"gridApi",void 0),Ji([z],n.prototype,"init",null),Ji([Z],n.prototype,"clearDragSourceParamsList",null),n=o=Ji([Y("dragAndDropService")],n)}(Fe),ns=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),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(e){function n(t,n,o,r,i,s){var a=e.call(this)||this;return a.cellValueFn=t,a.rowNode=n,a.column=o,a.customGui=r,a.dragStartPixels=i,a.suppressVisibilityChange=s,a.dragSource=null,a}return ns(n,e),n.prototype.isCustomGui=function(){return null!=this.customGui},n.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild(Ao("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.beans.gridOptionsWrapper.isRowDragManaged()?new as(this,this.beans,this.rowNode,this.column):new ss(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},n.prototype.setDragElement=function(e,t){this.setTemplateFromElement(e),this.addDragSource(t)},n.prototype.getSelectedCount=function(){if(!this.beans.gridOptionsWrapper.isRowDragMultiRow())return 1;var e=this.beans.selectionService.getSelectedNodes();return-1!==e.indexOf(this.rowNode)?e.length:1},n.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&e&&D((function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},n.prototype.addDragSource=function(e){var n=this;void 0===e&&(e=4),this.dragSource&&this.removeDragSource();var o={rowNode:this.rowNode,columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()},r=this.column&&this.column.getColDef().rowDragText,i=this.gridOptionsWrapper.getLocaleTextFunc();this.dragSource={type:t.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:function(){var e=n.getSelectedCount();return r?r(o,e):1===e?n.cellValueFn():e+" "+i("rowDragRows","rows")},getDragItem:function(){return o},dragStartPixels:e,dragSourceDomDataKey:this.beans.gridOptionsWrapper.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},n.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},os([K("beans")],n.prototype,"beans",void 0),os([z],n.prototype,"postConstruct",null),os([Z],n.prototype,"removeDragSource",null),n}(tr),is=function(e){function t(t,n,o){var r=e.call(this)||this;return r.parent=t,r.rowNode=n,r.column=o,r}return ns(t,e),t.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var t=!0,n=!1;this.column&&(t=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),n=N(this.column.getColDef().rowDrag)),n?(this.parent.setDisplayed(!0),this.parent.setVisible(t)):(this.parent.setDisplayed(t),this.parent.setVisible(!0))}},t}(Fe),ss=function(e){function t(t,n,o,r){var i=e.call(this,t,o,r)||this;return i.beans=n,i}return ns(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(e)},os([z],t.prototype,"postConstruct",null),t}(is),as=function(e){function t(t,n,o,r){var i=e.call(this,t,o,r)||this;return i.beans=n,i}return ns(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,Ve.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ve.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),t=e&&e.shouldPreventRowMove(),n=this.beans.gridOptionsWrapper.isSuppressRowDrag(),o=this.beans.dragAndDropService.hasExternalDropZones(),r=t&&!o||n;this.setDisplayedOrVisible(r)},os([z],t.prototype,"postConstruct",null),t}(is),ls=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),us=function(){return us=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},us.apply(this,arguments)},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(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ls(t,e),t.prototype.init=function(e,t,n,o,r,i,s){this.params=s,this.eGui=t,this.eCheckbox=n,this.eExpanded=o,this.eContracted=r,this.comp=e,this.compClass=i;var a=this.isTopLevelFooter(),l=this.isEmbeddedRowMismatch(),u=null==s.value,c=!1;if(this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridOptionsWrapper.isGroupHideOpenParents()){var p=s.node;if(p.footer)c=(s.colDef&&s.colDef.showRowGroup)!==(p.rowGroupColumn&&p.rowGroupColumn.getColId())}this.cellIsBlank=!a&&(l||u||c),this.cellIsBlank||(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.expandListener=null},t.prototype.refreshAriaExpanded=function(){var e=this.params,t=e.node,n=e.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var o=function(){Xn(n,!!t.expanded)};this.expandListener=this.addManagedListener(t,Yi.EVENT_EXPANDED_CHANGED,o)||null,o()}else Qn(n)},t.prototype.isTopLevelFooter=function(){if(!this.gridOptionsWrapper.isGroupIncludeTotalFooter())return!1;if(null!=this.params.value||-1!=this.params.node.level)return!1;var e=this.params.colDef;if(null==e)return!0;if(!0===e.showRowGroup)return!0;var t=this.columnModel.getRowGroupColumns();return!t||0===t.length||t[0].getId()===e.showRowGroup},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsWrapper.isEmbedFullWidthRows())return!1;var e=this.params.pinned===oe.PINNED_LEFT,t=this.params.pinned===oe.PINNED_RIGHT,n=!e&&!t;return this.gridOptionsWrapper.isEnableRtl()?this.columnModel.isPinningLeft()?!t:!n:this.columnModel.isPinningLeft()?!e:!n},t.prototype.findDisplayedGroupNode=function(){var e=this.params.column,t=this.params.node;if(this.showingValueForOpenedParent)for(var n=t.parent;null!=n;){if(n.rowGroupColumn&&e.isRowGroupDisplayed(n.rowGroupColumn.getId())){this.displayedGroupNode=n;break}n=n.parent}i(this.displayedGroupNode)&&(this.displayedGroupNode=t)},t.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,t=this.params.column;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(e.groupData){if(null!=e.rowGroupColumn){var n=e.rowGroupColumn.getId();if(t.isRowGroupDisplayed(n))return void(this.showingValueForOpenedParent=!1)}var o=null!=e.groupData[t.getId()];this.showingValueForOpenedParent=o}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},t.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},t.prototype.addGroupValue=function(){var e=this.adjustParamsWithDetailsFromRelatedColumn(),t=this.getInnerCompDetails(e),n=e.valueFormatted,o=e.value,r=null!=n?n:o;this.comp.setInnerRenderer(t,r)},t.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,t=this.params.column;if(!e)return this.params;if(null!=t&&!t.isRowGroupDisplayed(e.getId()))return this.params;var n=this.params,o=this.params,r=o.value,i=o.node,s=this.valueFormatterService.formatValue(e,i,r);return us(us({},n),{valueFormatted:s})},t.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,t="";if(e){var n=g(this.params);n.value=this.params.value,"function"===typeof e?t=e(n):"string"===typeof e?t=this.expressionService.evaluate(e,n):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else t="Total "+(null!=this.params.value?this.params.value:"");var o=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(o,t)},t.prototype.getInnerCompDetails=function(e){var t=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptions.groupRowRendererParams,e);var n=this.userComponentFactory.getInnerRendererDetails(e,e),o=function(e){return e&&e.componentClass==t.compClass};if(n&&!o(n))return n;var r=this.displayedGroupNode.rowGroupColumn,i=r?r.getColDef():void 0;if(i){var s=this.userComponentFactory.getCellRendererDetails(i,e);if(s&&!o(s))return s;if(o(s)&&i.cellRendererParams&&i.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(i.cellRendererParams,e)}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,Yi.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroupNode.allChildrenCount,t=this.isShowRowGroupForThisRow()&&null!=e&&e>=0?"("+e+")":"";this.comp.setChildCount(t)},t.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsWrapper.isTreeData())return!0;var e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;var t=this.params.column;return null==t||t.isRowGroupDisplayed(e.getId())},t.prototype.addExpandAndContract=function(){var e=this.params,t=Ao("groupExpanded",this.gridOptionsWrapper,null),n=Ao("groupContracted",this.gridOptionsWrapper,null);t&&this.eExpanded.appendChild(t),n&&this.eContracted.appendChild(n);var o=e.eGridCell;this.gridOptionsWrapper.isEnableGroupEdit()||!this.isExpandable()||e.suppressDoubleClickExpand||this.addManagedListener(o,"dblclick",this.onCellDblClicked.bind(this)),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(o,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(e.node,Yi.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var r=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,Yi.EVENT_ALL_CHILDREN_COUNT_CHANGED,r),this.addManagedListener(this.displayedGroupNode,Yi.EVENT_MASTER_CHANGED,r),this.addManagedListener(this.displayedGroupNode,Yi.EVENT_GROUP_CHANGED,r),this.addManagedListener(this.displayedGroupNode,Yi.EVENT_HAS_CHILDREN_CHANGED,r)},t.prototype.onExpandClicked=function(e){Te(e)||(Oe(e),this.onExpandOrContract(e))},t.prototype.onExpandOrContract=function(e){var t=this.displayedGroupNode,n=!t.expanded;t.setExpanded(n,e)},t.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,t=this.columnModel.isPivotMode()&&e.leafGroup;if(!(e.isExpandable()&&!e.footer&&!t))return!1;var n=this.params.column;return null==n||"string"!==typeof n.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},t.prototype.showExpandAndContractIcons=function(){var e=this,t=e.params,n=e.displayedGroupNode,o=e.columnModel,r=t.node,i=this.isExpandable();if(i){var s=!!this.showingValueForOpenedParent||r.expanded;this.comp.setExpandedDisplayed(s),this.comp.setContractedDisplayed(!s)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var a=o.isPivotMode(),l=a&&n.leafGroup,u=i&&!l,c=r.footer&&-1===r.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",u),this.comp.addOrRemoveCssClass("ag-row-group",u),a?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",l):c||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!u)},t.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},t.prototype.setupIndent=function(){var e=this.params.node;this.params.suppressPadding||(this.addManagedListener(e,Yi.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e=this.params,t=e.node,n=!!e.colDef,o=this.gridOptionsWrapper.isTreeData(),r=!n||o||!0===e.colDef.showRowGroup?t.uiLevel:0;e.padding>=0&&D((function(){return console.warn("AG Grid: cellRendererParams.padding no longer works, it was deprecated in since v14.2 and removed in v26, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the AG Grid documentation page for Themes, in particular the property $row-group-indent-size.")}),"groupCellRenderer->doDeprecatedWay"),this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+r,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},t.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(this.params.fullWidth&&this.params.rowDrag){var t=new rs((function(){return e.params.value}),this.params.node);this.createManagedBean(t,this.context),this.eGui.insertAdjacentElement("afterbegin",t.getGui())}},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"===typeof e?e(this.params):!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this,t=this.displayedGroupNode,n=this.isUserWantsSelected()&&!t.footer&&!t.rowPinned&&!t.detail;if(n){var o=new Xi;this.getContext().createBean(o),o.init({rowNode:t,column:this.params.column}),this.eCheckbox.appendChild(o.getGui()),this.addDestroyFunc((function(){return e.getContext().destroyBean(o)}))}this.comp.setCheckboxVisible(n)},t.prototype.onKeyDown=function(e){e.key!==dr.ENTER||this.params.suppressEnterExpand||(this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(e))},t.prototype.onCellDblClicked=function(e){Te(e)||(De(this.eExpanded,e)||De(this.eContracted,e)||this.onExpandOrContract(e))},cs([K("expressionService")],t.prototype,"expressionService",void 0),cs([K("valueFormatterService")],t.prototype,"valueFormatterService",void 0),cs([K("columnModel")],t.prototype,"columnModel",void 0),cs([K("userComponentFactory")],t.prototype,"userComponentFactory",void 0),cs([K("gridOptions")],t.prototype,"gridOptions",void 0),t}(Fe),ds=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),hs=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},fs=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return ds(t,e),t.prototype.init=function(e){var t=this,n={setInnerRenderer:function(e,n){return t.setRenderDetails(e,n)},setChildCount:function(e){return t.eChildCount.innerHTML=e},addOrRemoveCssClass:function(e,n){return t.addOrRemoveCssClass(e,n)},setContractedDisplayed:function(e){return $t(t.eContracted,e)},setExpandedDisplayed:function(e){return $t(t.eExpanded,e)},setCheckboxVisible:function(e){return t.eCheckbox.classList.toggle("ag-invisible",!e)}},o=this.createManagedBean(new ps),r=!e.colDef,i=this.getGui();o.init(n,i,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),r&&Bn(i,"gridcell")},t.prototype.setRenderDetails=function(e,t){var n=this;if(e){var o=e.newAgStackInstance();if(!o)return;o.then((function(e){if(e){var t=function(){return n.context.destroyBean(e)};n.isAlive()?(n.eValue.appendChild(e.getGui()),n.addDestroyFunc(t)):t()}}))}else this.eValue.innerText=t},t.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),e.prototype.destroy.call(this)},t.prototype.refresh=function(){return!1},t.TEMPLATE='<span class="ag-cell-wrapper">\n            <span class="ag-group-expanded" ref="eExpanded"></span>\n            <span class="ag-group-contracted" ref="eContracted"></span>\n            <span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span>\n            <span class="ag-group-value" ref="eValue"></span>\n            <span class="ag-group-child-count" ref="eChildCount"></span>\n        </span>',hs([nr("eExpanded")],t.prototype,"eExpanded",void 0),hs([nr("eContracted")],t.prototype,"eContracted",void 0),hs([nr("eCheckbox")],t.prototype,"eCheckbox",void 0),hs([nr("eValue")],t.prototype,"eValue",void 0),hs([nr("eChildCount")],t.prototype,"eChildCount",void 0),t}(tr),gs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),ms=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(e){function t(){return e.call(this,t.TEMPLATE)||this}return gs(t,e),t.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},t.prototype.setupFailed=function(){this.eLoadingText.innerText="ERR"},t.prototype.setupLoading=function(){var e=Ao("groupLoading",this.gridOptionsWrapper,null);e&&this.eLoadingIcon.appendChild(e);var t=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=t("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-loading">\n            <span class="ag-loading-icon" ref="eLoadingIcon"></span>\n            <span class="ag-loading-text" ref="eLoadingText"></span>\n        </div>',ms([nr("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),ms([nr("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(tr),ys=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Cs=function(e){function t(){return e.call(this)||this}return ys(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,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>',t}(tr),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])},e(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){function t(){return e.call(this)||this}return ws(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,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>',t}(tr),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])},e(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)}}(),Es=function(e){function t(){return e.call(this,'<div class="ag-tooltip"></div>')||this}return bs(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=Ke(t)},t}(Si),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])},e(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)}}(),Rs=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},Os=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.agGridDefaults={agDateInput:ti,agColumnHeader:Ci,agColumnGroupHeader:bi,agTextColumnFloatingFilter:gi,agNumberColumnFloatingFilter:hi,agDateColumnFloatingFilter:Jr,agReadOnlyFloatingFilter:ar,agAnimateShowChangeCellRenderer:Bi,agAnimateSlideCellRenderer:ji,agGroupCellRenderer:fs,agGroupRowRenderer:fs,agLoadingCellRenderer:vs,agCellEditor:Li,agTextCellEditor:Li,agSelectCellEditor:Di,agPopupTextCellEditor:ki,agPopupSelectCellEditor:Ni,agLargeTextCellEditor:Ti,agTextColumnFilter:li,agNumberColumnFilter:ri,agDateColumnFilter:Yr,agLoadingOverlay:Cs,agNoRowsOverlay:_s,agTooltipComponent:Es},t.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},t.jsComps={},t.fwComps={},t}return Ss(t,e),t.prototype.init=function(){var e=this;null!=this.gridOptions.components&&f(this.gridOptions.components,(function(t,n){return e.registerJsComponent(t,n)})),null!=this.gridOptions.frameworkComponents&&f(this.gridOptions.frameworkComponents,(function(t,n){return e.registerFwComponent(t,n)}))},t.prototype.registerDefaultComponent=function(e,t){var n=this.translateIfDeprecated(e);this.agGridDefaults[n]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[n]=t},t.prototype.registerJsComponent=function(e,t){var n=this.translateIfDeprecated(e);this.fwComps[n]?console.error("Trying to register a component that you have already registered for frameworks: "+n):this.jsComps[n]=t},t.prototype.registerFwComponent=function(e,t){D((function(){return console.warn("AG Grid: As of v27, registering components via grid property frameworkComponents is deprecated. Instead register both JavaScript AND Framework Components via the components property.")}),"UserComponentRegistry.frameworkComponentsDeprecated");var n=this.translateIfDeprecated(e);this.fwComps[n]=t},t.prototype.retrieve=function(e){var t=this.translateIfDeprecated(e),n=function(e,t){return{componentFromFramework:t,component:e}},o=this.getFrameworkOverrides().frameworkComponent(t);if(null!=o)return n(o,!0);var r=this.fwComps[t];if(r)return n(r,!0);var i=this.jsComps[t];if(i)return n(i,this.getFrameworkOverrides().isFrameworkComponent(i));var s=this.agGridDefaults[t];return s?n(s,!1):(Object.keys(this.agGridDefaults).indexOf(t)<0&&console.warn("AG Grid: Looking for component ["+t+"] but it wasn't found."),null)},t.prototype.translateIfDeprecated=function(e){var t=this.agDeprecatedNames[e];return null!=t?(D((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},Rs([K("gridOptions")],t.prototype,"gridOptions",void 0),Rs([K("agComponentUtils")],t.prototype,"agComponentUtils",void 0),Rs([z],t.prototype,"init",null),t=Rs([Y("userComponentRegistry")],t)}(Fe),Ts={propertyName:"dateComponent",cellRenderer:!1},Ps={propertyName:"headerComponent",cellRenderer:!1},As={propertyName:"headerGroupComponent",cellRenderer:!1},Ds={propertyName:"cellRenderer",cellRenderer:!0},xs={propertyName:"cellEditor",cellRenderer:!1},Ns={propertyName:"innerRenderer",cellRenderer:!0},Ms={propertyName:"loadingOverlayComponent",cellRenderer:!1},Is={propertyName:"noRowsOverlayComponent",cellRenderer:!1},Ls={propertyName:"tooltipComponent",cellRenderer:!1},Fs={propertyName:"filter",cellRenderer:!1},ks={propertyName:"floatingFilterComponent",cellRenderer:!1},Gs={propertyName:"toolPanel",cellRenderer:!1},Hs={propertyName:"statusPanel",cellRenderer:!1},Bs={propertyName:"fullWidthCellRenderer",cellRenderer:!0},Vs={propertyName:"loadingCellRenderer",cellRenderer:!0},Ws={propertyName:"groupRowRenderer",cellRenderer:!0},js={propertyName:"detailCellRenderer",cellRenderer:!0},Us=function(){function e(){}return e.getFloatingFilterType=function(e){return this.filterToFloatingFilterMapping[e]},e.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},e}(),zs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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},Ys=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return zs(n,e),n.prototype.getHeaderCompDetails=function(e,t){return this.getCompDetails(e,Ps,"agColumnHeader",t)},n.prototype.getHeaderGroupCompDetails=function(e){var t=e.columnGroup.getColGroupDef();return this.getCompDetails(t,As,"agColumnGroupHeader",e)},n.prototype.getFullWidthCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Bs,null,e,!0)},n.prototype.getFullWidthLoadingCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Vs,"agLoadingCellRenderer",e,!0)},n.prototype.getFullWidthGroupCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Ws,"agGroupRowRenderer",e,!0)},n.prototype.getFullWidthDetailCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,js,"agDetailCellRenderer",e,!0)},n.prototype.getInnerRendererDetails=function(e,t){return this.getCompDetails(e,Ns,null,t)},n.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,t){return this.getCompDetails(e,Ns,null,t)},n.prototype.getCellRendererDetails=function(e,t){return this.getCompDetails(e,Ds,null,t)},n.prototype.getCellEditorDetails=function(e,t){return this.getCompDetails(e,xs,"agCellEditor",t,!0)},n.prototype.getFilterDetails=function(e,t,n){return this.getCompDetails(e,Fs,n,t,!0)},n.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,Ts,"agDateInput",e,!0)},n.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,Ms,"agLoadingOverlay",e,!0)},n.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,Is,"agNoRowsOverlay",e,!0)},n.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,Ls,"agTooltipComponent",e,!0)},n.prototype.getSetFilterCellRendererDetails=function(e,t){return this.getCompDetails(e,Ds,null,t)},n.prototype.getFloatingFilterCompDetails=function(e,t,n){return this.getCompDetails(e,ks,n,t)},n.prototype.getToolPanelCompDetails=function(e,t){return this.getCompDetails(e,Gs,null,t,!0)},n.prototype.getStatusPanelCompDetails=function(e,t){return this.getCompDetails(e,Hs,null,t,!0)},n.prototype.getCompDetails=function(e,t,n,o,r){var i=this;void 0===r&&(r=!1);var s=t.propertyName,a=t.cellRenderer,l=this.getCompKeys(e,t,o),u=l.compName,c=l.jsComp,p=l.fwComp,d=l.paramsFromSelector,h=l.popupFromSelector,f=l.popupPositionFromSelector,g=function(e){var t=i.userComponentRegistry.retrieve(e);t&&(c=t.componentFromFramework?void 0:t.component,p=t.componentFromFramework?t.component:void 0)};if(null!=u&&g(u),null==c&&null==p&&null!=n&&g(n),c&&a&&!this.agComponentUtils.doesImplementIComponent(c)&&(c=this.agComponentUtils.adaptFunction(s,c)),c||p){var m=this.mergeParamsWithApplicationProvidedParams(e,t,o,d),v=null==c,y=c||p;return{componentFromFramework:v,componentClass:y,params:m,type:t,popupFromSelector:h,popupPositionFromSelector:f,newAgStackInstance:function(){return i.newAgStackInstance(y,v,m,t)}}}r&&console.error("Could not find component "+u+", did you forget to configure this component?")},n.prototype.getCompKeys=function(e,t,n){var o,r,i,s,a,l,u=this,c=t.propertyName;if(e){var p=e,d=p[c+"Selector"],h=d?d(n):null,f=function(e,t){var n=function(){var e="AG Grid: As of v27, the property "+c+"Framework is deprecated. The property "+c+" can now be used for JavaScript AND Framework Components.";D((function(){return console.warn(e)}),"UserComponentFactory."+c+"FrameworkDeprecated")};if("string"===typeof e)o=e;else if("string"===typeof t)n(),o=t;else if(null!=e&&!0!==e){u.getFrameworkOverrides().isFrameworkComponent(e)?i=e:r=e}else null!=t&&(n(),i=t)};if(h){if(null!=h.frameworkComponent){var g="AG Grid: As of v27, the return for "+c+"Selector has attributes [component, params] only. The attribute frameworkComponent is deprecated. You should now return back Framework Components using the 'component' attribute and the grid works out if it's a framework component or not.";D((function(){return console.warn(g)}),"UserComponentFactory."+c+"FrameworkSelectorDeprecated"),f(h.frameworkComponent,void 0)}else f(h.component,void 0);s=h.params,a=h.popup,l=h.popupPosition}else f(p[c],p[c+"Framework"])}return{compName:o,jsComp:r,fwComp:i,paramsFromSelector:s,popupFromSelector:a,popupPositionFromSelector:l}},n.prototype.newAgStackInstance=function(e,t,n,o){var r,i=o.propertyName;if(!t)r=new e;else{var s=this.componentMetadataProvider.retrieve(i);r=this.frameworkComponentWrapper.wrap(e,s.mandatoryMethodList,s.optionalMethodList,o)}var a=this.initComponent(r,n);return null==a?zo.resolve(r):a.then((function(){return r}))},n.prototype.mergeParamsWithApplicationProvidedParams=function(e,t,n,o){void 0===o&&(o=null);var r={context:this.gridOptionsWrapper.getContext(),columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};b(r,n);var i=e&&e[t.propertyName+"Params"];"function"===typeof i?b(r,i(n)):"object"===typeof i&&b(r,i);return b(r,o),r},n.prototype.initComponent=function(e,t){if(this.context.createBean(e),null!=e.init)return e.init(t)},n.prototype.getDefaultFloatingFilterType=function(e){if(null==e)return null;var n=null,o=this.getCompKeys(e,Fs),r=o.compName,i=o.jsComp,s=o.fwComp;r?n=Us.getFloatingFilterType(r):null==i&&null==s&&!0===e.filter&&(n=re.isRegistered(t.ModuleNames.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter");return n},Zs([K("gridOptions")],n.prototype,"gridOptions",void 0),Zs([K("agComponentUtils")],n.prototype,"agComponentUtils",void 0),Zs([K("componentMetadataProvider")],n.prototype,"componentMetadataProvider",void 0),Zs([K("userComponentRegistry")],n.prototype,"userComponentRegistry",void 0),Zs([q("frameworkComponentWrapper")],n.prototype,"frameworkComponentWrapper",void 0),n=Zs([Y("userComponentFactory")],n)}(Fe);(es=t.ExcelFactoryMode||(t.ExcelFactoryMode={}))[es.SINGLE_SHEET=0]="SINGLE_SHEET",es[es.MULTI_SHEET=1]="MULTI_SHEET";var 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])},e(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)}}(),qs=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(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragEndFunctions=[],t.dragSources=[],t}return Ks(t,e),t.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},t.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},t.prototype.removeListener=function(e){var t=e.dragSource.eElement,n=e.mouseDownListener;if(t.removeEventListener("mousedown",n),e.touchEnabled){var o=e.touchStartListener;t.removeEventListener("touchstart",o,{passive:!0})}},t.prototype.removeDragSource=function(e){var t=this.dragSources.find((function(t){return t.dragSource===e}));t&&(this.removeListener(t),de(this.dragSources,t))},t.prototype.isDragging=function(){return this.dragging},t.prototype.addDragSource=function(e,t){var n=this;void 0===t&&(t=!1);var o=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",o);var r=null,i=this.gridOptionsWrapper.isSuppressTouch();t&&!i&&(r=function(t){t.cancelable&&t.preventDefault(),n.onTouchStart(e,t)},e.eElement.addEventListener("touchstart",r,{passive:!0})),this.dragSources.push({dragSource:e,mouseDownListener:o,touchStartListener:r,touchEnabled:t})},t.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;var r=function(t){return n.onTouchUp(t,e.eElement)},i=e.eElement,s=[{target:document,type:"touchmove",listener:function(e){e.cancelable&&e.preventDefault()},options:{passive:!1}},{target:i,type:"touchmove",listener:function(t){return n.onTouchMove(t,e.eElement)},options:{passive:!0}},{target:i,type:"touchend",listener: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)},t.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(),i=[{target:r,type:"mousemove",listener:function(t){return n.onMouseMove(t,e.eElement)}},{target:r,type:"mouseup",listener:function(t){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)}},t.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)}))}))},t.prototype.isEventNearStartEvent=function(e,t){var n=this.currentDragParams.dragStartPixels;return Lo(e,t,r(n)?n:4)},t.prototype.getFirstActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},t.prototype.onCommonMove=function(e,t,n){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0;var o={type:Ve.EVENT_DRAG_STARTED,api:this.gridApi,columnApi:this.columnApi,target:n};this.eventService.dispatchEvent(o),this.currentDragParams.onDragStart(t),this.currentDragParams.onDragging(t)}this.currentDragParams.onDragging(e)},t.prototype.onTouchMove=function(e,t){var n=this.getFirstActiveTouch(e.touches);n&&this.onCommonMove(n,this.touchStart,t)},t.prototype.onMouseMove=function(e,t){Ht()&&"mousemove"===e.type&&e.cancelable&&this.mouseEventService.isEventFromThisGrid(e)&&!this.isOverFormFieldElement(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,t)},t.prototype.isOverFormFieldElement=function(e){var t,n;return!!(null===(n=null===(t=e.target)||void 0===t?void 0:t.tagName.toLocaleLowerCase())||void 0===n?void 0:n.match("^a$|textarea|input|select|button"))},t.prototype.onTouchUp=function(e,t){var n=this.getFirstActiveTouch(e.changedTouches);n||(n=this.touchLastTime),this.onUpCommon(n,t)},t.prototype.onMouseUp=function(e,t){this.onUpCommon(e,t)},t.prototype.onUpCommon=function(e,t){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var n={type:Ve.EVENT_DRAG_STOPPED,api:this.gridApi,columnApi:this.columnApi,target:t};this.eventService.dispatchEvent(n)}this.mouseStartEvent=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(e){return e()})),this.dragEndFunctions.length=0},qs([K("loggerFactory")],t.prototype,"loggerFactory",void 0),qs([K("columnApi")],t.prototype,"columnApi",void 0),qs([K("gridApi")],t.prototype,"gridApi",void 0),qs([K("mouseEventService")],t.prototype,"mouseEventService",void 0),qs([z],t.prototype,"init",null),qs([Z],t.prototype,"removeAllListeners",null),t=qs([Y("dragService")],t)}(Fe),Qs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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(){return Js=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},Js.apply(this,arguments)},$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},ea=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.allColumnFilters=new Map,t.activeAggregateFilters=[],t.activeColumnFilters=[],t.quickFilter=null,t.quickFilterParts=null,t.processingFilterChange=!1,t}var o;return Qs(n,e),o=n,n.prototype.init=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_GRID_COLUMNS_CHANGED,(function(){return e.onColumnsChanged()})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_VALUE_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter()},n.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},n.prototype.setFilterModel=function(e){var t=this,n=[],o=this.getFilterModel();if(e){var r=Go(Object.keys(e));this.allColumnFilters.forEach((function(o,i){var s=e[i];n.push(t.setModelOnFilterWrapper(o.filterPromise,s)),r.delete(i)})),r.forEach((function(o){var r=t.columnModel.getPrimaryColumn(o)||t.columnModel.getGridColumn(o);if(r)if(r.isFilterAllowed()){var i=t.getOrCreateFilterWrapper(r,"NO_UI");i?n.push(t.setModelOnFilterWrapper(i.filterPromise,e[o])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+o)}else console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+o);else console.warn("AG Grid: setFilterModel() - no column found for colId: "+o)}))}else this.allColumnFilters.forEach((function(e){n.push(t.setModelOnFilterWrapper(e.filterPromise,null))}));zo.all(n).then((function(){var e=t.getFilterModel(),n=[];t.allColumnFilters.forEach((function(t,r){var i=o?o[r]:null,s=e?e[r]:null;Wo.jsonEquals(i,s)||n.push(t.column)})),n.length>0&&t.onFilterChanged({columns:n})}))},n.prototype.setModelOnFilterWrapper=function(e,t){return new zo((function(n){e.then((function(e){"function"!==typeof e.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),n()),(e.setModel(t)||zo.resolve()).then((function(){return n()}))}))}))},n.prototype.getFilterModel=function(){var e={};return this.allColumnFilters.forEach((function(t,n){var o=t.filterPromise.resolveNow(null,(function(e){return e}));if(null==o)return null;if("function"===typeof o.getModel){var i=o.getModel();r(i)&&(e[n]=i)}else console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel")})),e},n.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},n.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},n.prototype.doAggregateFiltersPass=function(e,t){return this.doColumnFiltersPass(e,t,!0)},n.prototype.updateActiveFilters=function(){var e=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var t=function(e){return!!e&&(e.isFilterActive?e.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1))},n=!!this.gridOptionsWrapper.getGroupAggFiltering();this.allColumnFilters.forEach((function(o){if(o.filterPromise.resolveNow(!1,t)){var r=o.filterPromise.resolveNow(null,(function(e){return e}));!function(t){if(!t.isPrimary())return!0;var o=!e.columnModel.isPivotActive();return!(!t.isValueActive()||!o)&&(!!e.columnModel.isPivotMode()||n)}(o.column)?e.activeColumnFilters.push(r):e.activeAggregateFilters.push(r)}}))},n.prototype.updateFilterFlagInColumns=function(e,t){this.allColumnFilters.forEach((function(n){var o=n.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}));n.column.setFilterActive(o,e,t)}))},n.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.gridOptionsWrapper.isExternalFilterPresent()},n.prototype.doColumnFiltersPass=function(e,t,n){for(var o=e.data,r=e.aggData,i=n?this.activeAggregateFilters:this.activeColumnFilters,s=n?r:o,a=0;a<i.length;a++){var l=i[a];if(null!=l&&l!==t){if("function"!==typeof l.doesFilterPass)throw new Error("Filter is missing method doesFilterPass");if(!l.doesFilterPass({node:e,data:s}))return!1}}return!0},n.prototype.parseQuickFilter=function(e){return r(e)?this.gridOptionsWrapper.isRowModelDefault()?e.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},n.prototype.setQuickFilter=function(e){if(null==e||"string"===typeof e){var t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.onFilterChanged())}else console.warn("AG Grid - setQuickFilter() only supports string inputs, received: "+typeof e)},n.prototype.refreshFiltersForAggregations=function(){this.gridOptionsWrapper.getGroupAggFiltering()&&this.onFilterChanged()},n.prototype.callOnFilterChangedOutsideRenderCycle=function(e){var t=this;void 0===e&&(e={});var n=function(){return t.onFilterChanged(e)};this.rowRenderer.isRefreshInProgress()?setTimeout(n,0):n()},n.prototype.onFilterChanged=function(e){void 0===e&&(e={});var t=e.filterInstance,n=e.additionalEventAttributes,o=e.columns;this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",n),this.allColumnFilters.forEach((function(e){e.filterPromise&&e.filterPromise.then((function(e){e&&e!==t&&e.onAnyFilterChanged&&e.onAnyFilterChanged()}))}));var r={type:Ve.EVENT_FILTER_CHANGED,api:this.gridApi,columnApi:this.columnApi,columns:o||[]};n&&b(r,n),this.processingFilterChange=!0,this.eventService.dispatchEvent(r),this.processingFilterChange=!1},n.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},n.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},n.prototype.doesRowPassOtherFilters=function(e,t){return this.doesRowPassFilter({rowNode:t,filterInstanceToSkip:e})},n.prototype.doesRowPassQuickFilterNoCache=function(e,t){var n=this;return this.columnModel.getAllColumnsForQuickFilter().some((function(o){var i=n.getQuickFilterTextForColumn(o,e);return r(i)&&i.indexOf(t)>=0}))},n.prototype.doesRowPassQuickFilterCache=function(e,t){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(t)>=0},n.prototype.doesRowPassQuickFilter=function(e){var t=this,n=this.gridOptionsWrapper.isCacheQuickFilter();return this.quickFilterParts.every((function(o){return n?t.doesRowPassQuickFilterCache(e,o):t.doesRowPassQuickFilterNoCache(e,o)}))},n.prototype.doesRowPassAggregateFilters=function(e){return!(this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(e.rowNode,e.filterInstanceToSkip))},n.prototype.doesRowPassFilter=function(e){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e.rowNode))&&(!(this.gridOptionsWrapper.isExternalFilterPresent()&&!this.gridOptionsWrapper.doesExternalFilterPass(e.rowNode))&&!(this.isColumnFilterPresent()&&!this.doColumnFiltersPass(e.rowNode,e.filterInstanceToSkip)))},n.prototype.getQuickFilterTextForColumn=function(e,t){var n=this.valueService.getValue(e,t,!0),o=e.getColDef();if(o.getQuickFilterText){var i={value:n,node:t,data:t.data,column:e,colDef:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};n=o.getQuickFilterText(i)}return r(n)?n.toString().toUpperCase():null},n.prototype.aggregateRowForQuickFilter=function(e){var t=this,n=[];this.columnModel.getAllColumnsForQuickFilter().forEach((function(o){var i=t.getQuickFilterTextForColumn(o,e);r(i)&&n.push(i)})),e.quickFilterAggregateText=n.join(o.QUICK_FILTER_SEPARATOR)},n.prototype.onNewRowsLoaded=function(e){this.allColumnFilters.forEach((function(e){e.filterPromise.then((function(e){e.onNewRowsLoaded&&e.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(e),this.updateActiveFilters()},n.prototype.createValueGetter=function(e){var t=this;return function(n){var o=n.node;return t.valueService.getValue(e,o,!0)}},n.prototype.getFilterComponent=function(e,t,n){var o;if(void 0===n&&(n=!0),n)return(null===(o=this.getOrCreateFilterWrapper(e,t))||void 0===o?void 0:o.filterPromise)||null;var r=this.cachedFilter(e);return r?r.filterPromise:null},n.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return!!t&&t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))},n.prototype.getOrCreateFilterWrapper=function(e,t){if(!e.isFilterAllowed())return null;var n=this.cachedFilter(e);return n?"NO_UI"!==t&&this.putIntoGui(n,t):(n=this.createFilterWrapper(e,t),this.allColumnFilters.set(e.getColId(),n)),n},n.prototype.cachedFilter=function(e){return this.allColumnFilters.get(e.getColId())},n.prototype.createFilterInstance=function(e){var n,o=this,r=re.isRegistered(t.ModuleNames.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",i=e.getColDef(),s=Js(Js({},this.createFilterParams(e,i)),{filterModifiedCallback:function(){var t={type:Ve.EVENT_FILTER_MODIFIED,api:o.gridApi,columnApi:o.columnApi,column:e,filterInstance:n};o.eventService.dispatchEvent(t)},filterChangedCallback:function(t){var r={filterInstance:n,additionalEventAttributes:t,columns:[e]};o.callOnFilterChangedOutsideRenderCycle(r)},doesRowPassOtherFilter:function(e){return o.doesRowPassOtherFilters(n,e)}}),a=this.userComponentFactory.getFilterDetails(i,s,r);if(!a)return null;var l=a.newAgStackInstance();return l&&l.then((function(e){return n=e})),l},n.prototype.createFilterParams=function(e,t){return{api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),column:e,colDef:g(t),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(e),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:function(){return!0}}},n.prototype.createFilterWrapper=function(e,t){var n={column:e,filterPromise:null,compiledElement:null,guiPromise:zo.resolve(null)};return n.filterPromise=this.createFilterInstance(e),n.filterPromise&&this.putIntoGui(n,t),n},n.prototype.putIntoGui=function(e,t){var n=this,o=document.createElement("div");o.className="ag-filter",e.guiPromise=new zo((function(i){e.filterPromise.then((function(s){var a=s.getGui();r(a)||console.warn("AG Grid: getGui method from filter returned "+a+", it should be a DOM element or an HTML template string."),"string"===typeof a&&(a=gn(a)),o.appendChild(a),i(o),n.eventService.dispatchEvent({type:Ve.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:o,api:n.gridApi,columnApi:n.columnApi})}))}))},n.prototype.onColumnsChanged=function(){var e=this,t=[];this.allColumnFilters.forEach((function(n,o){(n.column.isPrimary()?e.columnModel.getPrimaryColumn(o):e.columnModel.getGridColumn(o))||(t.push(n.column),e.disposeFilterWrapper(n,"filterDestroyed"))})),t.length>0&&this.onFilterChanged({columns:t})},n.prototype.destroyFilter=function(e,t){void 0===t&&(t="api");var n=this.allColumnFilters.get(e.getColId());n&&(this.disposeFilterWrapper(n,t),this.onFilterChanged({columns:[e]}))},n.prototype.disposeFilterWrapper=function(e,t){var n=this;e.filterPromise.then((function(o){(o.setModel(null)||zo.resolve()).then((function(){n.getContext().destroyBean(o),e.column.setFilterActive(!1,t),n.allColumnFilters.delete(e.column.getColId())}))}))},n.prototype.destroy=function(){var t=this;e.prototype.destroy.call(this),this.allColumnFilters.forEach((function(e){return t.disposeFilterWrapper(e,"filterDestroyed")}))},n.QUICK_FILTER_SEPARATOR="\n",$s([K("valueService")],n.prototype,"valueService",void 0),$s([K("columnModel")],n.prototype,"columnModel",void 0),$s([K("rowModel")],n.prototype,"rowModel",void 0),$s([K("columnApi")],n.prototype,"columnApi",void 0),$s([K("gridApi")],n.prototype,"gridApi",void 0),$s([K("userComponentFactory")],n.prototype,"userComponentFactory",void 0),$s([K("rowRenderer")],n.prototype,"rowRenderer",void 0),$s([z],n.prototype,"init",null),$s([Z],n.prototype,"destroy",null),n=o=$s([Y("filterManager")],n)}(Fe),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])},e(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){function t(t,n){var o=e.call(this,t)||this;return o.ctrl=n,o}return ta(t,e),t.prototype.getCtrl=function(){return this.ctrl},t}(tr),oa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),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(e){function t(n){return e.call(this,t.TEMPLATE,n)||this}return oa(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),n={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},addOrRemoveBodyCssClass:function(t,n){return e.eFloatingFilterBody.classList.toggle(t,n)},addOrRemoveButtonWrapperCssClass:function(t,n){return e.eButtonWrapper.classList.toggle(t,n)},setCompDetails:function(t){return e.setCompDetails(t)},getFloatingFilterComp:function(){return e.compPromise},setWidth:function(e){return t.style.width=e},setMenuIcon:function(t){return e.eButtonShowMainFilter.appendChild(t)}};this.ctrl.setComp(n,t,this.eButtonShowMainFilter,this.eFloatingFilterBody)},t.prototype.setCompDetails=function(e){var t=this;this.compPromise=e.newAgStackInstance(),this.compPromise.then((function(e){return t.afterCompCreated(e)}))},t.prototype.afterCompCreated=function(e){var t=this;e&&(this.addDestroyFunc((function(){return t.context.destroyBean(e)})),this.isAlive()&&(this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()))},t.TEMPLATE='<div class="ag-header-cell ag-floating-filter" role="gridcell" tabindex="-1">\n            <div ref="eFloatingFilterBody" role="presentation"></div>\n            <div class="ag-floating-filter-button ag-hidden" ref="eButtonWrapper" role="presentation">\n                <button type="button" aria-label="Open Filter Menu" class="ag-floating-filter-button-button" ref="eButtonShowMainFilter" tabindex="-1"></button>\n            </div>\n        </div>',ra([nr("eFloatingFilterBody")],t.prototype,"eFloatingFilterBody",void 0),ra([nr("eButtonWrapper")],t.prototype,"eButtonWrapper",void 0),ra([nr("eButtonShowMainFilter")],t.prototype,"eButtonShowMainFilter",void 0),ra([z],t.prototype,"postConstruct",null),t}(na),sa=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?(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):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}(),aa=function(){return aa=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},aa.apply(this,arguments)},la=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,t){return function(n,o){t(n,o,e)}},ca=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},pa=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ca(arguments[t]));return e};function da(e){return!0===e||"true"===e}function ha(e){return"number"==typeof e?e:"string"==typeof e?parseInt(e,10):void 0}function fa(e,t){var n=parseInt(e,10);return fo(n)&&n>0?n:t}var ga,ma=function(){function e(){this.propertyEventService=new ne,this.domDataKey="__AG_"+Math.random().toString(),this.destroyed=!1}var n;return n=e,e.prototype.agWire=function(e,t){this.gridOptions.api=e,this.gridOptions.columnApi=t,this.checkForDeprecated(),this.checkForViolations()},e.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.destroyed=!0},e.prototype.init=function(){var e=this;!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),null!=this.gridOptions.sideBar&&(this.gridOptions.sideBar=sa.parse(this.gridOptions.sideBar));var n=this.useAsyncEvents();if(this.eventService.addGlobalListener(this.globalEventHandler.bind(this),n),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"),this.isGroupSelectsChildren()&&(this.isRowSelectionMulti()||console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.isRowModelServerSide()&&console.warn("AG Grid: group selects children is NOT support for Server Side Row Model. This is because the rows are lazy loaded, so selecting a group is not possible asthe grid has no way of knowing what the children are.")),this.isGroupRemoveSingleChildren()&&this.isGroupHideOpenParents()&&console.warn("AG Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to us these together on our support forum either you will get the same answer!"),this.isRowModelServerSide()){var o=function(e){return"AG Grid: '"+e+"' is not supported on the Server-Side Row Model"};r(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupDefaultExpanded")),r(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupIncludeFooter")),r(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupIncludeTotalFooter"))}this.isEnableRangeSelection()&&re.assertRegistered(t.ModuleNames.RangeSelectionModule,"enableRangeSelection"),this.isEnableRangeSelection()||!this.isEnableRangeHandle()&&!this.isEnableFillHandle()||console.warn("AG Grid: 'enableRangeHandle' and 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");var i=function(t){e.gridOptions.icons&&e.gridOptions.icons[t]&&console.warn("gridOptions.icons."+t+" is no longer supported. For information on how to style checkboxes and radio buttons, see https://www.ag-grid.com/javascript-grid-icons/")};i("radioButtonOff"),i("radioButtonOn"),i("checkboxChecked"),i("checkboxUnchecked"),i("checkboxIndeterminate"),this.getScrollbarWidth()},e.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(t){var n=Object.getOwnPropertyNames(t),o=pa(St.ALL_PROPERTIES,St.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=pa(ft.ALL_PROPERTIES,ft.FRAMEWORK_PROPERTIES,p(Ve).map((function(e){return yt.getCallbackForEvent(e)}))),n=pa(t,["api","columnApi"]);this.checkProperties(e,n,t,"gridOptions","https://www.ag-grid.com/javascript-data-grid/grid-options/")},e.prototype.checkProperties=function(e,t,n,o,r){var i=_o(e,t,n);f(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.mergeGridCommonParams=function(e){var t=this;if(e){return function(n){var o=aa(aa({},n),{api:t.getApi(),columnApi:t.getColumnApi(),context:t.getContext()});return e(o)}}return e},e.prototype.getDomDataKey=function(){return this.domDataKey},e.prototype.getDomData=function(e,t){var n=e[this.getDomDataKey()];return n?n[t]:void 0},e.prototype.setDomData=function(e,t,n){var o=this.getDomDataKey(),r=e[o];i(r)&&(r={},e[o]=r),r[t]=n},e.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},e.prototype.isSuppressRowDeselection=function(){return da(this.gridOptions.suppressRowDeselection)},e.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},e.prototype.isRowMultiSelectWithClick=function(){return da(this.gridOptions.rowMultiSelectWithClick)},e.prototype.getContext=function(){return this.gridOptions.context},e.prototype.isPivotMode=function(){return da(this.gridOptions.pivotMode)},e.prototype.isSuppressExpandablePivotGroups=function(){return da(this.gridOptions.suppressExpandablePivotGroups)},e.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},e.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},e.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===oe.ROW_MODEL_TYPE_INFINITE},e.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===oe.ROW_MODEL_TYPE_VIEWPORT},e.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===oe.ROW_MODEL_TYPE_SERVER_SIDE},e.prototype.isRowModelDefault=function(){return i(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===oe.ROW_MODEL_TYPE_CLIENT_SIDE},e.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},e.prototype.isSuppressFocusAfterRefresh=function(){return da(this.gridOptions.suppressFocusAfterRefresh)},e.prototype.isSuppressBrowserResizeObserver=function(){return da(this.gridOptions.suppressBrowserResizeObserver)},e.prototype.isSuppressMaintainUnsortedOrder=function(){return da(this.gridOptions.suppressMaintainUnsortedOrder)},e.prototype.isSuppressClearOnFillReduction=function(){return da(this.gridOptions.suppressClearOnFillReduction)},e.prototype.isShowToolPanel=function(){return da(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},e.prototype.getSideBar=function(){return this.gridOptions.sideBar},e.prototype.isSuppressTouch=function(){return da(this.gridOptions.suppressTouch)},e.prototype.isMaintainColumnOrder=function(){return da(this.gridOptions.maintainColumnOrder)},e.prototype.isSuppressRowTransform=function(){return da(this.gridOptions.suppressRowTransform)},e.prototype.isSuppressColumnStateEvents=function(){return da(this.gridOptions.suppressColumnStateEvents)},e.prototype.isAllowDragFromColumnsToolPanel=function(){return da(this.gridOptions.allowDragFromColumnsToolPanel)},e.prototype.useAsyncEvents=function(){return!da(this.gridOptions.suppressAsyncEvents)},e.prototype.isEnableCellChangeFlash=function(){return da(this.gridOptions.enableCellChangeFlash)},e.prototype.getCellFlashDelay=function(){return this.gridOptions.cellFlashDelay||500},e.prototype.getCellFadeDelay=function(){return this.gridOptions.cellFadeDelay||1e3},e.prototype.isGroupSelectsChildren=function(){return da(this.gridOptions.groupSelectsChildren)},e.prototype.isSuppressRowHoverHighlight=function(){return da(this.gridOptions.suppressRowHoverHighlight)},e.prototype.isColumnHoverHighlight=function(){return da(this.gridOptions.columnHoverHighlight)},e.prototype.isGroupSelectsFiltered=function(){return da(this.gridOptions.groupSelectsFiltered)},e.prototype.isGroupHideOpenParents=function(){return da(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupMaintainOrder=function(){return da(this.gridOptions.groupMaintainOrder)},e.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},e.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?this.matchesGroupDisplayType("multipleColumns",this.gridOptions.groupDisplayType):da(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupUseEntireRow=function(e){return!e&&(!!this.gridOptions.groupDisplayType&&this.matchesGroupDisplayType("groupRows",this.gridOptions.groupDisplayType))},e.prototype.isGroupSuppressAutoColumn=function(){return!(!this.gridOptions.groupDisplayType||!this.matchesGroupDisplayType("custom",this.gridOptions.groupDisplayType))||!!this.gridOptions.treeDataDisplayType&&this.matchesTreeDataDisplayType("custom",this.gridOptions.treeDataDisplayType)},e.prototype.isGroupRemoveSingleChildren=function(){return da(this.gridOptions.groupRemoveSingleChildren)},e.prototype.isGroupRemoveLowestSingleChildren=function(){return da(this.gridOptions.groupRemoveLowestSingleChildren)},e.prototype.isGroupIncludeFooter=function(){return da(this.gridOptions.groupIncludeFooter)},e.prototype.isGroupIncludeTotalFooter=function(){return da(this.gridOptions.groupIncludeTotalFooter)},e.prototype.isGroupSuppressBlankHeader=function(){return da(this.gridOptions.groupSuppressBlankHeader)},e.prototype.isSuppressRowClickSelection=function(){return da(this.gridOptions.suppressRowClickSelection)},e.prototype.isSuppressCellFocus=function(){return da(this.gridOptions.suppressCellFocus)},e.prototype.isSuppressMultiSort=function(){return da(this.gridOptions.suppressMultiSort)},e.prototype.isAlwaysMultiSort=function(){return da(this.gridOptions.alwaysMultiSort)},e.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},e.prototype.isPivotSuppressAutoColumn=function(){return da(this.gridOptions.pivotSuppressAutoColumn)},e.prototype.isSuppressDragLeaveHidesColumns=function(){return da(this.gridOptions.suppressDragLeaveHidesColumns)},e.prototype.isSuppressScrollOnNewData=function(){return da(this.gridOptions.suppressScrollOnNewData)},e.prototype.isSuppressScrollWhenPopupsAreOpen=function(){return da(this.gridOptions.suppressScrollWhenPopupsAreOpen)},e.prototype.isRowDragEntireRow=function(){return da(this.gridOptions.rowDragEntireRow)},e.prototype.isSuppressRowDrag=function(){return da(this.gridOptions.suppressRowDrag)},e.prototype.isRowDragManaged=function(){return da(this.gridOptions.rowDragManaged)},e.prototype.isSuppressMoveWhenRowDragging=function(){return da(this.gridOptions.suppressMoveWhenRowDragging)},e.prototype.isRowDragMultiRow=function(){return da(this.gridOptions.rowDragMultiRow)},e.prototype.getDomLayout=function(){var e=this.gridOptions.domLayout||oe.DOM_LAYOUT_NORMAL;return-1===[oe.DOM_LAYOUT_PRINT,oe.DOM_LAYOUT_AUTO_HEIGHT,oe.DOM_LAYOUT_NORMAL].indexOf(e)?(D((function(){return console.warn("AG Grid: "+e+" is not valid for DOM Layout, valid values are "+oe.DOM_LAYOUT_NORMAL+", "+oe.DOM_LAYOUT_AUTO_HEIGHT+" and "+oe.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),oe.DOM_LAYOUT_NORMAL):e},e.prototype.isSuppressHorizontalScroll=function(){return da(this.gridOptions.suppressHorizontalScroll)},e.prototype.isSuppressMaxRenderedRowRestriction=function(){return da(this.gridOptions.suppressMaxRenderedRowRestriction)},e.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return da(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},e.prototype.isAlwaysShowHorizontalScroll=function(){return da(this.gridOptions.alwaysShowHorizontalScroll)},e.prototype.isAlwaysShowVerticalScroll=function(){return da(this.gridOptions.alwaysShowVerticalScroll)},e.prototype.isDebounceVerticalScrollbar=function(){return da(this.gridOptions.debounceVerticalScrollbar)},e.prototype.isSuppressLoadingOverlay=function(){return da(this.gridOptions.suppressLoadingOverlay)},e.prototype.isSuppressNoRowsOverlay=function(){return da(this.gridOptions.suppressNoRowsOverlay)},e.prototype.isSuppressFieldDotNotation=function(){return da(this.gridOptions.suppressFieldDotNotation)},e.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},e.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},e.prototype.isFunctionsPassive=function(){return da(this.gridOptions.functionsPassive)},e.prototype.isSuppressChangeDetection=function(){return da(this.gridOptions.suppressChangeDetection)},e.prototype.isSuppressAnimationFrame=function(){return da(this.gridOptions.suppressAnimationFrame)},e.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},e.prototype.isCacheQuickFilter=function(){return da(this.gridOptions.cacheQuickFilter)},e.prototype.isUnSortIcon=function(){return da(this.gridOptions.unSortIcon)},e.prototype.isSuppressMenuHide=function(){return da(this.gridOptions.suppressMenuHide)},e.prototype.isEnterMovesDownAfterEdit=function(){return da(this.gridOptions.enterMovesDownAfterEdit)},e.prototype.isEnterMovesDown=function(){return da(this.gridOptions.enterMovesDown)},e.prototype.isUndoRedoCellEditing=function(){return da(this.gridOptions.undoRedoCellEditing)},e.prototype.getUndoRedoCellEditingLimit=function(){return ha(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.mergeGridCommonParams(this.gridOptions.getRowStyle)},e.prototype.getRowClassFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowClass)},e.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},e.prototype.getServerSideStoreType=function(){return this.gridOptions.serverSideStoreType},e.prototype.getServerSideStoreParamsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getServerSideStoreParams)},e.prototype.getCreateChartContainerFunc=function(){return this.mergeGridCommonParams(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.mergeGridCommonParams(this.gridOptions.postProcessPopup)},e.prototype.getPaginationNumberFormatterFunc=function(){return this.mergeGridCommonParams(this.gridOptions.paginationNumberFormatter)},e.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},e.prototype.getIsApplyServerSideTransactionFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isApplyServerSideTransaction)},e.prototype.getInitialGroupOrderComparator=function(){var e=this.gridOptions,t=e.initialGroupOrderComparator,n=e.defaultGroupOrderComparator;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.nodeA,e.nodeB)}:void 0},e.prototype.getIsFullWidthCellFunc=function(){var e=this.gridOptions,t=e.isFullWidthRow,n=e.isFullWidthCell;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.rowNode)}:void 0},e.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},e.prototype.isEmbedFullWidthRows=function(){return da(this.gridOptions.embedFullWidthRows)||da(this.gridOptions.deprecatedEmbedFullWidthRows)},e.prototype.isDetailRowAutoHeight=function(){return da(this.gridOptions.detailRowAutoHeight)},e.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},e.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},e.prototype.getApi=function(){return this.gridOptions.api},e.prototype.getColumnApi=function(){return this.gridOptions.columnApi},e.prototype.isReadOnlyEdit=function(){return da(this.gridOptions.readOnlyEdit)},e.prototype.isImmutableData=function(){var e=null!=this.gridOptions.getRowId,t=da(this.gridOptions.immutableData);return!da(this.gridOptions.resetRowDataOnUpdate)&&(e||t)},e.prototype.isEnsureDomOrder=function(){return da(this.gridOptions.ensureDomOrder)},e.prototype.isEnableCharts=function(){return!!da(this.gridOptions.enableCharts)&&re.assertRegistered(t.ModuleNames.GridChartsModule,"enableCharts")},e.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},e.prototype.isSingleClickEdit=function(){return da(this.gridOptions.singleClickEdit)},e.prototype.isSuppressClickEdit=function(){return da(this.gridOptions.suppressClickEdit)},e.prototype.isStopEditingWhenCellsLoseFocus=function(){return da(this.gridOptions.stopEditingWhenCellsLoseFocus)},e.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},e.prototype.getMaxConcurrentDatasourceRequests=function(){var e=ha(this.gridOptions.maxConcurrentDatasourceRequests);return null==e?2:e<=0?void 0:e},e.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},e.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},e.prototype.getPaginationPageSize=function(){return ha(this.gridOptions.paginationPageSize)},e.prototype.isPaginateChildRows=function(){return!(!this.isGroupRemoveSingleChildren()&&!this.isGroupRemoveLowestSingleChildren())||da(this.gridOptions.paginateChildRows)},e.prototype.getCacheBlockSize=function(){return fa(this.gridOptions.cacheBlockSize)},e.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},e.prototype.isPurgeClosedRowNodes=function(){return da(this.gridOptions.purgeClosedRowNodes)},e.prototype.isSuppressPaginationPanel=function(){return da(this.gridOptions.suppressPaginationPanel)},e.prototype.getRowData=function(){return this.gridOptions.rowData},e.prototype.isEnableRtl=function(){return da(this.gridOptions.enableRtl)},e.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},e.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},e.prototype.isAngularCompileRows=function(){return da(this.gridOptions.angularCompileRows)},e.prototype.isAngularCompileFilters=function(){return da(this.gridOptions.angularCompileFilters)},e.prototype.isDebug=function(){return da(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 da(this.gridOptions.accentedSort)},e.prototype.isEnableBrowserTooltips=function(){return da(this.gridOptions.enableBrowserTooltips)},e.prototype.isEnableCellExpressions=function(){return da(this.gridOptions.enableCellExpressions)},e.prototype.isEnableGroupEdit=function(){return da(this.gridOptions.enableGroupEdit)},e.prototype.isSuppressMiddleClickScrolls=function(){return da(this.gridOptions.suppressMiddleClickScrolls)},e.prototype.isPreventDefaultOnContextMenu=function(){return da(this.gridOptions.preventDefaultOnContextMenu)},e.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return da(this.gridOptions.suppressPreventDefaultOnMouseWheel)},e.prototype.isSuppressColumnVirtualisation=function(){return da(this.gridOptions.suppressColumnVirtualisation)},e.prototype.isSuppressRowVirtualisation=function(){return da(this.gridOptions.suppressRowVirtualisation)},e.prototype.isSuppressContextMenu=function(){return da(this.gridOptions.suppressContextMenu)},e.prototype.isAllowContextMenuWithControlKey=function(){return da(this.gridOptions.allowContextMenuWithControlKey)},e.prototype.isSuppressCopyRowsToClipboard=function(){return da(this.gridOptions.suppressCopyRowsToClipboard)},e.prototype.isSuppressCopySingleCellRanges=function(){return da(this.gridOptions.suppressCopySingleCellRanges)},e.prototype.isCopyHeadersToClipboard=function(){return da(this.gridOptions.copyHeadersToClipboard)},e.prototype.isCopyGroupHeadersToClipboard=function(){return da(this.gridOptions.copyGroupHeadersToClipboard)},e.prototype.isSuppressClipboardPaste=function(){return da(this.gridOptions.suppressClipboardPaste)},e.prototype.isSuppressLastEmptyLineOnPaste=function(){return da(this.gridOptions.suppressLastEmptyLineOnPaste)},e.prototype.isPagination=function(){return da(this.gridOptions.pagination)},e.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return da(this.gridOptions.suppressEnterpriseResetOnNewColumns)},e.prototype.getProcessDataFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processDataFromClipboard)},e.prototype.getAsyncTransactionWaitMillis=function(){return r(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:oe.BATCH_WAIT_MILLIS},e.prototype.isSuppressMovableColumns=function(){return da(this.gridOptions.suppressMovableColumns)},e.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&da(this.gridOptions.animateRows)},e.prototype.isSuppressColumnMoveAnimation=function(){return da(this.gridOptions.suppressColumnMoveAnimation)},e.prototype.isSuppressAggFuncInHeader=function(){return da(this.gridOptions.suppressAggFuncInHeader)},e.prototype.isSuppressAggAtRootLevel=function(){return da(this.gridOptions.suppressAggAtRootLevel)},e.prototype.isSuppressAggFilteredOnly=function(){return void 0!==this.getGroupAggFiltering()||da(this.gridOptions.suppressAggFilteredOnly)},e.prototype.isRemovePivotHeaderRowWhenSingleValueColumn=function(){return da(this.gridOptions.removePivotHeaderRowWhenSingleValueColumn)},e.prototype.isShowOpenedGroup=function(){return da(this.gridOptions.showOpenedGroup)},e.prototype.isReactUi=function(){return da(this.gridOptions.reactUi)},e.prototype.isSuppressReactUi=function(){return da(this.gridOptions.suppressReactUi)},e.prototype.isEnableRangeSelection=function(){return re.isRegistered(t.ModuleNames.RangeSelectionModule)&&da(this.gridOptions.enableRangeSelection)},e.prototype.isEnableRangeHandle=function(){return da(this.gridOptions.enableRangeHandle)},e.prototype.isEnableFillHandle=function(){return da(this.gridOptions.enableFillHandle)},e.prototype.getFillHandleDirection=function(){var e=this.gridOptions.fillHandleDirection;return e?"x"!==e&&"y"!==e&&"xy"!==e?(D((function(){return console.warn("AG Grid: valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'.")}),"warn invalid fill direction"),"xy"):e:"xy"},e.prototype.getFillOperation=function(){return this.mergeGridCommonParams(this.gridOptions.fillOperation)},e.prototype.isSuppressMultiRangeSelection=function(){return da(this.gridOptions.suppressMultiRangeSelection)},e.prototype.isPaginationAutoPageSize=function(){return da(this.gridOptions.paginationAutoPageSize)},e.prototype.isRememberGroupStateWhenNewData=function(){return da(this.gridOptions.rememberGroupStateWhenNewData)},e.prototype.getIcons=function(){return this.gridOptions.icons},e.prototype.getGroupAggFiltering=function(){var e=this.gridOptions.groupAggFiltering;return"function"===typeof e?this.mergeGridCommonParams(e):da(e)?function(){return!0}:void 0},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!!da(this.gridOptions.masterDetail)&&re.assertRegistered(t.ModuleNames.MasterDetailModule,"masterDetail")},e.prototype.isKeepDetailRows=function(){return da(this.gridOptions.keepDetailRows)},e.prototype.getKeepDetailRowsCount=function(){var e=this.gridOptions.keepDetailRowsCount;return r(e)&&e>0?this.gridOptions.keepDetailRowsCount:10},e.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},e.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},e.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},e.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},e.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},e.prototype.isSuppressAutoSize=function(){return da(this.gridOptions.suppressAutoSize)},e.prototype.isEnableCellTextSelection=function(){return da(this.gridOptions.enableCellTextSelection)},e.prototype.isSuppressParentsInRowNodes=function(){return da(this.gridOptions.suppressParentsInRowNodes)},e.prototype.isSuppressClipboardApi=function(){return da(this.gridOptions.suppressClipboardApi)},e.prototype.isFunctionsReadOnly=function(){return da(this.gridOptions.functionsReadOnly)},e.prototype.isEnableCellTextSelect=function(){return da(this.gridOptions.enableCellTextSelection)},e.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},e.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},e.prototype.getDefaultExportParams=function(e){return this.gridOptions.defaultExportParams?(console.warn("AG Grid: Since v25.2 `defaultExportParams`  has been replaced by `default"+Ye(e)+"ExportParams`'"),this.gridOptions.defaultExportParams):"csv"===e&&this.gridOptions.defaultCsvExportParams?this.gridOptions.defaultCsvExportParams:"excel"===e&&this.gridOptions.defaultExcelExportParams?this.gridOptions.defaultExcelExportParams:void 0},e.prototype.isSuppressCsvExport=function(){return da(this.gridOptions.suppressCsvExport)},e.prototype.isAllowShowChangeAfterFilter=function(){return da(this.gridOptions.allowShowChangeAfterFilter)},e.prototype.isSuppressExcelExport=function(){return da(this.gridOptions.suppressExcelExport)},e.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return da(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},e.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},e.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},e.prototype.getIsServerSideGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isServerSideGroupOpenByDefault)},e.prototype.getIsGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isGroupOpenByDefault)},e.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},e.prototype.getGroupRowAggFunc=function(){var e=this.gridOptions,t=e.getGroupRowAgg,n=e.groupRowAggNodes;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.nodes)}:void 0},e.prototype.getContextMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getContextMenuItems)},e.prototype.getMainMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getMainMenuItems)},e.prototype.getRowIdFunc=function(){var e=this.gridOptions,t=e.getRowId,n=e.getRowNodeId;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.data)}:void 0},e.prototype.getNavigateToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextHeader)},e.prototype.getTabToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextHeader)},e.prototype.getNavigateToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextCell)},e.prototype.getTabToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextCell)},e.prototype.getGridTabIndex=function(){return(this.gridOptions.tabIndex||0).toString()},e.prototype.isTreeData=function(){return!!da(this.gridOptions.treeData)&&re.assertRegistered(t.ModuleNames.RowGroupingModule,"Tree Data")},e.prototype.isValueCache=function(){return da(this.gridOptions.valueCache)},e.prototype.isValueCacheNeverExpires=function(){return da(this.gridOptions.valueCacheNeverExpires)},e.prototype.isDeltaSort=function(){return da(this.gridOptions.deltaSort)},e.prototype.isAggregateOnlyChangedColumns=function(){return da(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.mergeGridCommonParams(this.gridOptions.sendToClipboard)},e.prototype.getProcessRowPostCreateFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processRowPostCreate)},e.prototype.getProcessCellForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellForClipboard)},e.prototype.getProcessHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processHeaderForClipboard)},e.prototype.getProcessGroupHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processGroupHeaderForClipboard)},e.prototype.getProcessCellFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellFromClipboard)},e.prototype.getViewportRowModelPageSize=function(){return fa(this.gridOptions.viewportRowModelPageSize,5)},e.prototype.getViewportRowModelBufferSize=function(){return e=this.gridOptions.viewportRowModelBufferSize,t=5,e>=0?e:t;var e,t},e.prototype.isServerSideSortingAlwaysResets=function(){return da(this.gridOptions.serverSideSortingAlwaysResets)},e.prototype.isServerSideFilteringAlwaysResets=function(){return da(this.gridOptions.serverSideFilteringAlwaysResets)},e.prototype.getPostSortFunc=function(){var e=this.gridOptions,t=e.postSortRows,n=e.postSort;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.nodes)}:void 0},e.prototype.getChartToolbarItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getChartToolbarItems)},e.prototype.getChartThemeOverrides=function(){return this.gridOptions.chartThemeOverrides},e.prototype.getCustomChartThemes=function(){return this.gridOptions.customChartThemes},e.prototype.getChartThemes=function(){return this.gridOptions.chartThemes||["ag-default","ag-material","ag-pastel","ag-vivid","ag-solar"]},e.prototype.getClipboardDelimiter=function(){return r(this.gridOptions.clipboardDelimiter)?this.gridOptions.clipboardDelimiter:"\t"},e.prototype.setProperty=function(e,t,n){void 0===n&&(n=!1);var o=this.gridOptions,r=o[e];if(n||r!==t){o[e]=t;var i={type:e,currentValue:t,previousValue:r};this.propertyEventService.dispatchEvent(i)}},e.prototype.addEventListener=function(e,t){this.propertyEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},e.prototype.isSkipHeaderOnAutoSize=function(){return!!this.gridOptions.skipHeaderOnAutoSize},e.prototype.getAutoSizePadding=function(){var e=this.gridOptions.autoSizePadding;return null!=e&&e>=0?e:20},e.prototype.getHeaderHeight=function(){return"number"===typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.getFromTheme(25,"headerHeight")},e.prototype.getFloatingFiltersHeight=function(){return"number"===typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.getFromTheme(25,"headerHeight")},e.prototype.getGroupHeaderHeight=function(){return"number"===typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotHeaderHeight=function(){return"number"===typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotGroupHeaderHeight=function(){return"number"===typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},e.prototype.isExternalFilterPresent=function(){return"function"===typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent({api:this.getApi(),columnApi:this.getColumnApi(),context:this.getContext()})},e.prototype.doesExternalFilterPass=function(e){return"function"===typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(e)},e.prototype.getTooltipDelay=function(e){var t=this.gridOptions,n=t.tooltipShowDelay,o=t.tooltipHideDelay,i="show"===e?n:o,s=Ye(e);return r(i)?(i<0&&D((function(){return console.warn("ag-grid: tooltip"+s+"Delay should not be lower than 0")}),"tooltip"+s+"DelayWarn"),Math.max(200,i)):null},e.prototype.isTooltipMouseTrack=function(){return da(this.gridOptions.tooltipMouseTrack)},e.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(){return da(this.gridOptions.suppressModelUpdateAfterUpdateTransaction)},e.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&r(this.gridOptions.getDocument)?e=this.gridOptions.getDocument():this.eGridDiv&&(e=this.eGridDiv.ownerDocument),e&&r(e)?e:document},e.prototype.getMinColWidth=function(){var e=this.gridOptions.minColWidth;if(r(e)&&e>n.MIN_COL_WIDTH)return this.gridOptions.minColWidth;var t=this.getFromTheme(null,"headerCellMinWidth");return r(t)?Math.max(t,n.MIN_COL_WIDTH):n.MIN_COL_WIDTH},e.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>n.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},e.prototype.getColWidth=function(){return"number"!==typeof this.gridOptions.colWidth||this.gridOptions.colWidth<n.MIN_COL_WIDTH?200:this.gridOptions.colWidth},e.prototype.getRowBuffer=function(){var e=this.gridOptions.rowBuffer;return"number"===typeof e?e<0&&(D((function(){return console.warn("AG Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),this.gridOptions.rowBuffer=e=0):e=oe.ROW_BUFFER_SIZE,e},e.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.getRowHeightAsNumber()},e.prototype.getScrollbarWidth=function(){if(null==this.scrollbarWidth){var e="number"===typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0?this.gridOptions.scrollbarWidth:zt();null!=e&&(this.scrollbarWidth=e,this.eventService.dispatchEvent({type:Ve.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},e.prototype.checkForDeprecated=function(){var e=this.gridOptions;e.deprecatedEmbedFullWidthRows&&console.warn("AG Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows."),e.rowDeselection&&console.warn("AG Grid: since v24.x, rowDeselection is deprecated and the behaviour is true by default. Please use `suppressRowDeselection` to prevent rows from being deselected."),e.enableMultiRowDragging&&(e.rowDragMultiRow=!0,delete e.enableMultiRowDragging,console.warn("AG Grid: since v26.1, `enableMultiRowDragging` is deprecated. Please use `rowDragMultiRow`."));var t=function(t,n,o){null!=e[t]&&(console.warn("AG Grid: since version "+o+", '"+t+"' is deprecated / renamed, please use the new property name '"+n+"' instead."),null==e[n]&&(e[n]=e[t]))};if(t("batchUpdateWaitMillis","asyncTransactionWaitMillis","23.1.x"),t("deltaRowDataMode","immutableData","23.1.x"),(e.immutableColumns||e.deltaColumnMode)&&console.warn("AG Grid: since v24.0, immutableColumns and deltaColumnMode properties are gone. The grid now works like this as default. To keep column order maintained, set grid property applyColumnDefOrder=true"),t("suppressSetColumnStateEvents","suppressColumnStateEvents","24.0.x"),e.groupRowInnerRenderer||e.groupRowInnerRendererParams||e.groupRowInnerRendererFramework){console.warn("AG Grid: since v24.0, grid properties groupRowInnerRenderer, groupRowInnerRendererFramework and groupRowInnerRendererParams are no longer used."),console.warn("  Instead use the grid properties groupRowRendererParams.innerRenderer, groupRowRendererParams.innerRendererFramework and groupRowRendererParams.innerRendererParams."),console.warn("  For example instead of this:"),console.warn('    groupRowInnerRenderer: "myRenderer"'),console.warn("    groupRowInnerRendererParams: {x: a}"),console.warn("  Replace with this:"),console.warn("    groupRowRendererParams: {"),console.warn('      innerRenderer: "myRenderer",'),console.warn("      innerRendererParams: {x: a}"),console.warn("    }"),console.warn("  We have copied the properties over for you. However to stop this error message, please change your application code."),e.groupRowRendererParams||(e.groupRowRendererParams={});var n=e.groupRowRendererParams;e.groupRowInnerRenderer&&(n.innerRenderer=e.groupRowInnerRenderer),e.groupRowInnerRendererParams&&(n.innerRendererParams=e.groupRowInnerRendererParams),e.groupRowInnerRendererFramework&&(n.innerRendererFramework=e.groupRowInnerRendererFramework)}if(e.rememberGroupStateWhenNewData&&console.warn("AG Grid: since v24.0, grid property rememberGroupStateWhenNewData is deprecated. This feature was provided before Transaction Updates worked (which keep group state). Now that transaction updates are possible and they keep group state, this feature is no longer needed."),e.detailCellRendererParams&&e.detailCellRendererParams.autoHeight&&(console.warn("AG Grid: since v24.1, grid property detailCellRendererParams.autoHeight is replaced with grid property detailRowAutoHeight. This allows this feature to work when you provide a custom DetailCellRenderer"),e.detailRowAutoHeight=!0),e.suppressKeyboardEvent&&console.warn("AG Grid: since v24.1 suppressKeyboardEvent in the gridOptions has been deprecated and will be removed in\n                 future versions of AG Grid. If you need this to be set for every column use the defaultColDef property."),e.suppressEnterpriseResetOnNewColumns&&console.warn("AG Grid: since v25, grid property suppressEnterpriseResetOnNewColumns is deprecated. This was a temporary property to allow changing columns in Server Side Row Model without triggering a reload. Now that it is possible to dynamically change columns in the grid, this is no longer needed."),e.suppressColumnStateEvents&&console.warn('AG Grid: since v25, grid property suppressColumnStateEvents no longer works due to a refactor that we did. It should be possible to achieve similar using event.source, which would be "api" if the event was due to setting column state via the API'),e.defaultExportParams&&console.warn("AG Grid: since v25.2, the grid property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`."),e.stopEditingWhenGridLosesFocus&&(console.warn("AG Grid: since v25.2.2, the grid property `stopEditingWhenGridLosesFocus` has been replaced by `stopEditingWhenCellsLoseFocus`."),e.stopEditingWhenCellsLoseFocus=!0),e.applyColumnDefOrder&&console.warn("AG Grid: since v26.0, the grid property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true"),e.groupMultiAutoColumn&&(console.warn("AG Grid: since v26.0, the grid property `groupMultiAutoColumn` has been replaced by `groupDisplayType = 'multipleColumns'`"),e.groupDisplayType="multipleColumns"),e.groupUseEntireRow&&(console.warn("AG Grid: since v26.0, the grid property `groupUseEntireRow` has been replaced by `groupDisplayType = 'groupRows'`"),e.groupDisplayType="groupRows"),e.groupSuppressAutoColumn){var o=e.treeData?"treeDataDisplayType":"groupDisplayType";console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `"+o+" = 'custom'`"),e.groupDisplayType="custom"}e.defaultGroupOrderComparator&&console.warn("AG Grid: since v27.2, the grid property `defaultGroupOrderComparator` is deprecated and has been replaced by `initialGroupOrderComparator` and now receives a single params object."),e.defaultGroupSortComparator&&(console.warn("AG Grid: since v26.0, the grid property `defaultGroupSortComparator` has been replaced by `initialGroupOrderComparator`"),e.defaultGroupOrderComparator=e.defaultGroupSortComparator),e.groupRowAggNodes&&console.warn("AG Grid: since v27.2, the grid property `groupRowAggNodes` is deprecated and has been replaced by `getGroupRowAgg` and now receives a single params object."),e.postSort&&console.warn("AG Grid: since v27.2, the grid property `postSort` is deprecated and has been replaced by `postSortRows` and now receives a single params object."),e.isFullWidthCell&&console.warn("AG Grid: since v27.2, the grid property `isFullWidthCell` is deprecated and has been replaced by `isFullWidthRow` and now receives a single params object."),e.localeTextFunc&&console.warn("AG Grid: since v27.2, the grid property `localeTextFunc` is deprecated and has been replaced by `getLocaleText` and now receives a single params object."),e.colWidth&&console.warn("AG Grid: since v26.1, the grid property `colWidth` is deprecated and should be set via `defaultColDef.width`."),e.minColWidth&&console.warn("AG Grid: since v26.1, the grid property `minColWidth` is deprecated and should be set via `defaultColDef.minWidth`."),e.maxColWidth&&console.warn("AG Grid: since v26.1, the grid property `maxColWidth` is deprecated and should be set via `defaultColDef.maxWidth`."),e.reactUi&&console.warn("AG Grid: since v27.0, React UI is on by default, so no need for reactUi=true. To turn it off, set suppressReactUi=true."),e.suppressReactUi&&console.warn("AG Grid: The legacy React rendering engine is deprecated and will be removed in the next major version of the grid."),e.suppressCellSelection&&(console.warn("AG Grid: since v27.0, `suppressCellSelection` has been replaced by `suppressCellFocus`."),e.suppressCellFocus=e.suppressCellSelection),e.getRowNodeId&&console.warn("AG Grid: since v27.1, `getRowNodeId` is deprecated and has been replaced by `getRowId`. The difference: if getRowId() is implemented then immutable data is enabled by default."),e.immutableData&&(e.getRowId?console.warn("AG Grid: since v27.1, `immutableData` is deprecated. With the `getRowId` callback implemented, immutable data is enabled by default so you can remove `immutableData=true`."):console.warn("AG Grid: since v27.1, `immutableData` is deprecated. To enable immutable data you must implement the `getRowId()` callback.")),e.clipboardDeliminator&&(console.warn("AG Grid: since v27.1, `clipboardDeliminator` has been replaced by `clipboardDelimiter`."),e.clipboardDelimiter=e.clipboardDeliminator)},e.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},e.prototype.treeDataViolations=function(){this.isRowModelDefault()&&i(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()&&(i(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."),i(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(){var e=this,t=this.gridOptions,n=t.localeText,o=t.getLocaleText,r=t.localeTextFunc;return o?function(t,n,r){var i={key:t,defaultValue:n,variableValues:r,api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext()};return o(i)}:r||function(e,t,o){var r=n&&n[e];if(r&&o&&o.length)for(var i=0;!(i>=o.length);){if(-1===r.indexOf("${variable}"))break;r=r.replace("${variable}",o[i++])}return null!==r&&void 0!==r?r:t}},e.prototype.globalEventHandler=function(e,t){if(!this.destroyed){var n=yt.getCallbackForEvent(e);"function"===typeof this.gridOptions[n]&&this.gridOptions[n](t)}},e.prototype.setRowHeightVariable=function(e){var t=e+"px";this.eGridDiv.style.getPropertyValue("--ag-line-height").trim()!=t&&this.eGridDiv.style.setProperty("--ag-line-height",t)},e.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||i(this.gridOptions.rowHeight))return this.getDefaultRowHeight();var e=this.gridOptions.rowHeight;return e&&this.isNumeric(e)?(this.setRowHeightVariable(e),e):(console.warn("AG Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},e.prototype.isGetRowHeightFunction=function(){return"function"===typeof this.gridOptions.getRowHeight},e.prototype.getRowHeightForNode=function(e,t,n){if(void 0===t&&(t=!1),null==n&&(n=this.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(t)return{height:n,estimated:!0};var o={node:e,data:e.data},r=this.mergeGridCommonParams(this.gridOptions.getRowHeight)(o);if(this.isNumeric(r))return 0===r&&D((function(){return console.warn("AG Grid: The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.")}),"invalidRowHeight"),{height:Math.max(1,r),estimated:!1}}return e.detail&&this.isMasterDetail()?this.isDetailRowAutoHeight()?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}:{height:this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:n,estimated:!1}},e.prototype.isDynamicRowHeight=function(){return"function"===typeof this.gridOptions.getRowHeight},e.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},e.prototype.chartMenuPanelWidth=function(){return this.environment.chartMenuPanelWidth()},e.prototype.isNumeric=function(e){return!isNaN(e)&&"number"===typeof e&&isFinite(e)},e.prototype.getFromTheme=function(e,t){var n=this.environment.getTheme().theme;return n&&0===n.indexOf("ag-theme")?this.environment.getSassVariable(n,t):e},e.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},e.prototype.matchesGroupDisplayType=function(e,t){var n=["groupRows","multipleColumns","custom","singleColumn"];return n.indexOf(t)<0?(console.warn("AG Grid: '"+t+"' is not a valid groupDisplayType value - possible values are: '"+n.join("', '")+"'"),!1):t===e},e.prototype.matchesTreeDataDisplayType=function(e,t){var n=["auto","custom"];return n.indexOf(t)<0?(console.warn("AG Grid: '"+t+"' is not a valid treeDataDisplayType value - possible values are: '"+n.join("', '")+"'"),!1):t===e},e.MIN_COL_WIDTH=10,e.PROP_HEADER_HEIGHT="headerHeight",e.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",e.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",e.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",e.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",e.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",e.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",e.PROP_NAVIGATE_TO_NEXT_CELL="navigateToNextCell",e.PROP_TAB_TO_NEXT_CELL="tabToNextCell",e.PROP_NAVIGATE_TO_NEXT_HEADER="navigateToNextHeader",e.PROP_TAB_TO_NEXT_HEADER="tabToNextHeader",e.PROP_IS_EXTERNAL_FILTER_PRESENT="isExternalFilterPresent",e.PROP_DOES_EXTERNAL_FILTER_PASS="doesExternalFilterPass",e.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",e.PROP_SUPPRESS_ROW_CLICK_SELECTION="suppressRowClickSelection",e.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",e.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG="suppressMoveWhenRowDragging",e.PROP_GET_ROW_CLASS="getRowClass",e.PROP_GET_ROW_STYLE="getRowStyle",e.PROP_GET_ROW_HEIGHT="getRowHeight",e.PROP_POPUP_PARENT="popupParent",e.PROP_DOM_LAYOUT="domLayout",e.PROP_ROW_CLASS="rowClass",e.PROP_FILL_HANDLE_DIRECTION="fillHandleDirection",e.PROP_GROUP_ROW_AGG_NODES="groupRowAggNodes",e.PROP_GET_GROUP_ROW_AGG="getGroupRowAgg",e.PROP_GET_BUSINESS_KEY_FOR_NODE="getBusinessKeyForNode",e.PROP_GET_CHILD_COUNT="getChildCount",e.PROP_PROCESS_ROW_POST_CREATE="processRowPostCreate",e.PROP_GET_ROW_NODE_ID="getRowNodeId",e.PROP_GET_ROW_ID="getRowId",e.PROP_IS_FULL_WIDTH_CELL="isFullWidthCell",e.PROP_IS_FULL_WIDTH_ROW="isFullWidthRow",e.PROP_IS_ROW_SELECTABLE="isRowSelectable",e.PROP_IS_ROW_MASTER="isRowMaster",e.PROP_POST_SORT="postSort",e.PROP_POST_SORT_ROWS="postSortRows",e.PROP_GET_DOCUMENT="getDocument",e.PROP_POST_PROCESS_POPUP="postProcessPopup",e.PROP_DEFAULT_GROUP_ORDER_COMPARATOR="defaultGroupOrderComparator",e.PROP_INITIAL_GROUP_ORDER_COMPARATOR="initialGroupOrderComparator",e.PROP_PAGINATION_NUMBER_FORMATTER="paginationNumberFormatter",e.PROP_GET_CONTEXT_MENU_ITEMS="getContextMenuItems",e.PROP_GET_MAIN_MENU_ITEMS="getMainMenuItems",e.PROP_PROCESS_CELL_FOR_CLIPBOARD="processCellForClipboard",e.PROP_PROCESS_CELL_FROM_CLIPBOARD="processCellFromClipboard",e.PROP_SEND_TO_CLIPBOARD="sendToClipboard",e.PROP_PROCESS_TO_SECONDARY_COLDEF="processSecondaryColDef",e.PROP_PROCESS_SECONDARY_COL_GROUP_DEF="processSecondaryColGroupDef",e.PROP_GET_CHART_TOOLBAR_ITEMS="getChartToolbarItems",e.PROP_GET_SERVER_SIDE_STORE_PARAMS="getServerSideStoreParams",e.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT="isServerSideGroupOpenByDefault",e.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION="isApplyServerSideTransaction",e.PROP_IS_SERVER_SIDE_GROUP="isServerSideGroup",e.PROP_GET_SERVER_SIDE_GROUP_KEY="getServerSideGroupKey",la([K("gridOptions")],e.prototype,"gridOptions",void 0),la([K("eventService")],e.prototype,"eventService",void 0),la([K("environment")],e.prototype,"environment",void 0),la([K("eGridDiv")],e.prototype,"eGridDiv",void 0),la([ua(0,Q("gridApi")),ua(1,Q("columnApi"))],e.prototype,"agWire",null),la([Z],e.prototype,"destroy",null),la([z],e.prototype,"init",null),e=n=la([Y("gridOptionsWrapper")],e)}(),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])},e(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)}}(),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};(ga=t.LayoutCssClasses||(t.LayoutCssClasses={})).AUTO_HEIGHT="ag-layout-auto-height",ga.NORMAL="ag-layout-normal",ga.PRINT="ag-layout-print";var Ca,wa=function(e){function n(t){var n=e.call(this)||this;return n.view=t,n}return va(n,e),n.prototype.postConstruct=function(){this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},n.prototype.updateLayoutClasses=function(){var e=this.gridOptionsWrapper.getDomLayout(),n={autoHeight:e===oe.DOM_LAYOUT_AUTO_HEIGHT,normal:e===oe.DOM_LAYOUT_NORMAL,print:e===oe.DOM_LAYOUT_PRINT},o=n.autoHeight?t.LayoutCssClasses.AUTO_HEIGHT:n.print?t.LayoutCssClasses.PRINT:t.LayoutCssClasses.NORMAL;this.view.updateLayoutClasses(o,n)},ya([K("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),ya([z],n.prototype,"postConstruct",null),n}(Fe),_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])},e(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)}}(),ba=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(e){function t(t){var n=e.call(this)||this;return n.scrollLeft=-1,n.nextScrollTop=-1,n.scrollTop=-1,n.eBodyViewport=t,n.resetLastHorizontalScrollElementDebounced=G(n.resetLastHorizontalScrollElement.bind(n),500),n}return _a(t,e),t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady((function(t){e.centerRowContainerCtrl=t.centerRowContainerCtrl,e.onDisplayedColumnsWidthChanged(),e.addScrollListener()}))},t.prototype.addScrollListener=function(){var e=this.ctrlsService.getFakeHScrollCtrl();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onCenterViewportScroll.bind(this)),this.addManagedListener(e.getViewport(),"scroll",this.onFakeHorizontalScroll.bind(this));var t=this.gridOptionsWrapper.isDebounceVerticalScrollbar()?G(this.onVerticalScroll.bind(this),100):this.onVerticalScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",t)},t.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){if(!(null==this.centerRowContainerCtrl)){void 0===e&&(e=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var t=this.enableRtl?e:-e,n=this.ctrlsService.getTopCenterRowContainerCtrl(),o=this.ctrlsService.getBottomCenterRowContainerCtrl(),r=this.ctrlsService.getFakeHScrollCtrl();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(t),o.setContainerTranslateX(t),n.setContainerTranslateX(t),pn(this.lastHorizontalScrollElement===this.centerRowContainerCtrl.getViewportElement()?r.getViewport():this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl)}},t.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},t.prototype.onFakeHorizontalScroll=function(){var e=this.ctrlsService.getFakeHScrollCtrl().getViewport();this.isControllingScroll(e)&&this.onBodyHorizontalScroll(e)},t.prototype.onCenterViewportScroll=function(){var e=this.centerRowContainerCtrl.getViewportElement();this.isControllingScroll(e)&&this.onBodyHorizontalScroll(e)},t.prototype.onBodyHorizontalScroll=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollLeft;this.shouldBlockScrollUpdate("horizontal",t,!0)||(this.doHorizontalScroll(Math.round(cn(e,this.enableRtl))),this.resetLastHorizontalScrollElementDebounced())},t.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.shouldBlockScrollUpdate("vertical",e,!0)||(this.animationFrameService.setScrollTop(e),this.nextScrollTop=e,this.gridOptionsWrapper.isSuppressAnimationFrame()?(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()):this.animationFrameService.schedule())},t.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},t.prototype.doHorizontalScroll=function(e){var t=cn(this.ctrlsService.getFakeHScrollCtrl().getViewport(),this.enableRtl);this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent("horizontal"),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged())},t.prototype.fireScrollEvent=function(e){var t=this,n={type:Ve.EVENT_BODY_SCROLL,api:this.gridApi,columnApi:this.columnApi,direction:e,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(n),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout((function(){var e=Object.assign({},n,{type:Ve.EVENT_BODY_SCROLL_END});t.eventService.dispatchEvent(e)}),100)},t.prototype.shouldBlockScrollUpdate=function(e,t,n){if(void 0===n&&(n=!1),n&&!Wt())return!1;if("vertical"===e){var o=rn(this.eBodyViewport),r=this.eBodyViewport.scrollHeight;if(t<0||t+o>r)return!0}if("horizontal"===e){var i=this.centerRowContainerCtrl.getCenterWidth(),s=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&un()){if(t>0)return!0}else if(t<0)return!0;if(Math.abs(t)+i>s)return!0}return!1},t.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent("vertical")},t.prototype.onHorizontalViewportChanged=function(){this.centerRowContainerCtrl.onHorizontalViewportChanged()},t.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onBodyHorizontalScroll(this.centerRowContainerCtrl.getViewportElement())},t.prototype.executeAnimationFrameScroll=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},t.prototype.setHorizontalScrollPosition=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();this.shouldBlockScrollUpdate("horizontal",e)&&(e=this.enableRtl&&un()?e>0?0:t:Math.min(Math.max(e,0),t)),pn(this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},t.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},t.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},t.prototype.scrollHorizontally=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowContainerCtrl.getViewportElement().scrollLeft-t},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.ensureNodeVisible=function(e,t){void 0===t&&(t=null);for(var n=this.rowModel.getRowCount(),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.ensureIndexVisible(r,t)},t.prototype.ensureIndexVisible=function(e,t){if(this.gridOptionsWrapper.getDomLayout()!==oe.DOM_LAYOUT_PRINT){var n=this.paginationProxy.getRowCount();if("number"!==typeof e||e<0||e>=n)console.warn("invalid row index for ensureIndexVisible: "+e);else{this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()||this.paginationProxy.goToPageWithIndex(e);var 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.getDivStretchOffset(),d=c.top+p,h=c.bottom+p,f=h-d,g=this.heightScaler.getScrollPositionForPixel(l),m=this.heightScaler.getScrollPositionForPixel(u-f),v=Math.min((g+m)/2,l),y=null;"top"===t?y=g:"bottom"===t?y=m:"middle"===t?y=v:d>l?y=g:h<u&&(y=m),null!==y&&(this.eBodyViewport.scrollTop=y,this.rowRenderer.redrawAfterScroll()),o=i!==r.rowTop||s!==r.rowHeight}while(o);this.animationFrameService.flushAllFrames()}}},t.prototype.ensureColumnVisible=function(e,t){void 0===t&&(t="auto");var n=this.columnModel.getGridColumn(e);if(n&&!n.isPinned()&&this.columnModel.isColumnDisplayed(n)){var o=this.getPositionedHorizontalScroll(n,t);null!==o&&this.centerRowContainerCtrl.setCenterViewportScrollLeft(o),this.centerRowContainerCtrl.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}},t.prototype.getPositionedHorizontalScroll=function(e,t){var n=this.isColumnOutsideViewport(e),o=n.columnBeforeStart,r=n.columnAfterEnd,i=this.centerRowContainerCtrl.getCenterWidth()<e.getActualWidth(),s=this.centerRowContainerCtrl.getCenterWidth(),a=this.enableRtl,l=(a?o:r)||i,u=a?r:o;"auto"!==t&&(l="start"===t,u="end"===t);var c="middle"===t;if(l||u||c){var p=this.getColumnBounds(e),d=p.colLeft,h=p.colMiddle,f=p.colRight;return c?h-s/2:l?a?f:d:a?d-s:f-s}return null},t.prototype.isColumnOutsideViewport=function(e){var t=this.getViewportBounds(),n=t.start,o=t.end,r=this.getColumnBounds(e),i=r.colLeft,s=r.colRight,a=this.enableRtl;return{columnBeforeStart:a?n>s:o<s,columnAfterEnd:a?o<i:n>i}},t.prototype.getColumnBounds=function(e){var t=this.enableRtl,n=this.columnModel.getBodyContainerWidth(),o=e.getActualWidth(),r=e.getLeft(),i=t?-1:1,s=t?n-r:r;return{colLeft:s,colMiddle:s+o/2*i,colRight:s+o*i}},t.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),t=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:t,end:e+t,width:e}},ba([K("ctrlsService")],t.prototype,"ctrlsService",void 0),ba([K("animationFrameService")],t.prototype,"animationFrameService",void 0),ba([K("columnApi")],t.prototype,"columnApi",void 0),ba([K("gridApi")],t.prototype,"gridApi",void 0),ba([K("paginationProxy")],t.prototype,"paginationProxy",void 0),ba([K("rowModel")],t.prototype,"rowModel",void 0),ba([K("rowContainerHeightService")],t.prototype,"heightScaler",void 0),ba([K("rowRenderer")],t.prototype,"rowRenderer",void 0),ba([K("columnModel")],t.prototype,"columnModel",void 0),ba([z],t.prototype,"postConstruct",null),t}(Fe),Sa=function(){function e(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=-1!==e.scrollAxis.indexOf("x"),this.scrollVertically=-1!==e.scrollAxis.indexOf("y"),this.scrollByTick=null!=e.scrollByTick?e.scrollByTick:20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||function(){return!1}}return e.prototype.check=function(e,t){void 0===t&&(t=!1);var n=t||this.shouldSkipVerticalScroll();if(!n||!this.shouldSkipHorizontalScroll()){var o=this.scrollContainer.getBoundingClientRect(),r=this.scrollByTick;this.tickLeft=e.clientX<o.left+r,this.tickRight=e.clientX>o.right-r,this.tickUp=e.clientY<o.top+r&&!n,this.tickDown=e.clientY>o.bottom-r&&!n,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},e.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},e.prototype.doTick=function(){var e;if(this.tickCount++,e=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){var n=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(n-e),this.tickRight&&this.setHorizontalPosition(n+e)}this.onScrollCallback&&this.onScrollCallback()},e.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},e}(),Ra=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Oa=function(){return Oa=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},Oa.apply(this,arguments)},Ta=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},Pa=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Aa=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Pa(arguments[t]));return e},Da=function(e){function n(t){var n=e.call(this)||this;return n.isMultiRowDrag=!1,n.isGridSorted=!1,n.isGridFiltered=!1,n.isRowGroupActive=!1,n.eContainer=t,n}return Ra(n,e),n.prototype.postConstruct=function(){var e=this;this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel);var t=function(){e.onSortChanged(),e.onFilterChanged(),e.onRowGroupChanged()};this.addManagedListener(this.eventService,Ve.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_MODEL_UPDATED,(function(){t()})),t(),this.ctrlsService.whenReady((function(){var t=e.ctrlsService.getGridBodyCtrl();e.autoScrollService=new Sa({scrollContainer:t.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:function(){return t.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(e){return t.getScrollFeature().setVerticalScrollPosition(e)},onScrollCallback:function(){e.onDragging(e.lastDraggingEvent)}})}))},n.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},n.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},n.prototype.onRowGroupChanged=function(){var e=this.columnModel.getRowGroupColumns();this.isRowGroupActive=!s(e)},n.prototype.getContainer=function(){return this.eContainer},n.prototype.isInterestedIn=function(e){return e===t.DragSourceType.RowDrag},n.prototype.getIconName=function(){return this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()?ts.ICON_NOT_ALLOWED:ts.ICON_MOVE},n.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},n.prototype.getRowNodes=function(e){var t=this;if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];var n=this.gridOptionsWrapper.isRowDragMultiRow(),o=Aa(this.selectionService.getSelectedNodes()).sort((function(e,n){return t.getRowIndexNumber(e)-t.getRowIndexNumber(n)})),r=e.dragItem.rowNode;return n&&-1!==o.indexOf(r)?(this.isMultiRowDrag=!0,o):(this.isMultiRowDrag=!1,[r])},n.prototype.onDragEnter=function(e){e.dragItem.rowNodes=this.getRowNodes(e),this.dispatchGridEvent(Ve.EVENT_ROW_DRAG_ENTER,e),this.getRowNodes(e).forEach((function(e){e.setDragging(!0)})),this.onEnterOrDragging(e)},n.prototype.onDragging=function(e){this.onEnterOrDragging(e)},n.prototype.isFromThisGrid=function(e){return e.dragSource.dragSourceDomDataKey===this.gridOptionsWrapper.getDomDataKey()},n.prototype.isDropZoneWithinThisGrid=function(e){var t=this.ctrlsService.getGridBodyCtrl().getGui(),n=e.dropZoneTarget;return!t.contains(n)},n.prototype.onEnterOrDragging=function(e){this.dispatchGridEvent(Ve.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var t=this.mouseEventService.getNormalisedPosition(e).y;this.gridOptionsWrapper.isRowDragManaged()&&this.doManagedDrag(e,t),this.autoScrollService.check(e.event)},n.prototype.doManagedDrag=function(e,t){var n=this.isFromThisGrid(e),o=this.gridOptionsWrapper.isRowDragManaged(),r=e.dragItem.rowNodes;o&&this.shouldPreventRowMove()||(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!n?this.isDropZoneWithinThisGrid(e)||this.clientSideRowModel.highlightRowAtPixel(r[0],t):this.moveRows(r,t))},n.prototype.getRowIndexNumber=function(e){return parseInt(ue(e.getRowIndexString().split("-")),10)},n.prototype.moveRowAndClearHighlight=function(e){var n=this,o=this.clientSideRowModel.getLastHighlightedRowNode(),r=o&&o.highlighted===t.RowHighlightPosition.Below,i=this.mouseEventService.getNormalisedPosition(e).y,s=e.dragItem.rowNodes,a=r?1:0;if(this.isFromThisGrid(e))s.forEach((function(e){e.rowTop<i&&(a-=1)})),this.moveRows(s,i,a);else{var l=this.gridOptionsWrapper.getRowIdFunc(),u=this.clientSideRowModel.getRowIndexAtPixel(i)+1;this.clientSideRowModel.getHighlightPosition(i)===t.RowHighlightPosition.Above&&u--,this.clientSideRowModel.updateRowData({add:s.map((function(e){return e.data})).filter((function(e){return!n.clientSideRowModel.getRowNode(l?l({data:e,level:0}):e.id)})),addIndex:u})}this.clearRowHighlight()},n.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},n.prototype.moveRows=function(e,t,n){void 0===n&&(n=0),this.clientSideRowModel.ensureRowsAtPixel(e,t,n)&&(this.focusService.clearFocusedCell(),this.rangeService&&this.rangeService.removeAllCellRanges())},n.prototype.addRowDropZone=function(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(Ve.EVENT_ROW_DRAG_ENTER,t))}),e.onDragLeave&&(o.onDragLeave=function(t){e.onDragLeave(n.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_LEAVE,t))}),e.onDragging&&(o.onDragging=function(t){e.onDragging(n.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_MOVE,t))}),e.onDragStop&&(o.onDragStop=function(t){e.onDragStop(n.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_END,t))})),this.dragAndDropService.addDropTarget(Oa({isInterestedIn:function(e){return e===t.DragSourceType.RowDrag},getIconName:function(){return ts.ICON_MOVE},external:!0},o))}else D((function(){return console.warn("AG Grid: addRowDropZone - A container target needs to be provided")}),"add-drop-zone-empty-target")},n.prototype.getRowDropZone=function(e){var t=this,n=this.getContainer.bind(this),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(Ve.EVENT_ROW_DRAG_ENTER,n))}:o,onDragLeave:e.onDragLeave?function(n){r(n),e.onDragLeave(t.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_LEAVE,n))}:r,onDragging:e.onDragging?function(n){i(n),e.onDragging(t.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_MOVE,n))}:i,onDragStop:e.onDragStop?function(n){s(n),e.onDragStop(t.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_END,n))}:s,fromGrid:!0}:{getContainer:n,onDragEnter:o,onDragLeave:r,onDragging:i,onDragStop:s,fromGrid:!0}},n.prototype.draggingToRowDragEvent=function(e,n){var o,r,i=this.mouseEventService.getNormalisedPosition(n).y,s=-1;switch(i>this.paginationProxy.getCurrentPageHeight()||(s=this.rowModel.getRowIndexAtPixel(i),o=this.rowModel.getRow(s)),n.vDirection){case t.VerticalDirection.Down:r="down";break;case t.VerticalDirection.Up:r="up";break;default:r=null}return{type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),event:n.event,node:n.dragItem.rowNode,nodes:n.dragItem.rowNodes,overIndex:s,overNode:o,y:i,vDirection:r}},n.prototype.dispatchGridEvent=function(e,t){var n=this.draggingToRowDragEvent(e,t);this.eventService.dispatchEvent(n)},n.prototype.onDragLeave=function(e){this.dispatchGridEvent(Ve.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsWrapper.isRowDragManaged()&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},n.prototype.onDragStop=function(e){this.dispatchGridEvent(Ve.EVENT_ROW_DRAG_END,e),this.stopDragging(e),!this.gridOptionsWrapper.isRowDragManaged()||!this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()&&this.isFromThisGrid(e)||this.isDropZoneWithinThisGrid(e)||this.moveRowAndClearHighlight(e)},n.prototype.stopDragging=function(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach((function(e){e.setDragging(!1)}))},Ta([K("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Ta([K("rowModel")],n.prototype,"rowModel",void 0),Ta([K("paginationProxy")],n.prototype,"paginationProxy",void 0),Ta([K("columnModel")],n.prototype,"columnModel",void 0),Ta([K("focusService")],n.prototype,"focusService",void 0),Ta([K("sortController")],n.prototype,"sortController",void 0),Ta([K("filterManager")],n.prototype,"filterManager",void 0),Ta([K("selectionService")],n.prototype,"selectionService",void 0),Ta([K("mouseEventService")],n.prototype,"mouseEventService",void 0),Ta([K("ctrlsService")],n.prototype,"ctrlsService",void 0),Ta([q("rangeService")],n.prototype,"rangeService",void 0),Ta([K("columnApi")],n.prototype,"columnApi",void 0),Ta([K("gridApi")],n.prototype,"gridApi",void 0),Ta([z],n.prototype,"postConstruct",null),n}(Fe),xa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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};(Ca=t.RowAnimationCssClasses||(t.RowAnimationCssClasses={})).ANIMATION_ON="ag-row-animation",Ca.ANIMATION_OFF="ag-row-no-animation";var Ma,Ia,La="ag-selectable",Fa="ag-force-vertical-scroll",ka="ag-column-moving",Ga=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return xa(n,e),n.prototype.getScrollFeature=function(){return this.bodyScrollFeature},n.prototype.getBodyViewportElement=function(){return this.eBodyViewport},n.prototype.setComp=function(e,t,n,o,r){this.comp=e,this.eGridBody=t,this.eBodyViewport=n,this.eTop=o,this.eBottom=r,this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.createManagedBean(new wa(this.comp)),this.bodyScrollFeature=this.createManagedBean(new Ea(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([o,n,r]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.ctrlsService.registerGridBodyCtrl(this)},n.prototype.getComp=function(){return this.comp},n.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Ve.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_PINNED_ROW_DATA_CHANGED,this.setFloatingHeights.bind(this))},n.prototype.addFocusListeners=function(e){var t=this;e.forEach((function(e){t.addManagedListener(e,"focusin",(function(){e.classList.add("ag-has-focus")})),t.addManagedListener(e,"focusout",(function(t){e.contains(t.relatedTarget)||e.classList.remove("ag-has-focus")}))}))},n.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss(e?ka:null,e)},n.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1);var t=e?La:null;this.comp.setCellSelectableCss(t,e)},n.prototype.onScrollVisibilityChanged=function(){var e=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(e)},n.prototype.onGridColumnsChanged=function(){var e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e?e.length:0)},n.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",(function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}))},n.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus()){var t=function(t){var o=t.relatedTarget;if(null!==jt(o)){var r=n.some((function(e){return e.contains(o)}))&&e.mouseEventService.isElementInThisGrid(o);if(!r){var i=e.popupService;r=i.getActivePopups().some((function(e){return e.contains(o)}))||i.isElementWithinCustomPopup(o)}r||e.rowRenderer.stopEditing()}else e.rowRenderer.stopEditing()},n=[this.eBodyViewport,this.eBottom,this.eTop];n.forEach((function(n){return e.addManagedListener(n,"focusout",t)}))}},n.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount(),t=this.paginationProxy.getType(),n=-1;t===oe.ROW_MODEL_TYPE_CLIENT_SIDE&&(n=0,this.paginationProxy.forEachNode((function(e){e.group||n++})));var o=-1===n?-1:e+n;this.comp.setRowCount(o)},n.prototype.registerBodyViewportResizeListener=function(e){this.comp.registerBodyViewportResizeListener(e)},n.prototype.setVerticalScrollPaddingVisible=function(e){var t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)},n.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowVerticalScroll(),t=e?Fa:null;return this.comp.setAlwaysVerticalScrollClass(t,e),e||En(this.eBodyViewport)},n.prototype.setupRowAnimationCssClass=function(){var e=this,n=function(){var n=e.gridOptionsWrapper.isAnimateRows()&&!e.rowContainerHeightService.isStretching(),o=n?t.RowAnimationCssClasses.ANIMATION_ON:t.RowAnimationCssClasses.ANIMATION_OFF;e.comp.setRowAnimationCssOnBodyViewport(o,n)};n(),this.addManagedListener(this.eventService,Ve.EVENT_HEIGHT_SCALE_CHANGED,n)},n.prototype.getGridBodyElement=function(){return this.eGridBody},n.prototype.addBodyViewportListener=function(){var e=this;this.addManagedListener(this.eBodyViewport,"contextmenu",(function(t){e.gridOptionsWrapper.isPreventDefaultOnContextMenu()&&t.preventDefault();var n=t.target;n!==e.eBodyViewport&&n!==e.ctrlsService.getCenterRowContainerCtrl().getViewportElement()||e.contextMenuFactory&&e.contextMenuFactory.onContextMenu(t,null,null,null,null,e.eGridBody)})),this.addManagedListener(this.eBodyViewport,"wheel",this.onWheel.bind(this))},n.prototype.onWheel=function(e){this.gridOptionsWrapper.isSuppressScrollWhenPopupsAreOpen()&&this.popupService.hasAnchoredPopup()&&e.preventDefault()},n.prototype.getGui=function(){return this.eGridBody},n.prototype.scrollVertically=function(e){var t=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t},n.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new Da(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},n.prototype.getRowDragFeature=function(){return this.rowDragFeature},n.prototype.setFloatingHeights=function(){var e=this.pinnedRowModel,t=e.getPinnedTopTotalHeight();t&&(t+=1);var n=e.getPinnedBottomTotalHeight();n&&(n+=1),this.comp.setTopHeight(t),this.comp.setBottomHeight(n),this.comp.setTopDisplay(t?"inherit":"none"),this.comp.setBottomDisplay(n?"inherit":"none")},n.prototype.sizeColumnsToFit=function(e){var t=this,n=this.isVerticalScrollShowing()?this.gridOptionsWrapper.getScrollbarWidth():0,o=sn(this.eBodyViewport)-n;o>0?this.columnModel.sizeColumnsToFit(o,"sizeColumnsToFit"):void 0===e?window.setTimeout((function(){t.sizeColumnsToFit(100)}),0):100===e?window.setTimeout((function(){t.sizeColumnsToFit(500)}),100):500===e?window.setTimeout((function(){t.sizeColumnsToFit(-1)}),500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},n.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},n.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},Na([K("rowContainerHeightService")],n.prototype,"rowContainerHeightService",void 0),Na([K("ctrlsService")],n.prototype,"ctrlsService",void 0),Na([K("columnModel")],n.prototype,"columnModel",void 0),Na([K("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),Na([q("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),Na([K("headerNavigationService")],n.prototype,"headerNavigationService",void 0),Na([K("paginationProxy")],n.prototype,"paginationProxy",void 0),Na([K("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Na([K("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),Na([K("rowRenderer")],n.prototype,"rowRenderer",void 0),Na([K("popupService")],n.prototype,"popupService",void 0),Na([K("mouseEventService")],n.prototype,"mouseEventService",void 0),n}(Fe);(Ma=t.SelectionHandleType||(t.SelectionHandleType={}))[Ma.FILL=0]="FILL",Ma[Ma.RANGE=1]="RANGE",(Ia=t.CellRangeType||(t.CellRangeType={}))[Ia.VALUE=0]="VALUE",Ia[Ia.DIMENSION=1]="DIMENSION";var Ha,Ba="ag-cell-range-selected",Va=function(){function e(e,t){this.beans=e,this.cellCtrl=t}return e.prototype.setComp=function(e,t){this.cellComp=e,this.eGui=t,this.onRangeSelectionChanged()},e.prototype.onRangeSelectionChanged=function(){this.cellComp&&(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(Ba,0!==this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-1",1===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-2",2===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-3",3===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),lo(this.eGui,this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass("ag-cell-range-single-cell",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},e.prototype.updateRangeBorders=function(){var e=this.getRangeBorders(),t=this.isSingleCell(),n=!t&&e.top,o=!t&&e.right,r=!t&&e.bottom,i=!t&&e.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",n),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",o),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",r),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",i)},e.prototype.isSingleCell=function(){var e=this.beans.rangeService;return 1===this.rangeCount&&e&&!e.isMoreThanOneCell()},e.prototype.getHasChartRange=function(){var e=this.beans.rangeService;if(!this.rangeCount||!e)return!1;var n=e.getCellRanges();return n.length>0&&n.every((function(e){return me([t.CellRangeType.DIMENSION,t.CellRangeType.VALUE],e.type)}))},e.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},e.prototype.getRangeBorders=function(){var e,t,n=this,o=this.beans.gridOptionsWrapper.isEnableRtl(),r=!1,i=!1,s=!1,a=!1,l=this.cellCtrl.getCellPosition().column,u=this.beans,c=u.rangeService,p=u.columnModel;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.cellCtrl.getCellPosition(),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),m=c.getRangeEndRow(f);!r&&this.beans.rowPositionUtils.sameRow(g,this.cellCtrl.getCellPosition())&&(r=!0),!s&&this.beans.rowPositionUtils.sameRow(m,this.cellCtrl.getCellPosition())&&(s=!0),!a&&e&&f.columns.indexOf(e)<0&&(a=!0),!i&&t&&f.columns.indexOf(t)<0&&(i=!0)}return{top:r,right:i,bottom:s,left:a}},e.prototype.refreshHandle=function(){if(this.beans.rangeService){var e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),e&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass("ag-cell-range-handle",!!this.selectionHandle)}},e.prototype.shouldHaveSelectionHandle=function(){var e=this.beans,n=e.gridOptionsWrapper,o=e.rangeService,r=o.getCellRanges(),i=r.length;if(this.rangeCount<1||i<1)return!1;var s=ue(r),a=this.cellCtrl.getCellPosition(),l=n.isEnableFillHandle()&&!this.cellCtrl.isSuppressFillHandle(),u=n.isEnableRangeHandle(),c=1===i&&!this.cellCtrl.isEditing()&&(l||u);if(this.hasChartRange){var p=r[0].type===t.CellRangeType.DIMENSION&&o.isCellInSpecificRange(a,r[0]);this.cellComp.addOrRemoveCssClass("ag-cell-range-chart-category",p),c=s.type===t.CellRangeType.VALUE}return c&&null!=s.endRow&&o.isContiguousRange(s)&&o.isBottomRightCell(s,a)},e.prototype.addSelectionHandle=function(){var e=this.beans,n=e.gridOptionsWrapper,o=ue(e.rangeService.getCellRanges()).type,r=n.isEnableFillHandle()&&i(o)?t.SelectionHandleType.FILL:t.SelectionHandleType.RANGE;this.selectionHandle&&this.selectionHandle.getType()!==r&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.beans.selectionHandleFactory.createSelectionHandle(r)),this.selectionHandle.refresh(this.cellCtrl)},e.prototype.destroy=function(){this.beans.context.destroyBean(this.selectionHandle)},e}(),Wa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),ja=function(e){function t(t,n){var o=e.call(this)||this;return o.cellCtrl=t,o.beans=n,o.column=t.getColumn(),o.rowNode=t.getRowNode(),o.setupColSpan(),o.setupRowSpan(),o}return Wa(t,e),t.prototype.setupRowSpan=function(){this.rowSpan=this.column.getRowSpan(this.rowNode)},t.prototype.setComp=function(e){this.eGui=e,this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()},t.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();ce(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},t.prototype.setupColSpan=function(){null!=this.column.getColDef().colSpan&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListener(this.beans.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)))},t.prototype.onWidthChanged=function(){if(this.eGui){var e=this.getCellWidth();this.eGui.style.width=e+"px"}},t.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce((function(e,t){return e+t.getActualWidth()}),0):this.column.getActualWidth()},t.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),t=[];if(1===e)t.push(this.column);else for(var n=this.column,o=this.column.getPinned(),r=0;n&&r<e&&(t.push(n),(n=this.beans.columnModel.getDisplayedColAfter(n))&&!i(n))&&o===n.getPinned();r++);return t},t.prototype.onLeftChanged=function(){if(this.eGui){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=e+"px"}},t.prototype.getCellLeft=function(){return(this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?ue(this.colsSpanning):this.column).getLeft()},t.prototype.modifyLeftForPrintLayout=function(e){if(!this.cellCtrl.isPrintLayout()||this.column.getPinned()===oe.PINNED_LEFT)return e;var t=this.beans.columnModel.getDisplayedColumnsLeftWidth();return this.column.getPinned()===oe.PINNED_RIGHT?t+this.beans.columnModel.getBodyContainerWidth()+(e||0):t+(e||0)},t.prototype.applyRowSpan=function(){if(1!==this.rowSpan){var e=this.beans.gridOptionsWrapper.getRowHeightAsNumber()*this.rowSpan;this.eGui.style.height=e+"px",this.eGui.style.zIndex="1"}},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Fe),Ua=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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,n){var o=e.call(this)||this;return o.staticClasses=[],o.cellCtrl=t,o.beans=n,o.column=t.getColumn(),o.rowNode=t.getRowNode(),o}return Ua(t,e),t.prototype.setComp=function(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()},t.prototype.applyCellClassRules=function(){var e=this,t=this.column.getColDef(),n={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:t,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};this.beans.stylingService.processClassRules(t.cellClassRules,n,(function(t){return e.cellComp.addOrRemoveCssClass(t,!0)}),(function(t){return e.cellComp.addOrRemoveCssClass(t,!1)}))},t.prototype.applyUserStyles=function(){var e=this.column.getColDef();if(e.cellStyle){var t;if("function"===typeof e.cellStyle){var n={column:this.column,value:this.cellCtrl.getValue(),colDef:e,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};t=(0,e.cellStyle)(n)}else t=e.cellStyle;this.cellComp.setUserStyles(t)}},t.prototype.applyClassesFromColDef=function(){var e=this,t=this.column.getColDef(),n={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:t,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};this.staticClasses.length&&this.staticClasses.forEach((function(t){return e.cellComp.addOrRemoveCssClass(t,!1)})),this.staticClasses=this.beans.stylingService.getStaticCellClasses(t,n),this.staticClasses.length&&this.staticClasses.forEach((function(t){return e.cellComp.addOrRemoveCssClass(t,!0)}))},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Fe),Za=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Ya=function(e){function t(t,n){var o=e.call(this)||this;return o.ctrl=t,o.beans=n,o}return Za(t,e),t.prototype.setComp=function(e){this.comp=e,this.setupTooltip()},t.prototype.setupTooltip=function(){this.browserTooltips=this.beans.gridOptionsWrapper.isEnableBrowserTooltips(),this.updateTooltipText(),this.browserTooltips?this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0):this.createTooltipFeatureIfNeeded()},t.prototype.updateTooltipText=function(){this.tooltip=this.ctrl.getTooltipValue()},t.prototype.createTooltipFeatureIfNeeded=function(){var e=this;if(null==this.genericTooltipFeature){var t={getTooltipParams:function(){return e.getTooltipParams()},getGui:function(){return e.ctrl.getGui()}};this.genericTooltipFeature=this.createManagedBean(new Xo(t),this.beans.context)}},t.prototype.refreshToolTip=function(){this.updateTooltipText(),this.browserTooltips&&this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0)},t.prototype.getTooltipParams=function(){var e=this.ctrl,t=e.getColumn?e.getColumn():void 0,n=e.getColDef?e.getColDef():void 0,o=e.getRowNode?e.getRowNode():void 0;return{location:e.getLocation(),colDef:n,column:t,rowIndex:e.getRowIndex?e.getRowIndex():void 0,node:o,data:o?o.data:void 0,value:this.getTooltipText(),valueFormatted:e.getValueFormatted?e.getValueFormatted():void 0}},t.prototype.getTooltipText=function(){return this.tooltip},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Fe),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},qa=function(){function e(){}return e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.gridOptionsWrapper.isRowModelServerSide()&&(this.serverSideRowModel=this.rowModel)},Ka([K("resizeObserverService")],e.prototype,"resizeObserverService",void 0),Ka([K("paginationProxy")],e.prototype,"paginationProxy",void 0),Ka([K("context")],e.prototype,"context",void 0),Ka([K("columnApi")],e.prototype,"columnApi",void 0),Ka([K("gridApi")],e.prototype,"gridApi",void 0),Ka([K("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ka([K("expressionService")],e.prototype,"expressionService",void 0),Ka([K("rowRenderer")],e.prototype,"rowRenderer",void 0),Ka([K("templateService")],e.prototype,"templateService",void 0),Ka([K("valueService")],e.prototype,"valueService",void 0),Ka([K("eventService")],e.prototype,"eventService",void 0),Ka([K("columnModel")],e.prototype,"columnModel",void 0),Ka([K("headerNavigationService")],e.prototype,"headerNavigationService",void 0),Ka([K("navigationService")],e.prototype,"navigationService",void 0),Ka([K("columnAnimationService")],e.prototype,"columnAnimationService",void 0),Ka([q("rangeService")],e.prototype,"rangeService",void 0),Ka([K("focusService")],e.prototype,"focusService",void 0),Ka([q("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),Ka([K("popupService")],e.prototype,"popupService",void 0),Ka([K("valueFormatterService")],e.prototype,"valueFormatterService",void 0),Ka([K("stylingService")],e.prototype,"stylingService",void 0),Ka([K("columnHoverService")],e.prototype,"columnHoverService",void 0),Ka([K("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Ka([K("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),Ka([K("animationFrameService")],e.prototype,"animationFrameService",void 0),Ka([K("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Ka([K("sortController")],e.prototype,"sortController",void 0),Ka([K("filterManager")],e.prototype,"filterManager",void 0),Ka([K("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),Ka([K("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Ka([K("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),Ka([K("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),Ka([K("selectionService")],e.prototype,"selectionService",void 0),Ka([q("selectionHandleFactory")],e.prototype,"selectionHandleFactory",void 0),Ka([K("rowCssClassCalculator")],e.prototype,"rowCssClassCalculator",void 0),Ka([K("rowModel")],e.prototype,"rowModel",void 0),Ka([K("ctrlsService")],e.prototype,"ctrlsService",void 0),Ka([K("ctrlsFactory")],e.prototype,"ctrlsFactory",void 0),Ka([K("agStackComponentsRegistry")],e.prototype,"agStackComponentsRegistry",void 0),Ka([K("valueCache")],e.prototype,"valueCache",void 0),Ka([K("rowNodeEventThrottle")],e.prototype,"rowNodeEventThrottle",void 0),Ka([z],e.prototype,"postConstruct",null),e=Ka([Y("beans")],e)}(),Xa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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){function t(t,n,o){var r=e.call(this)||this;return r.cellCtrl=t,r.beans=n,r.column=o,r}return Xa(t,e),t.prototype.onMouseEvent=function(e,t){if(!Te(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t)}},t.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var t=this.beans,n=t.eventService,o=t.gridOptionsWrapper,r=this.cellCtrl.createEvent(e,Ve.EVENT_CELL_CLICKED);n.dispatchEvent(r);var i=this.column.getColDef();i.onCellClicked&&window.setTimeout((function(){return i.onCellClicked(r)}),0),(o.isSingleClickEdit()||i.singleClickEdit)&&!o.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit()},t.prototype.isDoubleClickOnIPad=function(){if(!Wt()||Pe("dblclick"))return!1;var e=(new Date).getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t},t.prototype.onCellDoubleClicked=function(e){var t=this.column.getColDef(),n=this.cellCtrl.createEvent(e,Ve.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(n),"function"===typeof t.onCellDoubleClicked&&window.setTimeout((function(){return t.onCellDoubleClicked(n)}),0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit(null,null,e)},t.prototype.onMouseDown=function(e){var t=e.ctrlKey,n=e.metaKey,o=e.shiftKey,r=e.target,i=this.beans,s=i.eventService,a=i.rangeService;if(!this.isRightClickInExistingRange(e)){var l=a&&0!=a.getCellRanges().length;if(!o||!l){var u=Gt()&&!this.cellCtrl.isEditing()&&!Jt(r);this.cellCtrl.focusCell(u)}if(o&&l&&e.preventDefault(),!this.containsWidget(r)){if(a){var c=this.cellCtrl.getCellPosition();if(o)a.extendLatestRangeToCell(c);else{var p=t||n;a.setRangeToCell(c,p)}}s.dispatchEvent(this.cellCtrl.createEvent(e,Ve.EVENT_CELL_MOUSE_DOWN))}}},t.prototype.isRightClickInExistingRange=function(e){var t=this.beans.rangeService;if(t&&(t.isCellInAnyRange(this.cellCtrl.getCellPosition())&&2===e.button))return!0;return!1},t.prototype.containsWidget=function(e){return nn(e,"ag-selection-checkbox",3)},t.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,Ve.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()}},t.prototype.onMouseOver=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,Ve.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])}},t.prototype.mouseStayingInsideCell=function(e){if(!e.target||!e.relatedTarget)return!1;var t=this.cellCtrl.getGui(),n=t.contains(e.target),o=t.contains(e.relatedTarget);return n&&o},t.prototype.destroy=function(){},t}(qa),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])},e(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){function t(t,n,o,r,i){var s=e.call(this)||this;return s.cellCtrl=t,s.beans=n,s.rowNode=r,s.rowCtrl=i,s}return Ja(t,e),t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var t=e.key;switch(t){case dr.ENTER:this.onEnterKeyDown(e);break;case dr.F2:this.onF2KeyDown(e);break;case dr.ESCAPE:this.onEscapeKeyDown(e);break;case dr.TAB:this.onTabKeyDown(e);break;case dr.BACKSPACE:case dr.DELETE:this.onBackspaceOrDeleteKeyPressed(t,e);break;case dr.DOWN:case dr.UP:case dr.RIGHT:case dr.LEFT:this.onNavigationKeyPressed(e,t)}},t.prototype.onNavigationKeyPressed=function(e,t){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,t,this.cellCtrl.getCellPosition(),!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeService){var t=this.beans.rangeService.extendLatestRangeInDirection(e);t&&this.beans.navigationService.ensureCellVisible(t)}},t.prototype.onTabKeyDown=function(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)},t.prototype.onBackspaceOrDeleteKeyPressed=function(e,t){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(e,void 0,t)},t.prototype.onEnterKeyDown=function(e){this.cellCtrl.isEditing()||this.rowCtrl.isEditing()?this.cellCtrl.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.navigationService.navigateToNextCell(null,dr.DOWN,this.cellCtrl.getCellPosition(),!1):(this.cellCtrl.startRowOrCellEdit(dr.ENTER,void 0,e),this.cellCtrl.isEditing()&&e.preventDefault())},t.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(dr.F2,void 0,e)},t.prototype.onEscapeKeyDown=function(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},t.prototype.onKeyPress=function(e){if(!(e.target!==this.eGui)&&!this.cellCtrl.isEditing()){var t=String.fromCharCode(e.charCode);" "===t?this.onSpaceKeyPressed(e):xo(e)&&(this.cellCtrl.startRowOrCellEdit(null,t,e),e.preventDefault())}},t.prototype.onSpaceKeyPressed=function(e){var t=this.beans.gridOptionsWrapper;if(!this.cellCtrl.isEditing()&&t.isRowSelection()){var n=this.rowNode.isSelected(),o=!n;if(o||!t.isSuppressRowDeselection()){var r=this.beans.gridOptionsWrapper.isGroupSelectsFiltered(),i=this.rowNode.setSelectedParams({newValue:o,rangeSelect:e.shiftKey,groupSelectsFiltered:r});void 0===n&&0===i&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:r})}}e.preventDefault()},t.prototype.destroy=function(){},t}(Fe),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])},e(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,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},nl=function(e){function t(t,n,o,r){var i=e.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return i.rowNode=t,i.column=n,i.beans=o,i.eCell=r,i}return el(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(Ao("rowDrag",this.beans.gridOptionsWrapper,null)),this.addGuiEventListener("mousedown",(function(e){e.stopPropagation()})),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var t=this,n=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0);n?n({rowNode:this.rowNode,dragEvent:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):function(){try{var n=JSON.stringify(t.rowNode.data);e.dataTransfer.setData("application/json",n),e.dataTransfer.setData("text/plain",n)}catch(o){}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},tl([z],t.prototype,"postConstruct",null),t}(tr),ol=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),rl=function(){return rl=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},rl.apply(this,arguments)},il="ag-cell-not-inline-editing",sl=0,al=function(e){function t(t,n,o,r){var i=e.call(this)||this;return i.suppressRefreshCell=!1,i.column=t,i.rowNode=n,i.beans=o,i.rowCtrl=r,i.instanceId=t.getId()+"-"+sl++,i.createCellPosition(),i.addFeatures(),i}return ol(t,e),t.prototype.addFeatures=function(){var e=this;this.cellPositionFeature=new ja(this,this.beans),this.addDestroyFunc((function(){return e.cellPositionFeature.destroy()})),this.cellCustomStyleFeature=new za(this,this.beans),this.addDestroyFunc((function(){return e.cellCustomStyleFeature.destroy()})),this.cellMouseListenerFeature=new Qa(this,this.beans,this.column),this.addDestroyFunc((function(){return e.cellMouseListenerFeature.destroy()})),this.cellKeyboardListenerFeature=new $a(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.addDestroyFunc((function(){return e.cellKeyboardListenerFeature.destroy()})),this.beans.rangeService&&this.beans.gridOptionsWrapper.isEnableRangeSelection()&&(this.cellRangeFeature=new Va(this.beans,this),this.addDestroyFunc((function(){return e.cellRangeFeature.destroy()}))),this.addTooltipFeature()},t.prototype.addTooltipFeature=function(){var e=this,t={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getRowIndex:function(){return e.cellPosition.rowIndex},getRowNode:function(){return e.rowNode},getGui:function(){return e.getGui()},getLocation:function(){return"cell"},getTooltipValue:function(){var t=e.column.getColDef(),n=e.rowNode.data;if(t.tooltipField&&r(n))return E(n,t.tooltipField,e.column.isTooltipFieldContainsDots());var o=t.tooltipValueGetter;return o?o({location:"cell",api:e.beans.gridOptionsWrapper.getApi(),columnApi:e.beans.gridOptionsWrapper.getColumnApi(),context:e.beans.gridOptionsWrapper.getContext(),colDef:e.column.getColDef(),column:e.column,rowIndex:e.cellPosition.rowIndex,node:e.rowNode,data:e.rowNode.data,value:e.value,valueFormatted:e.valueFormatted}):null},getValueFormatted:function(){return e.valueFormatted}};this.tooltipFeature=new Ya(t,this.beans),this.addDestroyFunc((function(){return e.tooltipFeature.destroy()}))},t.prototype.setComp=function(e,t,n,o,r){this.cellComp=e,this.gow=this.beans.gridOptionsWrapper,this.eGui=t,this.eCellWrapper=n,this.printLayout=o,this.updateAndFormatValue(!0),this.addDomData(),this.onCellFocused(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(),this.setAriaColIndex(),this.gow.isSuppressCellFocus()||this.cellComp.setTabIndex(-1);var i=Ke(this.column.getId());this.cellComp.setColId(i),this.cellComp.setRole("gridcell"),this.cellPositionFeature.setComp(t),this.cellCustomStyleFeature.setComp(e),this.tooltipFeature.setComp(e),this.cellKeyboardListenerFeature.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(e,t),r&&this.isCellEditable()?this.startEditing():this.showValue()},t.prototype.setupAutoHeight=function(){var e=this;if(this.column.isAutoHeight()){var t=this.eCellWrapper,n=t.parentElement,o=this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height,r=function r(i){if(!e.editing&&e.isAlive()){var s=on(n),a=s.paddingTop,l=s.paddingBottom,u=t.offsetHeight+a+l;if(i<5){var c=e.beans.gridOptionsWrapper.getDocument();if(!c||!c.contains(t)||0==u)return void e.beans.frameworkOverrides.setTimeout((function(){return r(i+1)}),0)}var p=Math.max(u,o);e.rowNode.setRowAutoHeight(p,e.column)}},i=function(){return r(0)};i();var s=this.beans.resizeObserverService.observeResize(t,i);this.addDestroyFunc((function(){s(),e.rowNode.setRowAutoHeight(void 0,e.column)}))}},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.showValue=function(e){void 0===e&&(e=!1);var t=null!=this.valueFormatted?this.valueFormatted:this.value,n=this.createCellRendererParams(),o=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),n);this.cellComp.setRenderDetails(o,t,e),this.refreshHandle()},t.prototype.setupControlComps=function(){var e=this.column.getColDef();this.includeSelection=this.isIncludeControl(e.checkboxSelection),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.cellComp.setIncludeSelection(this.includeSelection),this.cellComp.setIncludeDndSource(this.includeDndSource),this.cellComp.setIncludeRowDrag(this.includeRowDrag)},t.prototype.isForceWrapper=function(){return this.beans.gridOptionsWrapper.isEnableCellTextSelection()||this.column.isAutoHeight()},t.prototype.isIncludeControl=function(e){return!(null!=this.rowNode.rowPinned)&&("function"===typeof e||!0===e)},t.prototype.refreshShouldDestroy=function(){var e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(e.checkboxSelection),n=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),o=this.includeDndSource!=this.isIncludeControl(e.dndSource);return t||n||o},t.prototype.startEditing=function(e,t,n,o){var r,i;if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=!1),void 0===o&&(o=null),this.isCellEditable()&&!this.editing){var s=this.createCellEditorParams(e,t,n),a=this.column.getColDef(),l=this.beans.userComponentFactory.getCellEditorDetails(a,s),u=null!=(null===(r=l)||void 0===r?void 0:r.popupFromSelector)?l.popupFromSelector:!!a.cellEditorPopup,c=null!=(null===(i=l)||void 0===i?void 0:i.popupPositionFromSelector)?l.popupPositionFromSelector:a.cellEditorPopupPosition;this.setEditing(!0,u),this.cellComp.setEditDetails(l,u,c);var p=this.createEvent(o,Ve.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(p)}},t.prototype.setEditing=function(e,t){void 0===t&&(t=!1),this.editing!==e&&(this.editing=e,this.editingInPopup=t,this.setInlineEditingClass())},t.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowCtrl.stopRowEditing(e):this.stopEditing(e)},t.prototype.onPopupEditorClosed=function(){this.isEditing()&&this.stopEditingAndFocus()},t.prototype.takeValueFromCellEditor=function(e){var t={newValueExists:!1};if(e)return t;var n=this.cellComp.getCellEditor();return n?n.isCancelAfterEnd&&n.isCancelAfterEnd()?t:{newValue:n.getValue(),newValueExists:!0}:t},t.prototype.saveNewValue=function(e,t){if(t===e)return!1;if(this.beans.gridOptionsWrapper.isReadOnlyEdit())return this.dispatchEventForSaveValueReadOnly(e,t),!1;this.suppressRefreshCell=!0;var n=this.rowNode.setDataValue(this.column,t);return this.suppressRefreshCell=!1,n},t.prototype.dispatchEventForSaveValueReadOnly=function(e,t){var n=this.rowNode,o={type:Ve.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:this.column,api:this.beans.gridApi,columnApi:this.beans.columnApi,colDef:this.column.getColDef(),context:this.beans.gridOptionsWrapper.getContext(),data:n.data,node:n,oldValue:e,newValue:t,value:t,source:void 0};this.beans.eventService.dispatchEvent(o)},t.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),!this.editing)return!1;var t=this.takeValueFromCellEditor(e),n=t.newValue,o=t.newValueExists,r=this.getValueFromValueService(),i=!1;return o&&(i=this.saveNewValue(r,n)),this.setEditing(!1),this.cellComp.setEditDetails(),this.updateAndFormatValue(),this.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.dispatchEditingStoppedEvent(r,n),i},t.prototype.dispatchEditingStoppedEvent=function(e,t){var n=rl(rl({},this.createEvent(null,Ve.EVENT_CELL_EDITING_STOPPED)),{oldValue:e,newValue:t});this.beans.eventService.dispatchEvent(n)},t.prototype.setInlineEditingClass=function(){if(this.isAlive()){var e=this.editing&&!this.editingInPopup,t=this.editing&&this.editingInPopup;this.cellComp.addOrRemoveCssClass("ag-cell-inline-editing",e),this.cellComp.addOrRemoveCssClass(il,!e),this.cellComp.addOrRemoveCssClass("ag-cell-popup-editing",t),this.rowCtrl.setInlineEditingCss(this.editing)}},t.prototype.hackSayEditingInPopup=function(){this.editingInPopup||(this.editingInPopup=!0,this.setInlineEditingClass())},t.prototype.createCellEditorParams=function(e,t,n){return{value:this.getValueFromValueService(),key:e,eventKey:e,charPress:t,column:this.column,colDef:this.column.getColDef(),rowIndex:this.getCellPosition().rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsWrapper.getApi(),cellStartedEdit:n,columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},t.prototype.createCellRendererParams=function(){var e=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValueFromValueService.bind(this),setValue:function(t){return e.beans.valueService.setValue(e.rowNode,e.column,t)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,colDef:this.column.getColDef(),column:this.column,rowIndex:this.getCellPosition().rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:function(t,n,o,r){return e.registerRowDragger(t,n,r)},addRowCompListener:function(t,n){console.warn("AG Grid: since AG Grid v26, params.addRowCompListener() is deprecated. If you need this functionality, please contact AG Grid support and advise why so that we can revert with an appropriate workaround, as we dont have any valid use cases for it. This method was originally provided as a work around to know when cells were destroyed in AG Grid before custom Cell Renderers could be provided."),e.rowCtrl.addEventListener(t,n)}}},t.prototype.parseValue=function(e){var t=this.column.getColDef(),n={node:this.rowNode,data:this.rowNode.data,oldValue:this.getValue(),newValue:e,colDef:t,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},o=t.valueParser;return r(o)?this.beans.expressionService.evaluate(o,n):e},t.prototype.setFocusOutOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusOut&&e.focusOut()}},t.prototype.setFocusInOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusIn?e.focusIn():this.focusCell(!0)}},t.prototype.onCellChanged=function(e){this.cellComp&&(e.column===this.column&&this.refreshCell({}))},t.prototype.refreshCell=function(e){if(!this.suppressRefreshCell&&!this.editing&&this.cellComp){var t=this.column.getColDef(),n=null!=e&&!!e.newData,o=null!=e&&!!e.suppressFlash||!!t.suppressCellFlash,r=null==t.field&&null==t.valueGetter&&null==t.showRowGroup,i=e&&e.forceRefresh||r||n,s=this.updateAndFormatValue();if(i||s){this.showValue(n);var a=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!o&&!a&&(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||t.enableCellChangeFlash)&&this.flashCell(),this.cellCustomStyleFeature.applyUserStyles(),this.cellCustomStyleFeature.applyClassesFromColDef()}this.refreshToolTip(),this.cellCustomStyleFeature.applyCellClassRules()}},t.prototype.stopEditingAndFocus=function(e){void 0===e&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit()},t.prototype.navigateAfterEdit=function(){this.beans.gridOptionsWrapper.isFullRowEdit()||this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit()&&this.beans.navigationService.navigateToNextCell(null,dr.DOWN,this.getCellPosition(),!1)},t.prototype.flashCell=function(e){var t=e&&e.flashDelay,n=e&&e.fadeDelay;this.animateCell("data-changed",t,n)},t.prototype.animateCell=function(e,t,n){var o=this,i="ag-cell-"+e,s="ag-cell-"+e+"-animation",a=this.beans.gridOptionsWrapper;t||(t=a.getCellFlashDelay()),r(n)||(n=a.getCellFadeDelay()),this.cellComp.addOrRemoveCssClass(i,!0),this.cellComp.addOrRemoveCssClass(s,!1),window.setTimeout((function(){o.cellComp.addOrRemoveCssClass(i,!1),o.cellComp.addOrRemoveCssClass(s,!0),o.eGui.style.transition="background-color "+n+"ms",window.setTimeout((function(){o.cellComp.addOrRemoveCssClass(s,!1),o.eGui.style.transition=""}),n)}),t)},t.prototype.onFlashCells=function(e){if(this.cellComp){var t=this.beans.cellPositionUtils.createId(this.getCellPosition());e.cells[t]&&this.animateCell("highlight")}},t.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},t.prototype.isSuppressFillHandle=function(){return this.column.isSuppressFillHandle()},t.prototype.formatValue=function(e){var t=this.callValueFormatter(e);return null!=t?t:e},t.prototype.callValueFormatter=function(e){return this.beans.valueFormatterService.formatValue(this.column,this.rowNode,e)},t.prototype.updateAndFormatValue=function(e){void 0===e&&(e=!1);var t=this.value,n=this.valueFormatted;return this.value=this.getValueFromValueService(),this.valueFormatted=this.callValueFormatter(this.value),!!e||(!this.valuesAreEqual(t,this.value)||this.valueFormatted!=n)},t.prototype.valuesAreEqual=function(e,t){var n=this.column.getColDef();return n.equals?n.equals(e,t):e===t},t.prototype.getComp=function(){return this.cellComp},t.prototype.getValueFromValueService=function(){var e=this.rowNode.leafGroup&&this.beans.columnModel.isPivotMode(),t=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!e,n=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),o=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader(),r=t&&n&&!o;return this.beans.valueService.getValue(this.column,this.rowNode,!1,r)},t.prototype.getValue=function(){return this.value},t.prototype.getValueFormatted=function(){return this.valueFormatted},t.prototype.addDomData=function(){var e=this,n=this.getGui();this.beans.gridOptionsWrapper.setDomData(n,t.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc((function(){return e.beans.gridOptionsWrapper.setDomData(n,t.DOM_DATA_KEY_CELL_CTRL,null)}))},t.prototype.createEvent=function(e,t){return{type:t,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,rowIndex:this.rowNode.rowIndex}},t.prototype.onKeyPress=function(e){this.cellKeyboardListenerFeature.onKeyPress(e)},t.prototype.onKeyDown=function(e){this.cellKeyboardListenerFeature.onKeyDown(e)},t.prototype.onMouseEvent=function(e,t){this.cellMouseListenerFeature.onMouseEvent(e,t)},t.prototype.getGui=function(){return this.eGui},t.prototype.refreshToolTip=function(){this.tooltipFeature.refreshToolTip()},t.prototype.getColSpanningList=function(){return this.cellPositionFeature.getColSpanningList()},t.prototype.onLeftChanged=function(){this.cellComp&&this.cellPositionFeature.onLeftChanged()},t.prototype.onDisplayedColumnsChanged=function(){this.eGui&&this.setAriaColIndex()},t.prototype.setAriaColIndex=function(){var e=this.beans.columnModel.getAriaColumnIndex(this.column);ro(this.getGui(),e)},t.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},t.prototype.onWidthChanged=function(){return this.cellPositionFeature.onWidthChanged()},t.prototype.getColumn=function(){return this.column},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getBeans=function(){return this.beans},t.prototype.isPrintLayout=function(){return this.printLayout},t.prototype.appendChild=function(e){this.eGui.appendChild(e)},t.prototype.refreshHandle=function(){this.editing||this.cellRangeFeature&&this.cellRangeFeature.refreshHandle()},t.prototype.getCellPosition=function(){return this.cellPosition},t.prototype.isEditing=function(){return this.editing},t.prototype.startRowOrCellEdit=function(e,t,n){void 0===n&&(n=null),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowCtrl.startRowEditing(e,t,this):this.startEditing(e,t,!0,n)},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getRowPosition=function(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}},t.prototype.updateRangeBordersIfRangeCount=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()},t.prototype.onRangeSelectionChanged=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},t.prototype.isRangeSelectionEnabled=function(){return null!=this.cellRangeFeature},t.prototype.focusCell=function(e){void 0===e&&(e=!1),this.beans.focusService.setFocusedCell(this.getCellPosition().rowIndex,this.column,this.rowNode.rowPinned,e)},t.prototype.onRowIndexChanged=function(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},t.prototype.onFirstRightPinnedChanged=function(){if(this.cellComp){var e=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass("ag-cell-first-right-pinned",e)}},t.prototype.onLastLeftPinnedChanged=function(){if(this.cellComp){var e=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass("ag-cell-last-left-pinned",e)}},t.prototype.onCellFocused=function(e){if(this.cellComp&&!this.gow.isSuppressCellFocus()){var t=this.beans.focusService.isCellFocused(this.cellPosition);if(this.cellComp.addOrRemoveCssClass("ag-cell-focus",t),t&&e&&e.forceBrowserFocus)this.cellComp.getFocusableElement().focus();var n=this.beans.gridOptionsWrapper.isFullRowEdit();t||n||!this.editing||this.stopRowOrCellEdit()}},t.prototype.createCellPosition=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:o(this.rowNode.rowPinned),column:this.column}},t.prototype.applyStaticCssClasses=function(){this.cellComp.addOrRemoveCssClass("ag-cell",!0),this.cellComp.addOrRemoveCssClass(il,!0);var e=1==this.column.isAutoHeight();this.cellComp.addOrRemoveCssClass("ag-cell-auto-height",e),this.cellComp.addOrRemoveCssClass("ag-cell-normal-height",!e)},t.prototype.onColumnHover=function(){if(this.cellComp&&this.beans.gridOptionsWrapper.isColumnHoverHighlight()){var e=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass("ag-column-hover",e)}},t.prototype.onNewColumnsLoaded=function(){this.cellComp&&(this.setWrapText(),this.editing||this.refreshCell({forceRefresh:!0,suppressFlash:!0}))},t.prototype.setWrapText=function(){var e=1==this.column.getColDef().wrapText;this.cellComp.addOrRemoveCssClass("ag-cell-wrap-text",e)},t.prototype.dispatchCellContextMenuEvent=function(e){var t=this.column.getColDef(),n=this.createEvent(e,Ve.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(n),t.onCellContextMenu&&window.setTimeout((function(){return t.onCellContextMenu(n)}),0)},t.prototype.getCellRenderer=function(){return this.cellComp?this.cellComp.getCellRenderer():null},t.prototype.getCellEditor=function(){return this.cellComp?this.cellComp.getCellEditor():null},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.createSelectionCheckbox=function(){var e=new Xi;return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e},t.prototype.createDndSource=function(){var e=new nl(this.rowNode,this.column,this.beans,this.eGui);return this.beans.context.createBean(e),e},t.prototype.registerRowDragger=function(e,t,n){var o=this;if(this.customRowDragComp)this.customRowDragComp.setDragElement(e,t);else{var r=this.createRowDragComp(e,t,n);r&&(this.customRowDragComp=r,this.addDestroyFunc((function(){return o.beans.context.destroyBean(r)})))}},t.prototype.createRowDragComp=function(e,t,n){var o=this,r=this.beans.gridOptionsWrapper.isPagination(),i=this.beans.gridOptionsWrapper.isRowDragManaged(),s=this.beans.gridOptionsWrapper.isRowModelDefault();if(i){if(!s)return void D((function(){return console.warn("AG Grid: managed row dragging is only allowed in the Client Side Row Model")}),"CellComp.addRowDragging");if(r)return void D((function(){return console.warn("AG Grid: managed row dragging is not possible when doing pagination")}),"CellComp.addRowDragging")}var a=new rs((function(){return o.value}),this.rowNode,this.column,e,t,n);return this.beans.context.createBean(a),a},t.DOM_DATA_KEY_CELL_CTRL="cellCtrl",t}(Fe),ll=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),ul=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},cl=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ul(arguments[t]));return e};!function(e){e.Normal="Normal",e.FullWidth="FullWidth",e.FullWidthLoading="FullWidthLoading",e.FullWidthGroup="FullWidthGroup",e.FullWidthDetail="FullWidthDetail"}(Ha||(Ha={}));var pl,dl,hl=0,fl=function(e){function n(t,n,o,r,i){var s=e.call(this)||this;return s.allRowGuis=[],s.active=!0,s.centerCellCtrls={list:[],map:{}},s.leftCellCtrls={list:[],map:{}},s.rightCellCtrls={list:[],map:{}},s.lastMouseDownOnDragger=!1,s.updateColumnListsPending=!1,s.beans=n,s.rowNode=t,s.paginationPage=s.beans.paginationProxy.getCurrentPage(),s.useAnimationFrameForCreate=r,s.printLayout=i,s.instanceId=t.id+"-"+hl++,s.setAnimateFlags(o),s.rowFocused=s.beans.focusService.isRowFocused(s.rowNode.rowIndex,s.rowNode.rowPinned),s.rowLevel=s.beans.rowCssClassCalculator.calculateRowLevel(s.rowNode),s.setRowType(),s.addListeners(),s.setInitialRowTop(),s}return ll(n,e),n.prototype.getBeans=function(){return this.beans},n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.setComp=function(e,n,o){var r={rowComp:e,element:n,containerType:o};this.allRowGuis.push(r),o===t.RowContainerType.LEFT?this.leftGui=r:o===t.RowContainerType.RIGHT?this.rightGui=r:o===t.RowContainerType.FULL_WIDTH?this.fullWidthGui=r:this.centerGui=r;var i=null!=this.leftGui&&null!=this.rightGui&&null!=this.centerGui,s=null!=this.fullWidthGui;(i||s)&&this.initialiseRowComps()},n.prototype.isCacheable=function(){return this.rowType===Ha.FullWidthDetail&&this.beans.gridOptionsWrapper.isKeepDetailRows()},n.prototype.setCached=function(e){var t=e?"none":"";this.allRowGuis.forEach((function(e){return e.element.style.display=t}))},n.prototype.initialiseRowComps=function(){var e=this,t=this.beans.gridOptionsWrapper;this.onRowHeightChanged(),this.updateRowIndexes(),this.setFocusedClasses(),this.setStylesFromGridOptions(),t.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(),this.updateColumnLists(!this.useAnimationFrameForCreate),this.slideRowIn&&F(this.onTopChanged.bind(this)),this.fadeRowIn&&F((function(){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)}))}));var o=this.getRowBusinessKey(),r=Ke(this.rowNode.id),i=Ke(o);this.allRowGuis.forEach((function(o){var s=o.rowComp;s.setRole("row"),e.getInitialRowClasses(o.containerType).forEach((function(e){return s.addOrRemoveCssClass(e,!0)})),e.rowNode.group&&Xn(o.element,1==e.rowNode.expanded),null!=r&&s.setRowId(r),null!=i&&s.setRowBusinessKey(i),e.isFullWidth()&&!e.beans.gridOptionsWrapper.isSuppressCellFocus()&&s.setTabIndex(-1),t.setDomData(o.element,n.DOM_DATA_KEY_ROW_CTRL,e),e.addDestroyFunc((function(){return t.setDomData(o.element,n.DOM_DATA_KEY_ROW_CTRL,null)})),e.useAnimationFrameForCreate?e.beans.animationFrameService.createTask(e.addHoverFunctionality.bind(e,o.element),e.rowNode.rowIndex,"createTasksP2"):e.addHoverFunctionality(o.element),e.isFullWidth()&&e.setupFullWidth(o),t.isRowDragEntireRow()&&e.addRowDraggerToRow(o),e.useAnimationFrameForCreate&&e.beans.animationFrameService.addDestroyTask((function(){e.isAlive()&&o.rowComp.addOrRemoveCssClass("ag-after-created",!0)}))})),this.executeProcessRowPostCreateFunc()},n.prototype.addRowDraggerToRow=function(e){if(this.beans.gridOptionsWrapper.isEnableRangeSelection())D((function(){console.warn("AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`")}),"rowDragAndRangeSelectionEnabled");else{var t=new rs((function(){return"1 row"}),this.rowNode,void 0,e.element,void 0,!0);this.createManagedBean(t,this.beans.context)}},n.prototype.setupFullWidth=function(e){var n=this.getPinnedForContainer(e.containerType),o=this.createFullWidthParams(e.element,n),r=re.isRegistered(t.ModuleNames.MasterDetailModule);if(this.rowType!=Ha.FullWidthDetail||r){var i;switch(this.rowType){case Ha.FullWidthDetail:i=this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(o);break;case Ha.FullWidthGroup:i=this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(o);break;case Ha.FullWidthLoading:i=this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(o);break;default:i=this.beans.userComponentFactory.getFullWidthCellRendererDetails(o)}e.rowComp.showFullWidth(i)}else re.isPackageBased()?console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with ag-grid-enterprise package."):console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with AG Grid Enterprise Module "+t.ModuleNames.MasterDetailModule)},n.prototype.isPrintLayout=function(){return this.printLayout},n.prototype.getCellElement=function(e){var t=this.getCellCtrl(e);return t?t.getGui():null},n.prototype.executeProcessRowPostCreateFunc=function(){var e=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();e&&e({eRow:this.centerGui?this.centerGui.element:void 0,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)})},n.prototype.setRowType=function(){var e=this.rowNode.stub,t=this.rowNode.isFullWidthCell(),n=this.beans.doingMasterDetail&&this.rowNode.detail,o=this.beans.columnModel.isPivotMode(),r=!!this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(o);this.rowType=e?Ha.FullWidthLoading:n?Ha.FullWidthDetail:t?Ha.FullWidth:r?Ha.FullWidthGroup:Ha.Normal},n.prototype.updateColumnLists=function(e){var t=this;(void 0===e&&(e=!1),this.isFullWidth())||(e||this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout?this.updateColumnListsImpl():this.updateColumnListsPending||(this.beans.animationFrameService.createTask((function(){t.active&&t.updateColumnListsImpl()}),this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0))},n.prototype.createCellCtrls=function(e,t,n){var o=this;void 0===n&&(n=null);var r={list:[],map:{}},i=function(e,t){r.list.push(t),r.map[e]=t};return t.forEach((function(t){var n=t.getInstanceId(),r=e.map[n];r||(r=new al(t,o.rowNode,o.beans,o)),i(n,r)})),e.list.forEach((function(e){null!=r.map[e.getColumn().getInstanceId()]||(!o.isCellEligibleToBeRemoved(e,n)?i(e.getColumn().getInstanceId(),e):e.destroy())})),r},n.prototype.updateColumnListsImpl=function(){var e=this;this.updateColumnListsPending=!1;var n=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,n.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var o=n.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,o);var r=n.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,r,oe.PINNED_LEFT);var i=n.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,i,oe.PINNED_RIGHT)}this.allRowGuis.forEach((function(n){var o=n.containerType===t.RowContainerType.LEFT?e.leftCellCtrls:n.containerType===t.RowContainerType.RIGHT?e.rightCellCtrls:e.centerCellCtrls;n.rowComp.setCellCtrls(o.list)}))},n.prototype.isCellEligibleToBeRemoved=function(e,t){var n=!0;if(e.getColumn().getPinned()!=t)return n;var o=e.isEditing(),r=this.beans.focusService.isCellFocused(e.getCellPosition());if(o||r){var i=e.getColumn();return!(this.beans.columnModel.getAllDisplayedColumns().indexOf(i)>=0)&&n}return n},n.prototype.setAnimateFlags=function(e){if(e){var t=r(this.rowNode.oldRowTop);this.slideRowIn=t,this.fadeRowIn=!t}else this.slideRowIn=!1,this.fadeRowIn=!1},n.prototype.isEditing=function(){return this.editingRow},n.prototype.stopRowEditing=function(e){this.stopEditing(e)},n.prototype.isFullWidth=function(){return this.rowType!==Ha.Normal},n.prototype.getRowType=function(){return this.rowType},n.prototype.refreshFullWidth=function(){var e=this,t=function(t,n){if(!t)return!0;var o=t.rowComp.getFullWidthCellRenderer();if(!o)return!1;if(!o.refresh)return!1;var r=e.createFullWidthParams(t.element,n);return o.refresh(r)},n=t(this.fullWidthGui,null),o=t(this.centerGui,null),r=t(this.leftGui,oe.PINNED_LEFT),i=t(this.rightGui,oe.PINNED_RIGHT);return n&&o&&r&&i},n.prototype.addListeners=function(){this.addManagedListener(this.rowNode,Yi.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var e=this.beans.eventService;this.addManagedListener(e,Ve.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(e,Ve.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(e,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(e,Ve.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(e,Ve.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(e,Ve.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(e,Ve.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(e,Ve.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},n.prototype.onColumnMoved=function(){this.updateColumnLists()},n.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,Yi.EVENT_ROW_INDEX_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,Yi.EVENT_CELL_CHANGED,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onCellChanged(t)}))}))},n.prototype.onRowNodeDataChanged=function(e){this.getAllCellCtrls().forEach((function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})})),this.onRowSelected(),this.postProcessCss()},n.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},n.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},n.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach((function(n){var o=e===t.RowHighlightPosition.Above,r=e===t.RowHighlightPosition.Below;n.rowComp.addOrRemoveCssClass("ag-row-highlight-above",o),n.rowComp.addOrRemoveCssClass("ag-row-highlight-below",r)}))},n.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},n.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-dragging",e)}))},n.prototype.updateExpandedCss=function(){var e=this.rowNode.isExpandable(),t=1==this.rowNode.expanded;this.allRowGuis.forEach((function(n){n.rowComp.addOrRemoveCssClass("ag-row-group",e),n.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&t),n.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!t),Xn(n.element,e&&t)}))},n.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},n.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists()},n.prototype.getRowPosition=function(){return{rowPinned:o(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},n.prototype.onKeyboardNavigate=function(e){var t=this.allRowGuis.find((function(t){return t.element.contains(e.target)}));if((t?t.element:null)===e.target){var n=this.rowNode,o=this.beans.focusService.getFocusedCell(),r={rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:o&&o.column};this.beans.navigationService.navigateToNextCell(e,e.key,r,!0),e.preventDefault()}},n.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented&&!Te(e)){var t=this.allRowGuis.find((function(t){return t.element.contains(e.target)})),n=t?t.element:null,o=n===e.target,r=null;o||(r=this.beans.focusService.findNextFocusableElement(n,!1,e.shiftKey)),(this.isFullWidth()&&o||!r)&&this.beans.navigationService.onTabKeyDown(this,e)}},n.prototype.onFullWidthRowFocused=function(e){var t,n=this.rowNode,o=this.isFullWidth()&&e.rowIndex===n.rowIndex&&e.rowPinned==n.rowPinned,r=this.fullWidthGui?this.fullWidthGui.element:null===(t=this.centerGui)||void 0===t?void 0:t.element;r&&(r.classList.toggle("ag-full-width-focus",o),o&&r.focus({preventScroll:!0}))},n.prototype.refreshCell=function(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),this.updateColumnLists()},n.prototype.removeCellCtrl=function(e,t){var n={list:[],map:{}};return e.list.forEach((function(e){e!==t&&(n.list.push(e),n.map[e.getInstanceId()]=e)})),n},n.prototype.onMouseEvent=function(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"touchstart":case"mousedown":this.onRowMouseDown(t)}},n.prototype.createRowEvent=function(e,t){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:t}},n.prototype.createRowEventWithSource=function(e,t){var n=this.createRowEvent(e,t);return n.source=this,n},n.prototype.onRowDblClick=function(e){if(!Te(e)){var t=this.createRowEventWithSource(Ve.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},n.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=nn(e.target,"ag-row-drag",3),this.isFullWidth()){var t=this.rowNode,n=this.beans.columnModel;this.beans.focusService.setFocusedCell(t.rowIndex,n.getAllDisplayedColumns()[0],t.rowPinned,!0)}},n.prototype.onRowClick=function(e){if(!(Te(e)||this.lastMouseDownOnDragger)){var t=this.createRowEventWithSource(Ve.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var n=e.ctrlKey||e.metaKey,o=e.shiftKey;if(!(this.beans.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.beans.gridOptionsWrapper.isRowSelection()||this.beans.gridOptionsWrapper.isSuppressRowClickSelection())){var r=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),i=!this.beans.gridOptionsWrapper.isSuppressRowDeselection();if(this.rowNode.isSelected())r?this.rowNode.setSelectedParams({newValue:!1}):n?i&&this.rowNode.setSelectedParams({newValue:!1}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!o,rangeSelect:o});else{var s=!r&&!n;this.rowNode.setSelectedParams({newValue:!0,clearSelection:s,rangeSelect:o})}}}},n.prototype.setupDetailRowAutoHeight=function(e){var t=this;if(this.rowType===Ha.FullWidthDetail&&this.beans.gridOptionsWrapper.isDetailRowAutoHeight()){var n=function(){var n=e.clientHeight;if(null!=n&&n>0){t.beans.frameworkOverrides.setTimeout((function(){t.rowNode.setRowHeight(n),t.beans.clientSideRowModel?t.beans.clientSideRowModel.onRowHeightChanged():t.beans.serverSideRowModel&&t.beans.serverSideRowModel.onRowHeightChanged()}),0)}},o=this.beans.resizeObserverService.observeResize(e,n);this.addDestroyFunc(o),n()}},n.prototype.createFullWidthParams=function(e,t){var n=this;return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(e,t,o,r){return n.addFullWidthRowDragging(e,t,o,r)}}},n.prototype.addFullWidthRowDragging=function(e,t,n,o){if(void 0===n&&(n=""),this.isFullWidth()){var r=new rs((function(){return n}),this.rowNode,void 0,e,t,o);this.createManagedBean(r,this.beans.context)}},n.prototype.onUiLevelChanged=function(){var e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){var t="ag-row-level-"+e,n="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach((function(e){e.rowComp.addOrRemoveCssClass(t,!0),e.rowComp.addOrRemoveCssClass(n,!1)}))}this.rowLevel=e},n.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},n.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},n.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},n.prototype.refreshFirstAndLastRowStyles=function(){var e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-first",e)}))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-row-last",t)})))},n.prototype.stopEditing=function(e){void 0===e&&(e=!1);var t=this.getAllCellCtrls().map((function(t){return t.stopEditing(e)}));if(this.editingRow){if(!e&&t.some((function(e){return e}))){var n=this.createRowEvent(Ve.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(n)}this.setEditingRow(!1)}},n.prototype.setInlineEditingCss=function(e){this.allRowGuis.forEach((function(t){t.rowComp.addOrRemoveCssClass("ag-row-inline-editing",e),t.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!e)}))},n.prototype.setEditingRow=function(e){this.editingRow=e,this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-editing",e)}));var t=e?this.createRowEvent(Ve.EVENT_ROW_EDITING_STARTED):this.createRowEvent(Ve.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},n.prototype.startRowEditing=function(e,t,n,o){void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=null),void 0===o&&(o=null),this.editingRow||(this.getAllCellCtrls().forEach((function(r){var i=r===n;i?r.startEditing(e,t,i,o):r.startEditing(null,null,i,o)})),this.setEditingRow(!0))},n.prototype.getAllCellCtrls=function(){return cl(this.centerCellCtrls.list,this.leftCellCtrls.list,this.rightCellCtrls.list)},n.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);t&&t.length&&t.forEach((function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!0)}))}))},n.prototype.postProcessRowClassRules=function(){var e=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,(function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!0)}))}),(function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!1)}))}))},n.prototype.setStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.allRowGuis.forEach((function(t){return t.rowComp.setUserStyles(e)}))},n.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"===typeof e)return e(this.rowNode)},n.prototype.getPinnedForContainer=function(e){return e===t.RowContainerType.LEFT?oe.PINNED_LEFT:e===t.RowContainerType.RIGHT?oe.PINNED_RIGHT:null},n.prototype.getInitialRowClasses=function(e){var t=this.getPinnedForContainer(e),n={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeRowIn,rowIsEven:this.rowNode.rowIndex%2===0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),pinned:t};return this.beans.rowCssClassCalculator.getInitialRowClasses(n)},n.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(!e||"function"!==typeof e){var t,n=this.beans.gridOptionsWrapper.getRowStyleFunc();if(n)t=n({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex});return Object.assign({},e,t)}console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},n.prototype.onRowSelected=function(){var e=this,t=!!this.rowNode.isSelected();this.allRowGuis.forEach((function(n){n.rowComp.addOrRemoveCssClass("ag-row-selected",t),lo(n.element,!!t||void 0);var o=e.createAriaLabel();Un(n.element,null==o?"":o)}))},n.prototype.createAriaLabel=function(){var e=this.rowNode.isSelected();if(!e||!this.beans.gridOptionsWrapper.isSuppressRowDeselection())return this.beans.gridOptionsWrapper.getLocaleTextFunc()(e?"ariaRowDeselect":"ariaRowSelect","Press SPACE to "+(e?"deselect":"select")+" this row.")},n.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},n.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addManagedListener(e,"mouseenter",(function(){return t.rowNode.onMouseEnter()})),this.addManagedListener(e,"mouseleave",(function(){return t.rowNode.onMouseLeave()})),this.addManagedListener(this.rowNode,Yi.EVENT_MOUSE_ENTER,(function(){t.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||e.classList.add("ag-row-hover")})),this.addManagedListener(this.rowNode,Yi.EVENT_MOUSE_LEAVE,(function(){e.classList.remove("ag-row-hover")})))},n.prototype.roundRowTopToBounds=function(e){var t=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().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(null!=this.rowNode.rowHeight){var e=this.rowNode.rowHeight,t=this.beans.gridOptionsWrapper.getDefaultRowHeight(),n=this.beans.gridOptionsWrapper.isGetRowHeightFunction()?this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height:void 0,o=n?Math.min(t,n)-2+"px":void 0;this.allRowGuis.forEach((function(t){t.element.style.height=e+"px",o&&t.element.style.setProperty("--ag-line-height",o)}))}},n.prototype.addEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=Ve.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved is now called "+Ve.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.addEventListener.call(this,t,n)},n.prototype.removeEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=Ve.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+Ve.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.removeEventListener.call(this,t,n)},n.prototype.destroyFirstPass=function(){this.active=!1,this.setupRemoveAnimation();var t=this.createRowEvent(Ve.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(t),this.beans.eventService.dispatchEvent(t),e.prototype.destroy.call(this)},n.prototype.setupRemoveAnimation=function(){if(null!=this.rowNode.rowTop){var e=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(e)}else this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)}))},n.prototype.destroySecondPass=function(){this.allRowGuis.length=0;var e=function(e){return e.list.forEach((function(e){return e.destroy()})),{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)},n.prototype.setFocusedClasses=function(){var e=this;this.allRowGuis.forEach((function(t){t.rowComp.addOrRemoveCssClass("ag-row-focus",e.rowFocused),t.rowComp.addOrRemoveCssClass("ag-row-no-focus",!e.rowFocused)}))},n.prototype.onCellFocusChanged=function(){var e=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.rowFocused=e,this.setFocusedClasses()),!e&&this.editingRow&&this.stopEditing(!1)},n.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},n.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},n.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},n.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},n.prototype.setRowTop=function(e){if(!this.printLayout&&r(e)){var t=this.applyPaginationOffset(e),n=(this.rowNode.isRowPinned()?t:this.beans.rowContainerHeightService.getRealPixelPosition(t))+"px";this.setRowTopStyle(n)}},n.prototype.getInitialRowTop=function(){return this.initialTop},n.prototype.getInitialTransform=function(){return this.initialTransform},n.prototype.setInitialRowTop=function(){if(this.printLayout)return"";var e=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,t=this.applyPaginationOffset(e),n=(this.rowNode.isRowPinned()?t:this.beans.rowContainerHeightService.getRealPixelPosition(t))+"px";this.beans.gridOptionsWrapper.isSuppressRowTransform()?this.initialTop=n:this.initialTransform="translateY("+n+")"},n.prototype.setRowTopStyle=function(e){var t=this.beans.gridOptionsWrapper.isSuppressRowTransform();this.allRowGuis.forEach((function(n){return t?n.rowComp.setTop(e):n.rowComp.setTransform("translateY("+e+")")}))},n.prototype.getRowNode=function(){return this.rowNode},n.prototype.getCellCtrl=function(e){var t=null;return this.getAllCellCtrls().forEach((function(n){n.getColumn()==e&&(t=n)})),null!=t||this.getAllCellCtrls().forEach((function(n){n.getColSpanningList().indexOf(e)>=0&&(t=n)})),t},n.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},n.prototype.updateRowIndexes=function(){var e=this.rowNode.getRowIndexString(),t=this.beans.headerNavigationService.getHeaderRowCount(),n=this.rowNode.rowIndex%2===0,o=t+this.rowNode.rowIndex+1;this.allRowGuis.forEach((function(t){t.rowComp.setRowIndex(e),t.rowComp.addOrRemoveCssClass("ag-row-even",n),t.rowComp.addOrRemoveCssClass("ag-row-odd",!n),no(t.element,o)}))},n.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},n.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},n.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},n.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},n.DOM_DATA_KEY_ROW_CTRL="renderedRow",n}(Fe),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])},e(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)}}(),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},vl=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},yl=function(e){function n(t){var n=e.call(this)||this;return n.element=t,n}return gl(n,e),n.prototype.postConstruct=function(){this.addMouseListeners(),this.mockContextMenuForIPad(),this.addKeyboardEvents()},n.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach((function(t){var n=e.processKeyboardEvent.bind(e,t);e.addManagedListener(e.element,t,n)}))},n.prototype.addMouseListeners=function(){var e=this;["dblclick","contextmenu","mouseover","mouseout","click",Pe("touchstart")?"touchstart":"mousedown"].forEach((function(t){var n=e.processMouseEvent.bind(e,t);e.addManagedListener(e.element,t,n)}))},n.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!Te(t)){var n=this.getRowForEvent(t),o=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?this.handleContextMenuMouseEvent(t,null,n,o):(o&&o.onMouseEvent(e,t),n&&n.onMouseEvent(e,t))}},n.prototype.mockContextMenuForIPad=function(){var e=this;if(Wt()){var t=new mi(this.element);this.addManagedListener(t,mi.EVENT_LONG_TAP,(function(t){var n=e.getRowForEvent(t.touchEvent),o=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,n,o)})),this.addDestroyFunc((function(){return t.destroy()}))}},n.prototype.getRowForEvent=function(e){for(var t=e.target;t;){var n=this.gridOptionsWrapper.getDomData(t,fl.DOM_DATA_KEY_ROW_CTRL);if(n)return n;t=t.parentElement}return null},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)}var l=this.ctrlsService.getGridBodyCtrl(),u=o?o.getGui():l.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(e,t,r,i,s,u)},n.prototype.processKeyboardEvent=function(e,t){var n=Ae(this.gridOptionsWrapper,t,al.DOM_DATA_KEY_CELL_CTRL),o=Ae(this.gridOptionsWrapper,t,fl.DOM_DATA_KEY_ROW_CTRL);t.defaultPrevented||(n?this.processCellKeyboardEvent(n,e,t):o&&o.isFullWidth()&&this.processFullWidthRowKeyboardEvent(o,e,t))},n.prototype.processCellKeyboardEvent=function(e,t,n){var o=e.getRowNode(),r=e.getColumn(),i=e.isEditing();if(!No(this.gridOptionsWrapper,n,o,r,i))switch(t){case"keydown":!i&&this.navigationService.handlePageScrollingKey(n)||e.onKeyDown(n),this.doGridOperations(n,e.isEditing());break;case"keypress":e.onKeyPress(n)}if("keydown"===t){var s=e.createEvent(n,Ve.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(s)}if("keypress"===t){var a=e.createEvent(n,Ve.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(a)}},n.prototype.processFullWidthRowKeyboardEvent=function(e,t,n){var o=e.getRowNode(),r=this.focusService.getFocusedCell(),i=r&&r.column;if(!No(this.gridOptionsWrapper,n,o,i,!1)){var s=n.key;if("keydown"===t)switch(s){case dr.UP:case dr.DOWN:e.onKeyboardNavigate(n);break;case dr.TAB:e.onTabKeyDown(n)}}if("keydown"===t){var a=e.createRowEvent(Ve.EVENT_CELL_KEY_DOWN,n);this.eventService.dispatchEvent(a)}if("keypress"===t){var l=e.createRowEvent(Ve.EVENT_CELL_KEY_PRESS,n);this.eventService.dispatchEvent(l)}},n.prototype.doGridOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t&&this.mouseEventService.isEventFromThisGrid(e))switch(e.code){case dr.A:return this.onCtrlAndA(e);case dr.C:return this.onCtrlAndC(e);case dr.V:return this.onCtrlAndV();case dr.D:return this.onCtrlAndD(e);case dr.Z:return e.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo();case dr.Y:return this.undoRedoService.redo()}},n.prototype.onCtrlAndA=function(e){var t=this,n=t.pinnedRowModel,o=t.paginationProxy,r=t.rangeService,i=oe.PINNED_BOTTOM,a=oe.PINNED_TOP;if(r&&o.isRowsToRender()){var l=vl([n.isEmpty(a),n.isEmpty(i)],2),u=l[0]?null:a,c=void 0,p=void 0;l[1]?(c=null,p=this.paginationProxy.getRowCount()-1):(c=i,p=n.getPinnedBottomRowData().length-1);var d=this.columnModel.getAllDisplayedColumns();if(s(d))return;r.setCellRange({rowStartIndex:0,rowStartPinned:u,rowEndIndex:p,rowEndPinned:c,columnStart:d[0],columnEnd:ue(d)})}e.preventDefault()},n.prototype.onCtrlAndC=function(e){this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()&&(this.clipboardService.copyToClipboard(),e.preventDefault())},n.prototype.onCtrlAndV=function(){re.isRegistered(t.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},n.prototype.onCtrlAndD=function(e){re.isRegistered(t.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),e.preventDefault()},ml([K("mouseEventService")],n.prototype,"mouseEventService",void 0),ml([K("valueService")],n.prototype,"valueService",void 0),ml([q("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),ml([K("ctrlsService")],n.prototype,"ctrlsService",void 0),ml([K("navigationService")],n.prototype,"navigationService",void 0),ml([K("focusService")],n.prototype,"focusService",void 0),ml([K("undoRedoService")],n.prototype,"undoRedoService",void 0),ml([K("columnModel")],n.prototype,"columnModel",void 0),ml([K("paginationProxy")],n.prototype,"paginationProxy",void 0),ml([K("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),ml([q("rangeService")],n.prototype,"rangeService",void 0),ml([q("clipboardService")],n.prototype,"clipboardService",void 0),ml([z],n.prototype,"postConstruct",null),n}(Fe),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])},e(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)}}(),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},_l=function(e){function t(t){var n=e.call(this)||this;return n.centerContainerCtrl=t,n}return Cl(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.listenForResize()})),this.addManagedListener(this.eventService,Ve.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},t.prototype.listenForResize=function(){var e=this,t=function(){return e.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(t),this.gridBodyCtrl.registerBodyViewportResizeListener(t)},t.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},t.prototype.onCenterViewportResized=function(){if(this.centerContainerCtrl.isViewportVisible()){this.checkViewportAndScrolls();var e=this.centerContainerCtrl.getCenterWidth();e!==this.centerWidth&&(this.centerWidth=e,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},t.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.checkBodyHeight=function(){var e=rn(this.gridBodyCtrl.getBodyViewportElement());if(this.bodyHeight!==e){this.bodyHeight=e;var t={type:Ve.EVENT_BODY_HEIGHT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},t.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},t.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e),this.gridBodyCtrl.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||this.centerContainerCtrl.isViewportHScrollShowing()},t.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},wl([K("ctrlsService")],t.prototype,"ctrlsService",void 0),wl([K("columnModel")],t.prototype,"columnModel",void 0),wl([K("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),wl([K("columnApi")],t.prototype,"columnApi",void 0),wl([K("gridApi")],t.prototype,"gridApi",void 0),wl([z],t.prototype,"postConstruct",null),t}(Fe),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])},e(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)}}(),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},Sl=function(e){function t(t){var n=e.call(this)||this;return n.element=t,n}return bl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ve.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},t.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),t=e>0;$t(this.element,t),t&&Rn(this.element,e)},El([K("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),El([z],t.prototype,"postConstruct",null),t}(Fe),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])},e(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,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},Tl=function(e){function t(t){var n=e.call(this)||this;return n.element=t,n}return Rl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ve.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},t.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),t=e>0;$t(this.element,t),t&&Rn(this.element,e)},Ol([K("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),Ol([z],t.prototype,"postConstruct",null),t}(Fe),Pl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Al=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(t,n){var o=e.call(this)||this;return o.eContainer=t,o.eWrapper=n,o}return Pl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ve.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},t.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),t=null!=e?e+"px":"";this.eContainer.style.height=t,this.eWrapper&&(this.eWrapper.style.height=t)},Al([K("rowContainerHeightService")],t.prototype,"maxDivHeightScaler",void 0),Al([z],t.prototype,"postConstruct",null),t}(Fe),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])},e(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)}}(),Nl=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},Ml=function(e){function t(t){var n=e.call(this)||this;return n.eContainer=t,n}return xl(t,e),t.prototype.postConstruct=function(){var e=this;if(this.gridOptionsWrapper.isEnableRangeSelection()&&!i(this.rangeService)){var t={dragStartPixels:0,eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)};this.dragService.addDragSource(t),this.addDestroyFunc((function(){return e.dragService.removeDragSource(t)}))}},Nl([q("rangeService")],t.prototype,"rangeService",void 0),Nl([K("dragService")],t.prototype,"dragService",void 0),Nl([z],t.prototype,"postConstruct",null),t}(Fe),Il=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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},Fl=function(e){function t(t){var n=e.call(this)||this;return n.callback=t,n}return Il(t,e),t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,e),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.setWidth()},t.prototype.setWidth=function(){var e=this.columnModel,t=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT,n=e.getBodyContainerWidth(),o=e.getDisplayedColumnsLeftWidth(),r=e.getDisplayedColumnsRightWidth(),i=t?n+o+r:n;this.callback(i)},Ll([K("columnModel")],t.prototype,"columnModel",void 0),Ll([z],t.prototype,"postConstruct",null),t}(Fe),kl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),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},Hl=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Bl=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Hl(arguments[t]));return e};function Vl(e){switch(e){case t.RowContainerName.CENTER:case t.RowContainerName.TOP_CENTER:case t.RowContainerName.BOTTOM_CENTER:return t.RowContainerType.CENTER;case t.RowContainerName.LEFT:case t.RowContainerName.TOP_LEFT:case t.RowContainerName.BOTTOM_LEFT:return t.RowContainerType.LEFT;case t.RowContainerName.RIGHT:case t.RowContainerName.TOP_RIGHT:case t.RowContainerName.BOTTOM_RIGHT:return t.RowContainerType.RIGHT;case t.RowContainerName.FULL_WIDTH:case t.RowContainerName.TOP_FULL_WIDTH:case t.RowContainerName.BOTTOM_FULL_WIDTH:return t.RowContainerType.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}(pl=t.RowContainerName||(t.RowContainerName={})).LEFT="left",pl.RIGHT="right",pl.CENTER="center",pl.FULL_WIDTH="fullWidth",pl.TOP_LEFT="topLeft",pl.TOP_RIGHT="topRight",pl.TOP_CENTER="topCenter",pl.TOP_FULL_WIDTH="topFullWidth",pl.BOTTOM_LEFT="bottomLeft",pl.BOTTOM_RIGHT="bottomRight",pl.BOTTOM_CENTER="bottomCenter",pl.BOTTOM_FULL_WIDTH="bottomFullWidth",(dl=t.RowContainerType||(t.RowContainerType={})).LEFT="left",dl.RIGHT="right",dl.CENTER="center",dl.FULL_WIDTH="fullWidth";var Wl=Qe([[t.RowContainerName.CENTER,"ag-center-cols-container"],[t.RowContainerName.LEFT,"ag-pinned-left-cols-container"],[t.RowContainerName.RIGHT,"ag-pinned-right-cols-container"],[t.RowContainerName.FULL_WIDTH,"ag-full-width-container"],[t.RowContainerName.TOP_CENTER,"ag-floating-top-container"],[t.RowContainerName.TOP_LEFT,"ag-pinned-left-floating-top"],[t.RowContainerName.TOP_RIGHT,"ag-pinned-right-floating-top"],[t.RowContainerName.TOP_FULL_WIDTH,"ag-floating-top-full-width-container"],[t.RowContainerName.BOTTOM_CENTER,"ag-floating-bottom-container"],[t.RowContainerName.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[t.RowContainerName.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[t.RowContainerName.BOTTOM_FULL_WIDTH,"ag-floating-bottom-full-width-container"]]),jl=Qe([[t.RowContainerName.CENTER,"ag-center-cols-viewport"],[t.RowContainerName.TOP_CENTER,"ag-floating-top-viewport"],[t.RowContainerName.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),Ul=Qe([[t.RowContainerName.CENTER,"ag-center-cols-clipper"]]),zl=function(e){function n(t){var n=e.call(this)||this;return n.name=t,n}return kl(n,e),n.getRowContainerCssClasses=function(e){return{container:Wl.get(e),viewport:jl.get(e),wrapper:Ul.get(e)}},n.getPinned=function(e){switch(e){case t.RowContainerName.BOTTOM_LEFT:case t.RowContainerName.TOP_LEFT:case t.RowContainerName.LEFT:return oe.PINNED_LEFT;case t.RowContainerName.BOTTOM_RIGHT:case t.RowContainerName.TOP_RIGHT:case t.RowContainerName.RIGHT:return oe.PINNED_RIGHT;default:return null}},n.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.embedFullWidthRows=this.gridOptionsWrapper.isEmbedFullWidthRows(),this.forContainers([t.RowContainerName.CENTER],(function(){return e.viewportSizeFeature=e.createManagedBean(new _l(e))}))},n.prototype.registerWithCtrlsService=function(){switch(this.name){case t.RowContainerName.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case t.RowContainerName.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case t.RowContainerName.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case t.RowContainerName.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case t.RowContainerName.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case t.RowContainerName.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case t.RowContainerName.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case t.RowContainerName.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case t.RowContainerName.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this)}},n.prototype.forContainers=function(e,t){e.indexOf(this.name)>=0&&t()},n.prototype.getContainerElement=function(){return this.eContainer},n.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},n.prototype.setComp=function(e,n,o,r){var i=this;this.comp=e,this.eContainer=n,this.eViewport=o,this.eWrapper=r,this.createManagedBean(new yl(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var s=[t.RowContainerName.TOP_CENTER,t.RowContainerName.TOP_LEFT,t.RowContainerName.TOP_RIGHT],a=[t.RowContainerName.BOTTOM_CENTER,t.RowContainerName.BOTTOM_LEFT,t.RowContainerName.BOTTOM_RIGHT],l=[t.RowContainerName.CENTER,t.RowContainerName.LEFT,t.RowContainerName.RIGHT],u=Bl(s,a,l),c=[t.RowContainerName.CENTER,t.RowContainerName.LEFT,t.RowContainerName.RIGHT,t.RowContainerName.FULL_WIDTH],p=[t.RowContainerName.CENTER,t.RowContainerName.TOP_CENTER,t.RowContainerName.BOTTOM_CENTER],d=[t.RowContainerName.LEFT,t.RowContainerName.BOTTOM_LEFT,t.RowContainerName.TOP_LEFT],h=[t.RowContainerName.RIGHT,t.RowContainerName.BOTTOM_RIGHT,t.RowContainerName.TOP_RIGHT];this.forContainers(d,(function(){return i.createManagedBean(new Sl(i.eContainer))})),this.forContainers(h,(function(){return i.createManagedBean(new Tl(i.eContainer))})),this.forContainers(c,(function(){return i.createManagedBean(new Dl(i.eContainer,i.eWrapper))})),this.forContainers(u,(function(){return i.createManagedBean(new Ml(i.eContainer))})),this.forContainers(p,(function(){return i.createManagedBean(new Fl((function(e){return i.comp.setContainerWidth(e+"px")})))})),this.addListeners(),this.registerWithCtrlsService()},n.prototype.addListeners=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_SCROLL_VISIBILITY_CHANGED,(function(){return e.onScrollVisibilityChanged()})),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){return e.onDisplayedColumnsChanged()})),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){return e.onDisplayedColumnsWidthChanged()})),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_ROWS_CHANGED,(function(){return e.onDisplayedRowsChanged()})),this.onScrollVisibilityChanged(),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},n.prototype.listenOnDomOrder=function(){var e=this,t=function(){return e.comp.setDomOrder(e.gridOptionsWrapper.isEnsureDomOrder())};this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,t),t()},n.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([t.RowContainerName.TOP_CENTER,t.RowContainerName.BOTTOM_CENTER],(function(){e.addManagedListener(e.eViewport,"scroll",(function(){return e.eViewport.scrollLeft=0}))}))},n.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([t.RowContainerName.CENTER],(function(){return e.onHorizontalViewportChanged()}))},n.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([t.RowContainerName.CENTER],(function(){return e.onHorizontalViewportChanged()}))},n.prototype.onScrollVisibilityChanged=function(){if(this.name===t.RowContainerName.CENTER){var e=this.scrollVisibleService.isHorizontalScrollShowing()&&this.gridOptionsWrapper.getScrollbarWidth()||0,n=0==e?"100%":"calc(100% + "+e+"px)";this.comp.setViewportHeight(n)}},n.prototype.addPreventScrollWhileDragging=function(){var e=this,t=function(t){e.dragService.isDragging()&&t.cancelable&&t.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc((function(){return e.eContainer.removeEventListener("touchmove",t)}))},n.prototype.onHorizontalViewportChanged=function(){var e=this.getCenterWidth(),t=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},n.prototype.getCenterWidth=function(){return sn(this.eViewport)},n.prototype.getCenterViewportScrollLeft=function(){return cn(this.eViewport,this.enableRtl)},n.prototype.registerViewportResizeListener=function(e){var t=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc((function(){return t()}))},n.prototype.isViewportVisible=function(){return fn(this.eViewport)},n.prototype.isViewportHScrollShowing=function(){return bn(this.eViewport)},n.prototype.getViewportScrollLeft=function(){return cn(this.eViewport,this.enableRtl)},n.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||bn(this.eViewport)},n.prototype.getViewportElement=function(){return this.eViewport},n.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform="translateX("+e+"px)"},n.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},n.prototype.setCenterViewportScrollLeft=function(e){pn(this.eViewport,e,this.enableRtl)},n.prototype.onDisplayedRowsChanged=function(){var e=this,n=this.name===t.RowContainerName.TOP_FULL_WIDTH||this.name===t.RowContainerName.BOTTOM_FULL_WIDTH||this.name===t.RowContainerName.FULL_WIDTH,o=this.getRowCtrls().filter((function(t){var o=t.isFullWidth(),r=e.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT,i=e.embedFullWidthRows||r;return n?!i&&o:i||!o}));this.comp.setRowCtrls(o)},n.prototype.getRowCtrls=function(){switch(this.name){case t.RowContainerName.TOP_CENTER:case t.RowContainerName.TOP_LEFT:case t.RowContainerName.TOP_RIGHT:case t.RowContainerName.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case t.RowContainerName.BOTTOM_CENTER:case t.RowContainerName.BOTTOM_LEFT:case t.RowContainerName.BOTTOM_RIGHT:case t.RowContainerName.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getRowCtrls()}},Gl([K("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),Gl([K("dragService")],n.prototype,"dragService",void 0),Gl([K("ctrlsService")],n.prototype,"ctrlsService",void 0),Gl([K("columnModel")],n.prototype,"columnModel",void 0),Gl([K("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Gl([K("rowRenderer")],n.prototype,"rowRenderer",void 0),Gl([z],n.prototype,"postConstruct",null),n}(Fe),Zl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Yl=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='<div class="ag-root ag-unselectable" role="grid">\n        <ag-header-root ref="gridHeader"></ag-header-root>\n        <div class="ag-floating-top" ref="eTop" role="presentation">\n            <ag-row-container ref="topLeftContainer" name="'+t.RowContainerName.TOP_LEFT+'"></ag-row-container>\n            <ag-row-container ref="topCenterContainer" name="'+t.RowContainerName.TOP_CENTER+'"></ag-row-container>\n            <ag-row-container ref="topRightContainer" name="'+t.RowContainerName.TOP_RIGHT+'"></ag-row-container>\n            <ag-row-container ref="topFullWidthContainer" name="'+t.RowContainerName.TOP_FULL_WIDTH+'"></ag-row-container>\n        </div>\n        <div class="ag-body-viewport" ref="eBodyViewport" role="presentation">\n            <ag-row-container ref="leftContainer" name="'+t.RowContainerName.LEFT+'"></ag-row-container>\n            <ag-row-container ref="centerContainer" name="'+t.RowContainerName.CENTER+'"></ag-row-container>\n            <ag-row-container ref="rightContainer" name="'+t.RowContainerName.RIGHT+'"></ag-row-container>\n            <ag-row-container ref="fullWidthContainer" name="'+t.RowContainerName.FULL_WIDTH+'"></ag-row-container>\n        </div>\n        <div class="ag-floating-bottom" ref="eBottom" role="presentation">\n            <ag-row-container ref="bottomLeftContainer" name="'+t.RowContainerName.BOTTOM_LEFT+'"></ag-row-container>\n            <ag-row-container ref="bottomCenterContainer" name="'+t.RowContainerName.BOTTOM_CENTER+'"></ag-row-container>\n            <ag-row-container ref="bottomRightContainer" name="'+t.RowContainerName.BOTTOM_RIGHT+'"></ag-row-container>\n            <ag-row-container ref="bottomFullWidthContainer" name="'+t.RowContainerName.BOTTOM_FULL_WIDTH+'"></ag-row-container>\n        </div>\n        <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>\n        <ag-overlay-wrapper></ag-overlay-wrapper>\n    </div>',ql=function(e){function n(){return e.call(this,Kl)||this}return Zl(n,e),n.prototype.init=function(){var e=this,n=function(e,t){var n=e+"px";t.style.minHeight=n,t.style.height=n},o={setRowAnimationCssOnBodyViewport:function(t,n){return e.setRowAnimationCssOnBodyViewport(t,n)},setColumnCount:function(t){return oo(e.getGui(),t)},setRowCount:function(t){return to(e.getGui(),t)},setTopHeight:function(t){return n(t,e.eTop)},setBottomHeight:function(t){return n(t,e.eBottom)},setTopDisplay:function(t){return e.eTop.style.display=t},setBottomDisplay:function(t){return e.eBottom.style.display=t},setColumnMovingCss:function(t,n){return e.addOrRemoveCssClass(ka,n)},updateLayoutClasses:function(n,o){var r=e.eBodyViewport.classList;r.toggle(t.LayoutCssClasses.AUTO_HEIGHT,o.autoHeight),r.toggle(t.LayoutCssClasses.NORMAL,o.normal),r.toggle(t.LayoutCssClasses.PRINT,o.print),e.addOrRemoveCssClass(t.LayoutCssClasses.AUTO_HEIGHT,o.autoHeight),e.addOrRemoveCssClass(t.LayoutCssClasses.NORMAL,o.normal),e.addOrRemoveCssClass(t.LayoutCssClasses.PRINT,o.print)},setAlwaysVerticalScrollClass:function(t,n){return e.eBodyViewport.classList.toggle(Fa,n)},registerBodyViewportResizeListener:function(t){var n=e.resizeObserverService.observeResize(e.eBodyViewport,t);e.addDestroyFunc((function(){return n()}))},setPinnedTopBottomOverflowY:function(t){return e.eTop.style.overflowY=e.eBottom.style.overflowY=t},setCellSelectableCss:function(t,n){[e.eTop,e.eBodyViewport,e.eBottom].forEach((function(e){return e.classList.toggle(La,n)}))}};this.ctrl=this.createManagedBean(new Ga),this.ctrl.setComp(o,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom),(this.rangeService||this.gridOptionsWrapper.isRowSelectionMulti())&&eo(this.getGui(),!0)},n.prototype.setRowAnimationCssOnBodyViewport=function(e,n){var o=this.eBodyViewport.classList;o.toggle(t.RowAnimationCssClasses.ANIMATION_ON,n),o.toggle(t.RowAnimationCssClasses.ANIMATION_OFF,!n)},n.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},Yl([K("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Yl([q("rangeService")],n.prototype,"rangeService",void 0),Yl([nr("eBodyViewport")],n.prototype,"eBodyViewport",void 0),Yl([nr("eTop")],n.prototype,"eTop",void 0),Yl([nr("eBottom")],n.prototype,"eBottom",void 0),Yl([nr("gridHeader")],n.prototype,"headerRootComp",void 0),Yl([z],n.prototype,"init",null),n}(tr),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])},e(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},Jl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},t.prototype.onDisplayedColumnsChanged=function(){this.update()},t.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},t.prototype.update=function(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},t.prototype.updateImpl=function(){var e=this.ctrlsService.getCenterRowContainerCtrl();if(e){var t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(t)}},t.prototype.setScrollsVisible=function(e){if(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var t={type:Ve.EVENT_SCROLL_VISIBILITY_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},t.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},t.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},Ql([K("columnApi")],t.prototype,"columnApi",void 0),Ql([K("gridApi")],t.prototype,"gridApi",void 0),Ql([K("ctrlsService")],t.prototype,"ctrlsService",void 0),Ql([z],t.prototype,"postConstruct",null),t=Ql([Y("scrollVisibleService")],t)}(Fe),$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])},e(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},tu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.gridInstanceId=n.gridInstanceSequence.next(),t}var n;return $l(t,e),n=t,t.prototype.stampTopLevelGridCompWithGridInstance=function(e){e[n.GRID_DOM_KEY]=this.gridInstanceId},t.prototype.getRenderedCellForEvent=function(e){return Ae(this.gridOptionsWrapper,e,al.DOM_DATA_KEY_CELL_CTRL)},t.prototype.isEventFromThisGrid=function(e){return this.isElementInThisGrid(e.target)},t.prototype.isElementInThisGrid=function(e){for(var t=e;t;){var o=t[n.GRID_DOM_KEY];if(r(o))return o===this.gridInstanceId;t=t.parentElement}return!1},t.prototype.getCellPositionForEvent=function(e){var t=this.getRenderedCellForEvent(e);return t?t.getCellPosition():null},t.prototype.getNormalisedPosition=function(e){var t,n,o=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_NORMAL,r=e;if(null!=r.clientX||null!=r.clientY?(t=r.clientX,n=r.clientY):(t=r.x,n=r.y),o){var i=this.ctrlsService.getGridBodyCtrl(),s=i.getScrollFeature().getVScrollPosition();t+=i.getScrollFeature().getHScrollPosition().left,n+=s.top}return{x:t,y:n}},t.gridInstanceSequence=new jo,t.GRID_DOM_KEY="__ag_grid_instance",eu([K("ctrlsService")],t.prototype,"ctrlsService",void 0),t=n=eu([Y("mouseEventService")],t)}(Fe),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])},e(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)}}(),ou=function(){return ou=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},ou.apply(this,arguments)},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(e){function t(){var t=e.call(this)||this;return t.onPageDown=H(t.onPageDown,100),t.onPageUp=H(t.onPageUp,100),t}return nu(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridBodyCon=t.gridBodyCtrl}))},t.prototype.handlePageScrollingKey=function(e){var t=e.key,n=e.altKey,o=e.ctrlKey||e.metaKey,r=!!this.rangeService&&e.shiftKey,i=this.mouseEventService.getCellPositionForEvent(e);if(!i)return!1;var s=!1;switch(t){case dr.PAGE_HOME:case dr.PAGE_END:o||n||(this.onHomeOrEndKey(t),s=!0);break;case dr.LEFT:case dr.RIGHT:case dr.UP:case dr.DOWN:!o||n||r||(this.onCtrlUpDownLeftRight(t,i),s=!0);break;case dr.PAGE_DOWN:o||n||(this.onPageDown(i),s=!0);break;case dr.PAGE_UP:o||n||(this.onPageUp(i),s=!0)}return s&&e.preventDefault(),s},t.prototype.navigateTo=function(e){var t=e.scrollIndex,n=e.scrollType,o=e.scrollColumn,i=e.focusIndex,s=e.focusColumn;if(r(o)&&!o.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(o),r(t)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t,n),this.animationFrameService.flushAllFrames(),this.focusService.setFocusedCell(i,s,null,!0),this.rangeService){var a={rowIndex:i,rowPinned:null,column:s};this.rangeService.setRangeToCell(a)}},t.prototype.onPageDown=function(e){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.getViewportHeight(),o=this.paginationProxy.getPixelOffset(),r=t.top+n,i=this.paginationProxy.getRowIndexAtPixel(r+o);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,i):this.navigateToNextPage(e,i)},t.prototype.onPageUp=function(e){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.paginationProxy.getPixelOffset(),o=t.top,r=this.paginationProxy.getRowIndexAtPixel(o+n);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,r,!0):this.navigateToNextPage(e,r,!0)},t.prototype.navigateToNextPage=function(e,t,n){var o,r;void 0===n&&(n=!1);var i,s=this.getViewportHeight(),a=this.paginationProxy.getPageFirstRow(),l=this.paginationProxy.getPageLastRow(),u=this.paginationProxy.getPixelOffset(),c=this.paginationProxy.getRow(e.rowIndex),p=n?(null===(o=c)||void 0===o?void 0:o.rowHeight)-s-u:s-u,d=(null===(r=c)||void 0===r?void 0:r.rowTop)+p,h=this.paginationProxy.getRowIndexAtPixel(d+u);if(h===e.rowIndex){var f=n?-1:1;t=h=e.rowIndex+f}n?(i="bottom",h<a&&(h=a),t<a&&(t=a)):(i="top",h>l&&(h=l),t>l&&(t=l)),this.isRowTallerThanView(h)&&(t=h,i="top"),this.navigateTo({scrollIndex:t,scrollType:i,scrollColumn:null,focusIndex:h,focusColumn:e.column})},t.prototype.navigateToNextPageWithAutoHeight=function(e,t,n){var o=this;void 0===n&&(n=!1),this.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout((function(){var r=o.getNextFocusIndexForAutoHeight(e,n);o.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:r,focusColumn:e.column})}),50)},t.prototype.getNextFocusIndexForAutoHeight=function(e,t){var n;void 0===t&&(t=!1);for(var o=t?-1:1,r=this.getViewportHeight(),i=this.paginationProxy.getPageLastRow(),s=0,a=e.rowIndex;a>=0&&a<=i;){var l=this.paginationProxy.getRow(a);if(l){var u=null!==(n=l.rowHeight)&&void 0!==n?n:0;if(s+u>r)break;s+=u}a+=o}return Math.max(0,Math.min(a,i))},t.prototype.getViewportHeight=function(){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),t=this.gridOptionsWrapper.getScrollbarWidth(),n=e.bottom-e.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(n-=t),n},t.prototype.isRowTallerThanView=function(e){var t=this.paginationProxy.getRow(e);if(!t)return!1;var n=t.rowHeight;return"number"===typeof n&&n>this.getViewportHeight()},t.prototype.onCtrlUpDownLeftRight=function(e,t){var n=this.cellNavigationService.getNextCellToFocus(e,t,!0),o=n.rowIndex,r=n.column;this.navigateTo({scrollIndex:o,scrollType:null,scrollColumn:r,focusIndex:o,focusColumn:r})},t.prototype.onHomeOrEndKey=function(e){var t=e===dr.PAGE_HOME,n=this.columnModel.getAllDisplayedColumns(),o=t?n[0]:ue(n),r=t?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:o,focusIndex:r,focusColumn:o})},t.prototype.onTabKeyDown=function(e,t){var n=t.shiftKey;if(this.tabToNextCellCommon(e,n,t))t.preventDefault();else if(n){var o=e.getRowPosition(),r=o.rowIndex;(o.rowPinned?0===r:r===this.paginationProxy.getPageFirstRow())&&(t.preventDefault(),this.focusService.focusLastHeader(t))}else e instanceof al&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(n)&&t.preventDefault()},t.prototype.tabToNextCell=function(e,t){var n=this.focusService.getFocusedCell();if(!n)return!1;var o=this.getCellByPosition(n);return!!(o||(o=this.rowRenderer.getRowByPosition(n))&&o.isFullWidth())&&this.tabToNextCellCommon(o,e,t)},t.prototype.tabToNextCellCommon=function(e,t,n){var o=e.isEditing();if(!o&&e instanceof al){var r=e.getRowCtrl();r&&(o=r.isEditing())}return(o?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(e,t,n):this.moveToNextEditingCell(e,t,n):this.moveToNextCellNotEditing(e,t))||!!this.focusService.getFocusedHeader()},t.prototype.moveToNextEditingCell=function(e,t,n){void 0===n&&(n=null);var o=e.getCellPosition();e.stopEditing();var r=this.findNextCellToFocusOn(o,t,!0);return null!=r&&(r.startEditing(null,null,!0,n),r.focusCell(!1),!0)},t.prototype.moveToNextEditingRow=function(e,t,n){void 0===n&&(n=null);var o=e.getCellPosition(),r=this.findNextCellToFocusOn(o,t,!0);if(null==r)return!1;var i=r.getCellPosition(),s=this.isCellEditable(o),a=this.isCellEditable(i),l=i&&o.rowIndex===i.rowIndex&&o.rowPinned===i.rowPinned;(s&&e.setFocusOutOnEditor(),l)||(e.getRowCtrl().stopEditing(),r.getRowCtrl().startRowEditing(void 0,void 0,void 0,n));return a?(r.setFocusInOnEditor(),r.focusCell()):r.focusCell(!0),!0},t.prototype.moveToNextCellNotEditing=function(e,t){var n,o=this.columnModel.getAllDisplayedColumns();n=e instanceof fl?ou(ou({},e.getRowPosition()),{column:t?o[0]:ue(o)}):e.getCellPosition();var i=this.findNextCellToFocusOn(n,t,!1);if(i instanceof al)i.focusCell(!0);else if(i)return this.tryToFocusFullWidthRow(i.getRowPosition(),t);return r(i)},t.prototype.findNextCellToFocusOn=function(e,t,n){for(var o=e;;){e!==o&&(e=o),t||(o=this.getLastCellOfColSpan(o)),o=this.cellNavigationService.getNextTabbedCell(o,t);var i=this.gridOptionsWrapper.getTabToNextCellFunc();if(r(i)){var s=i({backwards:t,editing:n,previousCellPosition:e,nextCellPosition:o||null});r(s)?(s.floating&&(D((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),s.rowPinned=s.floating),o={rowIndex:s.rowIndex,column:s.column,rowPinned:s.rowPinned}):o=null}if(!o)return null;if(o.rowIndex<0){var a=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:a+o.rowIndex,column:o.column}}),null}var l=this.gridOptionsWrapper.isFullRowEdit();if(n&&!l)if(!this.isCellEditable(o))continue;this.ensureCellVisible(o);var u=this.getCellByPosition(o);if(u){if(!u.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(o),u}else{var c=this.rowRenderer.getRowByPosition(o);if(c&&c.isFullWidth())return c}}},t.prototype.isCellEditable=function(e){var t=this.lookupRowNodeForCell(e);return!!t&&e.column.isCellEditable(t)},t.prototype.getCellByPosition=function(e){var t=this.rowRenderer.getRowByPosition(e);return t?t.getCellCtrl(e.column):null},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned===oe.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned===oe.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},t.prototype.navigateToNextCell=function(e,t,n,o){for(var s=n,a=!1;s&&(s===n||!this.isValidNavigateCell(s));)this.gridOptionsWrapper.isEnableRtl()?t===dr.LEFT&&(s=this.getLastCellOfColSpan(s)):t===dr.RIGHT&&(s=this.getLastCellOfColSpan(s)),a=i(s=this.cellNavigationService.getNextCellToFocus(t,s));if(a&&e&&e.key===dr.UP&&(s={rowIndex:-1,rowPinned:null,column:n.column}),o){var l=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(r(l)){var u=l({key:t,previousCellPosition:n,nextCellPosition:s||null,event:e});r(u)?(u.floating&&(D((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),u.rowPinned=u.floating),s={rowPinned:u.rowPinned,rowIndex:u.rowIndex,column:u.column}):s=null}}if(s)if(s.rowIndex<0){var c=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:c+s.rowIndex,column:n.column},event:e||void 0})}else{var p=this.getNormalisedPosition(s);p?this.focusPosition(p):this.tryToFocusFullWidthRow(s)}},t.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var t=this.getCellByPosition(e);return t?(e=t.getCellPosition(),this.ensureCellVisible(e),e):null},t.prototype.tryToFocusFullWidthRow=function(e,t){void 0===t&&(t=!1);var n=this.columnModel.getAllDisplayedColumns(),o=this.rowRenderer.getRowByPosition(e);if(!o||!o.isFullWidth())return!1;var r=this.focusService.getFocusedCell(),i={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?ue(n):n[0])};this.focusPosition(i);var s=null!=r&&this.rowPositionUtils.before(i,r),a={type:Ve.EVENT_FULL_WIDTH_ROW_FOCUSED,api:this.gridApi,columnApi:this.columnApi,rowIndex:i.rowIndex,rowPinned:i.rowPinned,column:i.column,isFullWidthCell:!0,floating:i.rowPinned,fromBelow:s};return this.eventService.dispatchEvent(a),!0},t.prototype.focusPosition=function(e){this.focusService.setFocusedCell(e.rowIndex,e.column,e.rowPinned,!0),this.rangeService&&this.rangeService.setRangeToCell(e)},t.prototype.isValidNavigateCell=function(e){return!!this.rowPositionUtils.getRowNode(e)},t.prototype.getLastCellOfColSpan=function(e){var t=this.getCellByPosition(e);if(!t)return e;var n=t.getColSpanningList();return 1===n.length?e:{rowIndex:e.rowIndex,column:ue(n),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){i(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column),this.gridBodyCon.getScrollFeature().horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()},ru([K("columnApi")],t.prototype,"columnApi",void 0),ru([K("gridApi")],t.prototype,"gridApi",void 0),ru([K("mouseEventService")],t.prototype,"mouseEventService",void 0),ru([K("paginationProxy")],t.prototype,"paginationProxy",void 0),ru([K("focusService")],t.prototype,"focusService",void 0),ru([K("animationFrameService")],t.prototype,"animationFrameService",void 0),ru([q("rangeService")],t.prototype,"rangeService",void 0),ru([K("columnModel")],t.prototype,"columnModel",void 0),ru([K("ctrlsService")],t.prototype,"ctrlsService",void 0),ru([K("rowRenderer")],t.prototype,"rowRenderer",void 0),ru([K("headerNavigationService")],t.prototype,"headerNavigationService",void 0),ru([K("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),ru([K("cellNavigationService")],t.prototype,"cellNavigationService",void 0),ru([K("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),ru([z],t.prototype,"postConstruct",null),t=ru([Y("navigationService")],t)}(Fe),su=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),au=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(e){function t(t){var n=e.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return n.params=t,n}return su(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},t.prototype.addKeyDownListener=function(){var e=this,t=this.getGui(),n=this.params;this.addManagedListener(t,"keydown",(function(t){No(e.gridOptionsWrapper,t,n.node,n.column,!0)||n.onKeyDown(t)}))},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",au([z],t.prototype,"postConstruct",null),t}(Si),uu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),cu=function(e){function t(t,n,o,r,i){var s=e.call(this)||this;s.rendererVersion=0,s.editorVersion=0,s.beans=t,s.column=n.getColumn(),s.rowNode=n.getRowNode(),s.rowCtrl=n.getRowCtrl(),s.eRow=r,s.setTemplate('<div comp-id="'+s.getCompId()+'"/>');var a=s.getGui();s.forceWrapper=n.isForceWrapper(),s.refreshWrapper(!1);var l=function(e,t,n){var o=n||a;null!=t&&""!=t?o.setAttribute(e,t):o.removeAttribute(e)},u={addOrRemoveCssClass:function(e,t){return s.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return _n(a,e)},getFocusableElement:function(){return s.getFocusableElement()},setTabIndex:function(e){return l("tabindex",e.toString())},setRole:function(e){return Bn(a,e)},setColId:function(e){return l("col-id",e)},setTitle:function(e){return l("title",e)},setIncludeSelection:function(e){return s.includeSelection=e},setIncludeRowDrag:function(e){return s.includeRowDrag=e},setIncludeDndSource:function(e){return s.includeDndSource=e},setRenderDetails:function(e,t,n){return s.setRenderDetails(e,t,n)},setEditDetails:function(e,t,n){return s.setEditDetails(e,t,n)},getCellEditor:function(){return s.cellEditor||null},getCellRenderer:function(){return s.cellRenderer||null},getParentOfValue:function(){return s.getParentOfValue()}};return s.cellCtrl=n,n.setComp(u,s.getGui(),s.eCellWrapper,o,i),s}return uu(t,e),t.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},t.prototype.setRenderDetails=function(e,t,n){if(!(this.cellEditor&&!this.cellEditorPopupWrapper)){this.firstRender=null==this.firstRender;var o=this.refreshWrapper(!1);if(e)!(n||o)&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e));else this.destroyRenderer(),this.insertValueWithoutCellRenderer(t)}},t.prototype.setEditDetails=function(e,t,n){e?this.createCellEditorInstance(e,t,n):this.destroyEditor()},t.prototype.removeControls=function(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)},t.prototype.refreshWrapper=function(e){var t=this.includeRowDrag||this.includeDndSource||this.includeSelection,n=t||this.forceWrapper,o=n&&null==this.eCellWrapper;o&&(this.eCellWrapper=gn('<div class="ag-cell-wrapper" role="presentation"></div>'),this.getGui().appendChild(this.eCellWrapper));var r=!n&&null!=this.eCellWrapper;r&&(hn(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!n);var i=!e&&n,s=i&&null==this.eCellValue;s&&(this.eCellValue=gn('<span class="ag-cell-value" role="presentation"></span>'),this.eCellWrapper.appendChild(this.eCellValue));var a=!i&&null!=this.eCellValue;a&&(hn(this.eCellValue),this.eCellValue=void 0);var l=o||r||s||a;return l&&this.removeControls(),!e&&t&&this.addControls(),l},t.prototype.addControls=function(){var e=this.eCellValue.id="cell-"+this.getCompId(),t=[];this.includeRowDrag&&null==this.rowDraggingComp&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&null==this.dndSourceComp&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&(null==this.checkboxSelectionComp&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue)),t.push(this.checkboxSelectionComp.getCheckboxId())),t.push(e),Yn(this.getGui(),t.join(" "))},t.prototype.createCellEditorInstance=function(e,t,n){var o=this,r=this.editorVersion,s=e.newAgStackInstance();if(s){var a=e.params;s.then((function(e){return o.afterCellEditorCreated(r,e,a,t,n)})),i(this.cellEditor)&&a.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},t.prototype.insertValueWithoutCellRenderer=function(e){var t=this.getParentOfValue();dn(t);var n=null!=e?Ke(e):null;null!=n&&(t.innerHTML=n)},t.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},t.prototype.destroyRenderer=function(){var e=this.beans.context;this.cellRenderer=e.destroyBean(this.cellRenderer),hn(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},t.prototype.destroyEditor=function(){var e=this.beans.context;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),hn(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},t.prototype.refreshCellRenderer=function(e){if(null==this.cellRenderer||null==this.cellRenderer.refresh)return!1;if(this.cellRendererClass!==e.componentClass)return!1;var t=this.cellRenderer.refresh(e.params);return!0===t||void 0===t},t.prototype.createCellRendererInstance=function(e){var t=this,n=this.beans.gridOptionsWrapper.isAngularCompileRows(),o=this.beans.gridOptionsWrapper.isSuppressAnimationFrame(),r=!n&&!o,i=this.rendererVersion,s=e.componentClass,a=function(){if(!(t.rendererVersion!==i||!t.isAlive())){var n=e.newAgStackInstance(),o=t.afterCellRendererCreated.bind(t,i,s);n&&n.then(o)}};r&&this.firstRender?this.beans.animationFrameService.createTask(a,this.rowNode.rowIndex,"createTasksP2"):a()},t.prototype.getCtrl=function(){return this.cellCtrl},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getCellRenderer=function(){return this.cellRenderer},t.prototype.getCellEditor=function(){return this.cellEditor},t.prototype.afterCellRendererCreated=function(e,t,n){if(!this.isAlive()||e!==this.rendererVersion)this.beans.context.destroyBean(n);else if(this.cellRenderer=n,this.cellRendererClass=t,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var o=this.getParentOfValue();dn(o),o.appendChild(this.cellRendererGui)}},t.prototype.afterCellEditorCreated=function(e,t,n,o,r){if(e!==this.editorVersion)this.beans.context.destroyBean(t);else{if(t.isCancelBeforeStart&&t.isCancelBeforeStart())return this.beans.context.destroyBean(t),void this.cellCtrl.stopEditing();if(!t.getGui)return console.warn("AG Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),void this.beans.context.destroyBean(t);this.cellEditor=t,this.cellEditorGui=t.getGui(),o||void 0!==t.isPopup&&t.isPopup()?(o||this.cellCtrl.hackSayEditingInPopup(),this.addPopupCellEditor(n,r)):this.addInCellEditor(),t.afterGuiAttached&&t.afterGuiAttached()}},t.prototype.addInCellEditor=function(){var e=this.getGui(),t=this.beans.gridOptionsWrapper.getDocument();(e.contains(t.activeElement)&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui)&&this.getParentOfValue().appendChild(this.cellEditorGui)},t.prototype.addPopupCellEditor=function(e,t){var n=this;this.beans.gridOptionsWrapper.isFullRowEdit()&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var o=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new lu(e));var r=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&r.appendChild(this.cellEditorGui);var i=this.beans.popupService,s=this.beans.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus(),a=null!=t?t:o.getPopupPosition?o.getPopupPosition():"over",l={column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:r,keepWithinBounds:!0},u="under"===a?i.positionPopupUnderComponent.bind(i,l):i.positionPopupOverComponent.bind(i,l),c=this.beans.gridOptionsWrapper.getLocaleTextFunc(),p=i.addPopup({modal:s,eChild:r,closeOnEsc:!0,closedCallback:function(){n.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:u,ariaLabel:c("ariaLabelCellEditor","Cell Editor")});p&&(this.hideEditorPopup=p.hideFunc)},t.prototype.detach=function(){this.eRow.removeChild(this.getGui())},t.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),e.prototype.destroy.call(this)},t.prototype.clearParentOfValue=function(){var e=this.getGui(),t=this.beans.gridOptionsWrapper.getDocument();e.contains(t.activeElement)&&e.focus({preventScroll:!0}),dn(this.getParentOfValue())},t}(tr),pu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),du=function(e){function t(t,n,o){var r=e.call(this)||this;r.cellComps={},r.beans=n,r.rowCtrl=t,r.setTemplate('<div comp-id="'+r.getCompId()+'" style="'+r.getInitialStyle()+'"/>');var i=r.getGui(),s=i.style,a={setDomOrder:function(e){return r.domOrder=e},setCellCtrls:function(e){return r.setCellCtrls(e)},showFullWidth:function(e){return r.showFullWidth(e)},getFullWidthCellRenderer:function(){return r.getFullWidthCellRenderer()},addOrRemoveCssClass:function(e,t){return r.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return _n(i,e)},setTop:function(e){return s.top=e},setTransform:function(e){return s.transform=e},setRowIndex:function(e){return i.setAttribute("row-index",e)},setRole:function(e){return Bn(i,e)},setRowId:function(e){return i.setAttribute("row-id",e)},setRowBusinessKey:function(e){return i.setAttribute("row-business-key",e)},setTabIndex:function(e){return i.setAttribute("tabindex",e.toString())}};return t.setComp(a,r.getGui(),o),r}return pu(t,e),t.prototype.getInitialStyle=function(){var e=this.rowCtrl.getInitialTransform(),t=this.rowCtrl.getInitialRowTop();return e?"transform: "+e:"top: "+t},t.prototype.showFullWidth=function(e){var t=this,n=e.newAgStackInstance();n&&n.then((function(e){if(t.isAlive()){var n=e.getGui();t.getGui().appendChild(n),t.rowCtrl.setupDetailRowAutoHeight(n),t.setFullWidthRowComp(e)}else t.beans.context.destroyBean(e)}))},t.prototype.setCellCtrls=function(e){var t=this,n=Object.assign({},this.cellComps);e.forEach((function(e){var o=e.getInstanceId();null==t.cellComps[o]?t.newCellComp(e):n[o]=null}));var o=_(n).filter((function(e){return null!=e}));this.destroyCells(o),this.ensureDomOrder(e)},t.prototype.ensureDomOrder=function(e){var t=this;if(this.domOrder){var n=[];e.forEach((function(e){var o=t.cellComps[e.getInstanceId()];o&&n.push(o.getGui())})),Cn(this.getGui(),n)}},t.prototype.newCellComp=function(e){var t=new cu(this.beans,e,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.getInstanceId()]=t,this.getGui().appendChild(t.getGui())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyAllCells()},t.prototype.destroyAllCells=function(){var e=_(this.cellComps).filter((function(e){return null!=e}));this.destroyCells(e)},t.prototype.setFullWidthRowComp=function(e){var t=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=e,this.addDestroyFunc((function(){t.fullWidthCellRenderer=t.beans.context.destroyBean(t.fullWidthCellRenderer)}))},t.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},t.prototype.destroyCells=function(e){var t=this;e.forEach((function(e){if(e){var n=e.getCtrl().getInstanceId();t.cellComps[n]===e&&(e.detach(),e.destroy(),t.cellComps[n]=null)}}))},t}(tr),hu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),fu=function(){return fu=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},fu.apply(this,arguments)},gu=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};var mu,vu=function(e){function n(){var n=e.call(this,function(){var e=tr.elementGettingCreated.getAttribute("name"),n=zl.getRowContainerCssClasses(e),o=e===t.RowContainerName.CENTER,r=e===t.RowContainerName.TOP_CENTER||e===t.RowContainerName.BOTTOM_CENTER;return o?'<div class="'+n.wrapper+'" ref="eWrapper" role="presentation">\n                <div class="'+n.viewport+'" ref="eViewport" role="presentation">\n                    <div class="'+n.container+'" ref="eContainer"></div>\n                </div>\n            </div>':r?'<div class="'+n.viewport+'" ref="eViewport" role="presentation">\n                <div class="'+n.container+'" ref="eContainer"></div>\n            </div>':'<div class="'+n.container+'" ref="eContainer"></div>'}())||this;return n.rowComps={},n.name=tr.elementGettingCreated.getAttribute("name"),n.type=Vl(n.name),n}return hu(n,e),n.prototype.postConstruct=function(){var e=this,t={setViewportHeight:function(t){return e.eViewport.style.height=t},setRowCtrls:function(t){return e.setRowCtrls(t)},setDomOrder:function(t){e.domOrder=t},setContainerWidth:function(t){return e.eContainer.style.width=t}};this.createManagedBean(new zl(this.name)).setComp(t,this.eContainer,this.eViewport,this.eWrapper)},n.prototype.preDestroy=function(){this.setRowCtrls([])},n.prototype.setRowCtrls=function(e){var t=this,n=fu({},this.rowComps);this.rowComps={},this.lastPlacedElement=null;e.forEach((function(e){var o=e.getInstanceId(),r=n[o];if(r)t.rowComps[o]=r,delete n[o],t.ensureDomOrder(r.getGui());else{var i=t.newRowComp(e);t.rowComps[o]=i,t.appendRow(i.getGui())}})),_(n).forEach((function(e){t.eContainer.removeChild(e.getGui()),e.destroy()})),Bn(this.eContainer,e.length?"rowgroup":"presentation")},n.prototype.appendRow=function(e){this.domOrder?wn(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},n.prototype.ensureDomOrder=function(e){this.domOrder&&(yn(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},n.prototype.newRowComp=function(e){zl.getPinned(this.name);return new du(e,this.beans,this.type)},gu([K("beans")],n.prototype,"beans",void 0),gu([nr("eViewport")],n.prototype,"eViewport",void 0),gu([nr("eContainer")],n.prototype,"eContainer",void 0),gu([nr("eWrapper")],n.prototype,"eWrapper",void 0),gu([z],n.prototype,"postConstruct",null),gu([Z],n.prototype,"preDestroy",null),n}(tr),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(){function e(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}return e.prototype.onDragEnter=function(e){var t=this;if(this.clearColumnsList(),!this.gridOptionsWrapper.isFunctionsReadOnly()){var n=e.dragItem.columns;n&&n.forEach((function(e){e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?t.columnsToAggregate.push(e):e.isAllowRowGroup()?t.columnsToGroup.push(e):e.isAllowPivot()&&t.columnsToPivot.push(e)))}))}},e.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?ts.ICON_PINNED:ts.ICON_MOVE:null},e.prototype.onDragLeave=function(e){this.clearColumnsList()},e.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},e.prototype.onDragging=function(e){},e.prototype.onDragStop=function(e){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},yu([K("columnModel")],e.prototype,"columnModel",void 0),yu([K("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),wu=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},_u=function(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=e,this.eContainer=t,this.centerContainer=!r(e)}return e.prototype.init=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCon=e.ctrlsService.getGridBodyCtrl()}))},e.prototype.getIconName=function(){return this.pinned?ts.ICON_PINNED:ts.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.columnModel.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.columnModel.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.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),e},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),n=t+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=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,!i(e.hDirection)){var o=this.normaliseX(e.x);t||this.checkCenterForScrolling(o);var r=this.normaliseDirection(e.hDirection),s=e.dragSource.type,a=e.dragSource.getDragItem().columns;a=a.filter((function(e){return!e.getColDef().lockPinned||e.getPinned()==n.pinned})),this.attemptMoveColumns(s,a,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.columnModel.getAllGridColumns(),n=pe(e.map((function(e){return t.indexOf(e)}))),o=n[0];return ue(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=n.slice();this.columnModel.sortColumnsLikeGridColumns(l);var u=this.calculateValidMoves(l,a,r),c=this.calculateOldIndex(l);if(0!==u.length){var p=u[0],d=null!==c&&!i;if(e==t.DragSourceType.HeaderCell&&(d=null!==c),d){if(s&&p>=c)return;if(a&&p<=c)return}for(var h=0;h<u.length;h++){var f=u[h];if(this.columnModel.doesMovePassRules(l,f))return void this.columnModel.moveColumns(l,f,"uiColumnDragged")}}},e.prototype.calculateValidMoves=function(e,t,n){var o=this.gridOptionsWrapper.isSuppressMovableColumns()||e.some((function(e){return e.getColDef().suppressMovable}));if(o)return[];var r,i=this.columnModel.getDisplayedColumns(this.pinned),s=this.columnModel.getAllGridColumns(),a=i.filter((function(t){return me(e,t)})),l=i.filter((function(t){return!me(e,t)})),u=s.filter((function(t){return!me(e,t)})),c=0,p=n;if(t){var d=0;a.forEach((function(e){return d+=e.getActualWidth()})),p-=d}if(p>0){for(var h=0;h<l.length;h++){if((p-=l[h].getActualWidth())<0)break;c++}t&&c++}if(c>0){var f=l[c-1];r=u.indexOf(f)+1}else-1===(r=u.indexOf(l[0]))&&(r=0);var g=[r],m=function(e,t){return e-t};if(t){for(var v=r+1,y=s.length-1;v<=y;)g.push(v),v++;g.sort(m)}else{v=r,y=s.length-1;for(var C=s[v];v<=y&&this.isColumnHidden(i,C);)v++,g.push(v),C=s[v];v=r-1;for(;v>=0;)g.push(v),v--;g.sort(m).reverse()}return g},e.prototype.isColumnHidden=function(e,t){return e.indexOf(t)<0},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(ts.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(ts.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(ts.ICON_MOVE))},e.prototype.moveInterval=function(){var e;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100);var t=null,n=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?t=n.scrollHorizontally(-e):this.needToMoveRight&&(t=n.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var o=this.lastDraggingEvent.dragItem.columns.filter((function(e){return!e.getColDef().lockPinned}));if(o.length>0&&(this.dragAndDropService.setGhostIcon(ts.ICON_PINNED),this.failedMoveAttempts>7)){var r=this.needToMoveLeft?oe.PINNED_LEFT:oe.PINNED_RIGHT;this.setColumnsPinned(o,r,"uiColumnDragged"),this.dragAndDropService.nudge()}}},wu([K("columnModel")],e.prototype,"columnModel",void 0),wu([K("dragAndDropService")],e.prototype,"dragAndDropService",void 0),wu([K("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),wu([K("ctrlsService")],e.prototype,"ctrlsService",void 0),wu([z],e.prototype,"init",null),e}(),bu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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},Su=function(e){function n(t,n){var o=e.call(this)||this;return o.pinned=t,o.eContainer=n,o}return bu(n,e),n.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){switch(e.pinned){case oe.PINNED_LEFT:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.leftRowContainerCtrl.getContainerElement()],[t.bottomLeftRowContainerCtrl.getContainerElement()],[t.topLeftRowContainerCtrl.getContainerElement()]];break;case oe.PINNED_RIGHT:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.rightRowContainerCtrl.getContainerElement()],[t.bottomRightRowContainerCtrl.getContainerElement()],[t.topRightRowContainerCtrl.getContainerElement()]];break;default:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.centerRowContainerCtrl.getViewportElement()],[t.bottomCenterRowContainerCtrl.getViewportElement()],[t.topCenterRowContainerCtrl.getViewportElement()]]}}))},n.prototype.isInterestedIn=function(e){return e===t.DragSourceType.HeaderCell||e===t.DragSourceType.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},n.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},n.prototype.getContainer=function(){return this.eContainer},n.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new _u(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new Cu(this.pinned)),this.dragAndDropService.addDropTarget(this)},n.prototype.getIconName=function(){return this.currentDropListener.getIconName()},n.prototype.isDropColumnInPivotMode=function(e){return this.columnModel.isPivotMode()&&e.dragSource.type===t.DragSourceType.ToolPanel},n.prototype.onDragEnter=function(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)},n.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},n.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},n.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},Eu([K("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Eu([K("columnModel")],n.prototype,"columnModel",void 0),Eu([K("ctrlsService")],n.prototype,"ctrlsService",void 0),Eu([z],n.prototype,"postConstruct",null),Eu([z],n.prototype,"init",null),n}(Fe),Ru=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Ou=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ru(arguments[t]));return e},Tu=function(){function e(){}return e.getHeaderClassesFromColDef=function(e,t,n,o){return i(e)?[]:this.getColumnClassesFromCollDef(e.headerClass,e,t,n,o)},e.getToolPanelClassesFromColDef=function(e,t,n,o){return i(e)?[]:this.getColumnClassesFromCollDef(e.toolPanelClass,e,t,n,o)},e.getClassParams=function(e,t,n,o){return{colDef:e,column:n,columnGroup:o,api:t.getApi(),columnApi:t.getColumnApi(),context:t.getContext()}},e.getColumnClassesFromCollDef=function(e,t,n,o,r){if(i(e))return[];var s;"function"===typeof e?s=e(this.getClassParams(t,n,o,r)):s=e;return"string"===typeof s?[s]:Array.isArray(s)?Ou(s):[]},e}(),Pu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Au=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(e){function t(n){var o=e.call(this,t.TEMPLATE,n)||this;return o.headerCompVersion=0,o.column=n.getColumnGroupChild(),o.pinned=n.getPinned(),o}return Pu(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),n=function(e,n,o){var r=o||t;null!=n&&""!=n?r.setAttribute(e,n):r.removeAttribute(e)},o={setWidth:function(e){return t.style.width=e},addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setColId:function(e){return n("col-id",e)},setTitle:function(e){return n("title",e)},setAriaDescription:function(e){return Zn(t,e)},setAriaSort:function(e){return e?so(t,e):ao(t)},setUserCompDetails:function(t){return e.setUserCompDetails(t)},getUserCompInstance:function(){return e.headerComp}};this.ctrl.setComp(o,this.getGui(),this.eResize);var r=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",r)},t.prototype.destroyHeaderComp=function(){this.headerComp&&(this.getGui().removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},t.prototype.setUserCompDetails=function(e){var t=this;this.headerCompVersion++;var n=this.headerCompVersion;e.newAgStackInstance().then((function(e){return t.afterCompCreated(n,e)}))},t.prototype.afterCompCreated=function(e,t){e==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=t,this.headerCompGui=t.getGui(),this.getGui().appendChild(this.headerCompGui),this.ctrl.setDragSource(this.headerCompGui)):this.destroyBean(t)},t.TEMPLATE='<div class="ag-header-cell" role="columnheader" tabindex="-1">\n            <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n        </div>',Au([nr("eResize")],t.prototype,"eResize",void 0),Au([z],t.prototype,"postConstruct",null),Au([Z],t.prototype,"destroyHeaderComp",null),t}(na),xu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Nu=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},Mu=function(e){function t(n){return e.call(this,t.TEMPLATE,n)||this}return xu(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),n=function(e,n){return void 0!=n?t.setAttribute(e,n):t.removeAttribute(e)},o={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},addOrRemoveResizableCssClass:function(t,n){return e.eResize.classList.toggle(t,n)},setWidth:function(e){return t.style.width=e},setColId:function(e){return t.setAttribute("col-id",e)},setAriaExpanded:function(e){return n("aria-expanded",e)},setTitle:function(e){return n("title",e)},setUserCompDetails:function(t){return e.setUserCompDetails(t)}};this.ctrl.setComp(o,t,this.eResize)},t.prototype.setUserCompDetails=function(e){var t=this;e.newAgStackInstance().then((function(e){return t.afterHeaderCompCreated(e)}))},t.prototype.afterHeaderCompCreated=function(e){var t=this,n=function(){return t.destroyBean(e)};this.isAlive()?(this.getGui().appendChild(e.getGui()),this.addDestroyFunc(n),this.ctrl.setDragSource(e.getGui())):n()},t.TEMPLATE='<div class="ag-header-group-cell" role="columnheader" tabindex="-1">\n            <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n        </div>',Nu([K("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Nu([nr("eResize")],t.prototype,"eResize",void 0),Nu([z],t.prototype,"postConstruct",null),t}(na),Iu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),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};(mu=t.HeaderRowType||(t.HeaderRowType={})).COLUMN_GROUP="group",mu.COLUMN="column",mu.FLOATING_FILTER="filter";var Fu,ku=function(e){function n(n){var o=e.call(this)||this;o.headerComps={};var r=n.getType()==t.HeaderRowType.COLUMN_GROUP?"ag-header-row-column-group":n.getType()==t.HeaderRowType.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return o.setTemplate('<div class="ag-header-row '+r+'" role="row"></div>'),o.ctrl=n,o}return Iu(n,e),n.prototype.init=function(){var e=this,t={setTransform:function(t){return e.getGui().style.transform=t},setHeight:function(t){return e.getGui().style.height=t},setTop:function(t){return e.getGui().style.top=t},setHeaderCtrls:function(t){return e.setHeaderCtrls(t)},setWidth:function(t){return e.getGui().style.width=t},setAriaRowIndex:function(t){return no(e.getGui(),t)}};this.ctrl.setComp(t)},n.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([])},n.prototype.setHeaderCtrls=function(e){var t=this;if(this.isAlive()){var n=this.headerComps;if(this.headerComps={},e.forEach((function(e){var o=e.getInstanceId(),r=n[o];delete n[o],null==r&&(r=t.createHeaderComp(e),t.getGui().appendChild(r.getGui())),t.headerComps[o]=r})),f(n,(function(e,n){t.getGui().removeChild(n.getGui()),t.destroyBean(n)})),this.gridOptionsWrapper.isEnsureDomOrder()){var o=_(this.headerComps);o.sort((function(e,t){return e.getCtrl().getColumnGroupChild().getLeft()-t.getCtrl().getColumnGroupChild().getLeft()}));var r=o.map((function(e){return e.getGui()}));Cn(this.getGui(),r)}}},n.prototype.createHeaderComp=function(e){var n;switch(this.ctrl.getType()){case t.HeaderRowType.COLUMN_GROUP:n=new Mu(e);break;case t.HeaderRowType.FLOATING_FILTER:n=new ia(e);break;default:n=new Du(e)}return this.createBean(n),n.setParentComponent(this),n},Lu([z],n.prototype,"init",null),Lu([Z],n.prototype,"destroyHeaderCtrls",null),n}(tr),Gu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Hu=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=0,Vu=function(e){function t(t,n){var o=e.call(this)||this;return o.lastFocusEvent=null,o.columnGroupChild=t,o.parentRowCtrl=n,o.instanceId=t.getUniqueId()+"-"+Bu++,o}return Gu(t,e),t.prototype.shouldStopEventPropagation=function(e){var t=this.focusService.getFocusedHeader(),n=t.headerRowIndex,o=t.column;return Mo(this.gridOptionsWrapper,e,n,o)},t.prototype.setGui=function(e){this.eGui=e,this.addDomData()},t.prototype.addDomData=function(){var e=this,n=t.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsWrapper.setDomData(this.eGui,n,this),this.addDestroyFunc((function(){return e.gridOptionsWrapper.setDomData(e.eGui,n,null)}))},t.prototype.getGui=function(){return this.eGui},t.prototype.focus=function(e){return!!this.eGui&&(this.lastFocusEvent=e||null,this.eGui.focus(),!0)},t.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},t.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},t.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.getColumnGroupChild=function(){return this.columnGroupChild},t.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",Hu([K("focusService")],t.prototype,"focusService",void 0),t}(Fe);(Fu=t.ClientSideRowModelSteps||(t.ClientSideRowModelSteps={})).EVERYTHING="group",Fu.FILTER="filter",Fu.SORT="sort",Fu.MAP="map",Fu.AGGREGATE="aggregate",Fu.FILTER_AGGREGATES="filter_aggregates",Fu.PIVOT="pivot",Fu.NOTHING="nothing";var Wu=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 ju(e){var t=e;return null!=t&&null!=t.getFrameworkComponentInstance?t.getFrameworkComponentInstance():e}var Uu,zu=function(){function e(){this.detailGridInfoMap={},this.destroyCalled=!1}return e.prototype.registerOverlayWrapperComp=function(e){this.overlayWrapperComp=e},e.prototype.registerSideBarComp=function(e){this.sideBarComp=e},e.prototype.init=function(){var e=this;switch(this.rowModel.getType()){case oe.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case oe.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case oe.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl()}))},e.prototype.__getAlignedGridService=function(){return this.alignedGridsService},e.prototype.__getContext=function(){return this.context},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;f(this.detailGridInfoMap,(function(n,o){r(o)&&(e(o,t),t++)}))},e.prototype.getDataAsCsv=function(e){if(re.assertRegistered(t.ModuleNames.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){re.assertRegistered(t.ModuleNames.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(e)},e.prototype.getExcelExportMode=function(e){var t=this.gridOptionsWrapper.getDefaultExportParams("excel");return Object.assign({exportMode:"xlsx"},t,e).exportMode},e.prototype.getDataAsExcel=function(e){if(re.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getDataAsExcel")){var n=this.getExcelExportMode(e);if(this.excelCreator.getFactoryMode(n)!==t.ExcelFactoryMode.MULTI_SHEET)return this.excelCreator.getDataAsExcel(e);console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`")}},e.prototype.exportDataAsExcel=function(e){if(re.assertRegistered(t.ModuleNames.ExcelExportModule,"api.exportDataAsExcel")){var n=this.getExcelExportMode(e);this.excelCreator.getFactoryMode(n)!==t.ExcelFactoryMode.MULTI_SHEET?this.excelCreator.exportDataAsExcel(e):console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`")}},e.prototype.getSheetDataForExcel=function(e){if(re.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getSheetDataForExcel")){var n=this.getExcelExportMode(e);return this.excelCreator.setFactoryMode(t.ExcelFactoryMode.MULTI_SHEET,n),this.excelCreator.getSheetDataForExcel(e)}},e.prototype.getMultipleSheetsAsExcel=function(e){if(re.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(e)},e.prototype.exportMultipleSheetsAsExcel=function(e){if(re.assertRegistered(t.ModuleNames.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(e)},e.prototype.setEnterpriseDatasource=function(e){console.warn("AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(e)},e.prototype.setGridAriaProperty=function(e,t){if(e){var n=this.ctrlsService.getGridBodyCtrl().getGui(),o="aria-"+e;null===t?n.removeAttribute(o):n.setAttribute(o,t)}},e.prototype.setServerSideDatasource=function(e){this.serverSideRowModel?this.serverSideRowModel.setDatasource(e):console.warn("AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+oe.ROW_MODEL_TYPE_SERVER_SIDE+"'")},e.prototype.setDatasource=function(e){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(e):console.warn("AG Grid: you can only use a datasource when gridOptions.rowModelType is '"+oe.ROW_MODEL_TYPE_INFINITE+"'")},e.prototype.setViewportDatasource=function(e){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(e):console.warn("AG Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+oe.ROW_MODEL_TYPE_VIEWPORT+"'")},e.prototype.setRowData=function(e){null==this.immutableService?console.warn("AG Grid: you can only set rowData when using the Client Side Row Model"):this.immutableService.isActive()?this.immutableService.setRowData(e):(this.selectionService.reset(),this.clientSideRowModel.setRowData(e))},e.prototype.setFloatingTopRowData=function(e){console.warn("AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(e)},e.prototype.setFloatingBottomRowData=function(e){console.warn("AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(e)},e.prototype.getFloatingTopRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},e.prototype.getFloatingBottomRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},e.prototype.getFloatingTopRow=function(e){return console.warn("AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(e)},e.prototype.getFloatingBottomRow=function(e){return console.warn("AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(e)},e.prototype.setPinnedTopRowData=function(e){this.pinnedRowModel.setPinnedTopRowData(e)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedRowModel.setPinnedBottomRowData(e)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},e.prototype.getPinnedTopRow=function(e){return this.pinnedRowModel.getPinnedTopRow(e)},e.prototype.getPinnedBottomRow=function(e){return this.pinnedRowModel.getPinnedBottomRow(e)},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api"),this.columnModel.setColumnDefs(e,t)},e.prototype.setAutoGroupColumnDef=function(e,t){this.gridOptionsWrapper.setProperty("autoGroupColumnDef",e,!0)},e.prototype.setDefaultColDef=function(e,t){this.gridOptionsWrapper.setProperty("defaultColDef",e,!0)},e.prototype.expireValueCache=function(){this.valueCache.expire()},e.prototype.getVerticalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()},e.prototype.getHorizontalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()},e.prototype.setAlwaysShowHorizontalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowHorizontalScroll",e)},e.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",e)},e.prototype.refreshToolPanel=function(){this.sideBarComp&&this.sideBarComp.refresh()},e.prototype.refreshCells=function(e){void 0===e&&(e={}),Array.isArray(e)?console.warn("since AG Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(e)},e.prototype.flashCells=function(e){void 0===e&&(e={}),this.rowRenderer.flashCells(e)},e.prototype.redrawRows=function(e){void 0===e&&(e={});var t=e?e.rowNodes:void 0;this.rowRenderer.redrawRows(t)},e.prototype.setFunctionsReadOnly=function(e){this.gridOptionsWrapper.setProperty("functionsReadOnly",e)},e.prototype.refreshHeader=function(){this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(e){return e.refresh()}))},e.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},e.prototype.isColumnFilterPresent=function(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()},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){i(this.clientSideRowModel)&&console.warn("AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),r(e)&&console.warn("AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:t.ClientSideRowModelSteps.MAP})},e.prototype.refreshInMemoryRowModel=function(e){console.warn("ag-grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(e)},e.prototype.refreshClientSideRowModel=function(e){i(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var n=t.ClientSideRowModelSteps.EVERYTHING,o={group:t.ClientSideRowModelSteps.EVERYTHING,filter:t.ClientSideRowModelSteps.FILTER,map:t.ClientSideRowModelSteps.MAP,aggregate:t.ClientSideRowModelSteps.AGGREGATE,sort:t.ClientSideRowModelSteps.SORT,pivot:t.ClientSideRowModelSteps.PIVOT};if(r(e)&&(n=o[e]),i(n))console.error("AG Grid: invalid step "+e+", available steps are "+Object.keys(o).join(", "));else{var s={step:n,keepRenderedRows:!0,keepEditingRows:!0,animate:!this.gridOptionsWrapper.isSuppressAnimationFrame()};this.clientSideRowModel.refreshModel(s)}},e.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},e.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},e.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},e.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},e.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):console.warn("AG Grid: expandAll only works with Client Side Row Model and Server Side Row Model")},e.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):console.warn("AG Grid: collapseAll only works with Client Side Row Model and Server Side Row Model")},e.prototype.getToolPanelInstance=function(e){if(this.sideBarComp)return ju(this.sideBarComp.getToolPanelInstance(e));console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.addVirtualRowListener=function(e,t,n){"string"!==typeof e&&console.warn("AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(e,t,n)},e.prototype.addRenderedRowListener=function(e,t,n){"virtualRowSelected"===e&&console.warn("AG Grid: event virtualRowSelected is deprecated, to register for individual row\n                selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(e,t,n)},e.prototype.setQuickFilter=function(e){this.filterManager.setQuickFilter(e)},e.prototype.selectIndex=function(e,t,n){console.warn("AG Grid: do not use api for selection, call node.setSelected(value) instead"),n&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.selectIndex(e,t)},e.prototype.deselectIndex=function(e,t){void 0===t&&(t=!1),console.warn("AG Grid: do not use api for selection, call node.setSelected(value) instead"),t&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.deselectIndex(e)},e.prototype.selectNode=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),console.warn("AG Grid: API for selection is deprecated, call node.setSelected(value) instead"),n&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectNode=function(e,t){void 0===t&&(t=!1),console.warn("AG Grid: API for selection is deprecated, call node.setSelected(value) instead"),t&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!1})},e.prototype.selectAll=function(){this.selectionService.selectAllRowNodes()},e.prototype.deselectAll=function(){this.selectionService.deselectAllRowNodes()},e.prototype.selectAllFiltered=function(){this.selectionService.selectAllRowNodes(!0)},e.prototype.deselectAllFiltered=function(){this.selectionService.deselectAllRowNodes(!0)},e.prototype.recomputeAggregates=function(){i(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:t.ClientSideRowModelSteps.AGGREGATE})},e.prototype.sizeColumnsToFit=function(){this.gridBodyCtrl.sizeColumnsToFit()},e.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},e.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},e.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},e.prototype.isNodeSelected=function(e){return console.warn("AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),e.isSelected()},e.prototype.getSelectedNodesById=function(){return console.error("AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},e.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},e.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},e.prototype.getBestCostNodeSelection=function(){return this.selectionService.getBestCostNodeSelection()},e.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},e.prototype.ensureColIndexVisible=function(e){console.warn("AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},e.prototype.ensureColumnVisible=function(e,t){void 0===t&&(t="auto"),this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(e,t)},e.prototype.ensureIndexVisible=function(e,t){this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(e,t)},e.prototype.ensureNodeVisible=function(e,t){void 0===t&&(t=null),this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(e,t)},e.prototype.forEachLeafNode=function(e){i(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){i(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(e)},e.prototype.forEachNodeAfterFilterAndSort=function(e){i(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)},e.prototype.getFilterInstance=function(e,t){var n=this.getFilterInstanceImpl(e,(function(e){if(t){var n=ju(e);t(n)}}));return ju(n)},e.prototype.getFilterInstanceImpl=function(e,t){var n=this.columnModel.getPrimaryColumn(e);if(n){var o=this.filterManager.getFilterComponent(n,"NO_UI"),r=o&&o.resolveNow(null,(function(e){return e}));return r?setTimeout(t,0,r):o&&o.then((function(e){t(e)})),r}},e.prototype.destroyFilter=function(e){var t=this.columnModel.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,"filterDestroyed")},e.prototype.getStatusPanel=function(e){if(this.statusBarService)return ju(this.statusBarService.getStatusPanel(e))},e.prototype.getColumnDef=function(e){var t=this.columnModel.getPrimaryColumn(e);return t?t.getColDef():null},e.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},e.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},e.prototype.onSortChanged=function(){this.sortController.onSortChanged("api")},e.prototype.setFilterModel=function(e){this.filterManager.setFilterModel(e)},e.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},e.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},e.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},e.prototype.setFocusedCell=function(e,t,n){this.focusService.setFocusedCell(e,t,n,!0)},e.prototype.setSuppressRowDrag=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_SUPPRESS_ROW_DRAG,e)},e.prototype.setSuppressMoveWhenRowDragging=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,e)},e.prototype.setSuppressRowClickSelection=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_SUPPRESS_ROW_CLICK_SELECTION,e)},e.prototype.addRowDropZone=function(e){this.gridBodyCtrl.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.gridBodyCtrl.getRowDragFeature().getRowDropZone(e)},e.prototype.setHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_HEADER_HEIGHT,e)},e.prototype.setDomLayout=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_DOM_LAYOUT,e)},e.prototype.setEnableCellTextSelection=function(e){this.gridBodyCtrl.setCellTextSelection(e)},e.prototype.setFillHandleDirection=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_FILL_HANDLE_DIRECTION,e)},e.prototype.setGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GROUP_HEADER_HEIGHT,e)},e.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_FLOATING_FILTERS_HEIGHT,e)},e.prototype.setPivotHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PIVOT_HEADER_HEIGHT,e)},e.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PIVOT_GROUP_HEADER_HEIGHT,e)},e.prototype.setIsExternalFilterPresent=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_EXTERNAL_FILTER_PRESENT,e)},e.prototype.setDoesExternalFilterPass=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_DOES_EXTERNAL_FILTER_PASS,e)},e.prototype.setNavigateToNextCell=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_NAVIGATE_TO_NEXT_CELL,e)},e.prototype.setTabToNextCell=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_TAB_TO_NEXT_CELL,e)},e.prototype.setTabToNextHeader=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_TAB_TO_NEXT_HEADER,e)},e.prototype.setNavigateToNextHeader=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_NAVIGATE_TO_NEXT_HEADER,e)},e.prototype.setGroupRowAggNodes=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GROUP_ROW_AGG_NODES,e)},e.prototype.setGetGroupRowAgg=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_GROUP_ROW_AGG,e)},e.prototype.setGetBusinessKeyForNode=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_BUSINESS_KEY_FOR_NODE,e)},e.prototype.setGetChildCount=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_CHILD_COUNT,e)},e.prototype.setProcessRowPostCreate=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PROCESS_ROW_POST_CREATE,e)},e.prototype.setGetRowNodeId=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_ROW_NODE_ID,e)},e.prototype.setGetRowId=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_ROW_ID,e)},e.prototype.setGetRowClass=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_ROW_CLASS,e)},e.prototype.setIsFullWidthCell=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_FULL_WIDTH_CELL,e)},e.prototype.setIsFullWidthRow=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_FULL_WIDTH_ROW,e)},e.prototype.setIsRowSelectable=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_ROW_SELECTABLE,e)},e.prototype.setIsRowMaster=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_ROW_MASTER,e)},e.prototype.setPostSort=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_POST_SORT,e)},e.prototype.setPostSortRows=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_POST_SORT_ROWS,e)},e.prototype.setGetDocument=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_DOCUMENT,e)},e.prototype.setGetContextMenuItems=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_CONTEXT_MENU_ITEMS,e)},e.prototype.setGetMainMenuItems=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_MAIN_MENU_ITEMS,e)},e.prototype.setProcessCellForClipboard=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PROCESS_CELL_FOR_CLIPBOARD,e)},e.prototype.setSendToClipboard=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_SEND_TO_CLIPBOARD,e)},e.prototype.setProcessCellFromClipboard=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PROCESS_CELL_FROM_CLIPBOARD,e)},e.prototype.setProcessSecondaryColDef=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PROCESS_TO_SECONDARY_COLDEF,e)},e.prototype.setProcessSecondaryColGroupDef=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PROCESS_SECONDARY_COL_GROUP_DEF,e)},e.prototype.setPostProcessPopup=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_POST_PROCESS_POPUP,e)},e.prototype.setDefaultGroupOrderComparator=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_DEFAULT_GROUP_ORDER_COMPARATOR,e)},e.prototype.setInitialGroupOrderComparator=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_INITIAL_GROUP_ORDER_COMPARATOR,e)},e.prototype.setGetChartToolbarItems=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_CHART_TOOLBAR_ITEMS,e)},e.prototype.setPaginationNumberFormatter=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PAGINATION_NUMBER_FORMATTER,e)},e.prototype.setGetServerSideStoreParams=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_SERVER_SIDE_STORE_PARAMS,e)},e.prototype.setIsServerSideGroupOpenByDefault=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT,e)},e.prototype.setIsApplyServerSideTransaction=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION,e)},e.prototype.setIsServerSideGroup=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_SERVER_SIDE_GROUP,e)},e.prototype.setGetServerSideGroupKey=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_SERVER_SIDE_GROUP_KEY,e)},e.prototype.setGetRowStyle=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_ROW_STYLE,e)},e.prototype.setGetRowHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_ROW_HEIGHT,e)},e.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},e.prototype.setSideBarVisible=function(e){this.sideBarComp?this.sideBarComp.setDisplayed(e):e&&console.warn("AG Grid: sideBar is not loaded")},e.prototype.setSideBarPosition=function(e){this.sideBarComp?this.sideBarComp.setSideBarPosition(e):console.warn("AG Grid: sideBar is not loaded")},e.prototype.openToolPanel=function(e){this.sideBarComp?this.sideBarComp.openToolPanel(e):console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},e.prototype.getSideBar=function(){return this.gridOptionsWrapper.getSideBar()},e.prototype.setSideBar=function(e){this.gridOptionsWrapper.setProperty("sideBar",sa.parse(e))},e.prototype.setSuppressClipboardPaste=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_SUPPRESS_CLIPBOARD_PASTE,e)},e.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},e.prototype.doLayout=function(){D((function(){return console.warn("AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically")}),"doLayoutDeprecated")},e.prototype.resetRowHeights=function(){if(r(this.clientSideRowModel)){if(this.columnModel.isAutoRowHeightActive())return void console.warn("AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.");this.clientSideRowModel.resetRowHeights()}},e.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GROUP_REMOVE_SINGLE_CHILDREN,e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,e)},e.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},e.prototype.getValue=function(e,t){var n=this.columnModel.getPrimaryColumn(e);return i(n)&&(n=this.columnModel.getGridColumn(e)),i(n)?null:this.valueService.getValue(n,t)},e.prototype.addEventListener=function(e,t){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(e,t,n)},e.prototype.addGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(e,t)},e.prototype.removeEventListener=function(e,t){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(e,t,n)},e.prototype.removeGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(e,t)},e.prototype.dispatchEvent=function(e){this.eventService.dispatchEvent(e)},e.prototype.destroy=function(){if(!this.destroyCalled){this.destroyCalled=!0;var e=this.ctrlsService.getGridCtrl();e&&e.destroyGridUi(),this.context.destroy()}},e.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(S.bind(window,this,"Grid API"),100)},e.prototype.warnIfDestroyed=function(e){return this.destroyCalled&&console.warn("AG Grid: Grid API method "+e+" was called on a grid that was destroyed."),this.destroyCalled},e.prototype.resetQuickFilter=function(){this.warnIfDestroyed("resetQuickFilter")||this.rowModel.forEachNode((function(e){return e.quickFilterAggregateText=null}))},e.prototype.getRangeSelections=function(){return console.warn("AG Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\n        We had to change how cell selections works a small bit to allow charting to integrate. The return type of\n        getCellRanges() is a bit different, please check the AG Grid documentation."),null},e.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),null)},e.prototype.camelCaseToHumanReadable=function(e){return qe(e)},e.prototype.addRangeSelection=function(e){console.warn("AG Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()")},e.prototype.addCellRange=function(e){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.addCellRange(e)},e.prototype.clearRangeSelection=function(){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.removeAllCellRanges()},e.prototype.undoCellEditing=function(){this.undoRedoService.undo()},e.prototype.redoCellEditing=function(){this.undoRedoService.redo()},e.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},e.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},e.prototype.getChartModels=function(){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.getChartModels")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},e.prototype.getChartRef=function(e){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.getChartRef")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.getChartRef"))return this.chartService.getChartRef(e)},e.prototype.getChartImageDataURL=function(e){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.getChartImageDataURL")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.getChartImageDataURL"))return this.chartService.getChartImageDataURL(e)},e.prototype.createRangeChart=function(e){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createRangeChart")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(e)},e.prototype.createCrossFilterChart=function(e){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createCrossFilterChart")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(e)},e.prototype.restoreChart=function(e,n){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.restoreChart")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(e,n)},e.prototype.createPivotChart=function(e){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createPivotChart")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(e)},e.prototype.copySelectedRowsToClipboard=function(e){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(e)},e.prototype.copySelectedRangeToClipboard=function(e){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(e)},e.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyRangeDown()},e.prototype.showColumnMenuAfterButtonClick=function(e,t){var n=this.columnModel.getGridColumn(e);this.menuFactory.showMenuAfterButtonClick(n,t,"columnMenu")},e.prototype.showColumnMenuAfterMouseClick=function(e,t){var n=this.columnModel.getGridColumn(e);n||(n=this.columnModel.getPrimaryColumn(e)),n?this.menuFactory.showMenuAfterMouseEvent(n,t):console.error("AG Grid: column '"+e+"' not found")},e.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},e.prototype.setPopupParent=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_POPUP_PARENT,e)},e.prototype.tabToNextCell=function(e){return this.navigationService.tabToNextCell(!1,e)},e.prototype.tabToPreviousCell=function(e){return this.navigationService.tabToNextCell(!0,e)},e.prototype.getCellRendererInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellRendererInstances(e).map(ju)},e.prototype.getCellEditorInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellEditorInstances(e).map(ju)},e.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},e.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.rowRenderer.stopEditing(e)},e.prototype.startEditingCell=function(e){var t=this.columnModel.getGridColumn(e.colKey);if(t){var n={rowIndex:e.rowIndex,rowPinned:e.rowPinned||null,column:t};null==e.rowPinned&&this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(e.rowIndex);var o=this.navigationService.getCellByPosition(n);o&&o.startRowOrCellEdit(e.key,e.charPress)}else console.warn("AG Grid: no column found for "+e.colKey)},e.prototype.addAggFunc=function(e,t){this.aggFuncService&&this.aggFuncService.addAggFunc(e,t)},e.prototype.addAggFuncs=function(e){this.aggFuncService&&this.aggFuncService.addAggFuncs(e)},e.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},e.prototype.applyServerSideTransaction=function(e){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(e);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},e.prototype.applyServerSideTransactionAsync=function(e,t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(e,t);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},e.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():console.warn("AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.")},e.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();console.warn("AG Grid: Cannot flush Server Side Transaction if not using the Server Side Row Model.")},e.prototype.applyTransaction=function(e){if(this.clientSideRowModel){var t=this.clientSideRowModel.updateRowData(e);return this.rowRenderer.refreshFullWidthRows(t.update),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),t}console.error("AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1")},e.prototype.setDeltaSort=function(e){this.gridOptionsWrapper.setProperty("deltaSort",e)},e.prototype.updateRowData=function(e){return D((function(){return console.warn("AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.")}),"updateRowData deprecated"),this.applyTransaction(e)},e.prototype.applyTransactionAsync=function(e,t){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,t):console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},e.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},e.prototype.batchUpdateRowData=function(e,t){D((function(){return console.warn("AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.")}),"batchUpdateRowData deprecated"),this.applyTransactionAsync(e,t)},e.prototype.insertItemsAtIndex=function(e,t,n){console.warn("AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:e,update:null,remove:null})},e.prototype.removeItems=function(e,t){console.warn("AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var n=e.map((function(e){return e.data}));this.updateRowData({add:null,addIndex:null,update:null,remove:n})},e.prototype.addItems=function(e,t){console.warn("AG Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:null,update:null,remove:null})},e.prototype.refreshVirtualPageCache=function(){console.warn("AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfinitePageCache=function(){console.warn("AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeVirtualPageCache=function(){console.warn("AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},e.prototype.purgeInfinitePageCache=function(){console.warn("AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},e.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeEnterpriseCache=function(e){console.warn("ag-grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.purgeServerSideCache()"),this.purgeServerSideCache(e)},e.prototype.purgeServerSideCache=function(e){void 0===e&&(e=[]),this.serverSideRowModel?(console.warn("AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSideStore({purge: true}) instead."),this.refreshServerSideStore({route:e,purge:!0})):console.warn("AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.")},e.prototype.refreshServerSideStore=function(e){this.serverSideRowModel?this.serverSideRowModel.refreshStore(e):console.warn("AG Grid: api.refreshServerSideStore is only available when rowModelType='serverSide'.")},e.prototype.getServerSideStoreState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(console.warn("AG Grid: api.getServerSideStoreState is only available when rowModelType='serverSide'."),[])},e.prototype.getVirtualRowCount=function(){return console.warn("AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},e.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();console.warn("AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.isMaxRowFound=function(){return console.warn("AG Grid: api.isLastRowIndexKnown is deprecated, please use api.isLastRowIndexKnown()"),this.isLastRowIndexKnown()},e.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();console.warn("AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},e.prototype.setVirtualRowCount=function(e,t){console.warn("AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setRowCount(e,t)},e.prototype.setInfiniteRowCount=function(e,t){console.warn("AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead"),this.setRowCount(e,t)},e.prototype.setRowCount=function(e,t){this.infiniteRowModel?this.infiniteRowModel.setRowCount(e,t):console.warn("AG Grid: api.setRowCount is only available for Infinite Row Model.")},e.prototype.getVirtualPageState=function(){return console.warn("AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getInfinitePageState=function(){return console.warn("AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},e.prototype.checkGridSize=function(){console.warn("in AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything uesful.")},e.prototype.getFirstRenderedRow=function(){return console.warn("in AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},e.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},e.prototype.getLastRenderedRow=function(){return console.warn("in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},e.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},e.prototype.getDisplayedRowAtIndex=function(e){return this.rowModel.getRow(e)},e.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},e.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},e.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},e.prototype.paginationSetPageSize=function(e){this.gridOptionsWrapper.setProperty("paginationPageSize",e)},e.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},e.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},e.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},e.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},e.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},e.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},e.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},e.prototype.paginationGoToPage=function(e){this.paginationProxy.goToPage(e)},e.prototype.setRowClass=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_ROW_CLASS,e)},Wu([q("immutableService")],e.prototype,"immutableService",void 0),Wu([q("csvCreator")],e.prototype,"csvCreator",void 0),Wu([q("excelCreator")],e.prototype,"excelCreator",void 0),Wu([K("rowRenderer")],e.prototype,"rowRenderer",void 0),Wu([K("navigationService")],e.prototype,"navigationService",void 0),Wu([K("filterManager")],e.prototype,"filterManager",void 0),Wu([K("columnModel")],e.prototype,"columnModel",void 0),Wu([K("selectionService")],e.prototype,"selectionService",void 0),Wu([K("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Wu([K("valueService")],e.prototype,"valueService",void 0),Wu([K("alignedGridsService")],e.prototype,"alignedGridsService",void 0),Wu([K("eventService")],e.prototype,"eventService",void 0),Wu([K("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Wu([K("context")],e.prototype,"context",void 0),Wu([K("rowModel")],e.prototype,"rowModel",void 0),Wu([K("sortController")],e.prototype,"sortController",void 0),Wu([K("paginationProxy")],e.prototype,"paginationProxy",void 0),Wu([K("focusService")],e.prototype,"focusService",void 0),Wu([K("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Wu([q("rangeService")],e.prototype,"rangeService",void 0),Wu([q("clipboardService")],e.prototype,"clipboardService",void 0),Wu([q("aggFuncService")],e.prototype,"aggFuncService",void 0),Wu([K("menuFactory")],e.prototype,"menuFactory",void 0),Wu([q("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),Wu([K("valueCache")],e.prototype,"valueCache",void 0),Wu([K("animationFrameService")],e.prototype,"animationFrameService",void 0),Wu([q("statusBarService")],e.prototype,"statusBarService",void 0),Wu([q("chartService")],e.prototype,"chartService",void 0),Wu([q("undoRedoService")],e.prototype,"undoRedoService",void 0),Wu([q("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),Wu([q("ssrmTransactionManager")],e.prototype,"serverSideTransactionManager",void 0),Wu([K("ctrlsService")],e.prototype,"ctrlsService",void 0),Wu([q("frameworkComponentWrapper")],e.prototype,"frameworkComponentWrapper",void 0),Wu([z],e.prototype,"init",null),Wu([Z],e.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),e=Wu([Y("gridApi")],e)}(),Zu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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},Ku=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}return Zu(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?ue(this.colsSpanning):this.columnOrGroup},t.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,ae.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,this.onLeftChanged.bind(this))},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),t=r(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup(),n=t.getLeft(),o=t.getOldLeft(),r=this.modifyLeftForPrintLayout(t,o),i=this.modifyLeftForPrintLayout(t,n);this.setLeft(r),this.actualLeft=i,this.beans.columnAnimationService.executeNextVMTurn((function(){e.actualLeft===i&&e.setLeft(i)}))},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,t){if(!(this.beans.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT))return t;if(e.getPinned()===oe.PINNED_LEFT)return t;var n=this.beans.columnModel.getDisplayedColumnsLeftWidth();return e.getPinned()===oe.PINNED_RIGHT?n+this.beans.columnModel.getBodyContainerWidth()+t:n+t},t.prototype.setLeft=function(e){var t;if(r(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof ae)t=this.columnOrGroup;else{var n=this.columnOrGroup.getLeafColumns();if(!n.length)return;n.length>1&&io(this.ariaEl,n.length),t=n[0]}var o=this.beans.columnModel.getAriaColumnIndex(t);ro(this.ariaEl,o)},Yu([z],t.prototype,"postConstruct",null),t}(Fe),qu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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},Qu=function(e){function t(t,n){var o=e.call(this)||this;return o.columns=t,o.element=n,o}return qu(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.isColumnHoverHighlight()&&this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},Xu([K("columnHoverService")],t.prototype,"columnHoverService",void 0),Xu([z],t.prototype,"postConstruct",null),t}(Fe),Ju=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),$u=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},ec=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.column=t,o}return Ju(t,e),t.prototype.setComp=function(t,n,o,r){e.prototype.setGui.call(this,n),this.comp=t,this.eButtonShowMainFilter=o,this.eFloatingFilterBody=r;var i=this.column.getColDef(),s=!!i.filter||!!i.filterFramework,a=!!i.floatingFilter;this.active=s&&a,this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},t.prototype.setupUi=function(){if(this.comp.addOrRemoveButtonWrapperCssClass("ag-hidden",!this.active||this.suppressFilterButton),this.active){this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton);var e=Ao("filter",this.gridOptionsWrapper,this.column);e&&this.eButtonShowMainFilter.appendChild(e)}},t.prototype.setupFocus=function(){this.createManagedBean(new mr(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.onTabKeyDown=function(e){if(!(this.gridOptionsWrapper.getDocument().activeElement===this.eGui)){var t=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(t)return this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),void t.focus();var n=this.findNextColumnWithFloatingFilter(e.shiftKey);n&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:n},event:e})&&e.preventDefault()}},t.prototype.findNextColumnWithFloatingFilter=function(e){var t=this.beans.columnModel,n=this.column;do{if(!(n=e?t.getDisplayedColBefore(n):t.getDisplayedColAfter(n)))break}while(!n.getColDef().filter||!n.getColDef().floatingFilter);return n},t.prototype.handleKeyDown=function(e){var t=this.gridOptionsWrapper.getDocument().activeElement===this.eGui;switch(e.key){case dr.UP:case dr.DOWN:t||e.preventDefault();case dr.LEFT:case dr.RIGHT:if(t)return;e.stopPropagation();case dr.ENTER:t&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case dr.ESCAPE:t||this.eGui.focus()}},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var t=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),n=!!e.relatedTarget&&nn(e.relatedTarget,"ag-floating-filter");if(t&&n&&e.target===this.eGui){var o=this.lastFocusEvent,r=!(!o||o.key!==dr.TAB);if(o&&r){var i=o.shiftKey;this.focusService.focusInto(this.eGui,i)}}var s=this.getRowIndex();this.beans.focusService.setFocusedHeader(s,this.column)}},t.prototype.setupHover=function(){var e=this;this.createManagedBean(new Qu([this.column],this.eGui));var t=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var t=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",t)}};this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_HOVER_CHANGED,t),t()},t.prototype.setupLeft=function(){var e=new Ku(this.column,this.eGui,this.beans);this.createManagedBean(e)},t.prototype.setupUserComp=function(){var e=this;if(this.active){var t=this.column.getColDef(),n=this.filterManager.createFilterParams(this.column,t),o=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(t,Fs,n),r=this.userComponentFactory.getDefaultFloatingFilterType(t);null==r&&(r="agReadOnlyFloatingFilter");var i={column:this.column,filterParams:o,currentParentModel:function(){return e.currentParentModel()},parentFilterInstance:function(t){return e.parentFilterInstance(t)},showParentFilter:function(){return e.showParentFilter()},suppressFilterButton:!1};this.suppressFilterButton=!!t.floatingFilterComponentParams&&!!t.floatingFilterComponentParams.suppressFilterButton;var s=this.userComponentFactory.getFloatingFilterCompDetails(t,i,r);s&&this.comp.setCompDetails(s)}},t.prototype.currentParentModel=function(){var e=this.getFilterComponent(!1);return e?e.resolveNow(null,(function(e){return e&&e.getModel()})):null},t.prototype.getFilterComponent=function(e){return void 0===e&&(e=!0),this.filterManager.getFilterComponent(this.column,"NO_UI",e)},t.prototype.parentFilterInstance=function(e){var t=this.getFilterComponent();null!=t&&t.then((function(t){e(ju(t))}))},t.prototype.showParentFilter=function(){var e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,e,"floatingFilter","filterMenuTab",["filterMenuTab"])},t.prototype.setupSyncWithFilter=function(){var e=this;if(this.active){var t=function(t){var n=e.comp.getFloatingFilterComp();if(n){var o=e.currentParentModel();n.then((function(e){e&&e.onParentModelChanged(o,t)}))}};this.addManagedListener(this.column,ae.EVENT_FILTER_CHANGED,t),this.filterManager.isFilterActive(this.column)&&t(null)}},t.prototype.setupWidth=function(){var e=this,t=function(){var t=e.column.getActualWidth()+"px";e.comp.setWidth(t)};this.addManagedListener(this.column,ae.EVENT_WIDTH_CHANGED,t),t()},$u([K("userComponentFactory")],t.prototype,"userComponentFactory",void 0),$u([K("filterManager")],t.prototype,"filterManager",void 0),$u([K("columnHoverService")],t.prototype,"columnHoverService",void 0),$u([K("gridApi")],t.prototype,"gridApi",void 0),$u([K("menuFactory")],t.prototype,"menuFactory",void 0),$u([K("beans")],t.prototype,"beans",void 0),t}(Vu),tc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),nc=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},oc=function(e){function t(t,n,o,r,i){var s=e.call(this)||this;return s.pinned=t,s.column=n,s.eResize=o,s.comp=r,s.ctrl=i,s}return tc(t,e),t.prototype.postConstruct=function(){var e,t,n=this,o=this.column.getColDef(),r=[],i=function(){r.forEach((function(e){return e()})),r.length=0},s=function(){var s=n.column.isResizable(),a=!n.gridOptionsWrapper.isSuppressAutoSize()&&!o.suppressAutoSize;(s!==e||a!==t)&&(e=s,t=a,i(),function(){if($t(n.eResize,e),e){var o=n.horizontalResizeService.addResizeBar({eResizeBar:n.eResize,onResizeStart:n.onResizeStart.bind(n),onResizing:n.onResizing.bind(n,!1),onResizeEnd:n.onResizing.bind(n,!0)});if(r.push(o),t){var i=n.gridOptionsWrapper.isSkipHeaderOnAutoSize(),s=function(){n.columnModel.autoSizeColumn(n.column,i,"uiColumnResized")};n.eResize.addEventListener("dblclick",s);var a=new mi(n.eResize);a.addEventListener(mi.EVENT_DOUBLE_TAP,s),n.addDestroyFunc((function(){n.eResize.removeEventListener("dblclick",s),a.removeEventListener(mi.EVENT_DOUBLE_TAP,s),a.destroy()}))}}}())};s(),this.addDestroyFunc(i),this.ctrl.addRefreshFunction(s)},t.prototype.onResizing=function(e,t){var n=this.normaliseResizeAmount(t),o=[{key:this.column,newWidth:this.resizeStartWidth+n}];this.columnModel.setColumnWidths(o,this.resizeWithShiftKey,e,"uiColumnDragged"),e&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.normaliseResizeAmount=function(e){var t=e,n=this.pinned!==oe.PINNED_LEFT,o=this.pinned===oe.PINNED_RIGHT;return this.gridOptionsWrapper.isEnableRtl()?n&&(t*=-1):o&&(t*=-1),t},nc([K("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),nc([K("columnModel")],t.prototype,"columnModel",void 0),nc([z],t.prototype,"postConstruct",null),t}(Fe),rc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),ic=function(e){function t(t,n,o){void 0===n&&(n="ag-checkbox"),void 0===o&&(o="checkbox");var r=e.call(this,t,n,o)||this;return r.labelAlignment="right",r.selected=!1,r.readOnly=!1,r.passive=!1,r}return rc(t,e),t.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(t){return this.eWrapper.classList.toggle("ag-disabled",t),e.prototype.setDisabled.call(this,t)},t.prototype.toggle=function(){if(!this.eInput.disabled){var e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this},t.prototype.setName=function(e){return this.getInputElement().name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,t){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected="boolean"===typeof e?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=void 0===e,t||this.dispatchChange(this.selected,this.previousValue))},t.prototype.dispatchChange=function(e,n,o){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e,previousValue:n,event:o});var r=this.getInputElement(),i={type:Ve.EVENT_CHECKBOX_CHANGED,id:r.id,name:r.name,selected:e,previousValue:n};this.eventService.dispatchEvent(i)},t.prototype.onCheckboxClick=function(e){if(!this.passive&&!this.eInput.disabled){var t=this.isSelected(),n=this.selected=e.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,t,e)}},t.prototype.refreshSelectedClass=function(e){this.eWrapper.classList.toggle("ag-checked",!0===e),this.eWrapper.classList.toggle("ag-indeterminate",null==e)},t}(Fr),sc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),ac=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},lc=function(e){function t(t){var n=e.call(this)||this;n.cbSelectAllVisible=!1,n.processingEventFromCheckbox=!1,n.column=t;var o=t.getColDef();return n.filteredOnly=!!o&&!!o.headerCheckboxSelectionFilteredOnly,n}return sc(t,e),t.prototype.onSpaceKeyPressed=function(e){var t=this.cbSelectAll,n=this.gridOptionsWrapper.getDocument();t.isDisplayed()&&!t.getGui().contains(n.activeElement)&&(e.preventDefault(),t.setValue(!t.getValue()))},t.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},t.prototype.setComp=function(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new ic),this.cbSelectAll.addCssClass("ag-header-select-all"),Bn(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,ic.EVENT_CHANGED,this.onCbSelectAll.bind(this)),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.getNextCheckboxState=function(e){return(0!==e.selected||0!==e.notSelected)&&(e.selected>0&&e.notSelected>0?null:e.selected>0)},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.getSelectionCount(),t=this.getNextCheckboxState(e);this.cbSelectAll.setValue(t),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},t.prototype.refreshSelectAllLabel=function(){if(this.cbSelectAllVisible){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.cbSelectAll.getValue()?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),n=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.headerCellCtrl.setAriaDescriptionProperty("selectAll",n+" ("+t+")")}else this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null);this.headerCellCtrl.refreshAriaDescription()},t.prototype.getSelectionCount=function(){var e=this,t=0,n=0,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===oe.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("AG Grid: selectAllCheckbox is only available if using normal row model, you are using "+e)},t.prototype.onCbSelectAll=function(){this.processingEventFromCheckbox||this.cbSelectAllVisible&&(this.cbSelectAll.getValue()?this.selectionService.selectAllRowNodes(this.filteredOnly):this.selectionService.deselectAllRowNodes(this.filteredOnly))},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;"function"===typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi,context:this.gridOptionsWrapper.getContext()}));return!!e&&(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Server Side Row Model"),!1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Infinite Row Model"),!1):!this.gridOptionsWrapper.isRowModelViewport()||(console.warn("AG Grid: headerCheckboxSelection is not supported for Viewport Row Model"),!1))},ac([K("gridApi")],t.prototype,"gridApi",void 0),ac([K("columnApi")],t.prototype,"columnApi",void 0),ac([K("rowModel")],t.prototype,"rowModel",void 0),ac([K("selectionService")],t.prototype,"selectionService",void 0),t}(Fe),uc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),cc=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},pc=function(e){function n(t,n){var o=e.call(this,t,n)||this;return o.refreshFunctions=[],o.userHeaderClasses=new Set,o.ariaDescriptionProperties=new Map,o.column=t,o}return uc(n,e),n.prototype.setComp=function(t,n,o){var r=this;e.prototype.setGui.call(this,n),this.comp=t,this.colDefVersion=this.columnModel.getColDefVersion(),this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.addColumnHoverListener(),this.setupFilterCss(),this.setupColId(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.createManagedBean(new oc(this.getPinned(),this.column,o,t,this)),this.createManagedBean(new Qu([this.column],n)),this.createManagedBean(new Ku(this.column,n,this.beans)),this.createManagedBean(new mr(n,{shouldStopEventPropagation:function(e){return r.shouldStopEventPropagation(e)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this))},n.prototype.setupUserComp=function(){var e=this.lookupUserCompDetails();this.setCompDetails(e)},n.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)},n.prototype.lookupUserCompDetails=function(){var e=this.createParams(),t=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(t,e)},n.prototype.createParams=function(){var e=this,t=this.column.getColDef();return{column:this.column,displayName:this.displayName,enableSorting:t.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(t){e.gridApi.showColumnMenuAfterButtonClick(e.column,t)},progressSort:function(t){e.sortController.progressSort(e.column,!!t,"uiColumnSorted")},setSort:function(t,n){e.sortController.setSortForColumn(e.column,t,!!n,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext(),eGridHeader:this.getGui()}},n.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new lc(this.column)),this.selectAllFeature.setComp(this)},n.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},n.prototype.handleKeyDown=function(e){e.key===dr.SPACE&&this.selectAllFeature.onSpaceKeyPressed(e),e.key===dr.ENTER&&this.onEnterKeyPressed(e)},n.prototype.onEnterKeyPressed=function(e){var t=this.comp.getUserCompInstance();if(t)if(e.ctrlKey||e.metaKey)this.menuEnabled&&t.showMenu&&(e.preventDefault(),t.showMenu());else if(this.sortable){var n=e.shiftKey;this.sortController.progressSort(this.column,n,"uiColumnSorted")}},n.prototype.isMenuEnabled=function(){return this.menuEnabled},n.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var t=this.getRowIndex();this.focusService.setFocusedHeader(t,this.column)}this.setActiveHeader(!0)},n.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},n.prototype.setupTooltip=function(){var e=this,t={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getGui:function(){return e.eGui},getLocation:function(){return"header"},getTooltipValue:function(){return e.column.getColDef().headerTooltip}},n=this.createManagedBean(new Ya(t,this.beans));n.setComp(this.comp),this.refreshFunctions.push((function(){return n.refreshToolTip()}))},n.prototype.setupClassesFromColDef=function(){var e=this,t=function(){var t=e.column.getColDef(),n=e.gridOptionsWrapper,o=Tu.getHeaderClassesFromColDef(t,n,e.column,null),r=e.userHeaderClasses;e.userHeaderClasses=new Set(o),o.forEach((function(t){r.has(t)?r.delete(t):e.comp.addOrRemoveCssClass(t,!0)})),r.forEach((function(t){return e.comp.addOrRemoveCssClass(t,!1)}))};this.refreshFunctions.push(t),t()},n.prototype.setDragSource=function(e){var n=this;this.dragSourceElement=e,this.removeDragSource(),e&&this.draggable&&(this.moveDragSource={type:t.DragSourceType.HeaderCell,eElement:e,defaultIconName:ts.ICON_HIDE,getDragItem:function(){return n.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return n.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return n.column.setMoving(!1,"uiColumnMoved")}},this.dragAndDropService.addDragSource(this.moveDragSource,!0))},n.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},n.prototype.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},n.prototype.onNewColumnsLoaded=function(){var e=this.columnModel.getColDefVersion();e!=this.colDefVersion&&(this.colDefVersion=e,this.refresh())},n.prototype.updateState=function(){var e=this.column.getColDef();this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu,this.sortable=e.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},n.prototype.addRefreshFunction=function(e){this.refreshFunctions.push(e)},n.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach((function(e){return e()}))},n.prototype.refreshHeaderComp=function(){var e=this.lookupUserCompDetails();!!(null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==e.componentClass)&&this.attemptHeaderCompRefresh(e.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)},n.prototype.attemptHeaderCompRefresh=function(e){var t=this.comp.getUserCompInstance();return!!t&&(!!t.refresh&&t.refresh(e))},n.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},n.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},n.prototype.workOutDraggable=function(){var e=this.column.getColDef();return!!(!this.gridOptionsWrapper.isSuppressMovableColumns()&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot},n.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},n.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},n.prototype.onColumnValueChanged=function(){this.checkDisplayName()},n.prototype.setupWidth=function(){var e=this,t=function(){e.comp.setWidth(e.column.getActualWidth()+"px")};this.addManagedListener(this.column,ae.EVENT_WIDTH_CHANGED,t),t()},n.prototype.setupMovingCss=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};this.addManagedListener(this.column,ae.EVENT_MOVING_CHANGED,t),t()},n.prototype.setupMenuClass=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-column-menu-visible",e.column.isMenuVisible())};this.addManagedListener(this.column,ae.EVENT_MENU_VISIBLE_CHANGED,t),t()},n.prototype.setupSortableClass=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!e.sortable)};t(),this.addRefreshFunction(t),this.addManagedListener(this.column,ae.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},n.prototype.refreshAriaSort=function(){if(this.sortable){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.comp.setAriaSort(Vn(this.column)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort."))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},n.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press CTRL ENTER to open column menu."))}else this.setAriaDescriptionProperty("menu",null)},n.prototype.setAriaDescriptionProperty=function(e,t){null!=t?this.ariaDescriptionProperties.set(e,t):this.ariaDescriptionProperties.delete(e)},n.prototype.refreshAriaDescription=function(){var e=Array.from(this.ariaDescriptionProperties.values());this.comp.setAriaDescription(e.length?e.join(" "):void 0)},n.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaDescription()},n.prototype.addColumnHoverListener=function(){var e=this,t=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var t=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",t)}};this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_HOVER_CHANGED,t),t()},n.prototype.setupFilterCss=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-filtered",e.column.isFilterActive())};this.addManagedListener(this.column,ae.EVENT_FILTER_ACTIVE_CHANGED,t),t()},n.prototype.setupColId=function(){this.comp.setColId(this.column.getColId())},n.prototype.addActiveHeaderMouseListeners=function(){var e=this,t=function(t){return e.setActiveHeader("mouseenter"===t.type)};this.addManagedListener(this.getGui(),"mouseenter",t),this.addManagedListener(this.getGui(),"mouseleave",t)},n.prototype.setActiveHeader=function(e){this.comp.addOrRemoveCssClass("ag-header-active",e)},cc([K("columnModel")],n.prototype,"columnModel",void 0),cc([K("columnHoverService")],n.prototype,"columnHoverService",void 0),cc([K("beans")],n.prototype,"beans",void 0),cc([K("sortController")],n.prototype,"sortController",void 0),cc([K("menuFactory")],n.prototype,"menuFactory",void 0),cc([K("dragAndDropService")],n.prototype,"dragAndDropService",void 0),cc([K("gridApi")],n.prototype,"gridApi",void 0),cc([K("columnApi")],n.prototype,"columnApi",void 0),cc([K("userComponentFactory")],n.prototype,"userComponentFactory",void 0),cc([Z],n.prototype,"removeDragSource",null),n}(Vu),dc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),hc=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},fc=function(e){function t(t,n,o,r){var i=e.call(this)||this;return i.eResize=n,i.comp=t,i.pinned=o,i.columnGroup=r,i}return dc(t,e),t.prototype.postConstruct=function(){var e=this;if(this.columnGroup.isResizable()){var t=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(t),!this.gridOptionsWrapper.isSuppressAutoSize()){var n=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eResize.addEventListener("dblclick",(function(){var t=[];e.columnGroup.getDisplayedLeafColumns().forEach((function(e){e.getColDef().suppressAutoSize||t.push(e.getColId())})),t.length>0&&e.columnModel.autoSizeColumns({columns:t,skipHeader:n,stopAtGroup:e.columnGroup,source:"uiColumnResized"}),e.resizeLeafColumnsToFit()}))}}else this.comp.addOrRemoveResizableCssClass("ag-hidden",!0)},t.prototype.onResizeStart=function(e){var t=this;this.calculateInitialValues();var n=null;if(e&&(n=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),n){var o=n.getDisplayedLeafColumns();this.resizeTakeFromCols=o.filter((function(e){return e.isResizable()})),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromStartWidth+=e.getActualWidth()})),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromRatios.push(e.getActualWidth()/t.resizeTakeFromStartWidth)}))}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.onResizing=function(e,t){var n=this.normaliseDragChange(t),o=this.resizeStartWidth+n;this.resizeColumns(o,e)},t.prototype.resizeLeafColumnsToFit=function(){var e=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);this.calculateInitialValues(),e>this.resizeStartWidth&&this.resizeColumns(e,!0)},t.prototype.resizeColumns=function(e,t){void 0===t&&(t=!0);var n=[];if(n.push({columns:this.resizeCols,ratios:this.resizeRatios,width:e}),this.resizeTakeFromCols){var o=e-this.resizeStartWidth;n.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-o})}this.columnModel.resizeColumnSets({resizeSets:n,finished:t,source:"uiColumnDragged"}),t&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.calculateInitialValues=function(){var e=this,t=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=t.filter((function(e){return e.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(t){return e.resizeStartWidth+=t.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(t){return e.resizeRatios.push(t.getActualWidth()/e.resizeStartWidth)}))},t.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==oe.PINNED_LEFT&&(t*=-1):this.pinned===oe.PINNED_RIGHT&&(t*=-1),t},hc([K("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),hc([K("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),hc([K("columnModel")],t.prototype,"columnModel",void 0),hc([z],t.prototype,"postConstruct",null),t}(Fe),gc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),mc=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},vc=function(e){function t(t,n){var o=e.call(this)||this;return o.removeChildListenersFuncs=[],o.columnGroup=n,o.comp=t,o}return gc(t,e),t.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,we.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(n){n.addEventListener(ae.EVENT_WIDTH_CHANGED,t),n.addEventListener(ae.EVENT_VISIBLE_CHANGED,t),e.removeChildListenersFuncs.push((function(){n.removeEventListener(ae.EVENT_WIDTH_CHANGED,t),n.removeEventListener(ae.EVENT_VISIBLE_CHANGED,t)}))}))},t.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach((function(e){return e()})),this.removeChildListenersFuncs=[]},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.onWidthChanged=function(){this.comp.setWidth(this.columnGroup.getActualWidth()+"px")},mc([z],t.prototype,"postConstruct",null),t}(Fe),yc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Cc=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},wc=function(e){function n(t,n){var o=e.call(this,t,n)||this;return o.columnGroup=t,o}return yc(n,e),n.prototype.setComp=function(t,n,o){e.prototype.setGui.call(this,n),this.comp=t,this.displayName=this.columnModel.getDisplayNameForColumnGroup(this.columnGroup,"header"),this.addClasses(),this.addAttributes(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var r=this.getParentRowCtrl().getPinned(),i=this.columnGroup.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new Qu(i,n)),this.createManagedBean(new Ku(this.columnGroup,n,this.beans)),this.createManagedBean(new vc(t,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new fc(t,o,r,this.columnGroup)),this.createManagedBean(new mr(n,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},n.prototype.resizeLeafColumnsToFit=function(){this.groupResizeFeature.onResizeStart(!1),this.groupResizeFeature.resizeLeafColumnsToFit()},n.prototype.setupUserComp=function(){var e=this,t=this.displayName,n={displayName:this.displayName,columnGroup:this.columnGroup,setExpanded:function(t){e.columnModel.setColumnGroupOpened(e.columnGroup.getProvidedColumnGroup(),t,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!t){for(var o=this.columnGroup,r=o.getLeafColumns();o.getParent()&&o.getParent().getLeafColumns().length===r.length;)o=o.getParent();var i=o.getColGroupDef();i&&(t=i.headerName),t||(t=r?this.columnModel.getDisplayNameForColumn(r[0],"header",!0):"")}var s=this.userComponentFactory.getHeaderGroupCompDetails(n);this.comp.setUserCompDetails(s)},n.prototype.setupTooltip=function(){var e=this,t=this.columnGroup.getColGroupDef(),n={getColumn:function(){return e.columnGroup},getGui:function(){return e.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return t&&t.headerTooltip}};t&&(n.getColDef=function(){return t}),this.createManagedBean(new Ya(n,this.beans)).setComp(this.comp)},n.prototype.setupExpandable=function(){var e=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(e,_e.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,_e.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},n.prototype.refreshExpanded=function(){var e=this.columnGroup;this.expandable=e.isExpandable();var t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0)},n.prototype.addAttributes=function(){this.comp.setColId(this.columnGroup.getUniqueId())},n.prototype.addClasses=function(){var e=this,t=this.columnGroup.getColGroupDef(),n=Tu.getHeaderClassesFromColDef(t,this.gridOptionsWrapper,null,this.columnGroup);n.push(this.columnGroup.isPadding()?"ag-header-group-cell-no-group":"ag-header-group-cell-with-group"),n.forEach((function(t){return e.comp.addOrRemoveCssClass(t,!0)}))},n.prototype.setupMovingCss=function(){var e=this,t=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),n=function(){return e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.columnGroup.isMoving())};t.forEach((function(t){e.addManagedListener(t,ae.EVENT_MOVING_CHANGED,n)})),n()},n.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var t=this.getRowIndex();this.beans.focusService.setFocusedHeader(t,this.columnGroup)}},n.prototype.handleKeyDown=function(e){var t=this.gridOptionsWrapper.getDocument().activeElement===this.eGui;if(this.expandable&&t&&e.key===dr.ENTER){var n=this.columnGroup,o=!n.isExpanded();this.columnModel.setColumnGroupOpened(n.getProvidedColumnGroup(),o,"uiColumnExpanded")}},n.prototype.setDragSource=function(e){var n=this;if(!this.isSuppressMoving()){var o=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),r={type:t.DragSourceType.HeaderCell,eElement:e,defaultIconName:ts.ICON_HIDE,dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return o.forEach((function(e){return e.setMoving(!0,"uiColumnDragged")}))},onDragStopped:function(){return o.forEach((function(e){return e.setMoving(!1,"uiColumnDragged")}))}};this.dragAndDropService.addDragSource(r,!0),this.addDestroyFunc((function(){return n.dragAndDropService.removeDragSource(r)}))}},n.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),t={};e.forEach((function(e){return t[e.getId()]=e.isVisible()}));var n=[];return this.columnModel.getAllDisplayedColumns().forEach((function(t){e.indexOf(t)>=0&&(n.push(t),de(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()},Cc([K("beans")],n.prototype,"beans",void 0),Cc([K("columnModel")],n.prototype,"columnModel",void 0),Cc([K("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Cc([K("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Cc([K("gridApi")],n.prototype,"gridApi",void 0),Cc([K("columnApi")],n.prototype,"columnApi",void 0),n}(Vu),_c=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),bc=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},Ec=0,Sc=function(e){function n(t,n,o){var r=e.call(this)||this;return r.instanceId=Ec++,r.headerCellCtrls={},r.rowIndex=t,r.pinned=n,r.type=o,r}return _c(n,e),n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.setComp=function(e){this.comp=e,this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addEventListeners(),Ht()&&this.comp.setTransform("translateZ(0)"),e.setAriaRowIndex(this.rowIndex+1)},n.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this))},n.prototype.getHeaderCellCtrl=function(e){return p(this.headerCellCtrls).find((function(t){return t.getColumnGroupChild()===e}))},n.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth()},n.prototype.getType=function(){return this.type},n.prototype.onColumnResized=function(){this.setWidth()},n.prototype.setWidth=function(){var e=this.getWidthForRow();this.comp.setWidth(e+"px")},n.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT?null!=this.pinned?0:this.columnModel.getContainerWidth(oe.PINNED_RIGHT)+this.columnModel.getContainerWidth(oe.PINNED_LEFT)+this.columnModel.getContainerWidth(null):this.columnModel.getContainerWidth(this.pinned)},n.prototype.onRowHeightChanged=function(){var e,t,n=this.columnModel.getHeaderRowCount(),o=[],r=0;this.columnModel.hasFloatingFilters()&&(n++,r=1),this.columnModel.isPivotMode()?(e=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),t=this.gridOptionsWrapper.getPivotHeaderHeight()):(e=this.gridOptionsWrapper.getGroupHeaderHeight(),t=this.gridOptionsWrapper.getHeaderHeight());for(var i=n-(1+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.rowIndex;s++)a+=o[s];this.comp.setTop(a+"px"),this.comp.setHeight(o[this.rowIndex]+"px")},n.prototype.getPinned=function(){return this.pinned},n.prototype.getRowIndex=function(){return this.rowIndex},n.prototype.onVirtualColumnsChanged=function(){var e=this,n=this.headerCellCtrls;this.headerCellCtrls={},this.getColumnsInViewport().forEach((function(o){if(!o.isEmptyGroup()){var r=o.getUniqueId(),i=n[r];if(delete n[r],i&&i.getColumnGroupChild()!=o&&(e.destroyBean(i),i=void 0),null==i)switch(e.type){case t.HeaderRowType.FLOATING_FILTER:i=e.createBean(new ec(o,e));break;case t.HeaderRowType.COLUMN_GROUP:i=e.createBean(new wc(o,e));break;default:i=e.createBean(new pc(o,e))}e.headerCellCtrls[r]=i}}));f(n,(function(t,n){var o;(o=n,!!e.focusService.isHeaderWrapperFocused(o)&&e.columnModel.isDisplayed(o.getColumnGroupChild()))?e.headerCellCtrls[t]=n:e.destroyBean(n)}));var o=_(this.headerCellCtrls);this.comp.setHeaderCtrls(o)},n.prototype.destroyCtrls=function(){var e=this;f(this.headerCellCtrls,(function(t,n){e.destroyBean(n)})),this.headerCellCtrls={}},n.prototype.getColumnsInViewport=function(){return this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()},n.prototype.getColumnsInViewportPrintLayout=function(){var e=this;if(null!=this.pinned)return[];var t=[],n=this.getActualDepth();return[oe.PINNED_LEFT,null,oe.PINNED_RIGHT].forEach((function(o){var r=e.columnModel.getVirtualHeaderGroupRow(o,n);t=t.concat(r)})),t},n.prototype.getActualDepth=function(){return this.type==t.HeaderRowType.FLOATING_FILTER?this.rowIndex-1:this.rowIndex},n.prototype.getColumnsInViewportNormalLayout=function(){return this.columnModel.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())},n.prototype.focusHeader=function(e,t){var n=_(this.headerCellCtrls).find((function(t){return t.getColumnGroupChild()==e}));return!!n&&(n.focus(t),!0)},bc([K("columnModel")],n.prototype,"columnModel",void 0),bc([K("focusService")],n.prototype,"focusService",void 0),bc([Z],n.prototype,"destroyCtrls",null),n}(Fe),Rc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Oc=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},Tc=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Pc=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Tc(arguments[t]));return e},Ac=function(e){function n(t){var n=e.call(this)||this;return n.groupsRowCtrls=[],n.pinned=t,n}return Rc(n,e),n.prototype.setComp=function(e,t){this.comp=e,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(t),this.addManagedListener(this.eventService,Ve.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},n.prototype.setupDragAndDrop=function(e){var t=new Su(this.pinned,e);this.createManagedBean(t)},n.prototype.refresh=function(e){var n=this;void 0===e&&(e=!1);var o=new jo,r=this.focusService.getFocusHeaderToUseAfterRefresh();!function(){var e=n.columnModel.getHeaderRowCount()-1;n.groupsRowCtrls=n.destroyBeans(n.groupsRowCtrls);for(var r=0;r<e;r++){var i=n.createBean(new Sc(o.next(),n.pinned,t.HeaderRowType.COLUMN_GROUP));n.groupsRowCtrls.push(i)}}(),function(){var r=o.next();(null==n.columnsRowCtrl||!e||n.columnsRowCtrl.getRowIndex()!==r)&&(n.destroyBean(n.columnsRowCtrl),n.columnsRowCtrl=n.createBean(new Sc(r,n.pinned,t.HeaderRowType.COLUMN)))}(),function(){var r=function(){n.filtersRowCtrl=n.destroyBean(n.filtersRowCtrl)};if(n.columnModel.hasFloatingFilters()){var i=o.next();if(n.filtersRowCtrl){var s=n.filtersRowCtrl.getRowIndex()!==i;e&&!s||r()}n.filtersRowCtrl||(n.filtersRowCtrl=n.createBean(new Sc(i,n.pinned,t.HeaderRowType.FLOATING_FILTER)))}else r()}();var i=this.getAllCtrls();this.comp.setCtrls(i),this.restoreFocusOnHeader(r)},n.prototype.restoreFocusOnHeader=function(e){null!=e&&e.column.getPinned()==this.pinned&&this.focusService.focusHeaderPosition({headerPosition:e})},n.prototype.getAllCtrls=function(){var e=Pc(this.groupsRowCtrls,[this.columnsRowCtrl]);return this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e},n.prototype.onGridColumnsChanged=function(){this.refresh(!0)},n.prototype.setupCenterWidth=function(){var e=this;null==this.pinned&&this.createManagedBean(new Fl((function(t){return e.comp.setCenterWidth(t+"px")})))},n.prototype.setHorizontalScroll=function(e){this.comp.setContainerTransform("translateX("+e+"px)")},n.prototype.setupPinnedWidth=function(){var e=this;if(null!=this.pinned){var t=this.pinned===oe.PINNED_LEFT,n=this.pinned===oe.PINNED_RIGHT,o=function(){var o=t?e.pinnedWidthService.getPinnedLeftWidth():e.pinnedWidthService.getPinnedRightWidth();if(null!=o){var r=0==o,i=e.gridOptionsWrapper.isEnableRtl(),s=e.gridOptionsWrapper.getScrollbarWidth(),a=e.scrollVisibleService.isVerticalScrollShowing()&&(i&&t||!i&&n)?o+s:o;e.comp.setPinnedContainerWidth(a+"px"),e.comp.addOrRemoveCssClass("ag-hidden",r)}};this.addManagedListener(this.eventService,Ve.EVENT_LEFT_PINNED_WIDTH_CHANGED,o),this.addManagedListener(this.eventService,Ve.EVENT_RIGHT_PINNED_WIDTH_CHANGED,o),this.addManagedListener(this.eventService,Ve.EVENT_SCROLL_VISIBILITY_CHANGED,o),this.addManagedListener(this.eventService,Ve.EVENT_SCROLLBAR_WIDTH_CHANGED,o)}},n.prototype.getHeaderCtrlForColumn=function(e){if(e instanceof ae){if(!this.columnsRowCtrl)return;return this.columnsRowCtrl.getHeaderCellCtrl(e)}if(0!==this.groupsRowCtrls.length)for(var t=0;t<this.groupsRowCtrls.length;t++){var n=this.groupsRowCtrls[t].getHeaderCellCtrl(e);if(n)return n}},n.prototype.getHtmlElementForColumnHeader=function(e){var t=this.getHeaderCtrlForColumn(e);return t?t.getGui():null},n.prototype.getRowType=function(e){var t=this.getAllCtrls()[e];return t?t.getType():void 0},n.prototype.focusHeader=function(e,t,n){var o=this.getAllCtrls()[e];return!!o&&o.focusHeader(t,n)},n.prototype.getRowCount=function(){return this.getAllCtrls().length},Oc([K("ctrlsService")],n.prototype,"ctrlsService",void 0),Oc([K("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),Oc([K("pinnedWidthService")],n.prototype,"pinnedWidthService",void 0),Oc([K("columnModel")],n.prototype,"columnModel",void 0),Oc([K("focusService")],n.prototype,"focusService",void 0),n}(Fe),Dc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),xc=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},Nc=function(e){function t(t){var n=e.call(this)||this;return n.headerRowComps={},n.rowCompsList=[],n.pinned=t,n}return Dc(t,e),t.prototype.init=function(){var e=this;this.selectAndSetTemplate();var t={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setCtrls:function(t){return e.setCtrls(t)},setCenterWidth:function(t){return e.eCenterContainer.style.width=t},setContainerTransform:function(t){return e.eCenterContainer.style.transform=t},setPinnedContainerWidth:function(t){var n=e.getGui();n.style.width=t,n.style.maxWidth=t,n.style.minWidth=t}};this.createManagedBean(new Ac(this.pinned)).setComp(t,this.getGui())},t.prototype.selectAndSetTemplate=function(){var e=this.pinned==oe.PINNED_LEFT,n=this.pinned==oe.PINNED_RIGHT,o=e?t.PINNED_LEFT_TEMPLATE:n?t.PINNED_RIGHT_TEMPLATE:t.CENTER_TEMPLATE;this.setTemplate(o),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},t.prototype.destroyRowComps=function(){this.setCtrls([])},t.prototype.destroyRowComp=function(e){this.destroyBean(e),this.eRowContainer.removeChild(e.getGui())},t.prototype.setCtrls=function(e){var t,n=this,o=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];e.forEach((function(e){var r=e.getInstanceId(),i=o[r];delete o[r];var s=i||n.createBean(new ku(e));n.headerRowComps[r]=s,n.rowCompsList.push(s),function(e){var o=e.getGui();o.parentElement!=n.eRowContainer&&n.eRowContainer.appendChild(o),t&&yn(n.eRowContainer,o,t),t=o}(s)})),_(o).forEach((function(e){return n.destroyRowComp(e)}))},t.PINNED_LEFT_TEMPLATE='<div class="ag-pinned-left-header" role="presentation"/>',t.PINNED_RIGHT_TEMPLATE='<div class="ag-pinned-right-header" role="presentation"/>',t.CENTER_TEMPLATE='<div class="ag-header-viewport" role="presentation">\n            <div class="ag-header-container" ref="eCenterContainer" role="rowgroup"></div>\n        </div>',xc([nr("eCenterContainer")],t.prototype,"eCenterContainer",void 0),xc([z],t.prototype,"init",null),xc([Z],t.prototype,"destroyRowComps",null),t}(tr),Mc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Ic=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=t.HeaderNavigationDirection||(t.HeaderNavigationDirection={}))[Uu.UP=0]="UP",Uu[Uu.DOWN=1]="DOWN",Uu[Uu.LEFT=2]="LEFT",Uu[Uu.RIGHT=3]="RIGHT";var Lc=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Mc(n,e),n.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridBodyCon=t.gridBodyCtrl}))},n.prototype.getHeaderRowCount=function(){var e=this.ctrlsService.getHeaderRowContainerCtrl();return e?e.getRowCount():0},n.prototype.getHeaderRowType=function(e){var t=this.ctrlsService.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)},n.prototype.navigateVertically=function(e,n,o){if(n||(n=this.focusService.getFocusedHeader()),!n)return!1;var r=n.headerRowIndex,i=n.column,s=this.getHeaderRowCount(),a=e===t.HeaderNavigationDirection.UP,l=a?r-1:r+1,u=null,c=!1;l<0&&(l=0,u=i,c=!0),l>=s&&(l=-1);var p=this.getHeaderRowType(r);if(!c){if(p===t.HeaderRowType.COLUMN_GROUP){var d=i;u=a?i.getParent():d.getDisplayedChildren()[0]}else if(p===t.HeaderRowType.FLOATING_FILTER)u=i;else{d=i;u=a?d.getParent():d}if(!u)return!1}return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:l,column:u},allowUserOverride:!0,event:o})},n.prototype.navigateHorizontally=function(e,n,o){void 0===n&&(n=!1);var r,i,s=this.focusService.getFocusedHeader();return e===t.HeaderNavigationDirection.LEFT!==this.gridOptionsWrapper.isEnableRtl()?(i="Before",r=this.headerPositionUtils.findHeader(s,i)):(i="After",r=this.headerPositionUtils.findHeader(s,i)),r?this.focusService.focusHeaderPosition({headerPosition:r,direction:i,fromTab:n,allowUserOverride:!0,event:o}):!n||this.focusNextHeaderRow(s,i,o)},n.prototype.focusNextHeaderRow=function(e,t,n){var o,r=e.headerRowIndex,i=null;return"Before"===t?r>0&&(o=r-1,i=this.headerPositionUtils.findColAtEdgeForHeaderRow(o,"end")):(o=r+1,i=this.headerPositionUtils.findColAtEdgeForHeaderRow(o,"start")),this.focusService.focusHeaderPosition({headerPosition:i,direction:t,fromTab:!0,allowUserOverride:!0,event:n})},n.prototype.scrollToColumn=function(e,t){if(void 0===t&&(t="After"),!e.getPinned()){var n;if(e instanceof we){var o=e.getDisplayedLeafColumns();n="Before"===t?ue(o):o[0]}else n=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(n),this.gridBodyCon.getScrollFeature().horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()}},Ic([K("focusService")],n.prototype,"focusService",void 0),Ic([K("headerPositionUtils")],n.prototype,"headerPositionUtils",void 0),Ic([K("animationFrameService")],n.prototype,"animationFrameService",void 0),Ic([K("ctrlsService")],n.prototype,"ctrlsService",void 0),Ic([z],n.prototype,"postConstruct",null),n=Ic([Y("headerNavigationService")],n)}(Fe),Fc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),kc=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},Gc=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Fc(n,e),n.prototype.setComp=function(e,t,n){this.comp=e,this.eGui=t,this.createManagedBean(new mr(n,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},n.prototype.setupHeaderHeight=function(){var e=this.setHeaderHeight.bind(this);e(),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_PIVOT_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_FLOATING_FILTERS_HEIGHT,e),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,e)},n.prototype.setHeaderHeight=function(){var e,t,n,o=this.columnModel,r=this.gridOptionsWrapper,i=0,s=o.getHeaderRowCount();o.hasFloatingFilters()&&(s++,i=1),o.isPivotMode()?(t=r.getPivotGroupHeaderHeight(),n=r.getPivotHeaderHeight()):(t=r.getGroupHeaderHeight(),n=r.getHeaderHeight());var a=s-(1+i);e=i*r.getFloatingFiltersHeight(),e+=a*t;var l=(e+=n)+1+"px";this.comp.setHeightAndMinHeight(l)},n.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",e),this.comp.addOrRemoveCssClass("ag-pivot-off",!e)},n.prototype.onTabKeyDown=function(e){var n=this.gridOptionsWrapper.isEnableRtl(),o=e.shiftKey!==n?t.HeaderNavigationDirection.LEFT:t.HeaderNavigationDirection.RIGHT;(this.headerNavigationService.navigateHorizontally(o,!0,e)||this.focusService.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()},n.prototype.handleKeyDown=function(e){var n=null;switch(e.key){case dr.LEFT:n=t.HeaderNavigationDirection.LEFT;case dr.RIGHT:r(n)||(n=t.HeaderNavigationDirection.RIGHT),this.headerNavigationService.navigateHorizontally(n,!1,e);break;case dr.UP:n=t.HeaderNavigationDirection.UP;case dr.DOWN:r(n)||(n=t.HeaderNavigationDirection.DOWN),this.headerNavigationService.navigateVertically(n,null,e)&&e.preventDefault();break;default:return}},n.prototype.onFocusOut=function(e){var t=this.gridOptionsWrapper.getDocument(),n=e.relatedTarget;!n&&this.eGui.contains(t.activeElement)||this.eGui.contains(n)||this.focusService.clearFocusedHeader()},kc([K("headerNavigationService")],n.prototype,"headerNavigationService",void 0),kc([K("focusService")],n.prototype,"focusService",void 0),kc([K("columnModel")],n.prototype,"columnModel",void 0),kc([K("ctrlsService")],n.prototype,"ctrlsService",void 0),n}(Fe),Hc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Bc=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},Vc=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Hc(t,e),t.prototype.postConstruct=function(){var e=this,t={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setHeightAndMinHeight:function(t){e.getGui().style.height=t,e.getGui().style.minHeight=t}};this.createManagedBean(new Gc).setComp(t,this.getGui(),this.getFocusableElement());var n=function(t){e.createManagedBean(t),e.appendChild(t)};n(new Nc(oe.PINNED_LEFT)),n(new Nc(null)),n(new Nc(oe.PINNED_RIGHT))},t.TEMPLATE='<div class="ag-header" role="presentation"/>',Bc([z],t.prototype,"postConstruct",null),t}(tr),Wc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),jc=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},Uc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wc(t,e),t.prototype.addResizeBar=function(e){var t=this,n={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e)};this.dragService.addDragSource(n,!0);return function(){return t.dragService.removeDragSource(n)}},t.prototype.onDragStart=function(e,t){this.dragStartX=t.clientX,this.setResizeIcons();var n=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(n)},t.prototype.setResizeIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!0),e.disableUserSelect(!0)},t.prototype.onDragStop=function(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()},t.prototype.resetIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!1),e.disableUserSelect(!1)},t.prototype.onDragging=function(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},jc([K("dragService")],t.prototype,"dragService",void 0),jc([K("ctrlsService")],t.prototype,"ctrlsService",void 0),t=jc([Y("horizontalResizeService")],t)}(Fe),zc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Zc=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},Yc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zc(t,e),t.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},t.prototype.showMenuAfterMouseEvent=function(e,t){var n=this;this.showPopup(e,(function(o){n.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:o})}),t.target)},t.prototype.showMenuAfterButtonClick=function(e,t,n){var o=this;this.showPopup(e,(function(r){o.popupService.positionPopupUnderComponent({type:n,eventSource:t,ePopup:r,keepWithinBounds:!0,column:e})}),t)},t.prototype.showPopup=function(e,t,n){var o=this,r=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU");if(!r)throw new Error("AG Grid - unable to show popup filter, filter instantiation failed");var i,s=document.createElement("div");Bn(s,"presentation"),s.classList.add("ag-menu"),this.tabListener=this.addManagedListener(s,"keydown",(function(e){return o.trapFocusWithin(e,s)})),r.guiPromise.then((function(e){return s.appendChild(e)}));var a=n||this.ctrlsService.getGridBodyCtrl().getGui(),l=this.gridOptionsWrapper.getLocaleTextFunc(),u=this.popupService.addPopup({modal:!0,eChild:s,closeOnEsc:!0,closedCallback:function(t){e.setMenuVisible(!1,"contextMenu");var r=t instanceof KeyboardEvent;if(o.tabListener&&(o.tabListener=o.tabListener()),r&&n&&fn(n)){var i=o.focusService.findTabbableParent(n);i&&i.focus()}},positionCallback:function(){return t(s)},anchorToElement:a,ariaLabel:l("ariaLabelColumnMenu","Column Menu")});u&&(this.hidePopup=i=u.hideFunc),r.filterPromise.then((function(e){t(s),e.afterGuiAttached&&e.afterGuiAttached({container:"columnMenu",hidePopup:i})})),e.setMenuVisible(!0,"contextMenu")},t.prototype.trapFocusWithin=function(e,t){e.key!==dr.TAB||e.defaultPrevented||this.focusService.findNextFocusableElement(t,!1,e.shiftKey)||(e.preventDefault(),this.focusService.focusInto(t,e.shiftKey))},t.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()},Zc([K("filterManager")],t.prototype,"filterManager",void 0),Zc([K("popupService")],t.prototype,"popupService",void 0),Zc([K("focusService")],t.prototype,"focusService",void 0),Zc([K("ctrlsService")],t.prototype,"ctrlsService",void 0),t=Zc([Y("menuFactory")],t)}(Fe),Kc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),qc=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},Xc=function(e){function t(n){var o=e.call(this,t.getTemplate(n.cssClass))||this;return o.items=[],o.tabbedItemScrollMap=new Map,o.params=n,n.items&&n.items.forEach((function(e){return o.addItem(e)})),o}return Kc(t,e),t.prototype.postConstruct=function(){this.createManagedBean(new mr(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)}))},t.getTemplate=function(e){return'<div class="ag-tabs '+e+'">\n            <div ref="eHeader" role="tablist" class="ag-tabs-header '+(e?e+"-header":"")+'"></div>\n            <div ref="eBody" role="presentation" class="ag-tabs-body '+(e?e+"-body":"")+'"></div>\n        </div>'},t.prototype.handleKeyDown=function(e){var t=this.gridOptionsWrapper.getDocument();switch(e.key){case dr.RIGHT:case dr.LEFT:if(!this.eHeader.contains(t.activeElement))return;var n=this.items.indexOf(this.activeItem),o=e.key===dr.RIGHT?Math.min(n+1,this.items.length-1):Math.max(n-1,0);if(n===o)return;e.preventDefault();var r=this.items[o];this.showItemWrapper(r),r.eHeaderButton.focus();break;case dr.UP:case dr.DOWN:e.stopPropagation()}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented){var t=this,n=t.focusService,o=t.eHeader,r=t.eBody,i=t.activeItem,s=this.gridOptionsWrapper.getDocument().activeElement;if(e.preventDefault(),o.contains(s))n.focusInto(r,e.shiftKey);else if(n.isFocusUnderManagedComponent(r))i.eHeaderButton.focus();else{var a=n.findNextFocusableElement(r,!1,e.shiftKey);a?a.focus():i.eHeaderButton.focus()}}},t.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},t.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},t.prototype.addItem=function(e){var t=document.createElement("span");Bn(t,"tab"),t.setAttribute("tabIndex","-1"),t.appendChild(e.title),t.classList.add("ag-tab"),this.eHeader.appendChild(t),Un(t,e.titleLabel);var n={tabbedItem:e,eHeaderButton:t};this.items.push(n),t.addEventListener("click",this.showItemWrapper.bind(this,n))},t.prototype.showItem=function(e){var t=this.items.find((function(t){return t.tabbedItem===e}));t&&this.showItemWrapper(t)},t.prototype.showItemWrapper=function(e){var t=this,n=e.tabbedItem,o=e.eHeaderButton;this.params.onItemClicked&&this.params.onItemClicked({item:n}),this.activeItem!==e?(this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),dn(this.eBody),n.bodyPromise.then((function(e){t.eBody.appendChild(e);var o=!t.focusService.isKeyboardMode();if(t.focusService.focusInto(t.eBody,!1,o),n.afterAttachedCallback&&n.afterAttachedCallback(t.afterAttachedParams),t.params.keepScrollPosition){var r=n.getScrollableContainer&&n.getScrollableContainer()||e;t.lastScrollListener=t.addManagedListener(r,"scroll",(function(){t.tabbedItemScrollMap.set(n.name,r.scrollTop)}));var i=t.tabbedItemScrollMap.get(n.name);void 0!==i&&setTimeout((function(){r.scrollTop=i}),0)}})),this.activeItem&&this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),o.classList.add("ag-tab-selected"),this.activeItem=e):V(this.params.onActiveItemClicked)},qc([K("focusService")],t.prototype,"focusService",void 0),qc([nr("eHeader")],t.prototype,"eHeader",void 0),qc([nr("eBody")],t.prototype,"eBody",void 0),qc([z],t.prototype,"postConstruct",null),t}(tr);var Qc,Jc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),$c=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},ep=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.polyfillFunctions=[],t}return Jc(t,e),t.prototype.observeResize=function(e,t){var n=this,o=this.gridOptionsWrapper.getDocument().defaultView||window,r=G(t,50),i=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return!!o.ResizeObserver&&!i?function(){var t=new o.ResizeObserver(r);return t.observe(e),function(){return t.disconnect()}}():function(){var o=vn(e),r=mn(e),i=!0;return function s(){if(i){var a=vn(e),l=mn(e);(a!==o||l!==r)&&(o=a,r=l,t()),n.doNextPolyfillTurn(s)}}(),function(){return i=!1}}()},t.prototype.doNextPolyfillTurn=function(e){this.polyfillFunctions.push(e),this.schedulePolyfill()},t.prototype.schedulePolyfill=function(){var e=this;if(!this.polyfillScheduled){this.polyfillScheduled=!0,this.getFrameworkOverrides().setTimeout((function(){var t=e.polyfillFunctions;e.polyfillScheduled=!1,e.polyfillFunctions=[],t.forEach((function(e){return e()}))}),50)}},t=$c([Y("resizeObserverService")],t)}(Fe),tp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),np=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},op=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createTasksP1={list:[],sorted:!1},t.createTasksP2={list:[],sorted:!1},t.destroyTasks=[],t.ticking=!1,t.scrollGoingDown=!0,t.lastScrollTop=0,t.taskCount=0,t.cancelledTasks=new Set,t}return tp(t,e),t.prototype.setScrollTop=function(e){this.scrollGoingDown=e>this.lastScrollTop,this.lastScrollTop=e},t.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},t.prototype.isOn=function(){return this.useAnimationFrame},t.prototype.verifyAnimationFrameOn=function(e){!1===this.useAnimationFrame&&console.warn("AG Grid: AnimationFrameService."+e+" called but animation frames are off")},t.prototype.createTask=function(e,t,n){this.verifyAnimationFrameOn(n);var o={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[n],o),this.schedule()},t.prototype.cancelTask=function(e){this.cancelledTasks.add(e)},t.prototype.addTaskToList=function(e,t){e.list.push(t),e.sorted=!1},t.prototype.sortTaskList=function(e){if(!e.sorted){var t=this.scrollGoingDown?1:-1;e.list.sort((function(e,n){return e.index!==n.index?t*(n.index-e.index):n.createOrder-e.createOrder})),e.sorted=!0}},t.prototype.addDestroyTask=function(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()},t.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame");for(var t=this.createTasksP1,n=t.list,o=this.createTasksP2,r=o.list,i=this.destroyTasks,s=(new Date).getTime(),a=(new Date).getTime()-s,l=e<=0,u=this.ctrlsService.getGridBodyCtrl();l||a<e;){if(!u.getScrollFeature().executeAnimationFrameScroll()){var c=void 0;if(n.length)this.sortTaskList(t),c=n.pop().task;else if(r.length)this.sortTaskList(o),c=r.pop().task;else{if(!i.length){this.cancelledTasks.clear();break}c=i.pop()}this.cancelledTasks.has(c)||c()}a=(new Date).getTime()-s}n.length||r.length||i.length?this.requestFrame():this.stopTicking()},t.prototype.stopTicking=function(){this.ticking=!1},t.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},t.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},t.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60),t=this.gridOptionsWrapper.getDocument().defaultView||window;t.requestAnimationFrame?t.requestAnimationFrame(e):t.webkitRequestAnimationFrame?t.webkitRequestAnimationFrame(e):t.setTimeout(e,0)},t.prototype.isQueueEmpty=function(){return!this.ticking},t.prototype.debounce=function(e){var t=this,n=!1;return function(){t.isOn()?n||(n=!0,t.addDestroyTask((function(){n=!1,e()}))):t.getFrameworkOverrides().setTimeout(e,0)}},np([K("ctrlsService")],t.prototype,"ctrlsService",void 0),np([z],t.prototype,"init",null),t=np([Y("animationFrameService")],t)}(Fe),rp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),ip=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},sp=function(e){function t(t,n){var o=e.call(this)||this;return o.element=t,o.dragStartPosition={x:0,y:0},o.position={x:0,y:0},o.lastSize={width:-1,height:-1},o.positioned=!1,o.resizersAdded=!1,o.resizeListeners=[],o.boundaryEl=null,o.isResizing=!1,o.isMoving=!1,o.resizable={},o.movable=!1,o.currentResizer=null,o.config=Object.assign({},{popup:!1},n),o}return rp(t,e),t.prototype.center=function(){var e=this.offsetParent,t=e.clientHeight,n=e.clientWidth/2-this.getWidth()/2,o=t/2-this.getHeight()/2;this.offsetElement(n,o)},t.prototype.initialisePosition=function(){var e=this.config,t=e.centered,n=e.forcePopupParentAsOffsetParent,o=e.minWidth,r=e.width,i=e.minHeight,s=e.height,a=e.x,l=e.y;this.offsetParent||this.setOffsetParent();var u=0,c=0,p=!!this.element.offsetParent;if(p){var d=this.findBoundaryElement(),h=window.getComputedStyle(d);if(null!=h.minWidth){var f=d.offsetWidth-this.element.offsetWidth;c=parseInt(h.minWidth,10)-f}if(null!=h.minHeight){var g=d.offsetHeight-this.element.offsetHeight;u=parseInt(h.minHeight,10)-g}}if(this.minHeight=i||u,this.minWidth=o||c,r&&this.setWidth(r),s&&this.setHeight(s),r&&s||this.refreshSize(),t)this.center();else if(a||l)this.offsetElement(a,l);else if(p&&n&&this.boundaryEl){var m=parseFloat(this.boundaryEl.style.top),v=parseFloat(this.boundaryEl.style.left);this.offsetElement(isNaN(v)?0:v,isNaN(m)?0:m)}this.positioned=!!this.offsetParent},t.prototype.isPositioned=function(){return this.positioned},t.prototype.getPosition=function(){return this.position},t.prototype.setMovable=function(e,t){if(this.config.popup&&e!==this.movable){this.movable=e;var n=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(n),this.moveElementDragListener=n):(this.dragService.removeDragSource(n),this.moveElementDragListener=void 0)}},t.prototype.setResizable=function(e){var t=this;if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),"boolean"===typeof e){if(!1===e)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach((function(n){var o=!!e[n],r=t.getResizerElement(n),i={dragStartPixels:0,eElement:r,onDragStart:function(e){return t.onResizeStart(e,n)},onDragging:t.onResize.bind(t),onDragStop:function(e){return t.onResizeEnd(e,n)}};!!t.resizable[n]===o&&(t.isAlive()||o)||(o?(t.dragService.addDragSource(i),t.resizeListeners.push(i),r.style.pointerEvents="all"):r.style.pointerEvents="none")}))},t.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},t.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var e=this.lastSize,t=e.height,n=e.width;-1!==n&&(this.element.style.width=n+"px"),-1!==t&&(this.element.style.height=t+"px")},t.prototype.getHeight=function(){return this.element.offsetHeight},t.prototype.setHeight=function(e){var t=this.config.popup,n=this.element,o=!1;if("string"===typeof e&&-1!==e.indexOf("%"))On(n,e),e=an(n),o=!0;else if(this.positioned){var r=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect();e=Math.max(this.minHeight,e);var s=this.offsetParent.clientHeight,a=t?this.position.y:r.top,l=t?0:i.top;s&&e+a>s+l&&(e=s-a)}this.getHeight()!==e&&(o?(n.style.maxHeight="unset",n.style.minHeight="unset"):t?On(n,e):(n.style.height=e+"px",n.style.flex="0 0 auto",this.lastSize.height="number"===typeof e?e:parseFloat(e)))},t.prototype.getWidth=function(){return this.element.offsetWidth},t.prototype.setWidth=function(e){var t=this.element,n=this.config.popup,o=!1;if("string"===typeof e&&-1!==e.indexOf("%"))Rn(t,e),e=ln(t),o=!0;else if(this.positioned){e=Math.max(this.minWidth,e);var r=this.offsetParent.clientWidth,i=n?this.position.x:this.element.getBoundingClientRect().left;r&&e+i>r&&(e=r-i)}this.getWidth()!==e&&(o?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?Rn(t,e):(t.style.width=e+"px",t.style.flex=" unset",this.lastSize.width="number"===typeof e?e:parseFloat(e)))},t.prototype.offsetElement=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var n=this.config.forcePopupParentAsOffsetParent?this.boundaryEl:this.element;this.popupService.positionPopup({ePopup:n,x:e,y:t,keepWithinBounds:!0}),this.setPosition(parseFloat(n.style.left),parseFloat(n.style.top))},t.prototype.setPosition=function(e,t){this.position.x=e,this.position.y=t},t.prototype.updateDragStartPosition=function(e,t){this.dragStartPosition={x:e,y:t}},t.prototype.calculateMouseMovement=function(e){var t=e.e,n=e.isLeft,o=e.isTop,r=e.anywhereWithin,i=e.topBuffer,s=t.clientX-this.dragStartPosition.x,a=t.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(t,!!n,!!r,s)?0:s,movementY:this.shouldSkipY(t,!!o,i,a)?0:a}},t.prototype.shouldSkipX=function(e,t,n,o){var r=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:r.left,l=a<=0&&i.left>=e.clientX||i.right<=e.clientX&&i.right<=s.right;return!!l||(l=t?o<0&&e.clientX>a+i.left||o>0&&e.clientX<a+i.left:n?o<0&&e.clientX>s.right||o>0&&e.clientX<a+i.left:o<0&&e.clientX>s.right||o>0&&e.clientX<s.right)},t.prototype.shouldSkipY=function(e,t,n,o){void 0===n&&(n=0);var r=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.y:r.top,l=a<=0&&i.top>=e.clientY||i.bottom<=e.clientY&&i.bottom<=s.bottom;return!!l||(l=t?o<0&&e.clientY>a+i.top+n||o>0&&e.clientY<a+i.top:o<0&&e.clientY>s.bottom||o>0&&e.clientY<s.bottom)},t.prototype.createResizeMap=function(){var e=this.element;this.resizerMap={topLeft:{element:e.querySelector("[ref=eTopLeftResizer]")},top:{element:e.querySelector("[ref=eTopResizer]")},topRight:{element:e.querySelector("[ref=eTopRightResizer]")},right:{element:e.querySelector("[ref=eRightResizer]")},bottomRight:{element:e.querySelector("[ref=eBottomRightResizer]")},bottom:{element:e.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:e.querySelector("[ref=eBottomLeftResizer]")},left:{element:e.querySelector("[ref=eLeftResizer]")}}},t.prototype.addResizers=function(){if(!this.resizersAdded){var e=this.element;if(e){var t=(new DOMParser).parseFromString('<div class="ag-resizer-wrapper">\n        <div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>\n        <div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>\n        <div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>\n        <div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>\n        <div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>\n        <div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>\n        <div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>\n        <div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>\n    </div>',"text/html").body;e.appendChild(t.firstChild),this.createResizeMap(),this.resizersAdded=!0}}},t.prototype.removeResizers=function(){this.resizerMap=void 0;var e=this.element.querySelector(".ag-resizer-wrapper");e&&this.element.removeChild(e),this.resizersAdded=!1},t.prototype.getResizerElement=function(e){return this.resizerMap[e].element},t.prototype.onResizeStart=function(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("ag-active");var n=this.config,o=n.popup,r=n.forcePopupParentAsOffsetParent;o||r||this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.getSiblings=function(){var e=this.element.parentElement;return e?Array.prototype.slice.call(e.children).filter((function(e){return!e.classList.contains("ag-hidden")})):null},t.prototype.getMinSizeOfSiblings=function(){for(var e=this.getSiblings()||[],t=0,n=0,o=0;o<e.length;o++){var r=e[o],i=!!r.style.flex&&"0 0 auto"!==r.style.flex;if(r!==this.element){var s=this.minHeight||0,a=this.minWidth||0;if(i){var l=window.getComputedStyle(r);l.minHeight&&(s=parseInt(l.minHeight,10)),l.minWidth&&(a=parseInt(l.minWidth,10))}else s=r.offsetHeight,a=r.offsetWidth;t+=s,n+=a}}return{height:t,width:n}},t.prototype.applySizeToSiblings=function(e){var t=null,n=this.getSiblings();if(n){for(var o=0;o<n.length;o++){var r=n[o];r!==t&&(e?r.style.height=r.offsetHeight+"px":r.style.width=r.offsetWidth+"px",r.style.flex="0 0 auto",r===this.element&&(t=n[o+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}},t.prototype.onResize=function(e){if(this.isResizing&&this.currentResizer){var t=this.config,n=t.popup,o=t.forcePopupParentAsOffsetParent,r=this.currentResizer,i=r.isTop,s=r.isRight,a=r.isBottom,l=r.isLeft,u=s||l,c=a||i,p=this.calculateMouseMovement({e:e,isLeft:l,isTop:i}),d=p.movementX,h=p.movementY,f=this.position.x,g=this.position.y,m=0,v=0;if(u&&d){var y=l?-1:1,C=this.getWidth(),w=C+d*y,_=!1;l&&(f+(m=C-w)<=0||w<=this.minWidth)&&(_=!0,m=0),_||this.setWidth(w)}if(c&&h){y=i?-1:1;var b=this.getHeight(),E=b+h*y,S=!1;i?(g+(v=b-E)<=0||E<=this.minHeight)&&(S=!0,v=0):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&b<E&&this.getMinSizeOfSiblings().height+E>this.element.parentElement.offsetHeight&&(S=!0),S||this.setHeight(E)}this.updateDragStartPosition(e.clientX,e.clientY),((n||o)&&m||v)&&this.offsetElement(f+m,g+v)}},t.prototype.onResizeEnd=function(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var n={type:"resize",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchEvent(n)},t.prototype.refreshSize=function(){var e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))},t.prototype.onMoveStart=function(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onMove=function(e){if(this.isMoving){var t,n=this.position,o=n.x,r=n.y;this.config.calculateTopBuffer&&(t=this.config.calculateTopBuffer());var i=this.calculateMouseMovement({e:e,isTop:!0,anywhereWithin:!0,topBuffer:t}),s=i.movementX,a=i.movementY;this.offsetElement(o+s,r+a),this.updateDragStartPosition(e.clientX,e.clientY)}},t.prototype.onMoveEnd=function(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")},t.prototype.setOffsetParent=function(){this.config.forcePopupParentAsOffsetParent?this.offsetParent=this.popupService.getPopupParent():this.offsetParent=this.element.offsetParent},t.prototype.findBoundaryElement=function(){for(var e=this.element;e;){if("static"!==window.getComputedStyle(e).position)return e;e=e.parentElement}return this.element},t.prototype.clearResizeListeners=function(){for(;this.resizeListeners.length;){var e=this.resizeListeners.pop();this.dragService.removeDragSource(e)}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.clearResizeListeners(),this.removeResizers()},ip([K("popupService")],t.prototype,"popupService",void 0),ip([K("dragService")],t.prototype,"dragService",void 0),t}(Fe),ap=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),lp=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},up=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ap(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.centerRowContainerCtrl=t.centerRowContainerCtrl}))},t.prototype.getPreferredWidthForColumn=function(e,t){var n=this.getHeaderCellForColumn(e);if(!n)return-1;var o=this.rowRenderer.getAllCellsForColumn(e);return t||o.push(n),this.addElementsToContainerAndGetWidth(o)},t.prototype.getPreferredWidthForColumnGroup=function(e){var t=this.getHeaderCellForColumn(e);return t?this.addElementsToContainerAndGetWidth([t]):-1},t.prototype.addElementsToContainerAndGetWidth=function(e){var t=this,n=document.createElement("span");n.style.position="fixed";var o=this.centerRowContainerCtrl.getContainerElement();o.appendChild(n),e.forEach((function(e){return t.cloneItemIntoDummy(e,n)}));var r=n.offsetWidth;return o.removeChild(n),r+this.gridOptionsWrapper.getAutoSizePadding()},t.prototype.getHeaderCellForColumn=function(e){var t=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(n){var o=n.getHtmlElementForColumnHeader(e);null!=o&&(t=o)})),t},t.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"),r=o.classList;["ag-header-cell","ag-header-group-cell"].some((function(e){return n.classList.contains(e)}))?(r.add("ag-header","ag-header-row"),o.style.position="static"):r.add("ag-row");for(var i=e.parentElement;i;){if(["ag-header-row","ag-row"].some((function(e){return i.classList.contains(e)}))){for(var s=0;s<i.classList.length;s++){var a=i.classList[s];"ag-row-position-absolute"!=a&&r.add(a)}break}i=i.parentElement}o.appendChild(n),t.appendChild(o)},lp([K("rowRenderer")],t.prototype,"rowRenderer",void 0),lp([K("ctrlsService")],t.prototype,"ctrlsService",void 0),lp([K("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),lp([z],t.prototype,"postConstruct",null),t=lp([Y("autoWidthCalculator")],t)}(Fe),cp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),pp=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},dp=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},hp=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(dp(arguments[t]));return e},fp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.destroyFuncsForColumnListeners=[],t.rowCtrlsByRowIndex={},t.zombieRowCtrls={},t.allRowCtrls=[],t.topRowCtrls=[],t.bottomRowCtrls=[],t.refreshInProgress=!1,t}return cp(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.initialise()}))},t.prototype.initialise=function(){this.addManagedListener(this.eventService,Ve.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_ROW_CLASS,this.redrawRows.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},t.prototype.initialiseCache=function(){if(this.gridOptionsWrapper.isKeepDetailRows()){var e=this.gridOptionsWrapper.getKeepDetailRowsCount(),t=null!=e?e:3;this.cachedRowCtrls=new gp(t)}},t.prototype.getRowCtrls=function(){return this.allRowCtrls},t.prototype.updateAllRowCtrls=function(){var e=_(this.rowCtrlsByRowIndex);this.gridOptionsWrapper.isEnsureDomOrder()&&e.sort((function(e,t){return e.getRowNode().rowIndex-t.getRowNode.rowIndex}));var t=_(this.zombieRowCtrls),n=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];this.allRowCtrls=hp(e,t,n)},t.prototype.registerCellEventListeners=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_CELL_FOCUSED,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onCellFocused(t)})),e.getFullWidthRowCtrls().forEach((function(e){e.onFullWidthRowFocused(t)}))})),this.addManagedListener(this.eventService,Ve.EVENT_FLASH_CELLS,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onFlashCells(t)}))})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_HOVER_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onColumnHover()}))})),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onDisplayedColumnsChanged()}))})),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){e.printLayout&&e.getAllCellCtrls().forEach((function(e){return e.onLeftChanged()}))})),this.gridOptionsWrapper.isEnableRangeSelection()&&(this.addManagedListener(this.eventService,Ve.EVENT_RANGE_SELECTION_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onRangeSelectionChanged()}))})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_MOVED,(function(){e.getAllCellCtrls().forEach((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PINNED,(function(){e.getAllCellCtrls().forEach((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_VISIBLE,(function(){e.getAllCellCtrls().forEach((function(e){return e.updateRangeBordersIfRangeCount()}))}))),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,Ve.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},t.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach((function(e){return e()})),this.destroyFuncsForColumnListeners.length=0},t.prototype.refreshListenersToColumnsForCellComps=function(){var e=this;this.removeGridColumnListeners();var t=this.columnModel.getAllGridColumns();t&&t.forEach((function(t){var n=function(n){e.getAllCellCtrls().forEach((function(e){e.getColumn()===t&&n(e)}))},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(ae.EVENT_LEFT_CHANGED,o),t.addEventListener(ae.EVENT_WIDTH_CHANGED,r),t.addEventListener(ae.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.addEventListener(ae.EVENT_LAST_LEFT_PINNED_CHANGED,s),e.destroyFuncsForColumnListeners.push((function(){t.removeEventListener(ae.EVENT_LEFT_CHANGED,o),t.removeEventListener(ae.EVENT_WIDTH_CHANGED,r),t.removeEventListener(ae.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.removeEventListener(ae.EVENT_LAST_LEFT_PINNED_CHANGED,s)}))}))},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT,t=e||this.gridOptionsWrapper.isEmbedFullWidthRows(),n=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,n&&this.redrawAfterModelUpdate()},t.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},t.prototype.onPageLoaded=function(e){var t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)},t.prototype.getAllCellsForColumn=function(e){var t=[];return this.getAllRowCtrls().forEach((function(n){var o=n.getCellElement(e);o&&t.push(o)})),t},t.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.topRowCtrls,this.pinnedRowModel.getPinnedTopRowData()),this.refreshFloatingRows(this.bottomRowCtrls,this.pinnedRowModel.getPinnedBottomRowData())},t.prototype.getTopRowCtrls=function(){return this.topRowCtrls},t.prototype.getBottomRowCtrls=function(){return this.bottomRowCtrls},t.prototype.refreshFloatingRows=function(e,t){var n=this;e.forEach((function(e){e.destroyFirstPass(),e.destroySecondPass()})),e.length=0,t&&t.forEach((function(t){var o=new fl(t,n.beans,!1,!1,n.printLayout);e.push(o)}))},t.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},t.prototype.getRenderedIndexesForRowNodes=function(e){var t=[];return i(e)||f(this.rowCtrlsByRowIndex,(function(n,o){var r=o.getRowNode();e.indexOf(r)>=0&&t.push(n)})),t},t.prototype.redrawRows=function(e){var t=null!=e&&e.length>0;if(t){var n=this.getRenderedIndexesForRowNodes(e);this.removeRowCtrls(n)}this.redrawAfterModelUpdate({recycleRows:t})},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t=e.suppressKeepFocus?null:this.focusService.getFocusCellToUseAfterRefresh();if(null==t)return null;var n=this.gridOptionsWrapper.getDocument().activeElement,o=this.gridOptionsWrapper.getDomData(n,al.DOM_DATA_KEY_CELL_CTRL),r=this.gridOptionsWrapper.getDomData(n,fl.DOM_DATA_KEY_ROW_CTRL);return o||r?t:null},t.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.updateContainerHeights(),this.scrollToTopIfNewData(e);var n=!this.printLayout&&!!e.recycleRows,o=e.animate&&this.gridOptionsWrapper.isAnimateRows(),r=n?this.recycleRows():null;n||this.removeAllRowComps();var i=function(){if(null==t||null==r)return!1;var e=!1;return f(r,(function(n,o){var r=o.getRowNode(),i=r.rowIndex==t.rowIndex,s=r.rowPinned==t.rowPinned;i&&s&&(e=!0)})),e}();this.redraw(r,o),e.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),i||this.restoreFocusedCell(t),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,n=this.gridOptionsWrapper.isSuppressScrollOnNewData();t&&!n&&this.gridBodyCtrl.getScrollFeature().scrollToTop()},t.prototype.updateContainerHeights=function(){if(this.printLayout)this.rowContainerHeightService.setModelHeight(null);else{var e=this.paginationProxy.getCurrentPageHeight();0===e&&(e=1),this.rowContainerHeightService.setModelHeight(e)}},t.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error("AG Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},t.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},t.prototype.isRefreshInProgress=function(){return this.refreshInProgress},t.prototype.restoreFocusedCell=function(e){e&&this.focusService.setFocusedCell(e.rowIndex,e.column,e.rowPinned,!0)},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.getAllRowCtrls().forEach((function(t){t.stopEditing(e)}))},t.prototype.onNewColumnsLoaded=function(){this.getAllCellCtrls().forEach((function(e){return e.onNewColumnsLoaded()}))},t.prototype.getAllCellCtrls=function(){var e=[];return this.getAllRowCtrls().forEach((function(t){return e=e.concat(t.getAllCellCtrls())})),e},t.prototype.getAllRowCtrls=function(){var e=this,t=hp(this.topRowCtrls,this.bottomRowCtrls);return Object.keys(this.rowCtrlsByRowIndex).forEach((function(n){return t.push(e.rowCtrlsByRowIndex[n])})),t},t.prototype.addRenderedRowListener=function(e,t,n){var o=this.rowCtrlsByRowIndex[t];o&&o.addEventListener(e,n)},t.prototype.flashCells=function(e){void 0===e&&(e={});var t=e.flashDelay,n=e.fadeDelay;this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){return e.flashCell({flashDelay:t,fadeDelay:n})}))},t.prototype.refreshCells=function(e){void 0===e&&(e={});var t={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){if(e.refreshShouldDestroy()){var n=e.getRowCtrl();n&&n.refreshCell(e)}else e.refreshCell(t)})),this.getFullWidthRowCtrls(e.rowNodes).forEach((function(e){e.refreshFullWidth()}))},t.prototype.getCellRendererInstances=function(e){return this.getCellCtrls(e.rowNodes,e.columns).map((function(e){return e.getCellRenderer()})).filter((function(e){return null!=e}))},t.prototype.getCellEditorInstances=function(e){var t=[];return this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){var n=e.getCellEditor();n&&t.push(n)})),t},t.prototype.getEditingCells=function(){var e=[];return this.getAllCellCtrls().forEach((function(t){if(t.isEditing()){var n=t.getCellPosition();e.push(n)}})),e},t.prototype.mapRowNodes=function(e){if(e){var t={top:{},bottom:{},normal:{}};return e.forEach((function(e){var n=e.id;e.rowPinned===oe.PINNED_TOP?t.top[n]=e:e.rowPinned===oe.PINNED_BOTTOM?t.bottom[n]=e:t.normal[n]=e})),t}},t.prototype.isRowInMap=function(e,t){var n=e.id,o=e.rowPinned;return o===oe.PINNED_BOTTOM?null!=t.bottom[n]:o===oe.PINNED_TOP?null!=t.top[n]:null!=t.normal[n]},t.prototype.getCellCtrls=function(e,t){var n,o=this,i=this.mapRowNodes(e),s=[];r(t)&&(n={},t.forEach((function(e){var t=o.columnModel.getGridColumn(e);r(t)&&(n[t.getId()]=!0)})));var a=function(e){var t=e.getRowNode();(null==i||o.isRowInMap(t,i))&&e.getAllCellCtrls().forEach((function(e){var t=e.getColumn().getId();n&&!n[t]||s.push(e)}))};return f(this.rowCtrlsByRowIndex,(function(e,t){a(t)})),this.topRowCtrls&&this.topRowCtrls.forEach(a),this.bottomRowCtrls&&this.bottomRowCtrls.forEach(a),s},t.prototype.destroy=function(){this.removeAllRowComps(),e.prototype.destroy.call(this)},t.prototype.removeAllRowComps=function(){var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},t.prototype.recycleRows=function(){var e=[];f(this.rowCtrlsByRowIndex,(function(t,n){null==n.getRowNode().id&&e.push(t)})),this.removeRowCtrls(e);var t={};return f(this.rowCtrlsByRowIndex,(function(e,n){var o=n.getRowNode();t[o.id]=n})),this.rowCtrlsByRowIndex={},t},t.prototype.removeRowCtrls=function(e){var t=this;e.forEach((function(e){var n=t.rowCtrlsByRowIndex[e];n&&(n.destroyFirstPass(),n.destroySecondPass()),delete t.rowCtrlsByRowIndex[e]}))},t.prototype.redrawAfterScroll=function(){this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged()},t.prototype.removeRowCompsNotToDraw=function(e){var t={};e.forEach((function(e){return t[e]=!0}));var n=Object.keys(this.rowCtrlsByRowIndex).filter((function(e){return!t[e]}));this.removeRowCtrls(n)},t.prototype.calculateIndexesToDraw=function(e){var t=this,n=ho(this.firstRenderedRow,this.lastRenderedRow),o=function(e,o){var r=o.getRowNode().rowIndex;null!=r&&(r<t.firstRenderedRow||r>t.lastRenderedRow)&&t.doNotUnVirtualiseRow(o)&&n.push(r)};return f(this.rowCtrlsByRowIndex,o),f(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.rowContainerHeightService.updateOffset(),this.workOutFirstAndLastRowsToRender();var i=this.calculateIndexesToDraw(e);(this.removeRowCompsNotToDraw(i),this.printLayout&&(t=!1),i.forEach((function(i){r(o.createOrUpdateRowCtrl(i,e,t,n))})),e)&&(n&&!this.gridOptionsWrapper.isSuppressAnimationFrame()&&!this.printLayout?this.beans.animationFrameService.addDestroyTask((function(){o.destroyRowCtrls(e,t),o.updateAllRowCtrls(),o.dispatchDisplayedRowsChanged()})):this.destroyRowCtrls(e,t));this.updateAllRowCtrls(),this.gridBodyCtrl.updateRowCount()},t.prototype.dispatchDisplayedRowsChanged=function(){var e={type:Ve.EVENT_DISPLAYED_ROWS_CHANGED};this.eventService.dispatchEvent(e)},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.isPinningLeft(),t=this.columnModel.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},t.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];this.getFullWidthRowCtrls().forEach((function(t){var n=t.getRowNode().rowIndex;e.push(n.toString())})),this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redrawAfterScroll()},t.prototype.getFullWidthRowCtrls=function(e){var t=this,n=this.mapRowNodes(e);return _(this.rowCtrlsByRowIndex).filter((function(e){if(!e.isFullWidth())return!1;var o=e.getRowNode();return!(null!=n&&!t.isRowInMap(o,n))}))},t.prototype.refreshFullWidthRows=function(e){var t=[],n=!!e,o=n?{}:void 0;n&&o&&e.forEach((function(e){return o[e.id]=!0})),this.getFullWidthRowCtrls().forEach((function(e){var r=e.getRowNode();if(n&&o){var i=r.level>0&&r.parent?r.parent.id:void 0;if(!o[r.id]&&!o[i])return}if(!e.refreshFullWidth()){var s=e.getRowNode().rowIndex;t.push(s.toString())}})),this.removeRowCtrls(t),this.redrawAfterScroll()},t.prototype.createOrUpdateRowCtrl=function(e,t,n,o){var i,s=this.rowCtrlsByRowIndex[e];if(s||r(i=this.paginationProxy.getRow(e))&&r(t)&&t[i.id]&&i.alreadyRendered&&(s=t[i.id],t[i.id]=null),!s){if(i||(i=this.paginationProxy.getRow(e)),!r(i))return;s=this.createRowCon(i,n,o)}return i&&(i.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=s,s},t.prototype.destroyRowCtrls=function(e,t){var n=this,o=[];f(e,(function(e,r){r&&(n.cachedRowCtrls&&r.isCacheable()?n.cachedRowCtrls.addRow(r):(r.destroyFirstPass(),t?(n.zombieRowCtrls[r.getInstanceId()]=r,o.push((function(){r.destroySecondPass(),delete n.zombieRowCtrls[r.getInstanceId()]}))):r.destroySecondPass()))})),t&&(o.push((function(){n.updateAllRowCtrls(),n.dispatchDisplayedRowsChanged()})),M(o))},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.gridOptionsWrapper.getRowBufferInPixels(),r=this.ctrlsService.getGridBodyCtrl(),i=this.gridOptionsWrapper.isSuppressRowVirtualisation(),s=!1,a=void 0,l=void 0;do{var u=this.paginationProxy.getPixelOffset(),c=this.paginationProxy.getCurrentPagePixelRange(),p=c.pageFirstPixel,d=c.pageLastPixel,h=this.rowContainerHeightService.getDivStretchOffset();if(i)a=p+h,l=d+h;else{var f=r.getScrollFeature().getVScrollPosition(),g=f.top,m=f.bottom;a=Math.max(g+u-o,p)+h,l=Math.min(m+u+o,d)+h}s=this.ensureAllRowsInRangeHaveHeightsCalculated(a,l)}while(s);var v=this.paginationProxy.getRowIndexAtPixel(a),y=this.paginationProxy.getRowIndexAtPixel(l),C=this.paginationProxy.getPageFirstRow(),w=this.paginationProxy.getPageLastRow();v<C&&(v=C),y>w&&(y=w),e=v,t=y}else e=0,t=-1;var _=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_NORMAL,b=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),E=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);_&&!b&&t-e>E&&(t=e+E);var S=e!==this.firstRenderedRow,R=t!==this.lastRenderedRow;if(S||R){this.firstRenderedRow=e,this.lastRenderedRow=t;var O={type:Ve.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(O)}if(this.paginationProxy.isRowsToRender()){var T={type:Ve.EVENT_FIRST_DATA_RENDERED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};window.setTimeout((function(){return n.eventService.dispatchEventOnce(T)}),50)}},t.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,t){var n=this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1);return n&&this.updateContainerHeights(),n},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.doNotUnVirtualiseRow=function(e){var t=e.getRowNode(),n=this.focusService.isRowNodeFocused(t),o=e.isEditing(),r=t.detail;return!!(n||o||r)&&!!this.paginationProxy.isRowPresent(t)},t.prototype.createRowCon=function(e,t,n){var o=this.cachedRowCtrls?this.cachedRowCtrls.getRow(e):null;if(o)return o;var r=this.gridOptionsWrapper.isSuppressAnimationFrame(),i=n&&!r&&!this.printLayout;return new fl(e,this.beans,t,i,this.printLayout)},t.prototype.getRenderedNodes=function(){var e=this.rowCtrlsByRowIndex;return Object.keys(e).map((function(t){return e[t].getRowNode()}))},t.prototype.getRowByPosition=function(e){var t;switch(e.rowPinned){case oe.PINNED_TOP:t=this.topRowCtrls[e.rowIndex];break;case oe.PINNED_BOTTOM:t=this.bottomRowCtrls[e.rowIndex];break;default:t=this.rowCtrlsByRowIndex[e.rowIndex]}return t},t.prototype.getRowNode=function(e){switch(e.rowPinned){case oe.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case oe.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.isRangeInRenderedViewport=function(e,t){if(null==e||null==t)return!1;var n=e>this.lastRenderedRow;return!(t<this.firstRenderedRow)&&!n},pp([K("paginationProxy")],t.prototype,"paginationProxy",void 0),pp([K("columnModel")],t.prototype,"columnModel",void 0),pp([K("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),pp([K("rowModel")],t.prototype,"rowModel",void 0),pp([K("focusService")],t.prototype,"focusService",void 0),pp([K("columnApi")],t.prototype,"columnApi",void 0),pp([K("gridApi")],t.prototype,"gridApi",void 0),pp([K("beans")],t.prototype,"beans",void 0),pp([K("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),pp([q("ctrlsService")],t.prototype,"ctrlsService",void 0),pp([z],t.prototype,"postConstruct",null),t=pp([Y("rowRenderer")],t)}(Fe),gp=function(){function e(e){this.entriesMap={},this.entriesList=[],this.maxCount=e}return e.prototype.addRow=function(e){if(this.entriesMap[e.getRowNode().id]=e,this.entriesList.push(e),e.setCached(!0),this.entriesList.length>this.maxCount){var t=this.entriesList[0];t.destroyFirstPass(),t.destroySecondPass(),this.removeFromCache(t)}},e.prototype.getRow=function(e){if(null==e||null==e.id)return null;var t=this.entriesMap[e.id];return t?(this.removeFromCache(t),t.setCached(!1),t.getRowNode()!=e?null:t):null},e.prototype.removeFromCache=function(e){var t=e.getRowNode().id;delete this.entriesMap[t],de(this.entriesList,e)},e.prototype.getEntries=function(){return this.entriesList},e}(),mp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),vp=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},yp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mp(t,e),t.prototype.formatValue=function(e,t,n,o,r){void 0===r&&(r=!0);var i,s=null,a=e.getColDef();if(o?i=o:r&&(i=t&&t.rowPinned&&a.pinnedRowValueFormatter?a.pinnedRowValueFormatter:a.valueFormatter),i){var l={value:n,node:t,data:t?t.data:null,colDef:a,column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};s=this.expressionService.evaluate(i,l)}else if(a.refData)return a.refData[n]||"";return null==s&&Array.isArray(n)&&(s=n.join(", ")),s},vp([K("expressionService")],t.prototype,"expressionService",void 0),t=vp([Y("valueFormatterService")],t)}(Fe),Cp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),wp=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},_p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Cp(t,e),t.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},t.prototype.isEmpty=function(e){return s(e===oe.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows)},t.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},t.prototype.getRowAtPixel=function(e,t){var n=t===oe.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(s(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},t.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:Ve.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var t={type:Ve.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.createNodesFromData=function(e,t){var n=this,o=[];if(e){var r=0;e.forEach((function(e,i){var s=new Yi(n.beans);s.data=e;var a=t?Yi.ID_PREFIX_TOP_PINNED:Yi.ID_PREFIX_BOTTOM_PINNED;s.id=a+i,s.rowPinned=t?oe.PINNED_TOP:oe.PINNED_BOTTOM,s.setRowTop(r),s.setRowHeight(n.gridOptionsWrapper.getRowHeightForNode(s).height),s.setRowIndex(i),r+=s.rowHeight,o.push(s)}))}return o},t.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},t.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},t.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},t.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},t.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},t.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},t.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},t.prototype.forEachPinnedTopRow=function(e){s(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},t.prototype.forEachPinnedBottomRow=function(e){s(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},t.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},t.prototype.getTotalHeight=function(e){if(!e||0===e.length)return 0;var t=ue(e);return t.rowTop+t.rowHeight},wp([K("columnApi")],t.prototype,"columnApi",void 0),wp([K("gridApi")],t.prototype,"gridApi",void 0),wp([K("beans")],t.prototype,"beans",void 0),wp([z],t.prototype,"init",null),t=wp([Y("pinnedRowModel")],t)}(Fe);(Qc=t.ServerSideTransactionResultStatus||(t.ServerSideTransactionResultStatus={})).Applied="Applied",Qc.StoreNotFound="StoreNotFound",Qc.StoreLoading="StoreLoading",Qc.StoreWaitingToLoad="StoreWaitingToLoad",Qc.StoreLoadingFailed="StoreLoadingFailed",Qc.StoreWrongType="StoreWrongType",Qc.Cancelled="Cancelled";var bp,Ep=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}(),Sp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Rp=function(e){function t(n){var o=e.call(this)||this;return o.state=t.STATE_WAITING_TO_LOAD,o.version=0,o.id=n,o}return Sp(t,e),t.prototype.getId=function(){return this.id},t.prototype.load=function(){this.state=t.STATE_LOADING,this.loadFromDatasource()},t.prototype.getVersion=function(){return this.version},t.prototype.setStateWaitingToLoad=function(){this.version++,this.state=t.STATE_WAITING_TO_LOAD},t.prototype.getState=function(){return this.state},t.prototype.pageLoadFailed=function(e){this.isRequestMostRecentAndLive(e)&&(this.state=t.STATE_FAILED,this.processServerFail()),this.dispatchLoadCompleted(!1)},t.prototype.success=function(e,t){this.successCommon(e,t)},t.prototype.pageLoaded=function(e,t,n){this.successCommon(e,{rowData:t,rowCount:n})},t.prototype.isRequestMostRecentAndLive=function(e){var t=e===this.version,n=this.isAlive();return t&&n},t.prototype.successCommon=function(e,n){this.dispatchLoadCompleted(),this.isRequestMostRecentAndLive(e)&&(this.state=t.STATE_LOADED,this.processServerResult(n))},t.prototype.dispatchLoadCompleted=function(e){void 0===e&&(e=!0);var n={type:t.EVENT_LOAD_COMPLETE,success:e,block:this};this.dispatchEvent(n)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_WAITING_TO_LOAD="needsLoading",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(Fe),Op=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Tp=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},Pp=function(e,t){return function(n,o){t(n,o,e)}},Ap=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activeBlockLoadsCount=0,t.blocks=[],t.active=!0,t}var n;return Op(t,e),n=t,t.prototype.postConstruct=function(){this.maxConcurrentRequests=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests();var e=this.gridOptionsWrapper.getBlockLoadDebounceMillis();e&&e>0&&(this.checkBlockToLoadDebounce=Wo.debounce(this.performCheckBlocksToLoad.bind(this),e))},t.prototype.setBeans=function(e){this.logger=e.create("RowNodeBlockLoader")},t.prototype.addBlock=function(e){this.blocks.push(e),e.addEventListener(Rp.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},t.prototype.removeBlock=function(e){Wo.removeFromArray(this.blocks,e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.active=!1},t.prototype.loadComplete=function(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),0==this.activeBlockLoadsCount&&this.dispatchEvent({type:n.BLOCK_LOADER_FINISHED_EVENT})},t.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},t.prototype.performCheckBlocksToLoad=function(){if(this.active)if(this.printCacheStatus(),null!=this.maxConcurrentRequests&&this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log("checkBlockToLoad: max loads exceeded");else{var e=null;this.blocks.forEach((function(t){t.getState()===Rp.STATE_WAITING_TO_LOAD&&(e=t)})),e&&(e.load(),this.activeBlockLoadsCount++,this.printCacheStatus())}},t.prototype.getBlockState=function(){var e={};return this.blocks.forEach((function(t){var n=t.getBlockStateJson(),o=n.id,r=n.state;e[o]=r})),e},t.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},t.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},t.BLOCK_LOADER_FINISHED_EVENT="blockLoaderFinished",Tp([z],t.prototype,"postConstruct",null),Tp([Pp(0,Q("loggerFactory"))],t.prototype,"setBeans",null),t=n=Tp([Y("rowNodeBlockLoader")],t)}(Fe),Dp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),xp=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},Np=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 Dp(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addManagedListener(this.eventService,Ve.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(this.gridOptionsWrapper,"paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,t,n,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:Ve.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,keepRenderedRows:!!e&&e.keepRenderedRows,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.onPaginationPageSizeChanged=function(){this.calculatePages();var e={type:Ve.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.goToPage=function(e){if(this.active&&this.currentPage!==e){this.currentPage=e;var t={type:Ve.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 i(this.topRowBounds)||i(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},t.prototype.getCurrentPagePixelRange=function(){return{pageFirstPixel:this.topRowBounds?this.topRowBounds.rowTop:0,pageLastPixel:this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0}},t.prototype.isRowPresent=function(e){return!!this.rowModel.isRowPresent(e)&&(e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex)},t.prototype.isEmpty=function(){return this.rowModel.isEmpty()},t.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},t.prototype.getNodesInRangeForSelection=function(e,t){return this.rowModel.getNodesInRangeForSelection(e,t)},t.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},t.prototype.getType=function(){return this.rowModel.getType()},t.prototype.getRowBounds=function(e){var t=this.rowModel.getRowBounds(e);return t.rowIndex=e,t},t.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},t.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},t.prototype.getRowCount=function(){return this.rowModel.getRowCount()},t.prototype.getPageForIndex=function(e){return Math.floor(e/this.pageSize)},t.prototype.goToPageWithIndex=function(e){if(this.active){var t=this.getPageForIndex(e);this.goToPage(t)}},t.prototype.isRowInPage=function(e){return!this.active||this.getPageForIndex(e.rowIndex)===this.currentPage},t.prototype.isLastPageFound=function(){return this.rowModel.isLastRowIndexKnown()},t.prototype.getCurrentPage=function(){return this.currentPage},t.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},t.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},t.prototype.goToFirstPage=function(){this.goToPage(0)},t.prototype.goToLastPage=function(){var e=this.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)},t.prototype.getPageSize=function(){return this.pageSize},t.prototype.getTotalPages=function(){return this.totalPages},t.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),(null==this.pageSize||this.pageSize<1)&&(this.pageSize=100)},t.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.setPixelOffset(r(this.topRowBounds)?this.topRowBounds.rowTop:0)},t.prototype.setPixelOffset=function(e){this.pixelOffset!==e&&(this.pixelOffset=e,this.eventService.dispatchEvent({type:Ve.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},t.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},t.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0)this.setZeroRows();else{var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!fo(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}}},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),(!fo(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},xp([K("rowModel")],t.prototype,"rowModel",void 0),xp([K("columnApi")],t.prototype,"columnApi",void 0),xp([K("gridApi")],t.prototype,"gridApi",void 0),xp([z],t.prototype,"postConstruct",null),t=xp([Y("paginationProxy")],t)}(Fe),Mp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Ip=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},Lp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mp(t,e),t.prototype.processAllCellClasses=function(e,t,n,o){this.processClassRules(e.cellClassRules,t,n,o),this.processStaticCellClasses(e,t,n)},t.prototype.processClassRules=function(e,t,n,o){if(null!=e){for(var r=Object.keys(e),i={},s={},a=function(n){var o,a=r[n],u=e[a];"string"===typeof u?o=l.expressionService.evaluate(u,t):"function"===typeof u&&(o=u(t)),a.split(" ").forEach((function(e){null!=e&&""!=e.trim()&&(o?i[e]=!0:s[e]=!0)}))},l=this,u=0;u<r.length;u++)a(u);o&&Object.keys(s).forEach(o),Object.keys(i).forEach(n)}},t.prototype.getStaticCellClasses=function(e,t){var n,o=e.cellClass;if(!o)return[];"function"===typeof o?n=o(t):n=o;return"string"===typeof n&&(n=[n]),n||[]},t.prototype.processStaticCellClasses=function(e,t,n){this.getStaticCellClasses(e,t).forEach((function(e){n(e)}))},Ip([K("expressionService")],t.prototype,"expressionService",void 0),t=Ip([Y("stylingService")],t)}(Fe),Fp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),kp=function(e){function t(t){return e.call(this,t,"ag-radio-button","radio")||this}return Fp(t,e),t.prototype.isSelected=function(){return this.eInput.checked},t.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},t.prototype.addInputListeners=function(){e.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,Ve.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}(ic),Gp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Hp=function(e){function t(t){return e.call(this,t,"ag-toggle-button")||this}return Gp(t,e),t.prototype.setValue=function(t,n){return e.prototype.setValue.call(this,t,n),this.addOrRemoveCssClass("ag-selected",this.getValue()),this},t}(ic),Bp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Vp=function(e){function t(t,n,o){return void 0===n&&(n="ag-text-field"),void 0===o&&(o="text"),e.call(this,t,n,o)||this}return Bp(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},t.prototype.setValue=function(t,n){var o=e.prototype.setValue.call(this,t,n);return this.eInput.value!==t&&(this.eInput.value=r(t)?t:""),o},t.prototype.preventDisallowedCharacters=function(){var e=new RegExp("["+this.config.allowedCharPattern+"]");this.addManagedListener(this.eInput,"keypress",(function(t){t.key&&!e.test(t.key)&&t.preventDefault()})),this.addManagedListener(this.eInput,"paste",(function(t){var n,o=null===(n=t.clipboardData)||void 0===n?void 0:n.getData("text");o&&o.split("").some((function(t){return!e.test(t)}))&&t.preventDefault()}))},t}(Fr),Wp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),jp=function(e){function t(t){return e.call(this,t,"ag-text-area",null,"textarea")||this}return Wp(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}(Fr),Up=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),zp=function(e){function t(t){return e.call(this,t,"ag-number-field","number")||this}return Up(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",(function(){var e=parseFloat(t.eInput.value),n=isNaN(e)?"":t.normalizeValue(e.toString());t.value!==n&&t.setValue(n)})),this.eInput.step="any"},t.prototype.normalizeValue=function(e){if(""===e)return"";this.precision&&(e=this.adjustPrecision(e));var t=parseFloat(e);return null!=this.min&&t<this.min?e=this.min.toString():null!=this.max&&t>this.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e){if(this.precision){var t=parseFloat(e).toFixed(this.precision);e=parseFloat(t).toString()}return e},t.prototype.setMin=function(e){return this.min===e||(this.min=e,Mn(this.eInput,"min",e)),this},t.prototype.setMax=function(e){return this.max===e||(this.max=e,Mn(this.eInput,"max",e)),this},t.prototype.setPrecision=function(e){return this.precision=e,this},t.prototype.setStep=function(e){return this.step===e||(this.step=e,Mn(this.eInput,"step",e)),this},t.prototype.setValue=function(t,n){return(t=this.adjustPrecision(t))!=this.normalizeValue(t)?this:e.prototype.setValue.call(this,t,n)},t}(Vp),Zp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Yp=function(e){function t(t){return e.call(this,t,"ag-range-field","range")||this}return Zp(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;this.addManagedListener(this.eInput,"input",(function(t){var n=t.target.value;e.setValue(n)}))},t.prototype.setMinValue=function(e){return this.min=e,this.eInput.setAttribute("min",e.toString()),this},t.prototype.setMaxValue=function(e){return this.max=e,this.eInput.setAttribute("max",e.toString()),this},t.prototype.setStep=function(e){return this.eInput.setAttribute("step",e.toString()),this},t.prototype.setValue=function(t,n){null!=this.min&&(t=Math.max(parseFloat(t),this.min).toString()),null!=this.max&&(t=Math.min(parseFloat(t),this.max).toString());var o=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,o},t}(Fr),Kp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),qp=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},Xp=function(e){function t(n){var o=e.call(this,n,t.TEMPLATE)||this;return o.labelAlignment="top",o}return Kp(t,e),t.prototype.init=function(){this.eSlider.addCssClass("ag-slider-field")},t.prototype.onValueChange=function(e){var t=this,n=Sr.EVENT_CHANGED;return this.addManagedListener(this.eText,n,(function(){var n=parseFloat(t.eText.getValue());t.eSlider.setValue(n.toString(),!0),e(n||0)})),this.addManagedListener(this.eSlider,n,(function(){var n=t.eSlider.getValue();t.eText.setValue(n,!0),e(parseFloat(n))})),this},t.prototype.setSliderWidth=function(e){return this.eSlider.setWidth(e),this},t.prototype.setTextFieldWidth=function(e){return this.eText.setWidth(e),this},t.prototype.setMinValue=function(e){return this.eSlider.setMinValue(e),this.eText.setMin(e),this},t.prototype.setMaxValue=function(e){return this.eSlider.setMaxValue(e),this.eText.setMax(e),this},t.prototype.getValue=function(){return this.eText.getValue()},t.prototype.setValue=function(e){return this.getValue()===e||(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),this.dispatchEvent({type:Sr.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>',qp([nr("eLabel")],t.prototype,"eLabel",void 0),qp([nr("eSlider")],t.prototype,"eSlider",void 0),qp([nr("eText")],t.prototype,"eText",void 0),qp([z],t.prototype,"init",null),t}(br),Qp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Jp=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},$p=function(e){function t(n){var o=e.call(this,n,t.TEMPLATE)||this;return o.radius=0,o.offsetX=0,o.offsetY=0,o}return Qp(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:function(e){t.parentCircleRect=t.eParentCircle.getBoundingClientRect()},onDragging:function(e){return t.calculateAngleDrag(e)},onDragStop:function(){}},this.dragService.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(""+this.degrees).onValueChange((function(e){null!=e&&""!==e||(e="0"),e=t.eAngleValue.normalizeValue(e);var n=parseFloat(e);n>180&&(n-=360),t.setValue(n)})),this.updateNumberInput(),r(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addManagedListener(this,Sr.EVENT_CHANGED,(function(){var e=t.gridOptionsWrapper.getDocument();t.eAngleValue.getInputElement().contains(e.activeElement)||t.updateNumberInput()}))},t.prototype.updateNumberInput=function(){var e=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(e.toString())},t.prototype.positionChildCircle=function(e){var t=this.parentCircleRect||{width:24,height:24},n=this.eChildCircle,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.addManagedListener(this,Sr.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:Sr.EVENT_CHANGED})),this},t.prototype.setWidth=function(e){return Rn(this.getGui(),e),this},t.prototype.destroy=function(){this.dragService.removeDragSource(this.dragListener),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-angle-select">\n            <div ref="eLabel"></div>\n            <div class="ag-wrapper ag-angle-select-wrapper">\n                <div ref="eAngleSelectField" class="ag-angle-select-field">\n                    <div ref="eParentCircle" class="ag-angle-select-parent-circle">\n                        <div ref="eChildCircle" class="ag-angle-select-child-circle"></div>\n                    </div>\n                </div>\n                <ag-input-number-field ref="eAngleValue"></ag-input-number-field>\n            </div>\n        </div>',Jp([nr("eLabel")],t.prototype,"eLabel",void 0),Jp([nr("eParentCircle")],t.prototype,"eParentCircle",void 0),Jp([nr("eChildCircle")],t.prototype,"eChildCircle",void 0),Jp([nr("eAngleValue")],t.prototype,"eAngleValue",void 0),Jp([K("dragService")],t.prototype,"dragService",void 0),t}(br),ed=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),td=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},nd=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},od=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 ed(t,e),t.prototype.postConstruct=function(){var e=this.getGui();this.initRecentColors(),this.addManagedListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addManagedListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumHueMove.bind(this)),this.addManagedListener(this.spectrumAlpha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addManagedListener(document,"mouseup",this.onMouseUp.bind(this)),this.addManagedListener(this.recentColors,"click",this.onRecentColorClick.bind(this))},t.prototype.refreshSpectrumRect=function(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()},t.prototype.refreshHueRect=function(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()},t.prototype.refreshAlphaRect=function(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()},t.prototype.onSpectrumDraggerDown=function(e){this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(e)},t.prototype.onSpectrumDraggerMove=function(e){this.isSpectrumDragging&&this.moveDragger(e)},t.prototype.onSpectrumHueDown=function(e){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(e)},t.prototype.onSpectrumHueMove=function(e){this.isSpectrumHueDragging&&this.moveHueSlider(e)},t.prototype.onSpectrumAlphaDown=function(e){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(e)},t.prototype.onSpectrumAlphaMove=function(e){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(e)},t.prototype.onMouseUp=function(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1},t.prototype.moveDragger=function(e){var t=this.spectrumValRect;if(t){var n=e.clientX-t.left,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=Ot.fromHSB(360*this.H,this.S,this.B,this.A),t=Ot.fromHSB(360*this.H,1,1),n=e.toRgbaString(),o=this.picker;Ot.fromString(o.getValue()).toRgbaString()!==n&&(this.colorChanged=!0),o.setValue(n),this.spectrumColor.style.backgroundColor=t.toRgbaString(),this.spectrumDragger.style.backgroundColor=n},t.prototype.setSpectrumValue=function(e,t){var n=this.spectrumValRect||this.refreshSpectrumRect();if(n){var 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=Ot.fromString(e),n=nd(t.toHSB(),3),o=n[0],r=n[1],i=n[2];this.H=(isNaN(o)?0:o)/360,this.A=t.a;var s=this.spectrumHueRect||this.refreshHueRect(),a=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-s.width+"px",this.spectrumAlphaSlider.style.left=this.A*a.width+"px",this.setSpectrumValue(r,i)},t.prototype.onRecentColorClick=function(e){var n=e.target;if(r(n.id)){var o=parseInt(n.id,10);this.setValue(t.recentColors[o]),this.destroy()}},t.prototype.addRecentColor=function(){var e=Ot.fromHSB(360*this.H,this.S,this.B,this.A).toRgbaString(),n=t.recentColors;this.colorChanged&&n[0]!==e&&(n=n.filter((function(t){return t!=e})),(n=[e].concat(n)).length>t.maxRecentColors&&(n=n.slice(0,t.maxRecentColors)),t.recentColors=n)},t.prototype.destroy=function(){this.addRecentColor(),e.prototype.destroy.call(this)},t.maxRecentColors=8,t.recentColors=[],t.TEMPLATE='<div class="ag-color-panel">\n            <div ref="spectrumColor" class="ag-spectrum-color">\n                <div class="ag-spectrum-sat ag-spectrum-fill">\n                    <div ref="spectrumVal" class="ag-spectrum-val ag-spectrum-fill">\n                        <div ref="spectrumDragger" class="ag-spectrum-dragger"></div>\n                    </div>\n                </div>\n            </div>\n            <div class="ag-spectrum-tools">\n                <div ref="spectrumHue" class="ag-spectrum-hue ag-spectrum-tool">\n                    <div class="ag-spectrum-hue-background"></div>\n                    <div ref="spectrumHueSlider" class="ag-spectrum-slider"></div>\n                </div>\n                <div ref="spectrumAlpha" class="ag-spectrum-alpha ag-spectrum-tool">\n                    <div class="ag-spectrum-alpha-background"></div>\n                    <div ref="spectrumAlphaSlider" class="ag-spectrum-slider"></div>\n                </div>\n                <div ref="recentColors" class="ag-recent-colors"></div>\n            </div>\n        </div>',td([nr("spectrumColor")],t.prototype,"spectrumColor",void 0),td([nr("spectrumVal")],t.prototype,"spectrumVal",void 0),td([nr("spectrumDragger")],t.prototype,"spectrumDragger",void 0),td([nr("spectrumHue")],t.prototype,"spectrumHue",void 0),td([nr("spectrumHueSlider")],t.prototype,"spectrumHueSlider",void 0),td([nr("spectrumAlpha")],t.prototype,"spectrumAlpha",void 0),td([nr("spectrumAlphaSlider")],t.prototype,"spectrumAlphaSlider",void 0),td([nr("recentColors")],t.prototype,"recentColors",void 0),td([z],t.prototype,"postConstruct",null),t}(tr),rd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),id=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},sd=function(e){function t(n){var o=e.call(this,t.getTemplate(n))||this;return o.closable=!0,o.config=n,o}return rd(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=void 0===s?250:s,l=t.width,u=t.minHeight,c=void 0===u?250:u,p=t.height,d=t.centered,h=t.popup,f=t.x,g=t.y;this.positionableFeature=new sp(this.getGui(),{minWidth:a,width:l,minHeight:c,height:p,centered:d,x:f,y:g,popup:h,calculateTopBuffer:function(){return e.positionableFeature.getHeight()-e.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var m=this.getGui();n&&this.setBodyComponent(n),r?this.eTitleBar.classList.add("ag-hidden"):(i&&this.setTitle(i),this.setClosable(null!=o?o:this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",(function(t){var n=e.gridOptionsWrapper.getDocument();if(m.contains(t.relatedTarget)||m.contains(n.activeElement)||e.eTitleBarButtons.contains(t.target))t.preventDefault();else{var o=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");o&&o.focus()}})),h&&this.positionableFeature.isPositioned()||(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")},t.prototype.renderComponent=function(){var e=this,t=this.getGui();t.focus(),this.close=function(){t.parentElement.removeChild(t),e.destroy()}},t.prototype.getHeight=function(){return this.positionableFeature.getHeight()},t.prototype.setHeight=function(e){this.positionableFeature.setHeight(e)},t.prototype.getWidth=function(){return this.positionableFeature.getWidth()},t.prototype.setWidth=function(e){this.positionableFeature.setWidth(e)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var n=this.closeButtonComp=new tr(t.CLOSE_BTN_TEMPLATE);this.getContext().createBean(n);var o=n.getGui(),r=Ao("close",this.gridOptionsWrapper);r.classList.add("ag-panel-title-bar-button-icon"),o.appendChild(r),this.addTitleBarButton(n),n.addManagedListener(o,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){(o=this.closeButtonComp.getGui()).parentElement.removeChild(o),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}},t.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},t.prototype.addTitleBarButton=function(e,t){var n=this.eTitleBarButtons,o=n.children,r=o.length;null==t&&(t=r),t=Math.max(0,Math.min(t,r)),e.addCssClass("ag-panel-title-bar-button");var i=e.getGui();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 rn(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return sn(this.eContentWrapper)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.close()},t.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));var t=this.getGui();t&&t.offsetParent&&this.close(),e.prototype.destroy.call(this)},t.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',id([nr("eContentWrapper")],t.prototype,"eContentWrapper",void 0),id([nr("eTitleBar")],t.prototype,"eTitleBar",void 0),id([nr("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),id([nr("eTitle")],t.prototype,"eTitle",void 0),id([z],t.prototype,"postConstruct",null),t}(tr),ad=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),ld=function(){return ld=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},ld.apply(this,arguments)},ud=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},cd=function(e){function t(t){var n=e.call(this,ld(ld({},t),{popup:!0}))||this;return n.isMaximizable=!1,n.isMaximized=!1,n.maximizeListeners=[],n.resizeListenerDestroy=null,n.lastPosition={x:0,y:0,width:0,height:0},n}return ad(t,e),t.prototype.postConstruct=function(){var t=this,n=this.getGui(),o=this.config,r=o.movable,i=o.resizable,s=o.maximizable;this.addCssClass("ag-dialog"),e.prototype.postConstruct.call(this),this.addManagedListener(n,"focusin",(function(e){n.contains(e.relatedTarget)||t.popupService.bringPopupToFront(n)})),r&&this.setMovable(r),s&&this.setMaximizable(s),i&&this.setResizable(i)},t.prototype.renderComponent=function(){var e=this.getGui(),t=this.config,n=t.alwaysOnTop,o=t.modal,r=t.title,i=this.gridOptionsWrapper.getLocaleTextFunc(),s=this.popupService.addPopup({modal:o,eChild:e,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:n,ariaLabel:r||i("ariaLabelDialog","Dialog")});s&&(this.close=s.hideFunc)},t.prototype.toggleMaximize=function(){var e=this.positionableFeature.getPosition();if(this.isMaximized){var t=this.lastPosition,n=t.x,o=t.y,r=t.width,i=t.height;this.setWidth(r),this.setHeight(i),this.positionableFeature.offsetElement(n,o)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=e.x,this.lastPosition.y=e.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},t.prototype.refreshMaximizeIcon=function(){$t(this.maximizeIcon,!this.isMaximized),$t(this.minimizeIcon,this.isMaximized)},t.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach((function(e){return e()})),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},t.prototype.destroy=function(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),e.prototype.destroy.call(this)},t.prototype.setResizable=function(e){this.positionableFeature.setResizable(e)},t.prototype.setMovable=function(e){this.positionableFeature.setMovable(e,this.eTitleBar)},t.prototype.setMaximizable=function(e){var t=this;if(!e)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var n=this.eTitleBar;if(n&&e!==this.isMaximizable){var o=this.maximizeButtonComp=this.createBean(new tr('<div class="ag-dialog-button"></span>')),r=o.getGui();r.appendChild(this.maximizeIcon=Ao("maximize",this.gridOptionsWrapper)),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),r.appendChild(this.minimizeIcon=Ao("minimize",this.gridOptionsWrapper)),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon","ag-hidden"),o.addManagedListener(r,"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(o,0),this.maximizeListeners.push(this.addManagedListener(n,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",(function(){t.isMaximized=!1,t.refreshMaximizeIcon()}))}},ud([K("popupService")],t.prototype,"popupService",void 0),t}(sd),pd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),dd=function(e){function t(t){var n=e.call(this,t,"ag-color-picker","colorPicker")||this;return t&&t.color&&(n.value=t.color),n}return pd(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.value&&this.setValue(this.value)},t.prototype.showPicker=function(){var e=this,t=this.getGui().getBoundingClientRect(),n=this.createBean(new cd({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:t.right-190,y:t.top-250}));this.isPickerDisplayed=!0,n.addCssClass("ag-color-dialog"),Xn(this.eWrapper,!0);var o=this.createBean(new od({picker:this}));return o.addDestroyFunc((function(){n.isAlive()&&e.destroyBean(n)})),n.setParentComponent(this),n.setBodyComponent(o),o.setValue(this.getValue()),n.addDestroyFunc((function(){e.isDestroyingPicker?e.isDestroyingPicker=!1:(e.isDestroyingPicker=!0,o.isAlive()&&e.destroyBean(o)),e.isAlive()&&(Xn(e.eWrapper,!1),e.getFocusableElement().focus()),e.isPickerDisplayed=!1})),n},t.prototype.setValue=function(t){return this.value===t?this:(this.eDisplayField.style.backgroundColor=t,e.prototype.setValue.call(this,t))},t.prototype.getValue=function(){return this.value},t}(Tr),hd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),fd=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},gd=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 hd(t,e),t.getTemplate=function(e){var t=e.cssIdentifier||"default";return'<div class="ag-group ag-'+t+'-group" role="presentation">\n            <div class="ag-group-title-bar ag-'+t+'-group-title-bar ag-unselectable" ref="eTitleBar" role="button">\n                <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupOpenedIcon" role="presentation"></span>\n                <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupClosedIcon" role="presentation"></span>\n                <span ref="eTitle" class="ag-group-title ag-'+t+'-group-title"></span>\n            </div>\n            <div ref="eToolbar" class="ag-group-toolbar ag-'+t+'-group-toolbar">\n                <ag-checkbox ref="cbGroupEnabled"></ag-checkbox>\n            </div>\n            <div ref="eContainer" class="ag-group-container ag-group-container-'+(e.direction||"vertical")+" ag-"+t+'-group-container"></div>\n        </div>'},t.prototype.postConstruct=function(){if(this.items.length){var e=this.items;this.items=[],this.addItems(e)}var t=this.gridOptionsWrapper.getLocaleTextFunc();this.cbGroupEnabled.setLabel(t("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshAriaStatus(),this.refreshChildDisplay()},t.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(Po("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(Po("columnSelectOpen",this.gridOptionsWrapper,null)),this.addManagedListener(this.eTitleBar,"click",(function(){return e.toggleGroupExpand()})),this.addManagedListener(this.eTitleBar,"keydown",(function(t){switch(t.key){case dr.ENTER:case dr.SPACE:t.preventDefault(),e.toggleGroupExpand();break;case dr.RIGHT:case dr.LEFT:t.preventDefault(),e.toggleGroupExpand(t.key===dr.RIGHT)}}))},t.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||Xn(this.eTitleBar,this.expanded)},t.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;$t(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),$t(this.eGroupOpenedIcon,e&&this.expanded),$t(this.eGroupClosedIcon,e&&!this.expanded)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.setAlignItems=function(e){this.alignItems!==e&&this.removeCssClass("ag-group-item-alignment-"+this.alignItems),this.alignItems=e;var t="ag-group-item-alignment-"+this.alignItems;return this.addCssClass(t),this},t.prototype.toggleGroupExpand=function(e){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),$t(this.eContainer,!0),this):(e=null!=e?e:!this.expanded,this.expanded===e||(this.expanded=e,this.refreshAriaStatus(),this.refreshChildDisplay(),$t(this.eContainer,e),this.dispatchEvent({type:this.expanded?t.EVENT_EXPANDED:t.EVENT_COLLAPSED})),this)},t.prototype.addItems=function(e){var t=this;e.forEach((function(e){return t.addItem(e)}))},t.prototype.addItem=function(e){var t=this.eContainer,n=e instanceof tr?e.getGui():e;n.classList.add("ag-group-item","ag-"+this.cssIdentifier+"-group-item"),t.appendChild(n),this.items.push(n)},t.prototype.hideItem=function(e,t){this.items[t].classList.toggle("ag-hidden",e)},t.prototype.setTitle=function(e){return this.eTitle.innerText=e,this},t.prototype.addCssClassToTitleBar=function(e){this.eTitleBar.classList.add(e)},t.prototype.setEnabled=function(e,t){return this.enabled=e,this.refreshDisabledStyles(),this.toggleGroupExpand(e),t||this.cbGroupEnabled.setValue(e),this},t.prototype.isEnabled=function(){return this.enabled},t.prototype.onEnableChange=function(e){var t=this;return this.cbGroupEnabled.onValueChange((function(n){t.setEnabled(n,!0),e(n)})),this},t.prototype.hideEnabledCheckbox=function(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},t.prototype.hideOpenCloseIcons=function(e){return this.suppressOpenCloseIcons=e,e&&this.toggleGroupExpand(!0),this},t.prototype.refreshDisabledStyles=function(){this.addOrRemoveCssClass("ag-disabled",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(this.eTitleBar.classList.add("ag-disabled-group-title-bar"),this.eTitleBar.removeAttribute("tabindex")):(this.eTitleBar.classList.remove("ag-disabled-group-title-bar"),this.eTitleBar.setAttribute("tabindex","0")),this.eContainer.classList.toggle("ag-disabled-group-container",!this.enabled)},t.EVENT_EXPANDED="expanded",t.EVENT_COLLAPSED="collapsed",fd([nr("eTitleBar")],t.prototype,"eTitleBar",void 0),fd([nr("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),fd([nr("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),fd([nr("eToolbar")],t.prototype,"eToolbar",void 0),fd([nr("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),fd([nr("eTitle")],t.prototype,"eTitle",void 0),fd([nr("eContainer")],t.prototype,"eContainer",void 0),fd([z],t.prototype,"postConstruct",null),t}(tr),md=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),vd=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},yd=function(e){function t(t){var n=e.call(this)||this;n.skipTabGuardFocus=!1;var o=t.comp,r=t.eTopGuard,i=t.eBottomGuard,s=t.focusInnerElement,a=t.onFocusIn,l=t.onFocusOut,u=t.shouldStopEventPropagation,c=t.onTabKeyDown,p=t.handleKeyDown,d=t.eFocusableElement;return n.comp=o,n.eTopGuard=r,n.eBottomGuard=i,n.providedFocusInnerElement=s,n.eFocusableElement=d,n.providedFocusIn=a,n.providedFocusOut=l,n.providedShouldStopEventPropagation=u,n.providedOnTabKeyDown=c,n.providedHandleKeyDown=p,n}return md(t,e),t.prototype.postConstruct=function(){var e=this;this.createManagedBean(new mr(this.eFocusableElement,{shouldStopEventPropagation:function(){return e.shouldStopEventPropagation()},onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)},onFocusIn:function(t){return e.onFocusIn(t)},onFocusOut:function(t){return e.onFocusOut(t)}})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach((function(t){return e.addManagedListener(t,"focus",e.onFocus.bind(e))}))},t.prototype.handleKeyDown=function(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)},t.prototype.tabGuardsAreActive=function(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")},t.prototype.shouldStopEventPropagation=function(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()},t.prototype.activateTabGuards=function(){this.comp.setTabIndex(this.getGridTabIndex())},t.prototype.deactivateTabGuards=function(){this.comp.setTabIndex()},t.prototype.onFocus=function(e){if(this.skipTabGuardFocus)this.skipTabGuardFocus=!1;else{var t=e.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t)}},t.prototype.onFocusIn=function(e){this.providedFocusIn&&this.providedFocusIn(e)||this.deactivateTabGuards()},t.prototype.onFocusOut=function(e){this.providedFocusOut&&this.providedFocusOut(e)||this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards()},t.prototype.onTabKeyDown=function(e){var t=this;if(this.providedOnTabKeyDown)this.providedOnTabKeyDown(e);else if(!e.defaultPrevented){var n=this.tabGuardsAreActive();n&&this.deactivateTabGuards();var o=this.getNextFocusableElement(e.shiftKey);n&&setTimeout((function(){return t.activateTabGuards()}),0),o&&(o.focus(),e.preventDefault())}},t.prototype.getGridTabIndex=function(){return this.gridOptionsWrapper.getGridTabIndex()},t.prototype.focusInnerElement=function(e){void 0===e&&(e=!1);var t=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(t.length-1,1)),t.length&&t[e?t.length-1:0].focus()},t.prototype.getNextFocusableElement=function(e){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,e)},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1);var t=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,t.focus()},vd([K("focusService")],t.prototype,"focusService",void 0),vd([z],t.prototype,"postConstruct",null),t}(Fe),Cd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),wd=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},_d=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(wd(arguments[t]));return e},bd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Cd(t,e),t.prototype.initialiseTabGuard=function(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.getFocusableElement();var t=[this.eTopGuard,this.eBottomGuard],n={setTabIndex:function(e){t.forEach((function(t){return null!=e?t.setAttribute("tabIndex",e):t.removeAttribute("tabIndex")}))}};this.addTabGuards(this.eTopGuard,this.eBottomGuard),this.tabGuardCtrl=this.createManagedBean(new yd({comp:n,eTopGuard:this.eTopGuard,eBottomGuard:this.eBottomGuard,eFocusableElement:this.eFocusableElement,onFocusIn:e.onFocusIn,onFocusOut:e.onFocusOut,focusInnerElement:e.focusInnerElement,handleKeyDown:e.handleKeyDown,onTabKeyDown:e.onTabKeyDown,shouldStopEventPropagation:e.shouldStopEventPropagation}))},t.prototype.createTabGuard=function(e){var t=document.createElement("div");return t.classList.add("ag-tab-guard","ag-tab-guard-"+e),Bn(t,"presentation"),t},t.prototype.addTabGuards=function(e,t){this.eFocusableElement.insertAdjacentElement("afterbegin",e),this.eFocusableElement.insertAdjacentElement("beforeend",t)},t.prototype.removeAllChildrenExceptTabGuards=function(){var e=[this.eTopGuard,this.eBottomGuard];dn(this.getFocusableElement()),this.addTabGuards.apply(this,_d(e))},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.tabGuardCtrl.forceFocusOutOfContainer(e)},t.prototype.appendChild=function(t,n){Dn(t)||(t=t.getGui());var o=this.eBottomGuard;o?o.insertAdjacentElement("beforebegin",t):e.prototype.appendChild.call(this,t,n)},t}(tr),Ed=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Sd=function(){return Sd=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},Sd.apply(this,arguments)},Rd=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},Od=function(e){function t(t){void 0===t&&(t=1);var n=e.call(this,'<div class="ag-menu-list" role="tree"></div>')||this;return n.level=t,n.menuItems=[],n}return Ed(t,e),t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}})},t.prototype.onTabKeyDown=function(e){var t=this.getParentComponent(),n=t&&t.getGui();n&&n.classList.contains("ag-focus-managed")||e.preventDefault(),e.shiftKey&&this.closeIfIsChild(e)},t.prototype.handleKeyDown=function(e){switch(e.key){case dr.UP:case dr.RIGHT:case dr.DOWN:case dr.LEFT:e.preventDefault(),this.handleNavKey(e.key);break;case dr.ESCAPE:var t=this.findTopMenu();t&&this.focusService.focusInto(t.getGui())}},t.prototype.clearActiveItem=function(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)},t.prototype.addMenuItems=function(e){var t=this;null!=e&&e.forEach((function(e){"separator"===e?t.addSeparator():"string"===typeof e?console.warn("AG Grid: unrecognised menu item "+e):t.addItem(e)}))},t.prototype.addItem=function(e){var t=this,n=this.createManagedBean(new Nd(Sd(Sd({},e),{isAnotherSubMenuOpen:function(){return t.menuItems.some((function(e){return e.isSubMenuOpen()}))}})));n.setParentComponent(this),Kn(n.getGui(),this.level),this.menuItems.push(n),this.appendChild(n.getGui()),this.addManagedListener(n,Nd.EVENT_MENU_ITEM_SELECTED,(function(e){t.dispatchEvent(e)})),this.addManagedListener(n,Nd.EVENT_MENU_ITEM_ACTIVATED,(function(e){t.activeMenuItem&&t.activeMenuItem!==e.menuItem&&t.activeMenuItem.deactivate(),t.activeMenuItem=e.menuItem}))},t.prototype.activateFirstItem=function(){var e=this.menuItems.filter((function(e){return!e.isDisabled()}))[0];e&&e.activate()},t.prototype.addSeparator=function(){this.appendChild(gn('\n            <div class="ag-menu-separator" aria-hidden="true">\n                <div class="ag-menu-separator-part"></div>\n                <div class="ag-menu-separator-part"></div>\n                <div class="ag-menu-separator-part"></div>\n                <div class="ag-menu-separator-part"></div>\n            </div>'))},t.prototype.findTopMenu=function(){var e=this.getParentComponent();if(!e&&this instanceof t)return this;for(;;){var n=e&&e.getParentComponent&&e.getParentComponent();if(!n||!(n instanceof t||n instanceof Nd))break;e=n}return e instanceof t?e:void 0},t.prototype.handleNavKey=function(e){switch(e){case dr.UP:case dr.DOWN:var t=this.findNextItem(e===dr.UP);return void(t&&t!==this.activeMenuItem&&t.activate())}e===(this.gridOptionsWrapper.isEnableRtl()?dr.RIGHT:dr.LEFT)?this.closeIfIsChild():this.openChild()},t.prototype.closeIfIsChild=function(e){var t=this.getParentComponent();t&&t instanceof Nd&&(e&&e.preventDefault(),t.closeSubMenu(),t.getGui().focus())},t.prototype.openChild=function(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)},t.prototype.findNextItem=function(e){var t=this.menuItems.filter((function(e){return!e.isDisabled()}));if(t.length){if(!this.activeMenuItem)return e?ue(t):t[0];var n;e&&t.reverse();for(var o=!1,r=0;r<t.length;r++){var i=t[r];if(o){n=i;break}i===this.activeMenuItem&&(o=!0)}return n||this.activeMenuItem}},t.prototype.destroy=function(){this.clearActiveItem(),e.prototype.destroy.call(this)},Rd([K("focusService")],t.prototype,"focusService",void 0),Rd([z],t.prototype,"postConstruct",null),t}(bd),Td=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Pd=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},Ad=function(e){function t(t){var n=e.call(this)||this;return n.wrappedComponent=t,n.setTemplateFromElement(t.getGui()),n}return Td(t,e),t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}})},t.prototype.handleKeyDown=function(e){e.key===dr.ESCAPE&&this.closePanel()},t.prototype.onTabKeyDown=function(e){e.defaultPrevented||(this.closePanel(),e.preventDefault())},t.prototype.closePanel=function(){var e=this.parentComponent;e.closeSubMenu(),setTimeout((function(){return e.getGui().focus()}),0)},Pd([z],t.prototype,"postConstruct",null),t}(bd),Dd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),xd=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},Nd=function(e){function t(t){var n=e.call(this)||this;return n.params=t,n.isActive=!1,n.subMenuIsOpen=!1,n.setTemplate('<div class="'+n.getClassName()+'" tabindex="-1" role="treeitem"></div>'),n}return Dd(t,e),t.prototype.init=function(){var e=this;this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu(),this.addTooltip();var t=this.getGui();this.params.disabled?(this.addCssClass(this.getClassName("disabled")),qn(t,!0)):(this.addGuiEventListener("click",(function(t){return e.onItemSelected(t)})),this.addGuiEventListener("keydown",(function(t){t.key!==dr.ENTER&&t.key!==dr.SPACE||(t.preventDefault(),e.onItemSelected(t))})),this.addGuiEventListener("mousedown",(function(e){e.stopPropagation(),e.preventDefault()})),this.addGuiEventListener("mouseenter",(function(){return e.onMouseEnter()})),this.addGuiEventListener("mouseleave",(function(){return e.onMouseLeave()}))),this.params.cssClasses&&this.params.cssClasses.forEach((function(t){return e.addCssClass(t)}))},t.prototype.isDisabled=function(){return!!this.params.disabled},t.prototype.openSubMenu=function(e){var n=this;if(void 0===e&&(e=!1),this.closeSubMenu(),this.params.subMenu){var o,r=gn('<div class="ag-menu" role="presentation"></div>');if(this.params.subMenu instanceof Array){var i=Wn(this.getGui()),s=isNaN(i)?1:i+1,a=this.createBean(new Od(s));a.setParentComponent(this),a.addMenuItems(this.params.subMenu),r.appendChild(a.getGui()),this.addManagedListener(a,t.EVENT_MENU_ITEM_SELECTED,(function(e){return n.dispatchEvent(e)})),a.addGuiEventListener("mouseenter",(function(){return n.cancelDeactivate()})),o=function(){return n.destroyBean(a)},e&&setTimeout((function(){return a.activateFirstItem()}),0)}else{var l=this.params.subMenu,u=this.createBean(new Ad(l));u.setParentComponent(this);var c=u.getGui(),p="mouseenter",d=function(){return n.cancelDeactivate()};c.addEventListener(p,d),o=function(){return c.removeEventListener(p,d)},r.appendChild(c),l.afterGuiAttached&&setTimeout((function(){return l.afterGuiAttached()}),0)}var h=this.getGui(),f=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:h,ePopup:r}),g=this.gridOptionsWrapper.getLocaleTextFunc(),m=this.popupService.addPopup({modal:!0,eChild:r,positionCallback:f,anchorToElement:h,ariaLabel:g("ariaLabelSubMenu","SubMenu")});this.subMenuIsOpen=!0,Xn(h,!0),this.hideSubMenu=function(){m&&m.hideFunc(),n.subMenuIsOpen=!1,Xn(h,!1),o()}}},t.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,Xn(this.getGui(),!1))},t.prototype.isSubMenuOpen=function(){return this.subMenuIsOpen},t.prototype.activate=function(e){var t=this;this.cancelActivate(),this.params.disabled||(this.isActive=!0,this.addCssClass(this.getClassName("active")),this.getGui().focus(),e&&this.params.subMenu&&window.setTimeout((function(){t.isAlive()&&t.isActive&&t.openSubMenu()}),300),this.onItemActivated())},t.prototype.deactivate=function(){this.cancelDeactivate(),this.removeCssClass(this.getClassName("active")),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()},t.prototype.addIcon=function(){if(this.params.checked||this.params.icon||!this.params.isCompact){var e=gn('<span ref="eIcon" class="'+this.getClassName("part")+" "+this.getClassName("icon")+'" role="presentation"></span>');this.params.checked?e.appendChild(Ao("check",this.gridOptionsWrapper)):this.params.icon&&(Dn(this.params.icon)?e.appendChild(this.params.icon):"string"===typeof this.params.icon?e.innerHTML=this.params.icon:console.warn("AG Grid: menu item icon must be DOM node or string")),this.getGui().appendChild(e)}},t.prototype.addName=function(){if(this.params.name||!this.params.isCompact){var e=gn('<span ref="eName" class="'+this.getClassName("part")+" "+this.getClassName("text")+'">'+(this.params.name||"")+"</span>");this.getGui().appendChild(e)}},t.prototype.addTooltip=function(){this.params.tooltip&&(this.tooltip=this.params.tooltip,this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",this.tooltip):this.createManagedBean(new Xo(this)))},t.prototype.getTooltipParams=function(){return{location:"menu",value:this.tooltip}},t.prototype.addShortcut=function(){if(this.params.shortcut||!this.params.isCompact){var e=gn('<span ref="eShortcut" class="'+this.getClassName("part")+" "+this.getClassName("shortcut")+'">'+(this.params.shortcut||"")+"</span>");this.getGui().appendChild(e)}},t.prototype.addSubMenu=function(){if(this.params.subMenu||!this.params.isCompact){var e=gn('<span ref="ePopupPointer" class="'+this.getClassName("part")+" "+this.getClassName("popup-pointer")+'"></span>'),t=this.getGui();if(this.params.subMenu){var n=this.gridOptionsWrapper.isEnableRtl()?"smallLeft":"smallRight";Xn(t,!1),e.appendChild(Ao(n,this.gridOptionsWrapper))}t.appendChild(e)}},t.prototype.onItemSelected=function(e){if(this.params.action?this.params.action():this.openSubMenu(e&&"keydown"===e.type),!this.params.subMenu||this.params.action){var n={type:t.EVENT_MENU_ITEM_SELECTED,action:this.params.action,checked:this.params.checked,cssClasses:this.params.cssClasses,disabled:this.params.disabled,icon:this.params.icon,name:this.params.name,shortcut:this.params.shortcut,subMenu:this.params.subMenu,tooltip:this.params.tooltip,event:e};this.dispatchEvent(n)}},t.prototype.onItemActivated=function(){var e={type:t.EVENT_MENU_ITEM_ACTIVATED,menuItem:this};this.dispatchEvent(e)},t.prototype.cancelActivate=function(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)},t.prototype.cancelDeactivate=function(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)},t.prototype.onMouseEnter=function(){var e=this;this.cancelDeactivate(),this.params.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout((function(){return e.activate(!0)}),t.ACTIVATION_DELAY):this.activate(!0)},t.prototype.onMouseLeave=function(){var e=this;this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout((function(){return e.deactivate()}),t.ACTIVATION_DELAY):this.deactivate()},t.prototype.getClassName=function(e){var t=this.params.isCompact?"ag-compact-menu-option":"ag-menu-option";return e?t+"-"+e:t},t.EVENT_MENU_ITEM_SELECTED="menuItemSelected",t.EVENT_MENU_ITEM_ACTIVATED="menuItemActivated",t.ACTIVATION_DELAY=80,xd([K("popupService")],t.prototype,"popupService",void 0),xd([z],t.prototype,"init",null),t}(tr),Md=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Id=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},Ld=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Fd=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ld(arguments[t]));return e},kd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return Md(t,e),n=t,t.addKeyboardModeEvents=function(e,t){var o=n.instancesMonitored.get(e);o&&o.length>0?-1===o.indexOf(t)&&o.push(t):(n.instancesMonitored.set(e,[t]),e.addEventListener("keydown",n.toggleKeyboardMode),e.addEventListener("mousedown",n.toggleKeyboardMode))},t.removeKeyboardModeEvents=function(e,t){var o=n.instancesMonitored.get(e),r=[];o&&o.length&&(r=Fd(o).filter((function(e){return e!==t})),n.instancesMonitored.set(e,r)),0===r.length&&(e.removeEventListener("keydown",n.toggleKeyboardMode),e.removeEventListener("mousedown",n.toggleKeyboardMode))},t.toggleKeyboardMode=function(e){var t=n.keyboardModeActive,o="keydown"===e.type;if((!o||!(e.ctrlKey||e.metaKey||e.altKey))&&!(t&&o||!t&&!o)){n.keyboardModeActive=o;var r=e.target.ownerDocument;if(r){var i=n.instancesMonitored.get(r);i&&i.forEach((function(e){e.dispatchEvent({type:o?Ve.EVENT_KEYBOARD_FOCUS:Ve.EVENT_MOUSE_FOCUS})}))}}},t.prototype.init=function(){var e=this,t=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_MODE_CHANGED,t),this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_GROUP_OPENED,t),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,t),this.ctrlsService.whenReady((function(t){e.gridCtrl=t.gridCtrl;var o=e.gridOptionsWrapper.getDocument();n.addKeyboardModeEvents(o,e.gridCtrl),e.addDestroyFunc((function(){return e.unregisterGridCompController(e.gridCtrl)}))}))},t.prototype.unregisterGridCompController=function(e){var t=this.gridOptionsWrapper.getDocument();n.removeKeyboardModeEvents(t,e)},t.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var e=this.focusedCellPosition.column,t=this.columnModel.getGridColumn(e.getId());e!==t&&this.clearFocusedCell()}},t.prototype.isKeyboardMode=function(){return n.keyboardModeActive},t.prototype.getFocusCellToUseAfterRefresh=function(){var e=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(e.activeElement,fl.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},t.prototype.getFocusHeaderToUseAfterRefresh=function(){var e=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(e.activeElement,Vu.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},t.prototype.isDomDataMissingInHierarchy=function(e,t){for(var n=e;n;){if(this.gridOptionsWrapper.getDomData(n,t))return!1;n=n.parentNode}return!0},t.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1)},t.prototype.getFocusedCell=function(){return this.focusedCellPosition},t.prototype.setFocusedCell=function(e,t,n,r){void 0===r&&(r=!1);var i=this.columnModel.getGridColumn(t);i?(this.focusedCellPosition=i?{rowIndex:e,rowPinned:o(n),column:i}:null,this.onCellFocused(r)):this.focusedCellPosition=null},t.prototype.isCellFocused=function(e){return null!=this.focusedCellPosition&&(this.focusedCellPosition.column===e.column&&this.isRowFocused(e.rowIndex,e.rowPinned))},t.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},t.prototype.isHeaderWrapperFocused=function(e){if(null==this.focusedHeaderPosition)return!1;var t=e.getColumnGroupChild(),n=e.getRowIndex(),o=e.getPinned(),r=this.focusedHeaderPosition,i=r.column,s=r.headerRowIndex;return t===i&&n===s&&o==i.getPinned()},t.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},t.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},t.prototype.setFocusedHeader=function(e,t){this.focusedHeaderPosition={headerRowIndex:e,column:t}},t.prototype.focusHeaderPosition=function(e){var t=e.direction,n=e.fromTab,o=e.allowUserOverride,r=e.event,i=e.headerPosition;if(o){var s,a=this.gridOptionsWrapper,l=this.getFocusedHeader(),u=this.headerNavigationService.getHeaderRowCount();if(n){if(s=a.getTabToNextHeaderFunc())i=s({backwards:"Before"===t,previousHeaderPosition:l,nextHeaderPosition:i,headerRowCount:u})}else if((s=a.getNavigateToNextHeaderFunc())&&r)i=s({key:r.key,previousHeaderPosition:l,nextHeaderPosition:i,headerRowCount:u,event:r})}return!!i&&(-1===i.headerRowIndex?this.focusGridView(i.column):(this.headerNavigationService.scrollToColumn(i.column,t),this.ctrlsService.getHeaderRowContainerCtrl(i.column.getPinned()).focusHeader(i.headerRowIndex,i.column,r)))},t.prototype.focusFirstHeader=function(){var e=this.columnModel.getAllDisplayedColumns()[0];return!!e&&(e.getParent()&&(e=this.columnModel.getColumnGroupAtLevel(e,0)),this.focusHeaderPosition({headerPosition:{headerRowIndex:0,column:e}}))},t.prototype.focusLastHeader=function(e){var t=this.headerNavigationService.getHeaderRowCount()-1,n=ue(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:n},event:e})},t.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},t.prototype.isRowFocused=function(e,t){return null!=this.focusedCellPosition&&(this.focusedCellPosition.rowIndex===e&&this.focusedCellPosition.rowPinned===o(t))},t.prototype.findFocusableElements=function(e,t,n){void 0===n&&(n=!1);var o=oe.FOCUSABLE_SELECTOR,r=oe.FOCUSABLE_EXCLUDE;t&&(r+=", "+t),n&&(r+=', [tabindex="-1"]');var i=Array.prototype.slice.apply(e.querySelectorAll(o)),s=Array.prototype.slice.apply(e.querySelectorAll(r));if(!s.length)return i;var a;return a=s,i.filter((function(e){return-1===a.indexOf(e)}))},t.prototype.focusInto=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=this.findFocusableElements(e,null,n),r=t?ue(o):o[0];return!!r&&(r.focus(),!0)},t.prototype.findNextFocusableElement=function(e,t,n){void 0===e&&(e=this.eGridDiv);var o=this.findFocusableElements(e,t?':not([tabindex="-1"])':null),r=this.gridOptionsWrapper.getDocument().activeElement,i=(t?o.findIndex((function(e){return e.contains(r)})):o.indexOf(r))+(n?-1:1);return i<0||i>=o.length?null:o[i]},t.prototype.isFocusUnderManagedComponent=function(e){var t=this.gridOptionsWrapper.getDocument(),n=e.querySelectorAll("."+mr.FOCUS_MANAGED_CLASS);if(!n.length)return!1;for(var o=0;o<n.length;o++)if(n[o].contains(t.activeElement))return!0;return!1},t.prototype.findTabbableParent=function(e,t){void 0===t&&(t=5);for(var n=0;e&&null===jt(e)&&++n<=t;)e=e.parentElement;return null===jt(e)?null:e},t.prototype.onCellFocused=function(e){var t={type:Ve.EVENT_CELL_FOCUSED,forceBrowserFocus:e,rowIndex:null,column:null,floating:null,api:this.gridApi,columnApi:this.columnApi,rowPinned:null,isFullWidthCell:!1};if(this.focusedCellPosition){var n=t.rowIndex=this.focusedCellPosition.rowIndex,o=t.rowPinned=this.focusedCellPosition.rowPinned;t.column=this.focusedCellPosition.column;var r=this.rowRenderer.getRowByPosition({rowIndex:n,rowPinned:o});r&&(t.isFullWidthCell=r.isFullWidth())}this.eventService.dispatchEvent(t)},t.prototype.focusGridView=function(e,t){if(this.gridOptionsWrapper.isSuppressCellFocus())return t?this.focusLastHeader():this.focusNextGridCoreContainer(!1);var n=t?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!n)return!1;var r=n.rowIndex,i=n.rowPinned,s=this.getFocusedHeader();if(!e&&s&&(e=s.column),null==r||!e)return!1;if(this.navigationService.ensureCellVisible({rowIndex:r,column:e,rowPinned:i}),this.setFocusedCell(r,e,o(i),!0),this.rangeService){var a={rowIndex:r,rowPinned:i,column:e};this.rangeService.setRangeToCell(a)}return!0},t.prototype.focusNextGridCoreContainer=function(e){return!!this.gridCtrl.focusNextInnerContainer(e)||(e||this.gridCtrl.isDetailGrid()||this.gridCtrl.forceFocusOutOfContainer(),!1)},t.AG_KEYBOARD_FOCUS="ag-keyboard-focus",t.keyboardModeActive=!1,t.instancesMonitored=new Map,Id([K("eGridDiv")],t.prototype,"eGridDiv",void 0),Id([K("columnModel")],t.prototype,"columnModel",void 0),Id([K("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Id([K("columnApi")],t.prototype,"columnApi",void 0),Id([K("gridApi")],t.prototype,"gridApi",void 0),Id([K("rowRenderer")],t.prototype,"rowRenderer",void 0),Id([K("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Id([q("rangeService")],t.prototype,"rangeService",void 0),Id([K("navigationService")],t.prototype,"navigationService",void 0),Id([K("ctrlsService")],t.prototype,"ctrlsService",void 0),Id([z],t.prototype,"init",null),t=n=Id([Y("focusService")],t)}(Fe),Gd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Hd=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.vertical=0]="vertical",e[e.horizontal=1]="horizontal"}(bp||(bp={}));var Bd,Vd=0,Wd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.popupList=[],t}return Gd(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridCtrl=t.gridCtrl,e.addManagedListener(e.gridCtrl,Ve.EVENT_KEYBOARD_FOCUS,(function(){e.popupList.forEach((function(e){return e.element.classList.add(kd.AG_KEYBOARD_FOCUS)}))})),e.addManagedListener(e.gridCtrl,Ve.EVENT_MOUSE_FOCUS,(function(){e.popupList.forEach((function(e){return e.element.classList.remove(kd.AG_KEYBOARD_FOCUS)}))}))}))},t.prototype.getPopupParent=function(){var e=this.gridOptionsWrapper.getPopupParent();return e||this.gridCtrl.getGui()},t.prototype.positionPopupForMenu=function(e){var t=e.eventSource.getBoundingClientRect(),n=this.getParentRect(),o=this.keepXYWithinBounds(e.ePopup,t.top-n.top,bp.vertical),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"},t.prototype.positionPopupUnderMouseEvent=function(e){var t=e.ePopup,n=e.nudgeX,o=e.nudgeY,r=this.calculatePointerAlign(e.mouseEvent),i=r.x,s=r.y;this.positionPopup({ePopup:t,x:i,y:s,nudgeX:n,nudgeY:o,keepWithinBounds:!0}),this.callPostProcessPopup(e.type,e.ePopup,null,e.mouseEvent,e.column,e.rowNode)},t.prototype.calculatePointerAlign=function(e){var t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}},t.prototype.positionPopupUnderComponent=function(e){var t=e.eventSource.getBoundingClientRect(),n=e.alignSide||"left",o=this.getParentRect(),r=t.left-o.left;"right"===n&&(r-=e.ePopup.offsetWidth-t.width),this.positionPopup({ePopup:e.ePopup,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:r,y:t.top-o.top+t.height,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)},t.prototype.positionPopupOverComponent=function(e){var t=e.eventSource.getBoundingClientRect(),n=this.getParentRect();this.positionPopup({ePopup:e.ePopup,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:t.left-n.left,y:t.top-n.top,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)},t.prototype.callPostProcessPopup=function(e,t,n,o,r,i){var s=this.gridOptionsWrapper.getPostProcessPopupFunc();s&&s({column:r,rowNode:i,ePopup:t,type:e,eventSource:n,mouseEvent:o})},t.prototype.positionPopup=function(e){var t=e.ePopup,n=e.keepWithinBounds,o=e.nudgeX,r=e.nudgeY,i=e.x,s=e.y;o&&(i+=o),r&&(s+=r),n&&(i=this.keepXYWithinBounds(t,i,bp.horizontal),s=this.keepXYWithinBounds(t,s,bp.vertical)),t.style.left=i+"px",t.style.top=s+"px"},t.prototype.getActivePopups=function(){return this.popupList.map((function(e){return e.element}))},t.prototype.getPopupList=function(){return this.popupList},t.prototype.getParentRect=function(){var e=this.gridOptionsWrapper.getDocument(),t=this.getPopupParent();t===e.body&&(t=e.documentElement);var n=getComputedStyle(t),o=t.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}},t.prototype.keepXYWithinBounds=function(e,t,n){var o=n===bp.vertical,r=o?"clientHeight":"clientWidth",i=o?"top":"left",s=o?"offsetHeight":"offsetWidth",a=o?"scrollTop":"scrollLeft",l=this.gridOptionsWrapper.getDocument(),u=l.documentElement,c=this.getPopupParent(),p=c.getBoundingClientRect(),d=l.documentElement.getBoundingClientRect(),h=c===l.body,f=e[s],g=h?(o?an:ln)(u)+u[a]:c[r];h&&(g-=Math.abs(d[i]-p[i]));var m=g-f;return Math.min(Math.max(t,0),Math.abs(m))},t.prototype.keepPopupPositionedRelativeTo=function(e){var t=this,n=this.getPopupParent(),o=n.getBoundingClientRect(),r=e.element.getBoundingClientRect(),i=o.top-r.top,s=o.left-r.left,a=i,l=s,u=e.ePopup.style.top,c=parseInt(u.substring(0,u.length-1),10),p=e.ePopup.style.left,d=parseInt(p.substring(0,p.length-1),10);return new zo((function(o){t.getFrameworkOverrides().setInterval((function(){var o=n.getBoundingClientRect(),r=e.element.getBoundingClientRect();if(0==r.top&&0==r.left&&0==r.height&&0==r.width)e.hidePopup();else{var u=o.top-r.top;if(u!=a){var p=t.keepXYWithinBounds(e.ePopup,c+i-u,bp.vertical);e.ePopup.style.top=p+"px"}a=u;var h=o.left-r.left;if(h!=l){var f=t.keepXYWithinBounds(e.ePopup,d+s-h,bp.horizontal);e.ePopup.style.left=f+"px"}l=h}}),200).then((function(e){o((function(){null!=e&&window.clearInterval(e)}))}))}))},t.prototype.addPopup=function(e){var t=this,n=e.modal,o=e.eChild,r=e.closeOnEsc,i=e.closedCallback,s=e.click,a=e.alwaysOnTop,l=e.afterGuiAttached,u=e.positionCallback,c=e.anchorToElement,p=e.ariaLabel,d=this.gridOptionsWrapper.getDocument(),h=new zo((function(e){return e((function(){}))}));if(!d)return console.warn("ag-grid: could not find the document, document is empty"),{hideFunc:function(){},stopAnchoringPromise:h};var f=this.popupList.findIndex((function(e){return e.element===o}));if(-1!==f){var g=this.popupList[f];return{hideFunc:g.hideFunc,stopAnchoringPromise:g.stopAnchoringPromise}}var m=this.getPopupParent();null==o.style.top&&(o.style.top="0px"),null==o.style.left&&(o.style.left="0px");var v=document.createElement("div"),y=this.environment.getTheme().theme;y&&v.classList.add(y),v.classList.add("ag-popup"),o.classList.add(this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr","ag-popup-child"),o.hasAttribute("role")||Bn(o,"dialog"),Un(o,p),this.focusService.isKeyboardMode()&&o.classList.add(kd.AG_KEYBOARD_FOCUS),v.appendChild(o),m.appendChild(v),a?this.setAlwaysOnTop(v,!0):this.bringPopupToFront(v);var C=!1,w=function(e){v.contains(d.activeElement)&&(e.key===dr.ESCAPE&&E({keyboardEvent:e}))},_=function(e){return E({mouseEvent:e})},b=function(e){return E({touchEvent:e})},E=function(e){void 0===e&&(e={});var n=e.mouseEvent,r=e.touchEvent,a=e.keyboardEvent;t.isEventFromCurrentPopup({mouseEvent:n,touchEvent:r},o)||t.isEventSameChainAsOriginalEvent({originalMouseEvent:s,mouseEvent:n,touchEvent:r})||C||(C=!0,m.removeChild(v),d.removeEventListener("keydown",w),d.removeEventListener("mousedown",_),d.removeEventListener("touchstart",b),d.removeEventListener("contextmenu",_),t.eventService.removeEventListener(Ve.EVENT_DRAG_STARTED,_),i&&i(n||r||a),t.popupList=t.popupList.filter((function(e){return e.element!==o})),h&&h.then((function(e){return e&&e()})))};return l&&l({hidePopup:E}),window.setTimeout((function(){r&&d.addEventListener("keydown",w),n&&(d.addEventListener("mousedown",_),t.eventService.addEventListener(Ve.EVENT_DRAG_STARTED,_),d.addEventListener("touchstart",b),d.addEventListener("contextmenu",_))}),0),u&&u(),c&&(h=this.keepPopupPositionedRelativeTo({element:c,ePopup:o,hidePopup:E})),this.popupList.push({element:o,wrapper:v,hideFunc:E,stopAnchoringPromise:h,instanceId:Vd++,isAnchored:!!c}),{hideFunc:E,stopAnchoringPromise:h}},t.prototype.hasAnchoredPopup=function(){return this.popupList.some((function(e){return e.isAnchored}))},t.prototype.isEventFromCurrentPopup=function(e,t){var n=e.mouseEvent,o=e.touchEvent,r=n||o;if(!r)return!1;var i=this.popupList.findIndex((function(e){return e.element===t}));if(-1===i)return!1;for(var s=i;s<this.popupList.length;s++){if(De(this.popupList[s].element,r))return!0}return this.isElementWithinCustomPopup(r.target)},t.prototype.isElementWithinCustomPopup=function(e){for(var t=this.gridOptionsWrapper.getDocument();e&&e!==t.body;){if(e.classList.contains("ag-custom-component-popup")||null===e.parentElement)return!0;e=e.parentElement}return!1},t.prototype.isEventSameChainAsOriginalEvent=function(e){var t=e.originalMouseEvent,n=e.mouseEvent,o=e.touchEvent,r=null;if(n?r=n:o&&(r=o.touches[0]),r&&t){var i=n?n.screenX:0,s=n?n.screenY:0,a=Math.abs(t.screenX-i)<5,l=Math.abs(t.screenY-s)<5;if(a&&l)return!0}return!1},t.prototype.getWrapper=function(e){for(;!e.classList.contains("ag-popup")&&e.parentElement;)e=e.parentElement;return e.classList.contains("ag-popup")?e:null},t.prototype.setAlwaysOnTop=function(e,t){var n=this.getWrapper(e);n&&(n.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(n))},t.prototype.bringPopupToFront=function(e){var t=this.getPopupParent(),n=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),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),l=s.querySelectorAll("div"),u=[];if(l.forEach((function(e){0!==e.scrollTop&&u.push([e,e.scrollTop])})),i)s.classList.contains("ag-always-on-top")?a!==o-1&&ue(r).insertAdjacentElement("afterend",s):a!==o-i-1&&r[0].insertAdjacentElement("beforebegin",s);else a!==o-1&&ue(n).insertAdjacentElement("afterend",s);for(;u.length;){var c=u.pop();c[0].scrollTop=c[1]}var p={type:"popupToFront",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),eWrapper:s};this.eventService.dispatchEvent(p)}},Hd([K("environment")],t.prototype,"environment",void 0),Hd([K("focusService")],t.prototype,"focusService",void 0),Hd([K("ctrlsService")],t.prototype,"ctrlsService",void 0),Hd([z],t.prototype,"postConstruct",null),t=Hd([Y("popupService")],t)}(Fe),jd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Ud=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},zd=function(e){function t(n,o,r){void 0===n&&(n="default"),void 0===o&&(o="listbox");var i=e.call(this,t.getTemplate(n))||this;return i.cssIdentifier=n,i.ariaRole=o,i.listName=r,i.renderedRows=new Map,i.rowHeight=20,i.isDestroyed=!1,i}return jd(t,e),t.prototype.postConstruct=function(){var e=this;this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:function(t){return e.onFocusIn(t)},onFocusOut:function(t){return e.onFocusOut(t)},focusInnerElement:function(t){return e.focusInnerElement(t)},onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}}),this.setAriaProperties()},t.prototype.setAriaProperties=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc()("ariaDefaultListName",this.listName||"List"),t=this.eContainer;Bn(t,this.ariaRole),Un(t,e)},t.prototype.addResizeObserver=function(){var e=this.drawVirtualRows.bind(this),t=this.resizeObserverService.observeResize(this.getGui(),e);this.addDestroyFunc(t)},t.prototype.focusInnerElement=function(e){this.focusRow(e?this.model.getRowCount()-1:0)},t.prototype.onFocusIn=function(e){var t=e.target;return t.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=jn(t)-1),!1},t.prototype.onFocusOut=function(e){return this.getFocusableElement().contains(e.relatedTarget)||(this.lastFocusedRowIndex=null),!1},t.prototype.handleKeyDown=function(e){switch(e.key){case dr.UP:case dr.DOWN:this.navigate(e.key===dr.UP)&&e.preventDefault()}},t.prototype.onTabKeyDown=function(e){this.navigate(e.shiftKey)?e.preventDefault():this.focusService.focusInto(this.getGui(),!e.shiftKey)},t.prototype.navigate=function(e){if(null==this.lastFocusedRowIndex)return!1;var t=this.lastFocusedRowIndex+(e?-1:1);return!(t<0||t>=this.model.getRowCount())&&(this.focusRow(t),!0)},t.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex},t.prototype.focusRow=function(e){var t=this;this.ensureIndexVisible(e),window.setTimeout((function(){var n=t.renderedRows.get(e);n&&n.eDiv.focus()}),10)},t.prototype.getComponentAt=function(e){var t=this.renderedRows.get(e);return t&&t.rowComponent},t.getTemplate=function(e){return'\n            <div class="ag-virtual-list-viewport ag-'+e+'-virtual-list-viewport" role="presentation">\n                <div class="ag-virtual-list-container ag-'+e+'-virtual-list-container" ref="eContainer"></div>\n            </div>'},t.prototype.getItemHeight=function(){return this.gridOptionsWrapper.getListItemHeight()},t.prototype.ensureIndexVisible=function(e){var t=this.model.getRowCount();if("number"!==typeof e||e<0||e>=t)console.warn("AG Grid: invalid row index for ensureIndexVisible: "+e);else{var n=e*this.rowHeight,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(){var e=this;if(null!=this.model&&!this.isDestroyed){var t=this.model.getRowCount();this.eContainer.style.height=t*this.rowHeight+"px",B((function(){return e.eContainer.clientHeight>=t*e.rowHeight}),(function(){e.isDestroyed||(e.clearVirtualRows(),e.drawVirtualRows())}))}},t.prototype.clearVirtualRows=function(){var e=this;this.renderedRows.forEach((function(t,n){return e.removeRow(n)}))},t.prototype.drawVirtualRows=function(){var e=this.getGui(),t=e.scrollTop,n=t+e.offsetHeight,o=Math.floor(t/this.rowHeight),r=Math.floor(n/this.rowHeight);this.ensureRowsRendered(o,r)},t.prototype.ensureRowsRendered=function(e,t){var n=this;this.renderedRows.forEach((function(o,r){(r<e||r>t)&&r!==n.lastFocusedRowIndex&&n.removeRow(r)}));for(var o=e;o<=t;o++)this.renderedRows.has(o)||o<this.model.getRowCount()&&this.insertRow(o)},t.prototype.insertRow=function(e){var t=this,n=this.model.getRow(e),o=document.createElement("div");if(o.classList.add("ag-virtual-list-item","ag-"+this.cssIdentifier+"-virtual-list-item"),Bn(o,"tree"===this.ariaRole?"treeitem":"option"),Jn(o,this.model.getRowCount()),$n(o,e+1),o.setAttribute("tabindex","-1"),"function"===typeof this.model.isRowSelected){var r=this.model.isRowSelected(e);lo(o,!!r),uo(o,r)}o.style.height=this.rowHeight+"px",o.style.top=this.rowHeight*e+"px";var i=this.componentCreator(n,o);i.addGuiEventListener("focusin",(function(){return t.lastFocusedRowIndex=e})),o.appendChild(i.getGui()),this.renderedRows.has(e-1)?this.renderedRows.get(e-1).eDiv.insertAdjacentElement("afterend",o):this.renderedRows.has(e+1)?this.renderedRows.get(e+1).eDiv.insertAdjacentElement("beforebegin",o):this.eContainer.appendChild(o),this.renderedRows.set(e,{rowComponent:i,eDiv:o})},t.prototype.removeRow=function(e){var t=this.renderedRows.get(e);this.eContainer.removeChild(t.eDiv),this.destroyBean(t.rowComponent),this.renderedRows.delete(e)},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",(function(){return e.drawVirtualRows()}))},t.prototype.setModel=function(e){this.model=e},t.prototype.destroy=function(){this.isDestroyed||(this.clearVirtualRows(),this.isDestroyed=!0,e.prototype.destroy.call(this))},Ud([K("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Ud([K("focusService")],t.prototype,"focusService",void 0),Ud([nr("eContainer")],t.prototype,"eContainer",void 0),Ud([z],t.prototype,"postConstruct",null),t}(bd),Zd=["mouseover","mouseout","mouseenter","mouseleave"],Yd=["touchstart","touchend","touchmove","touchcancel"],Kd=function(){function e(){this.isOutsideAngular=function(e){return me(Zd,e)}}return e.prototype.setTimeout=function(e,t){window.setTimeout(e,t)},e.prototype.setInterval=function(e,t){return new zo((function(n){n(window.setInterval(e,t))}))},e.prototype.addEventListener=function(e,t,n,o){var r=me(Yd,t);e.addEventListener(t,n,{capture:!!o,passive:r})},e.prototype.dispatchEvent=function(e,t,n){t()},e.prototype.frameworkComponent=function(e){return null},e.prototype.isFrameworkComponent=function(e){return!1},e}(),qd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Xd=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},Qd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qd(t,e),t.prototype.getNextCellToFocus=function(e,t,n){return void 0===n&&(n=!1),n?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)},t.prototype.getNextCellToFocusWithCtrlPressed=function(e,t){var n,o,r=e===dr.UP,i=e===dr.DOWN,s=e===dr.LEFT;if(r||i)o=r?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),n=t.column;else{var a=this.columnModel.getAllDisplayedColumns(),l=this.gridOptionsWrapper.isEnableRtl();o=t.rowIndex,n=s!==l?a[0]:ue(a)}return{rowIndex:o,rowPinned:null,column:n}},t.prototype.getNextCellToFocusWithoutCtrlPressed=function(e,t){for(var n=t,o=!1;!o;){switch(e){case dr.UP:n=this.getCellAbove(n);break;case dr.DOWN:n=this.getCellBelow(n);break;case dr.RIGHT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(n):this.getCellToRight(n);break;case dr.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},t.prototype.isCellGoodToFocusOn=function(e){var t,n=e.column;switch(e.rowPinned){case oe.PINNED_TOP:t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case oe.PINNED_BOTTOM:t=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:t=this.rowModel.getRow(e.rowIndex)}return!!t&&!n.isSuppressNavigable(t)},t.prototype.getCellToLeft=function(e){if(!e)return null;var t=this.columnModel.getDisplayedColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},t.prototype.getCellToRight=function(e){if(!e)return null;var t=this.columnModel.getDisplayedColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},t.prototype.getRowBelow=function(e){var t=e.rowIndex,n=e.rowPinned;if(this.isLastRowInContainer(e))switch(n){case oe.PINNED_BOTTOM:return null;case oe.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender(oe.PINNED_BOTTOM)?{rowIndex:0,rowPinned:oe.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(oe.PINNED_BOTTOM)?{rowIndex:0,rowPinned:oe.PINNED_BOTTOM}:null}return{rowIndex:t+1,rowPinned:n}},t.prototype.getCellBelow=function(e){if(!e)return null;var t=this.getRowBelow(e);return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},t.prototype.isLastRowInContainer=function(e){var t=e.rowPinned,n=e.rowIndex;return t===oe.PINNED_TOP?this.pinnedRowModel.getPinnedTopRowData().length-1<=n:t===oe.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRowData().length-1<=n:this.paginationProxy.getPageLastRow()<=n},t.prototype.getRowAbove=function(e){var t=e.rowIndex,n=e.rowPinned;return(n?0===t:t===this.paginationProxy.getPageFirstRow())?n===oe.PINNED_TOP?null:n&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(oe.PINNED_TOP)?this.getLastFloatingTopRow():null:{rowIndex:t-1,rowPinned:n}},t.prototype.getCellAbove=function(e){if(!e)return null;var t=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},t.prototype.getLastBodyCell=function(){return{rowIndex:this.paginationProxy.getPageLastRow(),rowPinned:null}},t.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:oe.PINNED_TOP}},t.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},t.prototype.getNextTabbedCellForwards=function(e){var t=this.columnModel.getAllDisplayedColumns(),n=e.rowIndex,o=e.rowPinned,r=this.columnModel.getDisplayedColAfter(e.column);if(!r){r=t[0];var s=this.getRowBelow(e);if(i(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;n=s?s.rowIndex:null,o=s?s.rowPinned:null}return{rowIndex:n,column:r,rowPinned:o}},t.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnModel.getAllDisplayedColumns(),n=e.rowIndex,o=e.rowPinned,r=this.columnModel.getDisplayedColBefore(e.column);if(!r){r=ue(t);var s=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(i(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;n=s?s.rowIndex:null,o=s?s.rowPinned:null}return{rowIndex:n,column:r,rowPinned:o}},Xd([K("columnModel")],t.prototype,"columnModel",void 0),Xd([K("rowModel")],t.prototype,"rowModel",void 0),Xd([K("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Xd([K("paginationProxy")],t.prototype,"paginationProxy",void 0),t=Xd([Y("cellNavigationService")],t)}(Fe),Jd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),$d=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},eh=function(e,t){return function(n,o){t(n,o,e)}},th=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.consuming=!1,t}return Jd(t,e),t.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},t.prototype.init=function(){this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},t.prototype.fireEvent=function(e){if(!this.consuming){var t=this.gridOptionsWrapper.getAlignedGrids();t&&t.forEach((function(t){if(t.api){var n=t.api.__getAlignedGridService();e(n)}}))}},t.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},t.prototype.fireColumnEvent=function(e){this.fireEvent((function(t){t.onColumnEvent(e)}))},t.prototype.fireScrollEvent=function(e){"horizontal"===e.direction&&this.fireEvent((function(t){t.onScrollEvent(e)}))},t.prototype.onScrollEvent=function(e){var t=this;this.onEvent((function(){t.ctrlsService.getGridBodyCtrl().getScrollFeature().setHorizontalScrollPosition(e.left)}))},t.prototype.getMasterColumns=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e)})):e.column&&t.push(e.column),t},t.prototype.getColumnIds=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e.getColId())})):e.column&&t.push(e.column.getColId()),t},t.prototype.onColumnEvent=function(e){var t=this;this.onEvent((function(){switch(e.type){case Ve.EVENT_COLUMN_MOVED:case Ve.EVENT_COLUMN_VISIBLE:case Ve.EVENT_COLUMN_PINNED:case Ve.EVENT_COLUMN_RESIZED:var n=e;t.processColumnEvent(n);break;case Ve.EVENT_COLUMN_GROUP_OPENED:var o=e;t.processGroupOpenedEvent(o);break;case Ve.EVENT_COLUMN_PIVOT_CHANGED:console.warn("AG Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.")}}))},t.prototype.processGroupOpenedEvent=function(e){var t=e.columnGroup,n=null;if(t){var o=t.getGroupId();n=this.columnModel.getProvidedColumnGroup(o)}t&&!n||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+t.isExpanded()),this.columnModel.setColumnGroupOpened(n,t.isExpanded(),"alignedGridChanged"))},t.prototype.processColumnEvent=function(e){var t=this,n=e.column,o=null;if(n&&(o=this.columnModel.getPrimaryColumn(n.getColId())),!n||o){var r=this.getMasterColumns(e);switch(e.type){case Ve.EVENT_COLUMN_MOVED:var i=e,s=e.columnApi.getColumnState().map((function(e){return{colId:e.colId}}));this.columnModel.applyColumnState({state:s,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+i.toIndex);break;case Ve.EVENT_COLUMN_VISIBLE:var a=e;s=e.columnApi.getColumnState().map((function(e){return{colId:e.colId,hide:e.hide}}));this.columnModel.applyColumnState({state:s},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+a.visible);break;case Ve.EVENT_COLUMN_PINNED:var l=e;s=e.columnApi.getColumnState().map((function(e){return{colId:e.colId,pinned:e.pinned}}));this.columnModel.applyColumnState({state:s},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+l.pinned);break;case Ve.EVENT_COLUMN_RESIZED:var u=e;r.forEach((function(n){t.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+n.getActualWidth());var o=[{key:n.getColId(),newWidth:n.getActualWidth()}];t.columnModel.setColumnWidths(o,!1,u.finished,"alignedGridChanged")}))}var c=this.ctrlsService.getGridBodyCtrl().isVerticalScrollShowing(),p=this.gridOptionsWrapper.getAlignedGrids();p&&p.forEach((function(e){e.api&&e.api.setAlwaysShowVerticalScroll(c)}))}},$d([K("columnModel")],t.prototype,"columnModel",void 0),$d([K("ctrlsService")],t.prototype,"ctrlsService",void 0),$d([eh(0,Q("loggerFactory"))],t.prototype,"setBeans",null),$d([z],t.prototype,"init",null),t=$d([Y("alignedGridsService")],t)}(Fe),nh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),oh=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},rh=function(e,t){return function(n,o){t(n,o,e)}},ih=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nh(t,e),t.prototype.setBeans=function(e){this.logger=e.create("selectionService"),this.reset()},t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.addManagedListener(this.eventService,Ve.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},t.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},t.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},t.prototype.getSelectedNodes=function(){var e=[];return f(this.selectedNodes,(function(t,n){n&&e.push(n)})),e},t.prototype.getSelectedRows=function(){var e=[];return f(this.selectedNodes,(function(t,n){n&&n.data&&e.push(n.data)})),e},t.prototype.removeGroupsFromSelection=function(){var e=this;f(this.selectedNodes,(function(t,n){n&&n.group&&(e.selectedNodes[n.id]=void 0)}))},t.prototype.updateGroupsFromChildrenSelections=function(e){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===oe.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getRootNode();e||(e=new Ep(!0,t)).setInactive(),e.forEachChangedNodeDepthFirst((function(e){e!==t&&e.calculateSelectedFromChildren()}))}},t.prototype.getNodeForIdIfSelected=function(e){return this.selectedNodes[e]},t.prototype.clearOtherNodes=function(e){var t=this,n={},o=0;return f(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)}})),f(n,(function(e,t){t.calculateSelectedFromChildren()})),o},t.prototype.onRowSelected=function(e){var t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes[t.id]=t:this.selectedNodes[t.id]=void 0)},t.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},t.prototype.syncInOldRowNode=function(e,t){if(r(t)&&e.id!==t.id&&t){var n=t.id;this.selectedNodes[n]==e&&(this.selectedNodes[t.id]=t)}},t.prototype.syncInNewRowNode=function(e){r(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},t.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},t.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()===oe.ROW_MODEL_TYPE_CLIENT_SIDE){var e=this.rowModel.getTopLevelNodes();if(null!==e){var t=[];return function e(n){for(var o=0,r=n.length;o<r;o++){var i=n[o];if(i.isSelected())t.push(i);else{var s=i;s.group&&s.children&&e(s.children)}}}(e),t}console.warn("AG Grid: `selectAll` not available doing `rowModel=virtual`")}else console.warn("AG Grid: `getBestCostNodeSelection` is only available when using normal row model")},t.prototype.setRowModel=function(e){this.rowModel=e},t.prototype.isEmpty=function(){var e=0;return f(this.selectedNodes,(function(t,n){n&&e++})),0===e},t.prototype.deselectAllRowNodes=function(e){void 0===e&&(e=!1);var t=function(e){return e.selectThisNode(!1)},n=this.rowModel.getType()===oe.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 f(this.selectedNodes,(function(e,n){n&&t(n)})),this.reset();n&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var o={type:Ve.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},t.prototype.selectAllRowNodes=function(e){if(void 0===e&&(e=!1),this.rowModel.getType()!==oe.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()===oe.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var o={type:Ve.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},t.prototype.selectNode=function(e,t){e&&e.setSelectedParams({newValue:!0,clearSelection:!t})},t.prototype.deselectIndex=function(e){var t=this.rowModel.getRow(e);this.deselectNode(t)},t.prototype.deselectNode=function(e){e&&e.setSelectedParams({newValue:!1,clearSelection:!1})},t.prototype.selectIndex=function(e,t){var n=this.rowModel.getRow(e);this.selectNode(n,t)},oh([K("rowModel")],t.prototype,"rowModel",void 0),oh([K("columnApi")],t.prototype,"columnApi",void 0),oh([K("gridApi")],t.prototype,"gridApi",void 0),oh([rh(0,Q("loggerFactory"))],t.prototype,"setBeans",null),oh([z],t.prototype,"init",null),t=oh([Y("selectionService")],t)}(Fe),sh=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},ah=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){"undefined"===typeof e&&console.error("AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnModel.sizeColumnsToFit(e,"api")},e.prototype.setColumnGroupOpened=function(e,t){this.columnModel.setColumnGroupOpened(e,t,"api")},e.prototype.getColumnGroup=function(e,t){return this.columnModel.getColumnGroup(e,t)},e.prototype.getProvidedColumnGroup=function(e){return this.columnModel.getProvidedColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,t){return this.columnModel.getDisplayNameForColumn(e,t)||""},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.columnModel.getDisplayNameForColumnGroup(e,t)||""},e.prototype.getColumn=function(e){return this.columnModel.getPrimaryColumn(e)},e.prototype.applyColumnState=function(e){return this.columnModel.applyColumnState(e,"api")},e.prototype.getColumnState=function(){return this.columnModel.getColumnState()},e.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},e.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},e.prototype.setColumnGroupState=function(e){this.columnModel.setColumnGroupState(e,"api")},e.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},e.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},e.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},e.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},e.prototype.getDisplayedColAfter=function(e){return this.columnModel.getDisplayedColAfter(e)},e.prototype.getDisplayedColBefore=function(e){return this.columnModel.getDisplayedColBefore(e)},e.prototype.setColumnVisible=function(e,t){this.columnModel.setColumnVisible(e,t,"api")},e.prototype.setColumnsVisible=function(e,t){this.columnModel.setColumnsVisible(e,t,"api")},e.prototype.setColumnPinned=function(e,t){this.columnModel.setColumnPinned(e,t,"api")},e.prototype.setColumnsPinned=function(e,t){this.columnModel.setColumnsPinned(e,t,"api")},e.prototype.getAllColumns=function(){return this.columnModel.getAllPrimaryColumns()},e.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},e.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},e.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},e.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},e.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},e.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},e.prototype.moveColumn=function(e,t){"number"===typeof e?(console.warn("AG Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead"),this.columnModel.moveColumnByIndex(e,t,"api")):this.columnModel.moveColumn(e,t,"api")},e.prototype.moveColumnByIndex=function(e,t){this.columnModel.moveColumnByIndex(e,t,"api")},e.prototype.moveColumns=function(e,t){this.columnModel.moveColumns(e,t,"api")},e.prototype.moveRowGroupColumn=function(e,t){this.columnModel.moveRowGroupColumn(e,t)},e.prototype.setColumnAggFunc=function(e,t){this.columnModel.setColumnAggFunc(e,t)},e.prototype.setColumnWidth=function(e,t,n,o){void 0===n&&(n=!0),this.columnModel.setColumnWidths([{key:e,newWidth:t}],!1,n,o)},e.prototype.setColumnWidths=function(e,t,n){void 0===t&&(t=!0),this.columnModel.setColumnWidths(e,!1,t,n)},e.prototype.setPivotMode=function(e){this.columnModel.setPivotMode(e)},e.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},e.prototype.getSecondaryPivotColumn=function(e,t){return this.columnModel.getSecondaryPivotColumn(e,t)},e.prototype.setValueColumns=function(e){this.columnModel.setValueColumns(e,"api")},e.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},e.prototype.removeValueColumn=function(e){this.columnModel.removeValueColumn(e,"api")},e.prototype.removeValueColumns=function(e){this.columnModel.removeValueColumns(e,"api")},e.prototype.addValueColumn=function(e){this.columnModel.addValueColumn(e,"api")},e.prototype.addValueColumns=function(e){this.columnModel.addValueColumns(e,"api")},e.prototype.setRowGroupColumns=function(e){this.columnModel.setRowGroupColumns(e,"api")},e.prototype.removeRowGroupColumn=function(e){this.columnModel.removeRowGroupColumn(e,"api")},e.prototype.removeRowGroupColumns=function(e){this.columnModel.removeRowGroupColumns(e,"api")},e.prototype.addRowGroupColumn=function(e){this.columnModel.addRowGroupColumn(e,"api")},e.prototype.addRowGroupColumns=function(e){this.columnModel.addRowGroupColumns(e,"api")},e.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},e.prototype.setPivotColumns=function(e){this.columnModel.setPivotColumns(e,"api")},e.prototype.removePivotColumn=function(e){this.columnModel.removePivotColumn(e,"api")},e.prototype.removePivotColumns=function(e){this.columnModel.removePivotColumns(e,"api")},e.prototype.addPivotColumn=function(e){this.columnModel.addPivotColumn(e,"api")},e.prototype.addPivotColumns=function(e){this.columnModel.addPivotColumns(e,"api")},e.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},e.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},e.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},e.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},e.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},e.prototype.autoSizeColumn=function(e,t){return this.columnModel.autoSizeColumn(e,t,"api")},e.prototype.autoSizeColumns=function(e,t){this.columnModel.autoSizeColumns({columns:e,skipHeader:t})},e.prototype.autoSizeAllColumns=function(e){this.columnModel.autoSizeAllColumns(e,"api")},e.prototype.setSecondaryColumns=function(e){this.columnModel.setSecondaryColumns(e,"api")},e.prototype.getSecondaryColumns=function(){return this.columnModel.getSecondaryColumns()},e.prototype.getPrimaryColumns=function(){return this.columnModel.getAllPrimaryColumns()},e.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(Wo.removeAllReferences.bind(window,this,"Column API"),100)},e.prototype.columnGroupOpened=function(e,t){console.error("AG Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(e,t)},e.prototype.hideColumns=function(e,t){console.error("AG Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnModel.setColumnsVisible(e,!t,"api")},e.prototype.hideColumn=function(e,t){console.error("AG Grid: hideColumn is deprecated, use setColumnVisible"),this.columnModel.setColumnVisible(e,!t,"api")},e.prototype.setState=function(e){return console.error("AG Grid: setState is deprecated, use setColumnState"),this.setColumnState(e)},e.prototype.getState=function(){return console.error("AG Grid: getState is deprecated, use getColumnState"),this.getColumnState()},e.prototype.resetState=function(){console.error("AG Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},e.prototype.getAggregationColumns=function(){return console.error("AG Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnModel.getValueColumns()},e.prototype.removeAggregationColumn=function(e){console.error("AG Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnModel.removeValueColumn(e,"api")},e.prototype.removeAggregationColumns=function(e){console.error("AG Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnModel.removeValueColumns(e,"api")},e.prototype.addAggregationColumn=function(e){console.error("AG Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnModel.addValueColumn(e,"api")},e.prototype.addAggregationColumns=function(e){console.error("AG Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnModel.addValueColumns(e,"api")},e.prototype.setColumnAggFunction=function(e,t){console.error("AG Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnModel.setColumnAggFunc(e,t,"api")},e.prototype.getDisplayNameForCol=function(e){return console.error("AG Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(e,null)},e.prototype.setColumnState=function(e){return console.error("AG Grid: setColumnState is deprecated, use applyColumnState"),this.columnModel.applyColumnState({state:e,applyOrder:!0},"api")},e.prototype.getOriginalColumnGroup=function(e){return console.error("AG Grid: getOriginalColumnGroup is deprecated, use getProvidedColumnGroup"),this.columnModel.getProvidedColumnGroup(e)},sh([K("columnModel")],e.prototype,"columnModel",void 0),sh([Z],e.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),e=sh([Y("columnApi")],e)}(),lh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),uh=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},ch=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.initialised=!1,t}return lh(t,e),t.prototype.init=function(){var e=this;this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0,this.eventService.addEventListener(Ve.EVENT_CELL_VALUE_CHANGED,(function(t){return e.callColumnCellValueChangedHandler(t)}),this.gridOptionsWrapper.useAsyncEvents())},t.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=E(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=E(l,s,e.isFieldContainsDots())),this.cellExpressions&&"string"===typeof r&&0===r.indexOf("=")){var p=r.substring(1);r=this.executeValueGetter(p,l,e,t)}if(null==r){var d=this.getOpenedGroup(t,e);if(null!=d)return d}return r}},t.prototype.getOpenedGroup=function(e,t){if(this.gridOptionsWrapper.isShowOpenedGroup()&&t.getColDef().showRowGroup)for(var n=t.getColDef().showRowGroup,o=e.parent;null!=o;){if(o.rowGroupColumn&&(!0===n||n===o.rowGroupColumn.getId()))return o.key;o=o.parent}},t.prototype.setValue=function(e,t,n,o){var s=this.columnModel.getPrimaryColumn(t);if(!e||!s)return!1;i(e.data)&&(e.data={});var a=s.getColDef(),l=a.field,u=a.newValueHandler,c=a.valueSetter;if(i(l)&&i(u)&&i(c))return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"),!1;var p,d={node:e,data:e.data,oldValue:this.getValue(s,e),newValue:n,colDef:s.getColDef(),column:s,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};if(d.newValue=n,void 0===(p=u&&r(u)?u(d):r(c)?this.expressionService.evaluate(c,d):this.setValueUsingField(e.data,l,n,s.isFieldContainsDots()))&&(p=!0),!p)return!1;e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),d.newValue=this.getValue(s,e);var h={type:Ve.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:d.column,api:d.api,columnApi:d.columnApi,colDef:d.colDef,context:d.context,data:e.data,node:e,oldValue:d.oldValue,newValue:d.newValue,value:d.newValue,source:o};return this.eventService.dispatchEvent(h),!0},t.prototype.callColumnCellValueChangedHandler=function(e){var t=e.colDef.onCellValueChanged;"function"===typeof t&&t({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,columnApi:e.columnApi,context:e.context})},t.prototype.setValueUsingField=function(e,t,n,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},t.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)},t.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},t.prototype.getValueCallback=function(e,t){var n=this.columnModel.getPrimaryColumn(t);return n?this.getValue(n,e):null},t.prototype.getKeyForNode=function(e,t){var n=this.getValue(e,t),o=e.getColDef().keyCreator,r=n;o&&(r=o({value:n,colDef:e.getColDef(),column:e,node:t,data:t.data,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}));return"string"===typeof r||null==r||"[object Object]"===(r=String(r))&&D((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},uh([K("expressionService")],t.prototype,"expressionService",void 0),uh([K("columnModel")],t.prototype,"columnModel",void 0),uh([K("valueCache")],t.prototype,"valueCache",void 0),uh([z],t.prototype,"init",null),t=uh([Y("valueService")],t)}(Fe),ph=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),dh=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},hh=function(e,t){return function(n,o){t(n,o,e)}},fh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.expressionToFunctionCache={},t}return ph(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},t.prototype.evaluate=function(e,t){if("function"===typeof e)return e(t);if("string"===typeof e){var n=e;return this.evaluateExpression(n,t)}console.error("AG Grid: value should be either a string or a function",e)},t.prototype.evaluateExpression=function(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.columnApi,t.getValue,t.column,t.columnGroup)}catch(n){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Params =",t),console.log("Exception = "+n),null}},t.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var t=this.createFunctionBody(e),n=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",t);return this.expressionToFunctionCache[e]=n,n},t.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},dh([hh(0,Q("loggerFactory"))],t.prototype,"setBeans",null),t=dh([Y("expressionService")],t)}(Fe),gh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),mh=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},vh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.templateCache={},t.waitingCallbacks={},t}return gh(t,e),t.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},t.prototype.handleHttpResult=function(e,t){if(200===e.status&&null!==e.response){this.templateCache[t]=e.response||e.responseText;for(var n=this.waitingCallbacks[t],o=0;o<n.length;o++){(0,n[o])()}}else console.warn("AG Grid: Unable to get template error "+e.status+" - "+t)},t=mh([Y("templateService")],t)}(Fe),yh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Ch=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},wh=function(e,t){return function(n,o){t(n,o,e)}},_h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yh(t,e),t.prototype.setBeans=function(e){this.logging=e.isDebug()},t.prototype.create=function(e){return new bh(e,this.isLogging.bind(this))},t.prototype.isLogging=function(){return this.logging},Ch([wh(0,Q("gridOptionsWrapper"))],t.prototype,"setBeans",null),t=Ch([Y("loggerFactory")],t)}(Fe),bh=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}(),Eh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Sh=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},Rh=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Eh(n,e),n.prototype.setComp=function(e,t,n){var o=this;this.view=e,this.eGridHostDiv=t,this.eGui=n,this.mouseEventService.stampTopLevelGridCompWithGridInstance(t),this.createManagedBean(new wa(this.view)),this.addRtlSupport(),this.addManagedListener(this,Ve.EVENT_KEYBOARD_FOCUS,(function(){o.view.addOrRemoveKeyboardFocusClass(!0)})),this.addManagedListener(this,Ve.EVENT_MOUSE_FOCUS,(function(){o.view.addOrRemoveKeyboardFocusClass(!1)}));var r=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return r()})),this.ctrlsService.registerGridCtrl(this)},n.prototype.isDetailGrid=function(){var e,t;return(null===(t=null===(e=this.focusService.findTabbableParent(this.getGui()))||void 0===e?void 0:e.getAttribute("row-id"))||void 0===t?void 0:t.startsWith("detail"))||!1},n.prototype.showDropZones=function(){return re.isRegistered(t.ModuleNames.RowGroupingModule)},n.prototype.showSideBar=function(){return re.isRegistered(t.ModuleNames.SideBarModule)},n.prototype.showStatusBar=function(){return re.isRegistered(t.ModuleNames.StatusBarModule)},n.prototype.showWatermark=function(){return re.isRegistered(t.ModuleNames.EnterpriseCoreModule)},n.prototype.onGridSizeChanged=function(){var e={type:Ve.EVENT_GRID_SIZE_CHANGED,api:this.gridApi,columnApi:this.columnApi,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(e)},n.prototype.addRtlSupport=function(){var e=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";this.view.setRtlClass(e)},n.prototype.destroyGridUi=function(){this.view.destroyGridUi()},n.prototype.getGui=function(){return this.eGui},n.prototype.setResizeCursor=function(e){this.view.setCursor(e?"ew-resize":null)},n.prototype.disableUserSelect=function(e){this.view.setUserSelect(e?"none":null)},n.prototype.focusNextInnerContainer=function(e){var t=this.gridOptionsWrapper.getDocument(),n=this.view.getFocusableContainers(),o=n.findIndex((function(e){return e.contains(t.activeElement)}))+(e?-1:1);return!(o<=0||o>=n.length)&&this.focusService.focusInto(n[o])},n.prototype.focusInnerElement=function(e){var t=this.view.getFocusableContainers();if(e){if(t.length>1)return this.focusService.focusInto(ue(t),!0);var n=ue(this.columnModel.getAllDisplayedColumns());if(this.focusService.focusGridView(n,!0))return!0}return this.focusService.focusFirstHeader()},n.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.view.forceFocusOutOfContainer(e)},Sh([K("columnApi")],n.prototype,"columnApi",void 0),Sh([K("gridApi")],n.prototype,"gridApi",void 0),Sh([K("focusService")],n.prototype,"focusService",void 0),Sh([K("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Sh([K("columnModel")],n.prototype,"columnModel",void 0),Sh([K("ctrlsService")],n.prototype,"ctrlsService",void 0),Sh([K("mouseEventService")],n.prototype,"mouseEventService",void 0),n}(Fe),Oh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Th=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},Ph=function(e){function n(t){var n=e.call(this,void 0)||this;return n.eGridDiv=t,n}return Oh(n,e),n.prototype.postConstruct=function(){var e=this;this.logger=this.loggerFactory.create("GridComp");var t={destroyGridUi:function(){return e.destroyBean(e)},setRtlClass:function(t){return e.addCssClass(t)},addOrRemoveKeyboardFocusClass:function(t){return e.addOrRemoveCssClass(kd.AG_KEYBOARD_FOCUS,t)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(t){e.getGui().style.userSelect=null!=t?t:"",e.getGui().style.webkitUserSelect=null!=t?t:""},setCursor:function(t){e.getGui().style.cursor=null!=t?t:""}};this.ctrl=this.createManagedBean(new Rh);var n=this.createTemplate();this.setTemplate(n),this.ctrl.setComp(t,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(t){return e.ctrl.focusInnerElement(t)}})},n.prototype.insertGridIntoDom=function(){var e=this,t=this.getGui();this.eGridDiv.appendChild(t),this.addDestroyFunc((function(){e.eGridDiv.removeChild(t),e.logger.log("Grid removed from DOM")}))},n.prototype.updateLayoutClasses=function(e,n){var o=this.eRootWrapperBody.classList;o.toggle(t.LayoutCssClasses.AUTO_HEIGHT,n.autoHeight),o.toggle(t.LayoutCssClasses.NORMAL,n.normal),o.toggle(t.LayoutCssClasses.PRINT,n.print),this.addOrRemoveCssClass(t.LayoutCssClasses.AUTO_HEIGHT,n.autoHeight),this.addOrRemoveCssClass(t.LayoutCssClasses.NORMAL,n.normal),this.addOrRemoveCssClass(t.LayoutCssClasses.PRINT,n.print)},n.prototype.createTemplate=function(){return'<div class="ag-root-wrapper">\n                '+(this.ctrl.showDropZones()?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"")+'\n                <div class="ag-root-wrapper-body" ref="rootWrapperBody">\n                    <ag-grid-body ref="gridBody"></ag-grid-body>\n                    '+(this.ctrl.showSideBar()?'<ag-side-bar ref="sideBar"></ag-side-bar>':"")+"\n                </div>\n                "+(this.ctrl.showStatusBar()?'<ag-status-bar ref="statusBar"></ag-status-bar>':"")+"\n                <ag-pagination></ag-pagination>\n                "+(this.ctrl.showWatermark()?"<ag-watermark></ag-watermark>":"")+"\n            </div>"},n.prototype.getFocusableElement=function(){return this.eRootWrapperBody},n.prototype.getFocusableContainers=function(){var e=[this.gridBodyComp.getGui()];return this.sideBarComp&&e.push(this.sideBarComp.getGui()),e.filter((function(e){return fn(e)}))},Th([K("loggerFactory")],n.prototype,"loggerFactory",void 0),Th([nr("gridBody")],n.prototype,"gridBodyComp",void 0),Th([nr("sideBar")],n.prototype,"sideBarComp",void 0),Th([nr("rootWrapperBody")],n.prototype,"eRootWrapperBody",void 0),Th([z],n.prototype,"postConstruct",null),n}(bd),Ah=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Dh=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},xh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return Ah(t,e),n=t,t.prototype.progressSort=function(e,t,n){var o=this.getNextSortDirection(e);this.setSortForColumn(e,o,t,n)},t.prototype.setSortForColumn=function(e,t,n,o){t!==oe.SORT_ASC&&t!==oe.SORT_DESC&&(t=null),e.setSort(t,o),(n||this.gridOptionsWrapper.isAlwaysMultiSort())&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarThisColumn(e,o),this.updateSortIndex(e),this.dispatchSortChangedEvents(o)},t.prototype.updateSortIndex=function(e){var t=this.getColumnsWithSortingOrdered(),n=0;t.forEach((function(t){t!==e&&(t.setSortIndex(n),n++)})),e.getSort()&&e.setSortIndex(n),this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((function(e){return null==e.getSort()})).forEach((function(e){return e.setSortIndex()}))},t.prototype.onSortChanged=function(e){this.dispatchSortChangedEvents(e)},t.prototype.isSortActive=function(){var e=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((function(e){return!!e.getSort()}));return e&&e.length>0},t.prototype.dispatchSortChangedEvents=function(e){var t={type:Ve.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:e};this.eventService.dispatchEvent(t)},t.prototype.clearSortBarThisColumn=function(e,t){this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((function(n){n!==e&&n.setSort(void 0,t)}))},t.prototype.getNextSortDirection=function(e){var t;if(t=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():n.DEFAULT_SORTING_ORDER,!Array.isArray(t)||t.length<=0)return console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's "+t),null;var o,r=t.indexOf(e.getSort()),i=r<0,s=r==t.length-1;return o=i||s?t[0]:t[r+1],n.DEFAULT_SORTING_ORDER.indexOf(o)<0?(console.warn("AG Grid: invalid sort type "+o),null):o},t.prototype.getColumnsWithSortingOrdered=function(){var e=this.columnModel.getPrimaryAndSecondaryAndAutoColumns(),t=e.filter((function(e){return!!e.getSort()})),n={};return e.forEach((function(e,t){return n[e.getId()]=t})),t.sort((function(e,t){var o=e.getSortIndex(),r=t.getSortIndex();return null!=o&&null!=r?o-r:null==o&&null==r?n[e.getId()]>n[t.getId()]?1:-1:null==r?-1:1})),t},t.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered().map((function(e){return{sort:e.getSort(),colId:e.getId()}}))},t.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().map((function(e){return{sort:e.getSort(),column:e}}))},t.DEFAULT_SORTING_ORDER=[oe.SORT_ASC,oe.SORT_DESC,null],Dh([K("columnModel")],t.prototype,"columnModel",void 0),Dh([K("columnApi")],t.prototype,"columnApi",void 0),Dh([K("gridApi")],t.prototype,"gridApi",void 0),t=n=Dh([Y("sortController")],t)}(Fe),Nh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Mh=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},Ih=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Nh(t,e),t.prototype.setMouseOver=function(e){this.selectedColumns=e;var t={type:Ve.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:Ve.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},Mh([K("columnApi")],t.prototype,"columnApi",void 0),Mh([K("gridApi")],t.prototype,"gridApi",void 0),t=Mh([Y("columnHoverService")],t)}(Fe),Lh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Fh=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},kh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.executeNextFuncs=[],t.executeLaterFuncs=[],t.active=!1,t.animationThreadCount=0,t}return Lh(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){return e.gridBodyCtrl=t.gridBodyCtrl}))},t.prototype.isActive=function(){return this.active},t.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},t.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},t.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},t.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},t.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var t=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){e.animationThreadCount===t&&e.gridBodyCtrl.setColumnMovingCss(!1)}))},t.prototype.flush=function(){var e=this.executeNextFuncs;this.executeNextFuncs=[];var t=this.executeLaterFuncs;this.executeLaterFuncs=[],0===e.length&&0===t.length||(window.setTimeout((function(){return e.forEach((function(e){return e()}))}),0),window.setTimeout((function(){return t.forEach((function(e){return e()}))}),300))},Fh([K("ctrlsService")],t.prototype,"ctrlsService",void 0),Fh([z],t.prototype,"postConstruct",null),t=Fh([Y("columnAnimationService")],t)}(Fe),Gh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Hh=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},Bh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return Gh(t,e),n=t,t.prototype.createAutoGroupColumns=function(e,t){var n=this,o=[],r=this.gridOptionsWrapper.isTreeData(),i=this.gridOptionsWrapper.isGroupMultiAutoColumn();return r&&i&&(console.warn("AG Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),i=!1),i?t.forEach((function(t,r){o.push(n.createOneAutoGroupColumn(e,t,r))})):o.push(this.createOneAutoGroupColumn(e)),o},t.prototype.createOneAutoGroupColumn=function(e,t,o){var r,s=this.generateDefaultColDef(t);(r=t?oe.GROUP_AUTO_COLUMN_ID+"-"+t.getId():n.GROUP_AUTO_COLUMN_BUNDLE_ID,b(s,this.gridOptionsWrapper.getAutoGroupColumnDef()),(s=this.columnFactory.mergeColDefs(s)).colId=r,this.gridOptionsWrapper.isTreeData())||i(s.field)&&i(s.valueGetter)&&i(s.filterValueGetter)&&(s.filter=!1);o&&o>0&&(s.headerCheckboxSelection=!1);var a=e.find((function(e){return e.getId()==r}));if(a)return a.setColDef(s,null),this.columnFactory.applyColumnState(a,s),a;var l=new ae(s,null,r,!0);return this.context.createBean(l),l},t.prototype.generateDefaultColDef=function(e){var t=this.gridOptionsWrapper.getAutoGroupColumnDef(),n={headerName:this.gridOptionsWrapper.getLocaleTextFunc()("group","Group")};if(t&&(t.cellRenderer||t.cellRendererFramework||t.cellRendererSelector)||(n.cellRenderer="agGroupCellRenderer"),e){var o=e.getColDef();Object.assign(n,{headerName:this.columnModel.getDisplayNameForColumn(e,"header"),headerValueGetter:o.headerValueGetter}),(o.cellRenderer||o.cellRendererFramework)&&Object.assign(n,{cellRendererParams:{innerRenderer:o.cellRenderer,innerRendererFramework:o.cellRendererFramework,innerRendererParams:o.cellRendererParams}}),n.showRowGroup=e.getColId()}else n.showRowGroup=!0;return n},t.GROUP_AUTO_COLUMN_BUNDLE_ID=oe.GROUP_AUTO_COLUMN_ID,Hh([K("columnModel")],t.prototype,"columnModel",void 0),Hh([K("columnFactory")],t.prototype,"columnFactory",void 0),t=n=Hh([Y("autoGroupColService")],t)}(Fe),Vh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Wh=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},jh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vh(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.centerRowContainerCon=t.centerRowContainerCtrl,e.addManagedListener(e.eventService,Ve.EVENT_BODY_HEIGHT_CHANGED,e.onBodyHeightChanged.bind(e)),e.addManagedListener(e.eventService,Ve.EVENT_SCROLL_VISIBILITY_CHANGED,e.onScrollVisibilityChanged.bind(e)),e.checkPageSize()}))},t.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},t.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},t.prototype.onBodyHeightChanged=function(){this.checkPageSize()},t.prototype.checkPageSize=function(){if(!this.notActive()){var e=this.gridOptionsWrapper.getRowHeightAsNumber(),t=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(t>0){var n=Math.floor(t/e);this.gridOptionsWrapper.setProperty("paginationPageSize",n)}}},Wh([K("ctrlsService")],t.prototype,"ctrlsService",void 0),Wh([z],t.prototype,"postConstruct",null),t=Wh([Y("paginationAutoPageSizeService")],t)}(Fe),Uh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),zh=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},Zh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cacheVersion=0,t}return Uh(t,e),t.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},t.prototype.onDataChanged=function(){this.neverExpires||this.expire()},t.prototype.expire=function(){this.cacheVersion++},t.prototype.setValue=function(e,t,n){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=n)},t.prototype.getValue=function(e,t){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]},zh([z],t.prototype,"init",null),t=zh([Y("valueCache")],t)}(Fe),Yh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Kh=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},qh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yh(t,e),t.prototype.init=function(){this.rowModel.getType()===oe.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,Ve.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){e.source!==oe.SOURCE_PASTE&&this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,t){if(!this.gridOptionsWrapper.isSuppressChangeDetection()){if(this.clientSideRowModel&&!e.isRowPinned()){var n=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),o=new Ep(n,this.clientSideRowModel.getRootNode());o.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(o)}this.rowRenderer.refreshCells()}},Kh([K("rowModel")],t.prototype,"rowModel",void 0),Kh([K("rowRenderer")],t.prototype,"rowRenderer",void 0),Kh([z],t.prototype,"init",null),t=Kh([Y("changeDetectionService")],t)}(Fe),Xh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Qh=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},Jh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xh(t,e),t.prototype.adaptFunction=function(e,t){var n=this.componentMetadataProvider.retrieve(e);return n&&n.functionAdapter?n.functionAdapter(t):null},t.prototype.adaptCellRendererFunction=function(e){return function(){function t(){}return t.prototype.refresh=function(e){return!1},t.prototype.getGui=function(){return this.eGui},t.prototype.init=function(t){var n=e(t),o=typeof n;this.eGui="string"!==o&&"number"!==o&&"boolean"!==o?null!=n?n:gn("<span></span>"):gn("<span>"+n+"</span>")},t}()},t.prototype.doesImplementIComponent=function(e){return!!e&&(e.prototype&&"getGui"in e.prototype)},Qh([K("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),t=Qh([Y("agComponentUtils")],t)}(Fe),$h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),ef=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},tf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $h(t,e),t.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},headerComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},pinnedRowCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},t.prototype.retrieve=function(e){return this.componentMetaData[e]},ef([K("agComponentUtils")],t.prototype,"agComponentUtils",void 0),ef([z],t.prototype,"postConstruct",null),t=ef([Y("componentMetadataProvider")],t)}(Fe),nf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),of=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},rf={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:20,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:56,headerCellMinWidth:48,listItemHeight:32,rowHeight:48,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:32,headerCellMinWidth:24,listItemHeight:24,rowHeight:28,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:48,headerCellMinWidth:36,listItemHeight:24,rowHeight:42,chartMenuPanelWidth:240}},sf={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},af={},lf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nf(t,e),t.prototype.getSassVariable=function(e,t){var n="ag-theme-"+(e.match("material")?"material":e.match("balham")?"balham":e.match("alpine")?"alpine":"custom"),o=rf[n][t],r=0;af[e]||(af[e]={});var i=af[e][t];if(null!=i)return i;if(sf[t]){var s=sf[t],a=document.createElement("div");a.classList.add(e),a.style.position="absolute";var l=s.reduce((function(e,t){var n=document.createElement("div");return n.style.position="static",n.classList.add(t),e.appendChild(n),n}),a);if(document.body){document.body.appendChild(a);var u=-1!==t.toLowerCase().indexOf("height")?"height":"width";r=parseInt(window.getComputedStyle(l)[u],10),document.body.removeChild(a)}}return af[e][t]=r||o,af[e][t]},t.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("dark")>=0},t.prototype.chartMenuPanelWidth=function(){var e=this.getTheme().themeFamily;return this.getSassVariable(e,"chartMenuPanelWidth")},t.prototype.getTheme=function(){for(var e=/\bag-(material|(?:theme-([\w\-]*)))\b/,t=this.eGridDiv,n=null;t&&!(n=e.exec(t.className));)t=t.parentElement||void 0;if(!n)return{};var o=n[0];if(void 0===n[2]){var r=o.replace("ag-","ag-theme-");D((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:t,themeFamily:o.replace(/-dark$/,"")}},of([K("eGridDiv")],t.prototype,"eGridDiv",void 0),t=of([Y("environment")],t)}(Fe),uf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),cf=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},pf=function(e,t){return function(n,o){t(n,o,e)}},df=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}return uf(t,e),t.prototype.agWire=function(e){this.logger=e.create("RowContainerHeightService")},t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ve.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=Ut(),this.logger.log("maxDivHeight = "+this.maxDivHeight)},t.prototype.isStretching=function(){return this.stretching},t.prototype.getDivStretchOffset=function(){return this.divStretchOffset},t.prototype.updateOffset=function(){if(this.stretching){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}},t.prototype.calculateOffset=function(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;this.logger.log("Div Stretch Offset = "+t+" ("+this.pixelsToShave+" * "+e+")"),this.setDivStretchOffset(t)},t.prototype.setUiContainerHeight=function(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventService.dispatchEvent({type:Ve.EVENT_ROW_CONTAINER_HEIGHT_CHANGED}))},t.prototype.clearOffset=function(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)},t.prototype.setDivStretchOffset=function(e){var t="number"===typeof e?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventService.dispatchEvent({type:Ve.EVENT_HEIGHT_SCALE_CHANGED}))},t.prototype.setModelHeight=function(e){this.modelHeight=e,this.stretching=null!=e&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()},t.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},t.prototype.getRealPixelPosition=function(e){return e-this.divStretchOffset},t.prototype.getUiBodyHeight=function(){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition();return e.bottom-e.top},t.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var t=e/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*t},cf([K("ctrlsService")],t.prototype,"ctrlsService",void 0),cf([pf(0,Q("loggerFactory"))],t.prototype,"agWire",null),cf([z],t.prototype,"postConstruct",null),t=cf([Y("rowContainerHeightService")],t)}(Fe),hf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),ff=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},gf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hf(t,e),t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},t.prototype.updateSelectableAfterGrouping=function(e){if(this.isRowSelectableFunc){this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterGroup}))}},t.prototype.recurseDown=function(e,t){var n=this;e&&e.forEach((function(e){if(e.group){var o;if(e.hasChildren()&&n.recurseDown(t(e),t),n.groupSelectsChildren)o=r((t(e)||[]).find((function(e){return!0===e.selectable})));else o=!!n.isRowSelectableFunc&&n.isRowSelectableFunc(e);e.setRowSelectable(o)}}))},ff([z],t.prototype,"init",null),t=ff([Y("selectableService")],t)}(Fe),mf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),vf=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},yf=function(e){function t(){var t=e.call(this)||this;return t.previousAndFirstButtonsDisabled=!1,t.nextButtonDisabled=!1,t.lastButtonDisabled=!1,t}return mf(t,e),t.prototype.postConstruct=function(){var e=this,t=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",Ao(t?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",Ao(t?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",Ao(t?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",Ao(t?"first":"last",this.gridOptionsWrapper)),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addManagedListener(this.eventService,Ve.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach((function(t){var n=t.el,o=t.fn;e.addManagedListener(n,"click",o),e.addManagedListener(n,"keydown",(function(e){e.key!==dr.ENTER&&e.key!==dr.SPACE||(e.preventDefault(),o())}))})),this.onPaginationChanged()):this.setDisplayed(!1)},t.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},t.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,t=this.paginationProxy.getCurrentPage(),n=e?t+1:0;this.lbCurrent.innerHTML=this.formatNumber(n)},t.prototype.formatNumber=function(e){var t=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();if(t)return t({value:e});var n=this.gridOptionsWrapper.getLocaleTextFunc();return go(e,n("thousandSeparator",","),n("decimalSeparator","."))},t.prototype.getTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=e("page","Page"),n=e("to","to"),o=e("of","of"),r=e("firstPage","First Page"),i=e("previousPage","Previous Page"),s=e("nextPage","Next Page"),a=e("lastPage","Last Page"),l=this.getCompId();return'<div class="ag-paging-panel ag-unselectable" id="ag-'+l+'">\n                <span class="ag-paging-row-summary-panel" role="status">\n                    <span id="ag-'+l+'-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n                    <span id="ag-'+l+'-to">'+n+'</span>\n                    <span id="ag-'+l+'-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n                    <span id="ag-'+l+'-of">'+o+'</span>\n                    <span id="ag-'+l+'-row-count" ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>\n                </span>\n                <span class="ag-paging-page-summary-panel" role="presentation">\n                    <div ref="btFirst" class="ag-paging-button" role="button" aria-label="'+r+'"></div>\n                    <div ref="btPrevious" class="ag-paging-button" role="button" aria-label="'+i+'"></div>\n                    <span class="ag-paging-description" role="status">\n                        <span id="ag-'+l+'-start-page">'+t+'</span>\n                        <span id="ag-'+l+'-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>\n                        <span id="ag-'+l+'-of-page">'+o+'</span>\n                        <span id="ag-'+l+'-of-page-number" ref="lbTotal" class="ag-paging-number"></span>\n                    </span>\n                    <div ref="btNext" class="ag-paging-button" role="button" aria-label="'+s+'"></div>\n                    <div ref="btLast" class="ag-paging-button" role="button" aria-label="'+a+'"></div>\n                </span>\n            </div>'},t.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},t.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},t.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.isLastPageFound(),n=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===e,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var o=this.isZeroPagesToDisplay(),r=t&&e===n-1;this.nextButtonDisabled=r||o,this.lastButtonDisabled=!t||o||e===n-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},t.prototype.toggleButtonDisabled=function(e,t){qn(e,t),e.classList.toggle("ag-disabled",t),t?e.removeAttribute("tabindex"):e.setAttribute("tabindex","0")},t.prototype.updateRowLabels=function(){var e,t,n=this.paginationProxy.getCurrentPage(),o=this.paginationProxy.getPageSize(),r=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?e=t=0:(t=(e=o*n+1)+o-1,r&&t>i&&(t=i)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(e),this.rowNodeBlockLoader.isLoading()?this.lbLastRowOnPage.innerHTML="?":this.lbLastRowOnPage.innerHTML=this.formatNumber(t)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages();return e&&0===t},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages(),n=e?this.paginationProxy.getMasterRowCount():null;if(1===n){var o=this.paginationProxy.getRow(0);if(o&&o.group&&!(o.groupData||o.aggData))return void this.setTotalLabelsToZero()}if(e)this.lbTotal.innerHTML=this.formatNumber(t),this.lbRecordCount.innerHTML=this.formatNumber(n);else{var r=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=r,this.lbRecordCount.innerHTML=r}},t.prototype.setTotalLabelsToZero=function(){this.lbFirstRowOnPage.innerHTML=this.formatNumber(0),this.lbCurrent.innerHTML=this.formatNumber(0),this.lbLastRowOnPage.innerHTML=this.formatNumber(0),this.lbTotal.innerHTML=this.formatNumber(0),this.lbRecordCount.innerHTML=this.formatNumber(0)},vf([K("paginationProxy")],t.prototype,"paginationProxy",void 0),vf([K("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),vf([nr("btFirst")],t.prototype,"btFirst",void 0),vf([nr("btPrevious")],t.prototype,"btPrevious",void 0),vf([nr("btNext")],t.prototype,"btNext",void 0),vf([nr("btLast")],t.prototype,"btLast",void 0),vf([nr("lbRecordCount")],t.prototype,"lbRecordCount",void 0),vf([nr("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),vf([nr("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),vf([nr("lbCurrent")],t.prototype,"lbCurrent",void 0),vf([nr("lbTotal")],t.prototype,"lbTotal",void 0),vf([z],t.prototype,"postConstruct",null),t}(tr),Cf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),wf=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.Loading=0]="Loading",e[e.NoRows=1]="NoRows"}(Bd||(Bd={}));var _f=function(e){function n(){var t=e.call(this,n.TEMPLATE)||this;return t.inProgress=!1,t.destroyRequested=!1,t.manuallyDisplayed=!1,t}return Cf(n,e),n.prototype.updateLayoutClasses=function(e,n){var o=this.eOverlayWrapper.classList;o.toggle(t.LayoutCssClasses.AUTO_HEIGHT,n.autoHeight),o.toggle(t.LayoutCssClasses.NORMAL,n.normal),o.toggle(t.LayoutCssClasses.PRINT,n.print)},n.prototype.postConstruct=function(){this.createManagedBean(new wa(this)),this.setDisplayed(!1),this.addManagedListener(this.eventService,Ve.EVENT_ROW_DATA_CHANGED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_ROW_DATA_UPDATED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.gridApi.registerOverlayWrapperComp(this)},n.prototype.setWrapperTypeClass=function(e){var t=this.eOverlayWrapper.classList;t.toggle("ag-overlay-loading-wrapper",e===Bd.Loading),t.toggle("ag-overlay-no-rows-wrapper",e===Bd.NoRows)},n.prototype.showLoadingOverlay=function(){if(!this.gridOptionsWrapper.isSuppressLoadingOverlay()){var e=this.userComponentFactory.getLoadingOverlayCompDetails({}).newAgStackInstance();this.showOverlay(e,Bd.Loading)}},n.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsWrapper.isSuppressNoRowsOverlay()){var e=this.userComponentFactory.getNoRowsOverlayCompDetails({}).newAgStackInstance();this.showOverlay(e,Bd.NoRows)}},n.prototype.showOverlay=function(e,t){var n=this;this.inProgress||(this.setWrapperTypeClass(t),this.destroyActiveOverlay(),this.inProgress=!0,e&&e.then((function(e){n.inProgress=!1,n.eOverlayWrapper.appendChild(e.getGui()),n.activeOverlay=e,n.destroyRequested&&(n.destroyRequested=!1,n.destroyActiveOverlay())})),this.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.setDisplayed(!0))},n.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),dn(this.eOverlayWrapper))},n.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.destroyActiveOverlay(),this.setDisplayed(!1)},n.prototype.destroy=function(){this.destroyActiveOverlay(),e.prototype.destroy.call(this)},n.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),t=this.gridOptionsWrapper.isSuppressNoRowsOverlay();e&&!t?this.showNoRowsOverlay():this.hideOverlay()},n.prototype.onRowDataChanged=function(){this.showOrHideOverlay()},n.prototype.onNewColumnsLoaded=function(){!this.columnModel.isReady()||this.paginationProxy.isEmpty()||this.manuallyDisplayed||this.hideOverlay()},n.TEMPLATE='\n        <div class="ag-overlay" aria-hidden="true">\n            <div class="ag-overlay-panel">\n                <div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>\n            </div>\n        </div>',wf([K("userComponentFactory")],n.prototype,"userComponentFactory",void 0),wf([K("paginationProxy")],n.prototype,"paginationProxy",void 0),wf([K("gridApi")],n.prototype,"gridApi",void 0),wf([K("columnModel")],n.prototype,"columnModel",void 0),wf([nr("eOverlayWrapper")],n.prototype,"eOverlayWrapper",void 0),wf([z],n.prototype,"postConstruct",null),n}(tr),bf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Ef=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},Sf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bf(t,e),t.prototype.getFirstRow=function(){var e,t=0;return this.pinnedRowModel.getPinnedTopRowCount()?e=oe.PINNED_TOP:this.rowModel.getRowCount()?(e=null,t=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(e=oe.PINNED_BOTTOM),void 0===e?null:{rowIndex:t,rowPinned:e}},t.prototype.getLastRow=function(){var e,t=null,n=this.pinnedRowModel.getPinnedBottomRowCount(),o=this.pinnedRowModel.getPinnedTopRowCount();return n?(t=oe.PINNED_BOTTOM,e=n-1):this.rowModel.getRowCount()?(t=null,e=this.paginationProxy.getPageLastRow()):o&&(t=oe.PINNED_TOP,e=o-1),void 0===e?null:{rowIndex:e,rowPinned:t}},t.prototype.getRowNode=function(e){switch(e.rowPinned){case oe.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case oe.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.sameRow=function(e,t){return!e&&!t||!(e&&!t||!e&&t)&&(e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned)},t.prototype.before=function(e,t){switch(e.rowPinned){case oe.PINNED_TOP:if(t.rowPinned!==oe.PINNED_TOP)return!0;break;case oe.PINNED_BOTTOM:if(t.rowPinned!==oe.PINNED_BOTTOM)return!1;break;default:if(r(t.rowPinned))return t.rowPinned!==oe.PINNED_TOP}return e.rowIndex<t.rowIndex},Ef([K("rowModel")],t.prototype,"rowModel",void 0),Ef([K("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Ef([K("paginationProxy")],t.prototype,"paginationProxy",void 0),t=Ef([Y("rowPositionUtils")],t)}(Fe),Rf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Of=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},Tf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rf(t,e),t.prototype.createId=function(e){var t=e.rowIndex,n=e.rowPinned,o=e.column;return this.createIdFromValues(t,o,n)},t.prototype.createIdFromValues=function(e,t,n){return e+"."+(null==n?"null":n)+"."+t.getId()},t.prototype.equals=function(e,t){var n=e.column===t.column,o=e.rowPinned===t.rowPinned,r=e.rowIndex===t.rowIndex;return n&&o&&r},t=Of([Y("cellPositionUtils")],t)}(Fe),Pf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Af=function(e){this.cellValueChanges=e},Df=function(e){function t(t,n,o){var r=e.call(this,t)||this;return r.initialRange=n,r.finalRange=o,r}return Pf(t,e),t}(Af),xf=function(){function e(t){this.actionStack=[],this.maxStackSize=t||e.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return e.prototype.pop=function(){return this.actionStack.pop()},e.prototype.push=function(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))},e.prototype.clear=function(){this.actionStack=[]},e.prototype.getCurrentStackSize=function(){return this.actionStack.length},e.DEFAULT_STACK_SIZE=10,e}(),Nf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Mf=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},If=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellValueChanges=[],t.activeCellEdit=null,t.activeRowEdit=null,t.isPasting=!1,t.isFilling=!1,t.onCellValueChanged=function(e){var n={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},o=null!==t.activeCellEdit&&t.cellPositionUtils.equals(t.activeCellEdit,n),r=null!==t.activeRowEdit&&t.rowPositionUtils.sameRow(t.activeRowEdit,n);if(o||r||t.isPasting||t.isFilling){var i=e.rowPinned,s=e.rowIndex,a=e.column,l=e.oldValue,u=e.value,c={rowPinned:i,rowIndex:s,columnId:a.getColId(),newValue:u,oldValue:l};t.cellValueChanges.push(c)}},t.clearStacks=function(){t.undoStack.clear(),t.redoStack.clear()},t}return Nf(n,e),n.prototype.init=function(){if(this.gridOptionsWrapper.isUndoRedoCellEditing()){var e=this.gridOptionsWrapper.getUndoRedoCellEditingLimit();e<=0||(this.undoStack=new xf(e),this.redoStack=new xf(e),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addManagedListener(this.eventService,Ve.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,Ve.EVENT_MODEL_UPDATED,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_ROW_DRAG_END,this.clearStacks))}},n.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},n.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},n.prototype.undo=function(){if(this.undoStack){var e=this.undoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.oldValue})),e instanceof Df?this.processRangeAndCellFocus(e.cellValueChanges,e.initialRange):this.processRangeAndCellFocus(e.cellValueChanges),this.redoStack.push(e))}},n.prototype.redo=function(){if(this.redoStack){var e=this.redoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.newValue})),e instanceof Df?this.processRangeAndCellFocus(e.cellValueChanges,e.finalRange):this.processRangeAndCellFocus(e.cellValueChanges),this.undoStack.push(e))}},n.prototype.processAction=function(e,t){var n=this;e.cellValueChanges.forEach((function(e){var o=e.rowIndex,r=e.rowPinned,i=e.columnId,s={rowIndex:o,rowPinned:r},a=n.getRowNode(s);a.displayed&&a.setDataValue(i,t(e))}))},n.prototype.processRangeAndCellFocus=function(e,t){var n;if(t){var o=t.startRow,r=t.endRow;n={rowPinned:o.rowPinned,rowIndex:o.rowIndex,columnId:t.startColumn.getColId()},this.setLastFocusedCell(n);var i={rowStartIndex:o.rowIndex,rowStartPinned:o.rowPinned,rowEndIndex:r.rowIndex,rowEndPinned:r.rowPinned,columnStart:t.startColumn,columns:t.columns};this.gridApi.addCellRange(i)}else{var s=e[0],a={rowIndex:s.rowIndex,rowPinned:s.rowPinned},l=this.getRowNode(a);n={rowPinned:s.rowPinned,rowIndex:l.rowIndex,columnId:s.columnId},this.setLastFocusedCell(n)}},n.prototype.setLastFocusedCell=function(e){var n=e.rowIndex,o=e.columnId,r=e.rowPinned;this.gridApi.ensureIndexVisible(n),this.gridApi.ensureColumnVisible(o),re.isRegistered(t.ModuleNames.RangeSelectionModule)&&this.gridApi.clearRangeSelection(),this.focusService.setFocusedCell(n,o,r,!0)},n.prototype.addRowEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_ROW_EDITING_STARTED,(function(t){e.activeRowEdit={rowIndex:t.rowIndex,rowPinned:t.rowPinned}})),this.addManagedListener(this.eventService,Ve.EVENT_ROW_EDITING_STOPPED,(function(){var t=new Af(e.cellValueChanges);e.pushActionsToUndoStack(t),e.activeRowEdit=null}))},n.prototype.addCellEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_CELL_EDITING_STARTED,(function(t){e.activeCellEdit={column:t.column,rowIndex:t.rowIndex,rowPinned:t.rowPinned}})),this.addManagedListener(this.eventService,Ve.EVENT_CELL_EDITING_STOPPED,(function(){if(e.activeCellEdit=null,!e.activeRowEdit&&!e.isPasting&&!e.isFilling){var t=new Af(e.cellValueChanges);e.pushActionsToUndoStack(t)}}))},n.prototype.addPasteListeners=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_PASTE_START,(function(){e.isPasting=!0})),this.addManagedListener(this.eventService,Ve.EVENT_PASTE_END,(function(){var t=new Af(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isPasting=!1}))},n.prototype.addFillListeners=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_FILL_START,(function(){e.isFilling=!0})),this.addManagedListener(this.eventService,Ve.EVENT_FILL_END,(function(t){var n=new Df(e.cellValueChanges,t.initialRange,t.finalRange);e.pushActionsToUndoStack(n),e.isFilling=!1}))},n.prototype.pushActionsToUndoStack=function(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()},n.prototype.getRowNode=function(e){switch(e.rowPinned){case oe.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case oe.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},Mf([K("focusService")],n.prototype,"focusService",void 0),Mf([K("gridApi")],n.prototype,"gridApi",void 0),Mf([K("rowModel")],n.prototype,"rowModel",void 0),Mf([K("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),Mf([K("cellPositionUtils")],n.prototype,"cellPositionUtils",void 0),Mf([K("rowPositionUtils")],n.prototype,"rowPositionUtils",void 0),Mf([z],n.prototype,"init",null),n=Mf([Y("undoRedoService")],n)}(Fe),Lf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Ff=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},kf=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Lf(n,e),n.prototype.findHeader=function(e,t){var n,o,r;if(e.column instanceof we?(o="getDisplayedGroup"+t,n=this.columnModel[o](e.column)):(r="getDisplayedCol"+t,n=this.columnModel[r](e.column)),n)return{column:n,headerRowIndex:e.headerRowIndex}},n.prototype.findColAtEdgeForHeaderRow=function(e,n){var o=this.columnModel.getAllDisplayedColumns(),r=o["start"===n?0:o.length-1];if(r){var i=this.ctrlsService.getHeaderRowContainerCtrl(r.getPinned()).getRowType(e);return i==t.HeaderRowType.COLUMN_GROUP?{headerRowIndex:e,column:this.columnModel.getColumnGroupAtLevel(r,e)}:{headerRowIndex:null==i?-1:e,column:r}}},Ff([K("columnModel")],n.prototype,"columnModel",void 0),Ff([K("ctrlsService")],n.prototype,"ctrlsService",void 0),n=Ff([Y("headerPositionUtils")],n)}(Fe),Gf=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},Hf=function(){function e(){}return e.prototype.buildColumnDefs=function(e,t,n){var o=this,r=[],i={};return e.forEach((function(e){for(var s=!0,a=o.createDefFromColumn(e,t,n),l=e.getOriginalParent();l;){var u=null;if(l.isPadding())l=l.getOriginalParent();else{var c=i[l.getGroupId()];if(c){c.children.push(a),s=!1;break}(u=o.createDefFromGroup(l))&&(u.children=[a],i[u.groupId]=u,a=u,l=l.getOriginalParent())}}s&&r.push(a)})),r},e.prototype.createDefFromGroup=function(e){var t=m(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t},e.prototype.createDefFromColumn=function(e,t,n){var o=m(e.getColDef());return o.colId=e.getColId(),o.width=e.getActualWidth(),o.rowGroup=e.isRowGroupActive(),o.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,o.pivot=e.isPivotActive(),o.pivotIndex=e.isPivotActive()?n.indexOf(e):null,o.aggFunc=e.isValueActive()?e.getAggFunc():null,o.hide=!e.isVisible()||void 0,o.pinned=e.isPinned()?e.getPinned():null,o.sort=e.getSort()?e.getSort():null,o.sortIndex=null!=e.getSortIndex()?e.getSortIndex():null,o},e=Gf([Y("columnDefFactory")],e)}(),Bf=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},Vf=function(){function e(){}return e.prototype.getInitialRowClasses=function(e){var t=[];return r(e.extraCssClass)&&t.push(e.extraCssClass),t.push("ag-row"),t.push(e.rowFocused?"ag-row-focus":"ag-row-no-focus"),e.fadeRowIn&&t.push("ag-opacity-zero"),t.push(e.rowIsEven?"ag-row-even":"ag-row-odd"),e.rowNode.isRowPinned()&&t.push("ag-row-pinned"),e.rowNode.isSelected()&&t.push("ag-row-selected"),e.rowNode.footer&&t.push("ag-row-footer"),t.push("ag-row-level-"+e.rowLevel),e.rowNode.stub&&t.push("ag-row-loading"),e.fullWidthRow&&t.push("ag-full-width-row"),e.expandable&&(t.push("ag-row-group"),t.push(e.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),e.rowNode.dragging&&t.push("ag-row-dragging"),ve(t,this.processClassesFromGridOptions(e.rowNode)),ve(t,this.preProcessRowClassRules(e.rowNode)),t.push(e.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),e.firstRowOnPage&&t.push("ag-row-first"),e.lastRowOnPage&&t.push("ag-row-last"),e.fullWidthRow&&(e.pinned===oe.PINNED_LEFT&&t.push("ag-cell-last-left-pinned"),e.pinned===oe.PINNED_RIGHT&&t.push("ag-cell-first-right-pinned")),t},e.prototype.processClassesFromGridOptions=function(e){var t=[],n=function(e){"string"===typeof e?t.push(e):Array.isArray(e)&&e.forEach((function(e){return t.push(e)}))},o=this.gridOptionsWrapper.getRowClass();if(o){if("function"===typeof o)return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];n(o)}var r=this.gridOptionsWrapper.getRowClassFunc();r&&n(r({data:e.data,node:e,rowIndex:e.rowIndex}));return t},e.prototype.preProcessRowClassRules=function(e){var t=[];return this.processRowClassRules(e,(function(e){t.push(e)}),(function(e){})),t},e.prototype.processRowClassRules=function(e,t,n){var o={data:e.data,node:e,rowIndex:e.rowIndex,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};this.stylingService.processClassRules(this.gridOptionsWrapper.rowClassRules(),o,t,n)},e.prototype.calculateRowLevel=function(e){return e.group?e.level:e.parent?e.parent.level+1:0},Bf([K("stylingService")],e.prototype,"stylingService",void 0),Bf([K("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=Bf([Y("rowCssClassCalculator")],e)}(),Wf=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},jf=function(){function e(){}return e.prototype.doFullSort=function(e,t){var n=e.map((function(e,t){return{currentPos:t,rowNode:e}}));return n.sort(this.compareRowNodes.bind(this,t)),n.map((function(e){return e.rowNode}))},e.prototype.compareRowNodes=function(e,t,n){for(var o=t.rowNode,r=n.rowNode,i=0,s=e.length;i<s;i++){var a=e[i],l=a.sort===oe.SORT_DESC,u=this.getValue(o,a.column),c=this.getValue(r,a.column),p=void 0,d=this.getComparator(a,o);if(p=d?d(u,c,o,r,l):Wo.defaultComparator(u,c,this.gridOptionsWrapper.isAccentedSort()),!isNaN(p)&&0!==p)return a.sort===oe.SORT_ASC?p:-1*p}return t.currentPos-n.currentPos},e.prototype.getComparator=function(e,t){var n=e.column,o=n.getColDef().comparator;if(null!=o)return o;if(t.rowGroupColumn)return t.rowGroupColumn.getColDef().comparator;if(n.getColDef().showRowGroup){var r=!t.group&&n.getColDef().field;if(r){var i=this.columnModel.getPrimaryColumn(r);if(i)return i.getColDef().comparator}}},e.prototype.getValue=function(e,t){return this.valueService.getValue(t,e,!1,!1)},Wf([K("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Wf([K("valueService")],e.prototype,"valueService",void 0),Wf([K("columnModel")],e.prototype,"columnModel",void 0),e=Wf([Y("rowNodeSorter")],e)}(),Uf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),zf=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},Zf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ready=!1,t.readyCallbacks=[],t}var n;return Uf(t,e),n=t,t.prototype.checkReady=function(){if(this.ready=null!=this.gridCtrl&&null!=this.gridBodyCtrl&&null!=this.centerRowContainerCtrl&&null!=this.leftRowContainerCtrl&&null!=this.rightRowContainerCtrl&&null!=this.bottomCenterRowContainerCtrl&&null!=this.bottomLeftRowContainerCtrl&&null!=this.bottomRightRowContainerCtrl&&null!=this.topCenterRowContainerCtrl&&null!=this.topLeftRowContainerCtrl&&null!=this.topRightRowContainerCtrl&&null!=this.centerHeaderRowContainerCtrl&&null!=this.leftHeaderRowContainerCtrl&&null!=this.rightHeaderRowContainerCtrl&&null!=this.fakeHScrollCtrl&&null!=this.gridHeaderCtrl,this.ready){var e=this.createReadyParams();this.readyCallbacks.forEach((function(t){return t(e)})),this.readyCallbacks.length=0}},t.prototype.whenReady=function(e){this.ready?e(this.createReadyParams()):this.readyCallbacks.push(e)},t.prototype.createReadyParams=function(){return{centerRowContainerCtrl:this.centerRowContainerCtrl,leftRowContainerCtrl:this.leftRowContainerCtrl,rightRowContainerCtrl:this.rightRowContainerCtrl,bottomCenterRowContainerCtrl:this.bottomCenterRowContainerCtrl,bottomLeftRowContainerCtrl:this.bottomLeftRowContainerCtrl,bottomRightRowContainerCtrl:this.bottomRightRowContainerCtrl,topCenterRowContainerCtrl:this.topCenterRowContainerCtrl,topLeftRowContainerCtrl:this.topLeftRowContainerCtrl,topRightRowContainerCtrl:this.topRightRowContainerCtrl,centerHeaderRowContainerCtrl:this.centerHeaderRowContainerCtrl,leftHeaderRowContainerCtrl:this.leftHeaderRowContainerCtrl,rightHeaderRowContainerCtrl:this.rightHeaderRowContainerCtrl,fakeHScrollCtrl:this.fakeHScrollCtrl,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}},t.prototype.registerFakeHScrollCtrl=function(e){this.fakeHScrollCtrl=e,this.checkReady()},t.prototype.registerGridHeaderCtrl=function(e){this.gridHeaderCtrl=e,this.checkReady()},t.prototype.registerCenterRowContainerCtrl=function(e){this.centerRowContainerCtrl=e,this.checkReady()},t.prototype.registerLeftRowContainerCtrl=function(e){this.leftRowContainerCtrl=e,this.checkReady()},t.prototype.registerRightRowContainerCtrl=function(e){this.rightRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopCenterRowContainerCtrl=function(e){this.topCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopLeftRowContainerCon=function(e){this.topLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopRightRowContainerCtrl=function(e){this.topRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomCenterRowContainerCtrl=function(e){this.bottomCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomLeftRowContainerCtrl=function(e){this.bottomLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomRightRowContainerCtrl=function(e){this.bottomRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerHeaderContainer=function(e,t){switch(t){case oe.PINNED_LEFT:this.leftHeaderRowContainerCtrl=e;break;case oe.PINNED_RIGHT:this.rightHeaderRowContainerCtrl=e;break;default:this.centerHeaderRowContainerCtrl=e}this.checkReady()},t.prototype.registerGridBodyCtrl=function(e){this.gridBodyCtrl=e,this.checkReady()},t.prototype.registerGridCtrl=function(e){this.gridCtrl=e,this.checkReady()},t.prototype.getFakeHScrollCtrl=function(){return this.fakeHScrollCtrl},t.prototype.getGridHeaderCtrl=function(){return this.gridHeaderCtrl},t.prototype.getGridCtrl=function(){return this.gridCtrl},t.prototype.getCenterRowContainerCtrl=function(){return this.centerRowContainerCtrl},t.prototype.getTopCenterRowContainerCtrl=function(){return this.topCenterRowContainerCtrl},t.prototype.getBottomCenterRowContainerCtrl=function(){return this.bottomCenterRowContainerCtrl},t.prototype.getGridBodyCtrl=function(){return this.gridBodyCtrl},t.prototype.getHeaderRowContainerCtrls=function(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]},t.prototype.getHeaderRowContainerCtrl=function(e){switch(e){case oe.PINNED_LEFT:return this.leftHeaderRowContainerCtrl;case oe.PINNED_RIGHT:return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}},t.NAME="ctrlsService",t=n=zf([Y(n.NAME)],t)}(Fe),Yf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Kf=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},qf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registry={},t}return Yf(t,e),t.prototype.register=function(e){this.registry[e.controllerName]=e.controllerClass},t.prototype.getInstance=function(e){var t=this.registry[e];if(null!=t)return new t},t=Kf([Y("ctrlsFactory")],t)}(Fe),Xf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Qf=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},Jf=function(e){function t(){return e.call(this)||this}return Xf(t,e),t.prototype.setComp=function(e,t,n,o){this.view=e,this.eViewport=n,this.eContainer=o,this.eGui=t,this.addManagedListener(this.eventService,Ve.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged();var r=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,r),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,r),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,r),this.setFakeHScrollSpacerWidths(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()),this.ctrlsService.registerFakeHScrollCtrl(this)},t.prototype.addActiveListenerToggles=function(){var e=this;["mouseenter","mousedown","touchstart"].forEach((function(t){return e.addManagedListener(e.eGui,t,(function(){return e.view.addOrRemoveCssClass("ag-scrollbar-active",!0)}))})),["mouseleave","mouseup","touchend"].forEach((function(t){return e.addManagedListener(e.eGui,t,(function(){return e.view.addOrRemoveCssClass("ag-scrollbar-active",!1)}))}))},t.prototype.postConstruct=function(){this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.invisibleScrollbar=Yt()},t.prototype.onScrollVisibilityChanged=function(){this.setScrollVisible(),this.setFakeHScrollSpacerWidths()},t.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_BODY_SCROLL,(function(t){"horizontal"===t.direction&&e.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!0)})),this.addManagedListener(this.eventService,Ve.EVENT_BODY_SCROLL_END,(function(){return e.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!1)}))},t.prototype.setFakeHScrollSpacerWidths=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),t=this.columnModel.getDisplayedColumnsRightWidth(),n=!this.enableRtl&&e,o=this.gridOptionsWrapper.getScrollbarWidth();n&&(t+=o),this.view.setRightSpacerFixedWidth(t),this.view.includeRightSpacerScrollerCss("ag-scroller-corner",t<=o);var r=this.columnModel.getDisplayedColumnsLeftWidth();this.enableRtl&&e&&(r+=o),this.view.setLeftSpacerFixedWidth(r),this.view.includeLeftSpacerScrollerCss("ag-scroller-corner",r<=o)},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isHorizontalScrollShowing(),t=this.invisibleScrollbar,n=this.gridOptionsWrapper.isSuppressHorizontalScroll(),o=e&&this.gridOptionsWrapper.getScrollbarWidth()||0,r=n?0:0===o&&t?15:o;this.view.addOrRemoveCssClass("ag-scrollbar-invisible",t),this.view.setHeight(r),this.view.setViewportHeight(r),this.view.setContainerHeight(r)},t.prototype.getViewport=function(){return this.eViewport},t.prototype.getContainer=function(){return this.eContainer},Qf([K("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Qf([K("columnModel")],t.prototype,"columnModel",void 0),Qf([K("ctrlsService")],t.prototype,"ctrlsService",void 0),Qf([z],t.prototype,"postConstruct",null),t}(Fe),$f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),eg=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},tg=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return $f(t,e),t.prototype.postConstruct=function(){var e=this,t={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setHeight:function(t){return On(e.getGui(),t)},setContainerHeight:function(t){return On(e.eContainer,t)},setViewportHeight:function(t){return On(e.eViewport,t)},setRightSpacerFixedWidth:function(t){return Rn(e.eRightSpacer,t)},setLeftSpacerFixedWidth:function(t){return Rn(e.eLeftSpacer,t)},includeLeftSpacerScrollerCss:function(t,n){return e.eLeftSpacer.classList.toggle(t,n)},includeRightSpacerScrollerCss:function(t,n){return e.eRightSpacer.classList.toggle(t,n)}};this.createManagedBean(new Jf).setComp(t,this.getGui(),this.eViewport,this.eContainer),this.createManagedBean(new Fl((function(t){return e.eContainer.style.width=t+"px"})))},t.TEMPLATE='<div class="ag-body-horizontal-scroll" aria-hidden="true">\n            <div class="ag-horizontal-left-spacer" ref="eLeftSpacer"></div>\n            <div class="ag-body-horizontal-scroll-viewport" ref="eViewport">\n                <div class="ag-body-horizontal-scroll-container" ref="eContainer"></div>\n            </div>\n            <div class="ag-horizontal-right-spacer" ref="eRightSpacer"></div>\n        </div>',eg([nr("eLeftSpacer")],t.prototype,"eLeftSpacer",void 0),eg([nr("eRightSpacer")],t.prototype,"eRightSpacer",void 0),eg([nr("eViewport")],t.prototype,"eViewport",void 0),eg([nr("eContainer")],t.prototype,"eContainer",void 0),eg([z],t.prototype,"postConstruct",null),t}(tr),ng=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),og=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},rg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ng(t,e),t.prototype.postConstruct=function(){var e=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,e)},t.prototype.checkContainerWidths=function(){var e=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT,t=e?0:this.columnModel.getDisplayedColumnsLeftWidth(),n=e?0:this.columnModel.getDisplayedColumnsRightWidth();t!=this.leftWidth&&(this.leftWidth=t,this.eventService.dispatchEvent({type:Ve.EVENT_LEFT_PINNED_WIDTH_CHANGED})),n!=this.rightWidth&&(this.rightWidth=n,this.eventService.dispatchEvent({type:Ve.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},t.prototype.getPinnedRightWidth=function(){return this.rightWidth},t.prototype.getPinnedLeftWidth=function(){return this.leftWidth},og([K("columnModel")],t.prototype,"columnModel",void 0),og([z],t.prototype,"postConstruct",null),t=og([Y("pinnedWidthService")],t)}(Fe),ig=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),sg=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},ag=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.events=[],t}return ig(t,e),t.prototype.postConstruct=function(){this.rowModel.getType()==oe.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},t.prototype.dispatchExpanded=function(e){var t=this;if(null!=this.clientSideRowModel){this.events.push(e);null==this.dispatchExpandedDebounced&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce((function(){t.clientSideRowModel&&t.clientSideRowModel.onRowGroupOpened(),t.events.forEach((function(e){return t.eventService.dispatchEvent(e)})),t.events=[]}))),this.dispatchExpandedDebounced()}else this.eventService.dispatchEvent(e)},sg([K("animationFrameService")],t.prototype,"animationFrameService",void 0),sg([K("rowModel")],t.prototype,"rowModel",void 0),sg([z],t.prototype,"postConstruct",null),t=sg([Y("rowNodeEventThrottle")],t)}(Fe),lg=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},ug=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(lg(arguments[t]));return e},cg=function(){function e(e,t,n){t?(this.gridOptions=t,(new pg).create(e,t,(function(t){var n=new Ph(e);t.createBean(n)}),void 0,n)):console.error("AG Grid: no gridOptions provided to the grid")}return e.prototype.destroy=function(){this.gridOptions&&this.gridOptions.api&&this.gridOptions.api.destroy()},e}(),pg=function(){function e(){}return e.prototype.create=function(e,n,o,r,i){var s=this,a=!!n.debug,l=this.getRegisteredModules(i),u=this.createBeansList(n.rowModelType,l),c=this.createProvidedBeans(e,n,i);if(u){var p={providedBeanInstances:c,beanClasses:u,debug:a},d=new bh("AG Grid",(function(){return n.debug})),h=new bh("Context",(function(){return p.debug})),f=new j(p,h),g=f.getBean("beans");this.registerModuleUserComponents(g,l),this.registerStackComponents(g,l),this.registerControllers(g,l),o(f),g.ctrlsService.whenReady((function(){s.setColumnsAndData(g),s.dispatchGridReadyEvent(g,n);var e=re.isRegistered(t.ModuleNames.EnterpriseCoreModule);d.log("initialised successfully, enterprise = "+e)})),r&&r(f)}},e.prototype.registerControllers=function(e,t){t.forEach((function(t){t.controllers&&t.controllers.forEach((function(t){return e.ctrlsFactory.register(t)}))}))},e.prototype.registerStackComponents=function(e,t){var n=this.createAgStackComponentsList(t);e.agStackComponentsRegistry.setupComponents(n)},e.prototype.getRegisteredModules=function(e){var t=e?e.modules:null,n=re.getRegisteredModules(),o=[],r={};function i(e,t){var n;r[(n=t).moduleName]||(r[n.moduleName]=!0,o.push(n),re.register(n,e)),t.dependantModules&&t.dependantModules.forEach(i.bind(null,e))}return t&&t.forEach(i.bind(null,!0)),n&&n.forEach(i.bind(null,!re.isPackageBased())),o},e.prototype.registerModuleUserComponents=function(e,t){this.extractModuleEntity(t,(function(e){return e.userComponents?e.userComponents:[]})).forEach((function(t){e.userComponentRegistry.registerDefaultComponent(t.componentName,t.componentClass)}))},e.prototype.createProvidedBeans=function(e,t,n){var o=n?n.frameworkOverrides:null;i(o)&&(o=new Kd);var r={gridOptions:t,eGridDiv:e,globalEventListener:n?n.globalEventListener:null,frameworkOverrides:o};return n&&n.providedBeanInstances&&Object.assign(r,n.providedBeanInstances),r},e.prototype.createAgStackComponentsList=function(e){var t=[{componentName:"AgCheckbox",componentClass:ic},{componentName:"AgRadioButton",componentClass:kp},{componentName:"AgToggleButton",componentClass:Hp},{componentName:"AgInputTextField",componentClass:Vp},{componentName:"AgInputTextArea",componentClass:jp},{componentName:"AgInputNumberField",componentClass:zp},{componentName:"AgInputRange",componentClass:Yp},{componentName:"AgSelect",componentClass:Mr},{componentName:"AgSlider",componentClass:Xp},{componentName:"AgAngleSelect",componentClass:$p},{componentName:"AgColorPicker",componentClass:dd},{componentName:"AgGridBody",componentClass:ql},{componentName:"AgHeaderRoot",componentClass:Vc},{componentName:"AgPagination",componentClass:yf},{componentName:"AgOverlayWrapper",componentClass:_f},{componentName:"AgGroupComponent",componentClass:gd},{componentName:"AgPanel",componentClass:sd},{componentName:"AgDialog",componentClass:cd},{componentName:"AgRowContainer",componentClass:vu},{componentName:"AgFakeHorizontalScroll",componentClass:tg}],n=this.extractModuleEntity(e,(function(e){return e.agStackComponents?e.agStackComponents:[]}));return t=t.concat(n)},e.prototype.createBeansList=function(e,t){var n=this.getRowModelClass(e,t);if(n){var o=[n,qa,Sf,Tf,kf,jh,zu,Os,Jh,tf,ep,Ys,df,Uc,_p,Xs,pt,ne,ma,Wd,ih,ea,it,Lc,Np,fp,fh,Be,vh,th,iu,Zh,ch,_h,lt,up,Yc,ts,ah,kd,tu,lf,Qd,yp,Lp,Jl,xh,Ih,kh,gf,Bh,qh,op,If,_t,Hf,Vf,Ap,jf,Zf,rg,ag,qf],r=this.extractModuleEntity(t,(function(e){return e.beans?e.beans:[]}));o.push.apply(o,ug(r));var i=[];return o.forEach((function(e){i.indexOf(e)<0&&i.push(e)})),i}},e.prototype.extractModuleEntity=function(e,t){return[].concat.apply([],ug(e.map(t)))},e.prototype.setColumnsAndData=function(e){var t=e.gridOptionsWrapper.getColumnDefs();e.columnModel.setColumnDefs(t||[],"gridInitializing"),e.rowModel.start()},e.prototype.dispatchGridReadyEvent=function(e,t){var n={type:Ve.EVENT_GRID_READY,api:t.api,columnApi:t.columnApi};e.eventService.dispatchEvent(n)},e.prototype.getRowModelClass=function(e,n){e||(e=oe.ROW_MODEL_TYPE_CLIENT_SIDE);var o={};n.forEach((function(e){f(e.rowModels,(function(e,t){o[e]=t}))}));var i=o[e];if(r(i))return i;re.isPackageBased()?[oe.ROW_MODEL_TYPE_VIEWPORT,oe.ROW_MODEL_TYPE_SERVER_SIDE].includes(e)?console.error('AG Grid: Row Model "'+e+"\" not found. Please ensure the package 'ag-grid-enterprise' is imported. Please see: https://www.ag-grid.com/javascript-grid/packages/"):console.error("AG Grid: could not find row model for rowModelType "+e):e===oe.ROW_MODEL_TYPE_INFINITE?console.error('AG Grid: Row Model "Infinite" not found. Please ensure the '+t.ModuleNames.InfiniteRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):e===oe.ROW_MODEL_TYPE_VIEWPORT?console.error('AG Grid: Row Model "Viewport" not found. Please ensure the AG Grid Enterprise Module '+t.ModuleNames.ViewportRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):e===oe.ROW_MODEL_TYPE_SERVER_SIDE?console.error('AG Grid: Row Model "Server Side" not found. Please ensure the AG Grid Enterprise Module '+t.ModuleNames.ServerSideRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):e===oe.ROW_MODEL_TYPE_CLIENT_SIDE?console.error('AG Grid: Row Model "Client Side" not found. Please ensure the '+t.ModuleNames.ClientSideRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):console.error("AG Grid: could not find row model for rowModelType "+e)},e}();var dg,hg=function(){function e(){}return e.prototype.wrap=function(e,t,n,o){var r=this;void 0===n&&(n=[]);var i=this.createWrapper(e,o);return t.forEach((function(e){r.createMethod(i,e,!0)})),n.forEach((function(e){r.createMethod(i,e,!1)})),i},e.prototype.unwrap=function(e){return e},e.prototype.createMethod=function(e,t,n){e.addMethod(t,this.createMethodProxy(e,t,n))},e.prototype.createMethodProxy=function(e,t,n){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(n&&console.warn("AG Grid: Framework component is missing the method "+t+"()"),null)}},e}();(dg=t.BarColumnLabelPlacement||(t.BarColumnLabelPlacement={})).InsideBase="insideBase",dg.InsideEnd="insideEnd",dg.Center="center",dg.OutsideEnd="outsideEnd";var fg="undefined"===typeof n.g?{}:n.g;fg.HTMLElement="undefined"===typeof HTMLElement?{}:HTMLElement,fg.HTMLButtonElement="undefined"===typeof HTMLButtonElement?{}:HTMLButtonElement,fg.HTMLSelectElement="undefined"===typeof HTMLSelectElement?{}:HTMLSelectElement,fg.HTMLInputElement="undefined"===typeof HTMLInputElement?{}:HTMLInputElement,fg.Node="undefined"===typeof Node?{}:Node,fg.MouseEvent="undefined"===typeof MouseEvent?{}:MouseEvent;var gg,mg=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},vg=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(mg(arguments[t]));return e},yg=function(){function e(t,n,o,r,i,s,a,l){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=n,this.eventService=o,this.columnModel=r,this.gridApi=i,this.columnApi=s,this.beans=l,this.selectionService=a,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=e.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterAggFilter=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return e.prototype.postConstruct=function(){this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingTreeData=this.gridOptionsWrapper.isTreeData(),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},e.prototype.getCopyOfNodesMap=function(){return Wo.cloneObject(this.allNodesMap)},e.prototype.getRowNode=function(e){return this.allNodesMap[e]},e.prototype.setRowData=function(t){var n=this;if("string"!==typeof t){var o=this.rootNode,r=this.rootNode.sibling;o.childrenAfterFilter=null,o.childrenAfterGroup=null,o.childrenAfterAggFilter=null,o.childrenAfterSort=null,o.childrenMapped=null,o.updateHasChildren(),this.nextId=0,this.allNodesMap={},t?o.allLeafChildren=t.map((function(t){return n.createNode(t,n.rootNode,e.TOP_LEVEL)})):(o.allLeafChildren=[],o.childrenAfterGroup=[]),r&&(r.childrenAfterFilter=o.childrenAfterFilter,r.childrenAfterGroup=o.childrenAfterGroup,r.childrenAfterAggFilter=o.childrenAfterAggFilter,r.childrenAfterSort=o.childrenAfterSort,r.childrenMapped=o.childrenMapped,r.allLeafChildren=o.allLeafChildren)}else console.warn("AG Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first")},e.prototype.updateRowData=function(e,t){var n={remove:[],update:[],add:[]},o=[];return this.executeRemove(e,n,o),this.executeUpdate(e,n,o),this.executeAdd(e,n),this.updateSelection(o),t&&Wo.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),n},e.prototype.updateSelection=function(e){var t=e.length>0;if(t&&e.forEach((function(e){e.setSelected(!1,!1,!0)})),this.selectionService.updateGroupsFromChildrenSelections(),t){var n={type:Ve.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},e.prototype.executeAdd=function(t,n){var o=this,r=t.add,i=t.addIndex;if(!Wo.missingOrEmpty(r)){var s,a,l=r.map((function(t){return o.createNode(t,o.rootNode,e.TOP_LEVEL)}));if("number"===typeof i&&i>=0){var u=this.rootNode.allLeafChildren,c=0===i?0:u.reduce((function(e,t,n){var o,r=t.rowIndex,s=null===(o=u[e])||void 0===o?void 0:o.rowIndex;return null!=r&&null!=s&&r<i&&r>s?n:e}),0)+1;s=u.slice(0,c),a=u.slice(c,u.length)}else s=this.rootNode.allLeafChildren,a=[];this.rootNode.allLeafChildren=vg(s,l,a),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren),n.add=l}},e.prototype.executeRemove=function(e,t,n){var o=this,r=e.remove;if(!Wo.missingOrEmpty(r)){var i={};r.forEach((function(e){var r=o.lookupRowNode(e);r&&(r.isSelected()&&n.push(r),r.clearRowTopAndRowIndex(),i[r.id]=!0,delete o.allNodesMap[r.id],t.remove.push(r))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((function(e){return!i[e.id]})),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}},e.prototype.executeUpdate=function(t,n,o){var r=this,i=t.update;Wo.missingOrEmpty(i)||i.forEach((function(t){var i=r.lookupRowNode(t);i&&(i.updateData(t),!i.selectable&&i.isSelected()&&o.push(i),r.setMasterForRow(i,t,e.TOP_LEVEL,!1),n.update.push(i))}))},e.prototype.lookupRowNode=function(e){var t,n=this.gridOptionsWrapper.getRowIdFunc();if(n){var o=n({data:e,level:0});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=this.rootNode.allLeafChildren.find((function(t){return t.data===e}))))return console.error("AG Grid: could not find data item as object was not found",e),console.error("Consider using getRowId to help the Grid find matching row data"),null;return t||null},e.prototype.createNode=function(e,t,n){var o=new Yi(this.beans);return o.group=!1,this.setMasterForRow(o,e,n,!0),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 getRowId callback, this could cause issues in your grid."),this.allNodesMap[o.id]=o,this.nextId++,o},e.prototype.setMasterForRow=function(e,t,n,o){if(this.doingTreeData)e.setMaster(!1),o&&(e.expanded=!1);else if(this.doingMasterDetail?this.isRowMasterFunc?e.setMaster(this.isRowMasterFunc(t)):e.setMaster(!0):e.setMaster(!1),o){var r=this.columnModel.getRowGroupColumns(),i=n+(r?r.length:0);e.expanded=!!e.master&&this.isExpanded(i)}},e.prototype.isExpanded=function(e){var t=this.gridOptionsWrapper.getGroupDefaultExpanded();return-1===t||e<t},e.TOP_LEVEL=0,e.ROOT_NODE_ID="ROOT_NODE_ID",e}(),Cg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),wg=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"}(gg||(gg={}));var _g=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Cg(n,e),n.prototype.init=function(){var e=this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.EVERYTHING}),n=!this.gridOptionsWrapper.isSuppressAnimationFrame(),o=this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:n});this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,o),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.PIVOT})),this.addManagedListener(this.eventService,Ve.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_MODE_CHANGED,e);var r=this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:n});this.addManagedListener(this.gridOptionsWrapper,ma.PROP_GROUP_REMOVE_SINGLE_CHILDREN,r),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,r),this.rootNode=new Yi(this.beans),this.nodeManager=new yg(this.rootNode,this.gridOptionsWrapper,this.eventService,this.columnModel,this.gridApi,this.columnApi,this.selectionService,this.beans)},n.prototype.start=function(){var e=this.gridOptionsWrapper.getRowData();e&&this.setRowData(e)},n.prototype.ensureRowHeightsValid=function(e,t,n,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.setRowTopAndRowIndex()}while(r);return i},n.prototype.setRowTopAndRowIndex=function(){for(var e=this.gridOptionsWrapper.getDefaultRowHeight(),t=0,n=new Set,o=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_NORMAL,r=0;r<this.rowsToDisplay.length;r++){var i=this.rowsToDisplay[r];if(null!=i.id&&n.add(i.id),null==i.rowHeight){var s=this.gridOptionsWrapper.getRowHeightForNode(i,o,e);i.setRowHeight(s.height,s.estimated)}i.setRowTop(t),i.setRowIndex(r),t+=i.rowHeight}return n},n.prototype.clearRowTopAndRowIndex=function(e,t){var n=e.isActive(),o=function(e){e&&null!=e.id&&!t.has(e.id)&&e.clearRowTopAndRowIndex()};!function e(t){if(o(t),o(t.detailNode),o(t.sibling),t.hasChildren()&&t.childrenAfterGroup){var r=-1==t.level;n&&!r&&!t.expanded||t.childrenAfterGroup.forEach(e)}}(this.rootNode)},n.prototype.ensureRowsAtPixel=function(e,n,o){var r=this;void 0===o&&(o=0);var i=this.getRowIndexAtPixel(n),s=this.getRow(i),a=!this.gridOptionsWrapper.isSuppressAnimationFrame();return s!==e[0]&&(e.forEach((function(e){Wo.removeFromArray(r.rootNode.allLeafChildren,e)})),e.forEach((function(e,t){Wo.insertIntoArray(r.rootNode.allLeafChildren,e,Math.max(i+o,0)+t)})),this.refreshModel({step:t.ClientSideRowModelSteps.EVERYTHING,keepRenderedRows:!0,keepEditingRows:!0,animate:a}),!0)},n.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)},n.prototype.getHighlightPosition=function(e,n){if(!n){var o=this.getRowIndexAtPixel(e);if(!(n=this.getRow(o||0)))return t.RowHighlightPosition.Below}return e-n.rowTop<n.rowHeight/2?t.RowHighlightPosition.Above:t.RowHighlightPosition.Below},n.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},n.prototype.isLastRowIndexKnown=function(){return!0},n.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},n.prototype.getTopLevelRowCount=function(){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return 1;var e=this.rootNode.childrenAfterAggFilter;return e?e.length:0},n.prototype.getTopLevelRowDisplayedIndex=function(e){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return e;var t=this.rootNode.childrenAfterSort[e];if(this.gridOptionsWrapper.isGroupHideOpenParents())for(;t.expanded&&t.childrenAfterSort&&t.childrenAfterSort.length>0;)t=t.childrenAfterSort[0];return t.rowIndex},n.prototype.getRowBounds=function(e){if(Wo.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},n.prototype.onRowGroupOpened=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:t.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:e})},n.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var n=this.gridOptionsWrapper.isAnimateRows(),o=0===e.columns.length||e.columns.some((function(e){return e.isPrimary()}))?t.ClientSideRowModelSteps.FILTER:t.ClientSideRowModelSteps.FILTER_AGGREGATES;this.refreshModel({step:o,keepRenderedRows:!0,animate:n})}},n.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:t.ClientSideRowModelSteps.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},n.prototype.getType=function(){return oe.ROW_MODEL_TYPE_CLIENT_SIDE},n.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:t.ClientSideRowModelSteps.PIVOT}):this.refreshModel({step:t.ClientSideRowModelSteps.AGGREGATE})},n.prototype.createChangePath=function(e){var t=Wo.missingOrEmpty(e),n=new Ep(!1,this.rootNode);return(t||this.gridOptionsWrapper.isTreeData())&&n.setInactive(),n},n.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(e){if(!this.gridOptionsWrapper.isSuppressModelUpdateAfterUpdateTransaction())return!1;if(null==e.rowNodeTransactions)return!1;var t=e.rowNodeTransactions.filter((function(e){return null!=e.add&&e.add.length>0||null!=e.remove&&e.remove.length>0}));return null==t||0==t.length},n.prototype.refreshModel=function(e){if(!this.isSuppressModelUpdateAfterUpdateTransaction(e)){var n=this.createChangePath(e.rowNodeTransactions);switch(e.step){case t.ClientSideRowModelSteps.EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,n,!!e.afterColumnsChanged);case t.ClientSideRowModelSteps.FILTER:this.doFilter(n);case t.ClientSideRowModelSteps.PIVOT:this.doPivot(n);case t.ClientSideRowModelSteps.AGGREGATE:this.doAggregate(n);case t.ClientSideRowModelSteps.FILTER_AGGREGATES:this.doFilterAggregates(n);case t.ClientSideRowModelSteps.SORT:this.doSort(e.rowNodeTransactions,n);case t.ClientSideRowModelSteps.MAP:this.doRowsToDisplay()}var o=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(n,o);var r={type:Ve.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1};this.eventService.dispatchEvent(r)}},n.prototype.isEmpty=function(){var e=Wo.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return Wo.missing(this.rootNode)||e||!this.columnModel.isReady()},n.prototype.isRowsToRender=function(){return Wo.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},n.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},n.prototype.setDatasource=function(e){console.error("AG Grid: should never call setDatasource on clientSideRowController")},n.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},n.prototype.getRootNode=function(){return this.rootNode},n.prototype.getRow=function(e){return this.rowsToDisplay[e]},n.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},n.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty())return-1;var t=0,n=this.rowsToDisplay.length-1;if(e<=0)return 0;if(Wo.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)}},n.prototype.isRowInPixel=function(e,t){var n=e.rowTop,o=e.rowTop+e.rowHeight;return n<=t&&o>t},n.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(t,n){return e(t,n)}))},n.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,gg.Normal,0)},n.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterAggFilter,e,gg.AfterFilter,0)},n.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,gg.AfterFilterAndSort,0)},n.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,gg.PivotNodes,0)},n.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 gg.Normal:s=i.childrenAfterGroup;break;case gg.AfterFilter:s=i.childrenAfterAggFilter;break;case gg.AfterFilterAndSort:s=i.childrenAfterSort;break;case gg.PivotNodes:s=i.leafGroup?null:i.childrenAfterSort}s&&(o=this.recursivelyWalkNodesAndCallback(s,t,n,o))}}return o},n.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},n.prototype.doFilterAggregates=function(e){this.filterAggregatesStage?this.filterAggregatesStage.execute({rowNode:this.rootNode,changedPath:e}):this.rootNode.childrenAfterAggFilter=this.rootNode.childrenAfterFilter},n.prototype.expandOrCollapseAll=function(e){var n=this.gridOptionsWrapper.isTreeData(),o=this.columnModel.isPivotActive();this.rootNode&&function t(r){r&&r.forEach((function(r){var i=function(){r.expanded=e,t(r.childrenAfterGroup)};n?Wo.exists(r.childrenAfterGroup)&&i():o?!r.leafGroup&&i():r.group&&i()}))}(this.rootNode.childrenAfterGroup),this.refreshModel({step:t.ClientSideRowModelSteps.MAP});var r=e?"expandAll":"collapseAll",i={api:this.gridApi,columnApi:this.columnApi,type:Ve.EVENT_EXPAND_COLLAPSE_ALL,source:r};this.eventService.dispatchEvent(i)},n.prototype.doSort=function(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})},n.prototype.doRowGrouping=function(e,t,n,o,r){this.groupStage?(t?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:t,rowNodeOrder:n,changedPath:o}):(this.groupStage.execute({rowNode:this.rootNode,changedPath:o,afterColumnsChanged:r}),this.restoreGroupState(e)),this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionService.updateGroupsFromChildrenSelections(o)):(this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren,this.rootNode.sibling&&(this.rootNode.sibling.childrenAfterGroup=this.rootNode.childrenAfterGroup),this.rootNode.updateHasChildren())},n.prototype.restoreGroupState=function(e){e&&Wo.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,n){"boolean"===typeof e[n]&&(t.expanded=e[n])}))},n.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},n.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},n.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var e={};return Wo.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,n){return e[n]=t.expanded})),e},n.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},n.prototype.getRowNode=function(e){if("string"==typeof e&&0==e.indexOf(Yi.ID_PREFIX_ROW_GROUP)){var t=void 0;return this.forEachNode((function(n){n.id===e&&(t=n)})),t}return this.nodeManager.getRowNode(e)},n.prototype.setRowData=function(e){var n=this.getGroupState();this.nodeManager.setRowData(e),this.selectionService.reset(),this.filterManager.onNewRowsLoaded("rowDataUpdated");var o={type:Ve.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o),this.refreshModel({step:t.ClientSideRowModelSteps.EVERYTHING,groupState:n,newData:!0})},n.prototype.batchUpdateRowData=function(e,t){var n=this;if(null==this.applyAsyncTransactionsTimeout){this.rowDataTransactionBatch=[];var o=this.gridOptionsWrapper.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout((function(){n.executeBatchUpdateRowData()}),o)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})},n.prototype.flushAsyncTransactions=function(){null!=this.applyAsyncTransactionsTimeout&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},n.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var t=[],n=[],o=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((function(r){var i=e.nodeManager.updateRowData(r.rowDataTransaction,void 0);n.push(i),r.callback&&t.push(r.callback.bind(null,i)),"number"===typeof r.rowDataTransaction.addIndex&&(o=!0)})),this.commonUpdateRowData(n,void 0,o),t.length>0&&window.setTimeout((function(){t.forEach((function(e){return e()}))}),0),n.length>0){var r={api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),type:Ve.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:n};this.eventService.dispatchEvent(r)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},n.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var n=this.nodeManager.updateRowData(e,t),o="number"===typeof e.addIndex;return this.commonUpdateRowData([n],t,o),n},n.prototype.createRowNodeOrder=function(){if(!this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()){var e={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var t=0;t<this.rootNode.allLeafChildren.length;t++){e[this.rootNode.allLeafChildren[t].id]=t}return e}},n.prototype.commonUpdateRowData=function(e,n,o){var r=!this.gridOptionsWrapper.isSuppressAnimationFrame();o&&(n=this.createRowNodeOrder()),this.refreshModel({step:t.ClientSideRowModelSteps.EVERYTHING,rowNodeTransactions:e,rowNodeOrder:n,keepRenderedRows:!0,keepEditingRows:!0,animate:r});var i={type:Ve.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(i)},n.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},n.prototype.onRowHeightChanged=function(){this.refreshModel({step:t.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,keepEditingRows:!0})},n.prototype.resetRowHeights=function(){var e=!1;this.forEachNode((function(t){t.setRowHeight(t.rowHeight,!0);var n=t.detailNode;n&&n.setRowHeight(n.rowHeight,!0),e=!0})),e&&this.onRowHeightChanged()},wg([K("columnModel")],n.prototype,"columnModel",void 0),wg([K("selectionService")],n.prototype,"selectionService",void 0),wg([K("filterManager")],n.prototype,"filterManager",void 0),wg([K("valueCache")],n.prototype,"valueCache",void 0),wg([K("columnApi")],n.prototype,"columnApi",void 0),wg([K("gridApi")],n.prototype,"gridApi",void 0),wg([K("animationFrameService")],n.prototype,"animationFrameService",void 0),wg([K("beans")],n.prototype,"beans",void 0),wg([K("filterStage")],n.prototype,"filterStage",void 0),wg([K("sortStage")],n.prototype,"sortStage",void 0),wg([K("flattenStage")],n.prototype,"flattenStage",void 0),wg([q("groupStage")],n.prototype,"groupStage",void 0),wg([q("aggregationStage")],n.prototype,"aggregationStage",void 0),wg([q("pivotStage")],n.prototype,"pivotStage",void 0),wg([q("filterAggregatesStage")],n.prototype,"filterAggregatesStage",void 0),wg([z],n.prototype,"init",null),n=wg([Y("rowModel")],n)}(Fe),bg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Eg=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},Sg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bg(t,e),t.prototype.execute=function(e){var t=e.changedPath;this.filterService.filter(t)},Eg([K("filterService")],t.prototype,"filterService",void 0),t=Eg([Y("filterStage")],t)}(Fe),Rg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Og=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},Tg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rg(t,e),t.prototype.execute=function(e){var t=this.sortController.getSortOptions(),n=Wo.exists(t)&&t.length>0,o=n&&Wo.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),r=t.some((function(e){return!!e.column.getColDef().showRowGroup}));this.sortService.sort(t,n,o,e.rowNodeTransactions,e.changedPath,r)},Og([K("sortService")],t.prototype,"sortService",void 0),Og([K("sortController")],t.prototype,"sortController",void 0),Og([K("columnModel")],t.prototype,"columnModel",void 0),t=Og([Y("sortStage")],t)}(Fe),Pg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Ag=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},Dg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pg(t,e),t.prototype.execute=function(e){var t=e.rowNode,n=[],o={value:0},r=this.columnModel.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},t.prototype.recursivelyAddToRowsToDisplay=function(e,t,n,o,r){if(!Wo.missingOrEmpty(e))for(var i=this.gridOptionsWrapper.isGroupHideOpenParents(),s=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),a=!s&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),l=0;l<e.length;l++){var u=e[l],c=u.hasChildren(),p=o&&!c,d=s&&c&&1===u.childrenAfterGroup.length,h=a&&c&&u.leafGroup&&1===u.childrenAfterGroup.length,f=o&&u.leafGroup,g=i&&u.expanded&&!u.master&&!f;if(!p&&!g&&!d&&!h&&this.addRowNodeToRowsToDisplay(u,t,n,r),!o||!u.leafGroup)if(c){var m=d||h;if(u.expanded||m){var v=m?r:r+1;this.recursivelyAddToRowsToDisplay(u.childrenAfterSort,t,n,o,v),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(u),this.addRowNodeToRowsToDisplay(u.sibling,t,n,r))}}else if(u.master&&u.expanded){var y=this.createDetailNode(u);this.addRowNodeToRowsToDisplay(y,t,n,r)}}},t.prototype.addRowNodeToRowsToDisplay=function(e,t,n,o){var r=this.gridOptionsWrapper.isGroupMultiAutoColumn();t.push(e),e.setUiLevel(r?0:o)},t.prototype.ensureFooterNodeExists=function(e){if(!Wo.exists(e.sibling)){var t=new Yi(this.beans);Object.keys(e).forEach((function(n){t[n]=e[n]})),t.footer=!0,t.setRowTop(null),t.setRowIndex(null),t.oldRowTop=null,Wo.exists(t.id)&&(t.id="rowGroupFooter_"+t.id),t.sibling=e,e.sibling=t}},t.prototype.createDetailNode=function(e){if(Wo.exists(e.detailNode))return e.detailNode;var t=new Yi(this.beans);return t.detail=!0,t.selectable=!1,t.parent=e,Wo.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,t},Ag([K("columnModel")],t.prototype,"columnModel",void 0),Ag([K("beans")],t.prototype,"beans",void 0),t=Ag([Y("flattenStage")],t)}(Fe),xg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Ng=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},Mg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xg(t,e),t.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},t.prototype.sort=function(e,t,n,o,r,i){var s=this,a=this.gridOptionsWrapper.isGroupMaintainOrder(),l=this.columnModel.getAllGridColumns().some((function(e){return e.isRowGroupActive()})),u={};n&&o&&(u=this.calculateDirtyNodes(o));var c=this.columnModel.isPivotMode();r&&r.forEachChangedNodeDepthFirst((function(o){s.pullDownGroupDataForHideOpenParents(o.childrenAfterAggFilter,!0);var p=c&&o.leafGroup,d=a&&l&&!o.leafGroup&&!i;if(!t||d||p){var h=o.childrenAfterAggFilter.slice(0);if(a&&o.childrenAfterSort){var f=o.childrenAfterSort.reduce((function(e,t,n){return e[t.id]=n,e}),{});h.sort((function(e,t){return(f[e.id]||0)-(f[t.id]||0)}))}o.childrenAfterSort=h}else o.childrenAfterSort=n?s.doDeltaSort(o,u,r,e):s.rowNodeSorter.doFullSort(o.childrenAfterAggFilter,e);if(o.sibling&&(o.sibling.childrenAfterSort=o.childrenAfterSort),s.updateChildIndexes(o),s.postSortFunc){var g={nodes:o.childrenAfterSort};s.postSortFunc(g)}})),this.updateGroupDataForHideOpenParents(r)},t.prototype.calculateDirtyNodes=function(e){var t={},n=function(e){e&&e.forEach((function(e){return t[e.id]=!0}))};return e&&e.forEach((function(e){n(e.add),n(e.update),n(e.remove)})),t},t.prototype.doDeltaSort=function(e,t,n,o){var r=this,i=e.childrenAfterAggFilter,s=e.childrenAfterSort;if(!s)return this.rowNodeSorter.doFullSort(i,o);var a={},l=[];i.forEach((function(e){t[e.id]||!n.canSkip(e)?l.push(e):a[e.id]=!0}));var u=s.filter((function(e){return a[e.id]})),c=function(e,t){return{currentPos:t,rowNode:e}},p=l.map(c).sort((function(e,t){return r.rowNodeSorter.compareRowNodes(o,e,t)}));return this.mergeSortedArrays(o,p,u.map(c)).map((function(e){return e.rowNode}))},t.prototype.mergeSortedArrays=function(e,t,n){for(var o=[],r=0,i=0;r<t.length&&i<n.length;){this.rowNodeSorter.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},t.prototype.updateChildIndexes=function(e){if(!Wo.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)}},t.prototype.updateGroupDataForHideOpenParents=function(e){var t=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){if(this.gridOptionsWrapper.isTreeData()){return Wo.doOnce((function(){return console.warn("AG Grid: The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them (as opposed to Row Grouping, which only has Aggregated Values at the group level).")}),"sortService.hideOpenParentsWithTreeData"),!1}var n=function e(n){t.pullDownGroupDataForHideOpenParents(n.childrenAfterSort,!1),n.childrenAfterSort.forEach((function(t){t.hasChildren()&&e(t)}))};e&&e.executeFromRootNode((function(e){return n(e)}))}},t.prototype.pullDownGroupDataForHideOpenParents=function(e,t){var n=this;this.gridOptionsWrapper.isGroupHideOpenParents()&&!Wo.missing(e)&&e.forEach((function(e){n.columnModel.getGroupDisplayColumns().forEach((function(o){var r=o.getColDef().showRowGroup;if("string"===typeof r){var i=r,s=n.columnModel.getPrimaryColumn(i);if(!(s===e.rowGroupColumn))if(t)e.setGroupValue(o.getId(),void 0);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")}))}))},Ng([K("columnModel")],t.prototype,"columnModel",void 0),Ng([K("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),Ng([z],t.prototype,"init",null),t=Ng([Y("sortService")],t)}(Fe),Ig=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Lg=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},Fg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ig(t,e),t.prototype.filter=function(e){var t=this.filterManager.isColumnFilterPresent()||this.filterManager.isQuickFilterPresent()||this.gridOptionsWrapper.isExternalFilterPresent();this.filterNodes(t,e)},t.prototype.filterNodes=function(e,t){var n=this,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({rowNode:e});return t||o})):t.childrenAfterGroup:t.childrenAfterFilter=t.childrenAfterGroup,t.sibling&&(t.sibling.childrenAfterFilter=t.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var r=function e(t,r){if(t.childrenAfterGroup)for(var i=0;i<t.childrenAfterGroup.length;i++){var s=t.childrenAfterGroup[i],a=r||n.filterManager.doesRowPassFilter({rowNode:s});s.childrenAfterGroup?e(t.childrenAfterGroup[i],a):o(s,a)}o(t,r)};t.executeFromRootNode((function(e){return r(e,!1)}))}else{t.forEachChangedNodeDepthFirst((function(e){return o(e,!1)}),!0)}},t.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},Lg([K("filterManager")],t.prototype,"filterManager",void 0),t=Lg([Y("filterService")],t)}(Fe),kg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Gg=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},Hg=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Bg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kg(t,e),t.prototype.postConstruct=function(){this.rowModel.getType()===oe.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},t.prototype.isActive=function(){return this.gridOptionsWrapper.isImmutableData()},t.prototype.setRowData=function(e){var t=this.createTransactionForRowData(e);if(t){var n=Hg(t,2),o=n[0],r=n[1],i=this.clientSideRowModel.updateRowData(o,r);i&&this.rowRenderer.refreshFullWidthRows(i.update);var s={type:Ve.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(s)}},t.prototype.createTransactionForRowData=function(e){if(Wo.missing(this.clientSideRowModel))console.error("AG Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsWrapper.getRowIdFunc();if(null!=t){var n={remove:[],update:[],add:[]},o=this.clientSideRowModel.getCopyOfNodesMap(),r=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?void 0:{};return Wo.exists(e)&&e.forEach((function(e,i){var s=t({data:e,level:0}),a=o[s];(r&&(r[s]=i),a)?(a.data!==e&&n.update.push(e),o[s]=void 0):n.add.push(e)})),Wo.iterateObject(o,(function(e,t){t&&n.remove.push(t.data)})),[n,r]}console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!")}},Gg([K("rowModel")],t.prototype,"rowModel",void 0),Gg([K("rowRenderer")],t.prototype,"rowRenderer",void 0),Gg([K("columnApi")],t.prototype,"columnApi",void 0),Gg([K("gridApi")],t.prototype,"gridApi",void 0),Gg([z],t.prototype,"postConstruct",null),t=Gg([Y("immutableService")],t)}(Fe),Vg={moduleName:t.ModuleNames.ClientSideRowModelModule,beans:[Sg,Tg,Dg,Mg,Fg,Bg],rowModels:{clientSide:_g}},Wg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),jg=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},Ug=function(e){function t(t,n,o){var r=e.call(this,t)||this;return r.parentCache=n,r.params=o,r.startRow=t*o.blockSize,r.endRow=r.startRow+o.blockSize,r}return Wg(t,e),t.prototype.postConstruct=function(){this.createRowNodes()},t.prototype.getBlockStateJson=function(){return{id:""+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}},t.prototype.setDataAndId=function(e,t,n){!e.id&&e.alreadyRendered&&(e.alreadyRendered=!1),Wo.exists(t)?e.setDataAndId(t,n.toString()):e.setDataAndId(void 0,void 0)},t.prototype.loadFromDatasource=function(){var e=this,t=this.createLoadParams();Wo.missing(this.params.datasource.getRows)?console.warn("AG Grid: datasource is missing getRows method"):window.setTimeout((function(){e.params.datasource.getRows(t)}),0)},t.prototype.processServerFail=function(){},t.prototype.createLoadParams=function(){return{startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),sortModel:this.params.sortModel,filterModel:this.params.filterModel,context:this.gridOptionsWrapper.getContext()}},t.prototype.forEachNode=function(e,t,n){var o=this;this.rowNodes.forEach((function(r,i){o.startRow+i<n&&e(r,t.next())}))},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRow=function(e,t){void 0===t&&(t=!1),t||(this.lastAccessed=this.params.lastAccessedSequence.next());var n=e-this.startRow;return this.rowNodes[n]},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.params.blockSize;e++){var t=this.startRow+e,n=new Yi(this.beans);n.setRowHeight(this.params.rowHeight),n.uiLevel=0,n.setRowIndex(t),n.setRowTop(this.params.rowHeight*t),this.rowNodes.push(n)}},t.prototype.processServerResult=function(e){var t=this;this.rowNodes.forEach((function(n,o){var r=e.rowData?e.rowData[o]:void 0;t.setDataAndId(n,r,t.startRow+o)}));var n=null!=e.rowCount&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,n)},t.prototype.destroyRowNodes=function(){this.rowNodes.forEach((function(e){e.clearRowTopAndRowIndex()}))},jg([K("beans")],t.prototype,"beans",void 0),jg([z],t.prototype,"postConstruct",null),jg([Z],t.prototype,"destroyRowNodes",null),t}(Rp),zg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Zg=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},Yg=function(e,t){return function(n,o){t(n,o,e)}},Kg=function(e){function t(t){var n=e.call(this)||this;return n.lastRowIndexKnown=!1,n.blocks={},n.blockCount=0,n.rowCount=t.initialRowCount,n.params=t,n}return zg(t,e),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.getRow=function(e,t){void 0===t&&(t=!1);var n=Math.floor(e/this.params.blockSize),o=this.blocks[n];if(!o){if(t)return;o=this.createBlock(n)}return o.getRow(e)},t.prototype.createBlock=function(e){var t=this.createBean(new Ug(e,this,this.params));return this.blocks[t.getId()]=t,this.blockCount++,this.purgeBlocksIfNeeded(t),this.params.rowNodeBlockLoader.addBlock(t),t},t.prototype.refreshCache=function(){0==this.blockCount?this.purgeCache():(this.getBlocksInOrder().forEach((function(e){return e.setStateWaitingToLoad()})),this.params.rowNodeBlockLoader.checkBlockToLoad())},t.prototype.destroyAllBlocks=function(){var e=this;this.getBlocksInOrder().forEach((function(t){return e.destroyBlock(t)}))},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},t.prototype.pageLoaded=function(e,t){this.isAlive()&&(this.logger.log("onPageLoaded: page = "+e.getId()+", lastRow = "+t),this.checkRowCount(e,t),this.onCacheUpdated())},t.prototype.purgeBlocksIfNeeded=function(e){var n=this,o=this.getBlocksInOrder().filter((function(t){return t!=e}));o.sort((function(e,t){return t.getLastAccessed()-e.getLastAccessed()}));var r=this.params.maxBlocksInCache>0,i=r?this.params.maxBlocksInCache-1:null,s=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;o.forEach((function(e,t){if(e.getState()===Ug.STATE_WAITING_TO_LOAD&&t>=s||!!r&&t>=i){if(n.isBlockCurrentlyDisplayed(e))return;if(n.isBlockFocused(e))return;n.removeBlockFromCache(e)}}))},t.prototype.isBlockFocused=function(e){var t=this.focusService.getFocusCellToUseAfterRefresh();if(!t)return!1;if(null!=t.rowPinned)return!1;var n=e.getStartRow(),o=e.getEndRow();return t.rowIndex>=n&&t.rowIndex<o},t.prototype.isBlockCurrentlyDisplayed=function(e){var t=e.getStartRow(),n=e.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(t,n)},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkRowCount=function(e,t){if("number"===typeof t&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var n=(e.getId()+1)*this.params.blockSize+this.params.overflowSize;this.rowCount<n&&(this.rowCount=n)}},t.prototype.setRowCount=function(e,t){this.rowCount=e,Wo.exists(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e){var t=this,n=new jo;this.getBlocksInOrder().forEach((function(o){return o.forEachNode(e,n,t.rowCount)}))},t.prototype.getBlocksInOrder=function(){return Wo.getAllValuesInObject(this.blocks).sort((function(e,t){return e.getId()-t.getId()}))},t.prototype.destroyBlock=function(e){delete this.blocks[e.getId()],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){if(this.isAlive()){this.destroyAllBlocksPastVirtualRowCount();var e={type:Ve.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(e)}},t.prototype.destroyAllBlocksPastVirtualRowCount=function(){var e=this,t=[];this.getBlocksInOrder().forEach((function(n){n.getId()*e.params.blockSize>=e.rowCount&&t.push(n)})),t.length>0&&t.forEach((function(t){return e.destroyBlock(t)}))},t.prototype.purgeCache=function(){var e=this;this.getBlocksInOrder().forEach((function(t){return e.removeBlockFromCache(t)})),this.lastRowIndexKnown=!1,0===this.rowCount&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,t){var n=this,o=[],r=-1,i=!1,s=new jo;Wo.missing(e)&&(i=!0);var a=!1;return this.getBlocksInOrder().forEach((function(l){a||(i&&r+1!==l.getId()?a=!0:(r=l.getId(),l.forEachNode((function(n){var r=n===e||n===t;(i||r)&&o.push(n),r&&(i=!i)}),s,n.rowCount)))})),a||i?[]:o},t.MAX_EMPTY_BLOCKS_TO_KEEP=2,Zg([K("rowRenderer")],t.prototype,"rowRenderer",void 0),Zg([K("focusService")],t.prototype,"focusService",void 0),Zg([Yg(0,Q("loggerFactory"))],t.prototype,"setBeans",null),Zg([Z],t.prototype,"destroyAllBlocks",null),t}(Fe),qg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Xg=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},Qg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qg(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()})),this.verifyProps())},t.prototype.verifyProps=function(){if(null!=this.gridOptionsWrapper.getInitialGroupOrderComparator()){Wo.doOnce((function(){return console.warn("AG Grid: initialGroupOrderComparator cannot be used with Infinite Row Model. If using Infinite Row Model, then sorting is done on the server side, nothing to do with the client.")}),"IRM.InitialGroupOrderComparator")}},t.prototype.start=function(){this.setDatasource(this.gridOptionsWrapper.getDatasource())},t.prototype.destroyDatasource=function(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Ve.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){(!this.cacheParams||this.isSortModelDifferent())&&this.reset()},t.prototype.isSortModelDifferent=function(){return!Wo.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return oe.ROW_MODEL_TYPE_INFINITE},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()},t.prototype.isEmpty=function(){return!this.infiniteCache},t.prototype.isRowsToRender=function(){return!!this.infiniteCache},t.prototype.getNodesInRangeForSelection=function(e,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]},t.prototype.reset=function(){if(this.datasource){null!=this.gridOptionsWrapper.getRowIdFunc()||this.selectionService.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:Ve.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newPage:!1,newData:!1,keepRenderedRows:!0,animate:!1}},t.prototype.resetCache=function(){this.destroyCache(),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,initialRowCount:this.defaultIfInvalid(this.gridOptionsWrapper.getInfiniteInitialRowCount(),1),maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),overflowSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheOverflowSize(),1),blockSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheBlockSize(),100),lastAccessedSequence:new jo},this.infiniteCache=this.createBean(new Kg(this.cacheParams))},t.prototype.defaultIfInvalid=function(e,t){return e>0?e:t},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache))},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){if(this.infiniteCache&&!(e>=this.infiniteCache.getRowCount()))return this.infiniteCache.getRow(e)},t.prototype.getRowNode=function(e){var t;return this.forEachNode((function(n){n.id===e&&(t=n)})),t},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e)},t.prototype.getTopLevelRowCount=function(){return this.getRowCount()},t.prototype.getTopLevelRowDisplayedIndex=function(e){return e},t.prototype.getRowIndexAtPixel=function(e){if(0!==this.rowHeight){var t=Math.floor(e/this.rowHeight),n=this.getRowCount()-1;return t>n?n:t}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},t.prototype.isRowPresent=function(e){return!!this.getRowNode(e.id)},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.isLastRowIndexKnown=function(){return!!this.infiniteCache&&this.infiniteCache.isLastRowIndexKnown()},t.prototype.setRowCount=function(e,t){this.infiniteCache&&this.infiniteCache.setRowCount(e,t)},Xg([K("filterManager")],t.prototype,"filterManager",void 0),Xg([K("sortController")],t.prototype,"sortController",void 0),Xg([K("selectionService")],t.prototype,"selectionService",void 0),Xg([K("gridApi")],t.prototype,"gridApi",void 0),Xg([K("columnApi")],t.prototype,"columnApi",void 0),Xg([K("rowRenderer")],t.prototype,"rowRenderer",void 0),Xg([K("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Xg([z],t.prototype,"init",null),Xg([Z],t.prototype,"destroyDatasource",null),t=Xg([Y("rowModel")],t)}(Fe),Jg={moduleName:t.ModuleNames.InfiniteRowModelModule,rowModels:{infinite:Qg}},$g=function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.getFileName=function(e){var t=this.getDefaultFileExtension();return null!=e&&e.length||(e=this.getDefaultFileName()),-1===e.indexOf(".")?e+"."+t:e},e.prototype.getData=function(e){var t=this.createSerializingSession(e);return this.beans.gridSerializer.serialize(t,e)},e}(),em=function(){function e(e){this.groupColumns=[];var t=e.columnModel,n=e.valueService,o=e.gridOptionsWrapper,r=e.processCellCallback,i=e.processHeaderCallback,s=e.processGroupHeaderCallback,a=e.processRowGroupCallback;this.columnModel=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.groupColumns=e.filter((function(e){return!!e.getColDef().showRowGroup}))},e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null!=t?t:""},e.prototype.extractRowCellValue=function(e,t,n,o,r){var i,s=this.gridOptionsWrapper.isGroupMultiAutoColumn()?r.rowGroupIndex:0;i=r&&r.group&&(t===s&&-1!==this.groupColumns.indexOf(e)||0===t&&this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotMode()))?this.createValueForGroupNode(r):this.valueService.getValue(e,r);var a=this.processCell(n,r,e,i,this.processCellCallback,o);return null!=a?a:""},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnModel.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()});var t=[e.key];if(!this.gridOptionsWrapper.isGroupMultiAutoColumn())for(;e.parent;)e=e.parent,t.push(e.key);return t.reverse().join(" -> ")},e.prototype.processCell=function(e,t,n,o,r,i){return r?r({accumulatedRowIndex:e,column:n,node:t,value:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:i}):null!=o?o:""},e}(),tm=function(){function e(){}return e.download=function(e,t){var n=document.defaultView||window;if(n){var o=document.createElement("a"),r=n.URL.createObjectURL(t);o.setAttribute("href",r),o.setAttribute("download",e),o.style.display="none",document.body.appendChild(o),o.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:n})),document.body.removeChild(o),n.setTimeout((function(){n.URL.revokeObjectURL(r)}),0)}else console.warn("AG Grid: There is no `window` associated with the current `document`")},e}(),nm=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),om=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 nm(t,e),t.prototype.addCustomContent=function(e){var t=this;e&&("string"===typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,"\r\n"),this.result+=e):e.forEach((function(e){t.beginNewLine(),e.forEach((function(e,n){0!==n&&(t.result+=t.columnSeparator),t.result+=t.putInQuotes(e.data.value||""),e.mergeAcross&&t.appendEmptyCells(e.mergeAcross)}))})))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e),this.appendEmptyCells(n)},t.prototype.appendEmptyCells=function(e){for(var t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,t,t,oe.EXPORT_TYPE_CSV,n))},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null===e||void 0===e?'""':("string"===typeof e?t=e:"function"===typeof e.toString?t=e.toString():(console.warn("AG Grid: unknown value type during csv conversion"),t=""),'"'+t.replace(/"/g,'""')+'"');var t},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},t}(em),rm=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),im=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},sm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rm(t,e),t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.getMergedParams=function(e){var t=this.gridOptionsWrapper.getDefaultExportParams("csv");return Object.assign({},t,e)},t.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration."),"";var t=this.getMergedParams(e),n=this.getData(t),o=new Blob(["\ufeff",n],{type:"text/plain"});return tm.download(this.getFileName(t.fileName),o),n},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e){var t=this.getMergedParams(e);return this.getData(t)},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this,n=t.columnModel,o=t.valueService,r=t.gridOptionsWrapper,i=e,s=i.processCellCallback,a=i.processHeaderCallback,l=i.processGroupHeaderCallback,u=i.processRowGroupCallback,c=i.suppressQuotes,p=i.columnSeparator;return new om({columnModel:n,valueService:o,gridOptionsWrapper:r,processCellCallback:s||void 0,processHeaderCallback:a||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:u||void 0,suppressQuotes:c||!1,columnSeparator:p||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},im([K("columnModel")],t.prototype,"columnModel",void 0),im([K("valueService")],t.prototype,"valueService",void 0),im([K("gridSerializer")],t.prototype,"gridSerializer",void 0),im([K("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),im([z],t.prototype,"postConstruct",null),t=im([Y("csvCreator")],t)}($g),am=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),lm=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.HEADER_GROUPING=0]="HEADER_GROUPING",e[e.HEADER=1]="HEADER",e[e.BODY=2]="BODY"}(t.RowType||(t.RowType={}));var um=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return am(t,e),t.prototype.serialize=function(e,t){void 0===t&&(t={});var n=this.getColumnsToExport(t.allColumns,t.columnKeys);return Wo.compose(this.prepareSession(n),this.prependContent(t),this.exportColumnGroups(t,n),this.exportHeaders(t,n),this.processPinnedTopRows(t,n),this.processRows(t,n),this.processPinnedBottomRows(t,n),this.appendContent(t))(e).parse()},t.prototype.processRow=function(e,t,n,o){var r=this,i=t.shouldRowBeSkipped||function(){return!1},s=this.gridOptionsWrapper,a=s.getContext(),l=s.getApi(),u=s.getColumnApi(),c=s.isGroupRemoveSingleChildren(),p=s.isGroupHideOpenParents(),d=s.isGroupRemoveLowestSingleChildren(),h=this.columnModel.isPivotMode()?o.leafGroup:!o.group,f=t.skipGroups||t.skipRowGroups,g=d&&o.leafGroup,m=1===o.allChildrenCount&&(c||g);f&&t.skipGroups&&Wo.doOnce((function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")}),"gridSerializer-skipGroups");var v={rowIndex:o.rowIndex,rowPinned:o.rowPinned};if(!(!h&&(t.skipRowGroups||m||p)||t.onlySelected&&!o.isSelected()||t.rowNodes&&!t.rowNodes.some((function(e){return r.rowPositionUtils.sameRow(e,v)}))||t.skipPinnedTop&&"top"===o.rowPinned||t.skipPinnedBottom&&"bottom"===o.rowPinned)&&((!(-1===o.level)||o.leafGroup)&&!i({node:o,api:l,columnApi:u,context:a}))){var y=e.onNewBodyRow();if(n.forEach((function(e,t){y.onColumn(e,t,o)})),t.getCustomContentBelowRow){var C=t.getCustomContentBelowRow({node:o,api:l,columnApi:u,context:a});C&&e.addCustomContent(C)}}},t.prototype.appendContent=function(e){return function(t){var n=e.customFooter||e.appendContent;return n&&(e.customFooter&&Wo.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.")}),"gridSerializer-customFooter"),t.addCustomContent(n)),t}},t.prototype.prependContent=function(e){return function(t){var n=e.customHeader||e.prependContent;return n&&(e.customHeader&&Wo.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.")}),"gridSerializer-customHeader"),t.addCustomContent(n)),t}},t.prototype.prepareSession=function(e){return function(t){return t.prepare(e),t}},t.prototype.exportColumnGroups=function(e,t){var n=this;return function(o){if(e.skipColumnGroupHeaders)e.columnGroups&&Wo.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.")}),"gridSerializer-columnGroups");else{var r=new We,i=n.displayedGroupCreator.createDisplayedGroups(t,n.columnModel.getGridBalancedTree(),r,null);n.recursivelyAddHeaderGroups(i,o,e.processGroupHeaderCallback)}return o}},t.prototype.exportHeaders=function(e,t){return function(n){if(e.skipHeader||e.skipColumnHeaders)e.skipHeader&&Wo.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")}),"gridSerializer-skipHeader");else{var o=n.onNewHeaderRow();t.forEach((function(e,t){o.onColumn(e,t,void 0)}))}return n}},t.prototype.processPinnedTopRows=function(e,t){var n=this;return function(o){var r=n.processRow.bind(n,o,e,t);return n.pinnedRowModel.forEachPinnedTopRow(r),o}},t.prototype.processRows=function(e,t){var n=this;return function(o){var r=n.rowModel,i=r.getType(),s=i===oe.ROW_MODEL_TYPE_CLIENT_SIDE,a=i===oe.ROW_MODEL_TYPE_SERVER_SIDE,l=!s&&e.onlySelected,u=n.processRow.bind(n,o,e,t);n.columnModel.isPivotMode()?s?r.forEachPivotNode(u):r.forEachNode(u):e.onlySelectedAllPages||l?n.selectionService.getSelectedNodes().forEach(u):s||a?r.forEachNodeAfterFilterAndSort(u):r.forEachNode(u);return o}},t.prototype.processPinnedBottomRows=function(e,t){var n=this;return function(o){var r=n.processRow.bind(n,o,e,t);return n.pinnedRowModel.forEachPinnedBottomRow(r),o}},t.prototype.getColumnsToExport=function(e,t){void 0===e&&(e=!1);var n=this.columnModel.isPivotMode();return t&&t.length?this.columnModel.getGridColumns(t):e&&!n?(this.gridOptionsWrapper.isTreeData()?this.columnModel.getGridColumns([oe.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnModel.getAllPrimaryColumns()||[]):this.columnModel.getAllDisplayedColumns()},t.prototype.recursivelyAddHeaderGroups=function(e,t,n){var 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 we&&this.doAddHeaderHeader(t,e,n),o&&o.length>0&&this.recursivelyAddHeaderGroups(o,t,n)},t.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.columnModel.getDisplayNameForColumnGroup(s,"header");var a=s.getLeafColumns().reduce((function(e,t,n,o){var r=Wo.last(e);return"open"===t.getColumnGroupShow()?r&&null==r[1]||(r=[n],e.push(r)):r&&null==r[1]&&(r[1]=n-1),n===o.length-1&&r&&null==r[1]&&(r[1]=n),e}),[]);r.onColumn(t||"",i++,s.getLeafColumns().length-1,a)}))},lm([K("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),lm([K("columnModel")],t.prototype,"columnModel",void 0),lm([K("rowModel")],t.prototype,"rowModel",void 0),lm([K("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),lm([K("selectionService")],t.prototype,"selectionService",void 0),lm([K("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),t=lm([Y("gridSerializer")],t)}(Fe),cm={moduleName:t.ModuleNames.CsvExportModule,beans:[sm,um]},pm="\r\n",dm=function(){function e(){}return e.createHeader=function(e){void 0===e&&(e={});var t=["version"];return e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone"),"<?xml "+t.map((function(t){return t+'="'+e[t]+'"'})).join(" ")+" ?>"},e.createXml=function(e,t){var n=this,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+">"+pm:(r+=">\r\n",e.children&&e.children.forEach((function(e){r+=n.createXml(e,t)})),r+"</"+e.name+">"+pm):r+"/>"+pm},e.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}(),hm=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},fm=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),gm=function(){function e(){}return e.addFolders=function(e){e.forEach(this.addFolder.bind(this))},e.addFolder=function(e){this.folders.push({path:e,created:new Date,isBase64:!1})},e.addFile=function(e,t,n){void 0===n&&(n=!1),this.files.push({path:e,created:new Date,content:t,isBase64:n})},e.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),n=this.buildUint8Array(t);return this.clearStream(),new Blob([n],{type:e})},e.clearStream=function(){this.folders=[],this.files=[]},e.buildFileStream=function(e){var t,n;void 0===e&&(e="");var o=this.folders.concat(this.files),r=o.length,i="",s=0,a=0;try{for(var l=hm(o),u=l.next();!u.done;u=l.next()){var c=u.value,p=this.getHeader(c,s),d=p.fileHeader,h=p.folderHeader,f=p.content;s+=d.length+f.length,a+=h.length,e+=d+f,i+=h}}catch(g){t={error:g}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return e+i+this.buildFolderEnd(r,a,s)},e.getHeader=function(e,t){var n=e.content,o=e.path,r=e.created,i=e.isBase64,s=Wo.utf8_encode,a=Wo.decToHex,l=s(o),u=l!==o,c=this.convertTime(r),p=this.convertDate(r),d="";if(u){var h=a(1,1)+a(this.getFromCrc32Table(l),4)+l;d="up"+a(h.length,2)+h}var f=n?this.getConvertedContent(n,i):{size:0,content:""},g=f.size,m=f.content,v="\n\0"+(u?"\0\b":"\0\0")+"\0\0"+a(c,2)+a(p,2)+a(g?this.getFromCrc32Table(m):0,4)+a(g,4)+a(g,4)+a(l.length,2)+a(d.length,2);return{fileHeader:"PK\x03\x04"+v+l+d,folderHeader:"PK\x01\x02\x14\0"+v+"\0\0\0\0\0\0"+(n?"\0\0\0\0":"\x10\0\0\0")+a(t,4)+l+d,content:m||""}},e.getConvertedContent=function(e,t){return void 0===t&&(t=!1),t&&(e=e.split(";base64,")[1]),{size:(e=t?atob(e):e).length,content:e}},e.buildFolderEnd=function(e,t,n){var o=Wo.decToHex;return"PK\x05\x06\0\0\0\0"+o(e,2)+o(e,2)+o(t,4)+o(n,4)+"\0\0"},e.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t},e.getFromCrc32Table=function(e){if(!e.length)return 0;for(var t=e.length,n=new Uint8Array(t),o=0;o<t;o++)n[o]=e.charCodeAt(o);var r=-1,i=0;for(o=0;o<t;o++)i=n[o],r=r>>>8^fm[255&(r^i)];return-1^r},e.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),t<<=5,t|=e.getSeconds()/2},e.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate()},e.folders=[],e.files=[],e}();re.register(Vg,!1),re.register(Jg,!1),re.register(cm,!1),t.AbstractHeaderCellCtrl=Vu,t.AgAbstractField=Sr,t.AgAngleSelect=$p,t.AgCheckbox=ic,t.AgColorPicker=dd,t.AgDialog=cd,t.AgGroupComponent=gd,t.AgInputNumberField=zp,t.AgInputRange=Yp,t.AgInputTextArea=jp,t.AgInputTextField=Vp,t.AgMenuItemComponent=Nd,t.AgMenuList=Od,t.AgMenuPanel=Ad,t.AgPanel=sd,t.AgPromise=zo,t.AgRadioButton=kp,t.AgSelect=Mr,t.AgSlider=Xp,t.AgStackComponentsRegistry=_t,t.AgToggleButton=Hp,t.AlignedGridsService=th,t.AnimateShowChangeCellRenderer=Bi,t.AnimateSlideCellRenderer=ji,t.AnimationFrameService=op,t.AutoScrollService=Sa,t.AutoWidthCalculator=up,t.Autowired=K,t.BaseComponentWrapper=hg,t.BaseCreator=$g,t.BaseGridSerializingSession=em,t.Bean=Y,t.BeanStub=Fe,t.Beans=qa,t.BodyDropPivotTarget=Cu,t.BodyDropTarget=Su,t.CellComp=cu,t.CellCtrl=al,t.CellNavigationService=Qd,t.CellPositionUtils=Tf,t.ChangedPath=Ep,t.CheckboxSelectionComponent=Xi,t.ColDefUtil=St,t.Color=Ot,t.Column=ae,t.ColumnApi=ah,t.ColumnFactory=Be,t.ColumnGroup=we,t.ColumnKeyCreator=h,t.ColumnModel=it,t.ColumnUtils=lt,t.Component=tr,t.ComponentUtil=yt,t.Constants=oe,t.Context=j,t.CssClassApplier=Tu,t.CssClassManager=er,t.CsvCreator=sm,t.CsvExportModule=cm,t.CtrlsService=Zf,t.CustomTooltipFeature=Xo,t.DateFilter=Yr,t.DisplayedGroupCreator=pt,t.Downloader=tm,t.DragAndDropService=ts,t.DragService=Xs,t.Environment=lf,t.EventService=ne,t.Events=Ve,t.ExpressionService=fh,t.FilterManager=ea,t.FloatingFilterMapper=Us,t.FocusService=kd,t.Grid=cg,t.GridApi=zu,t.GridBodyComp=ql,t.GridBodyCtrl=Ga,t.GridComp=Ph,t.GridCoreCreator=pg,t.GridCtrl=Rh,t.GridHeaderComp=Vc,t.GridHeaderCtrl=Gc,t.GridOptionsWrapper=ma,t.GridSerializer=um,t.GroupCellRenderer=fs,t.GroupCellRendererCtrl=ps,t.GroupInstanceIdCreator=We,t.HeaderCellCtrl=pc,t.HeaderFilterCellComp=ia,t.HeaderFilterCellCtrl=ec,t.HeaderGroupCellCtrl=wc,t.HeaderNavigationService=Lc,t.HeaderPositionUtils=kf,t.HeaderRowComp=ku,t.HeaderRowContainerComp=Nc,t.HeaderRowContainerCtrl=Ac,t.HeaderRowCtrl=Sc,t.HorizontalResizeService=Uc,t.KeyCode=dr,t.LargeTextCellEditor=Ti,t.Logger=bh,t.LoggerFactory=_h,t.ManagedFocusFeature=mr,t.ModuleRegistry=re,t.MouseEventService=tu,t.MoveColumnFeature=_u,t.NavigationService=iu,t.NumberFilter=ri,t.NumberSequence=jo,t.Optional=q,t.PaginationProxy=Np,t.PinnedRowModel=_p,t.PopupComponent=Si,t.PopupEditorWrapper=lu,t.PopupSelectCellEditor=Ni,t.PopupService=Wd,t.PopupTextCellEditor=ki,t.PositionableFeature=sp,t.PostConstruct=z,t.PreConstruct=U,t.PreDestroy=Z,t.PropertyKeys=ft,t.ProvidedColumnGroup=_e,t.ProvidedFilter=Cr,t.Qualifier=Q,t.QuerySelector=function(e){return or.bind(this,e,void 0)},t.RefSelector=nr,t.ResizeObserverService=ep,t.RowContainerComp=vu,t.RowContainerCtrl=zl,t.RowCtrl=fl,t.RowNode=Yi,t.RowNodeBlock=Rp,t.RowNodeBlockLoader=Ap,t.RowNodeSorter=jf,t.RowPositionUtils=Sf,t.RowRenderer=fp,t.ScalarFilter=Wr,t.ScrollVisibleService=Jl,t.SelectCellEditor=Di,t.SelectableService=gf,t.SelectionService=ih,t.SetLeftFeature=Ku,t.SimpleFilter=Br,t.SortController=xh,t.StandardMenuFactory=Yc,t.StylingService=Lp,t.TabGuardComp=bd,t.TabGuardCtrl=yd,t.TabbedLayout=Xc,t.TemplateService=vh,t.TextCellEditor=Li,t.TextFilter=li,t.TextFloatingFilter=gi,t.Timer=Zo,t.TouchListener=mi,t.UserComponentFactory=Ys,t.UserComponentRegistry=Os,t.ValueCache=Zh,t.ValueFormatterService=yp,t.ValueService=ch,t.VanillaFrameworkOverrides=Kd,t.VirtualList=zd,t.XmlFactory=dm,t.ZipContainer=gm,t._=Wo,t.defaultGroupComparator=function(e,t,n,o,i){void 0===i&&(i=!1),console.warn("AG Grid: Since ag-grid 11.0.0 defaultGroupComparator is not necessary. You can remove this from your colDef");var s=r(n)&&n.group,a=r(o)&&o.group,l=!s&&!a;return s&&a?c(n.key,o.key,i):l?c(e,t,i):s?1:-1},t.getRowContainerTypeForName=Vl,t.simpleHttpRequest=function(e){return new zo((function(t){var n=new XMLHttpRequest;n.open("GET",e.url),n.send(),n.onreadystatechange=function(){4===n.readyState&&200===n.status&&t(JSON.parse(n.responseText))}}))},t.stringToArray=Tt},7945:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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=this&&this.__assign||function(){return r=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},r.apply(this,arguments)},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s=i(n(2791)),a=n(4282),l=n(2553),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.setGridApi=function(e,n){t.api=e,t.columnApi=n},t}return o(t,e),t.prototype.render=function(){var e=this.props.suppressReactUi?a.AgGridReactLegacy:l.AgGridReactUi;return s.default.createElement(e,r({},this.props,{setGridApi:this.setGridApi}))},t}(s.Component);t.AgGridReact=u},4282:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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=this&&this.__assign||function(){return r=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},r.apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1167),l=i(n(2007)),u=s(n(2791)),c=n(4619),p=n(6745),d=n(4584),h=n(8665),f=n(3365),g=n(9575),m=function(e){function t(t){var n=e.call(this,t)||this;return n.props=t,n.changeDetectionService=new d.ChangeDetectionService,n.api=null,n.destroyed=!1,n.SYNCHRONOUS_CHANGE_PROPERTIES=["context"],n.portalManager=new f.PortalManager(n,t.componentWrappingElement,t.maxComponentCreationTimeMs),n}return o(t,e),t.prototype.render=function(){var e=this;return u.default.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(t){e.eGridDiv=t}},this.portalManager.getPortals())},t.prototype.createStyleForDiv=function(){return r({height:"100%"},this.props.containerStyle||{})},t.prototype.componentDidMount=function(){var e=this.props.modules||[],t={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new y(this,this.portalManager)},modules:e,frameworkOverrides:new g.ReactFrameworkOverrides(!1)},n=this.props.gridOptions||{},o=this.props.children;p.AgGridColumn.hasChildColumns(o)&&(n.columnDefs=p.AgGridColumn.mapChildColumnDefs(o)),this.gridOptions=a.ComponentUtil.copyAttributesToGridOptions(n,this.props),new a.Grid(this.eGridDiv,this.gridOptions,t),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi,this.props.setGridApi(this.api,this.columnApi)},t.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.isImmutableDataActive())return d.ChangeDetectionStrategyType.IdentityCheck}return d.ChangeDetectionStrategyType.DeepValueCheck},t.prototype.isImmutableDataActive=function(){return this.props.deltaRowDataMode||this.props.immutableData||null!=this.props.getRowId||this.props.gridOptions&&(this.props.gridOptions.deltaRowDataMode||this.props.gridOptions.immutableData||null!=this.props.gridOptions.getRowId)},t.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},t.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},t.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.extractDeclarativeColDefChanges(t,n),this.processSynchronousChanges(n),this.processAsynchronousChanges(n)},t.prototype.extractDeclarativeColDefChanges=function(e,t){if(!(this.props.gridOptions&&this.props.gridOptions.columnDefs||this.props.columnDefs)){var n=!!e.debug,o="columnDefs",r=this.gridOptions.columnDefs;if(p.AgGridColumn.hasChildColumns(e.children)){var i=this.changeDetectionService.getStrategy(this.getStrategyTypeForProp(o)),s=p.AgGridColumn.mapChildColumnDefs(e.children);i.areEqual(r,s)||(n&&console.log("agGridReact: colDefs definitions changed"),t[o]={previousValue:r,currentValue:s})}else r&&r.length>0&&(t[o]={previousValue:r,currentValue:[]})}},t.prototype.extractGridPropertyChanges=function(e,t,n){var o=this,r=!!t.debug;Object.keys(t).forEach((function(i){a._.includes(a.ComponentUtil.ALL_PROPERTIES,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]}))})),a.ComponentUtil.getEventCallbacks().forEach((function(o){e[o]!==t[o]&&(r&&console.log("agGridReact: ["+o+"] event callback changed"),n[o]={previousValue:e[o],currentValue:t[o]})}))},t.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0,this.portalManager.destroy()},t.prototype.isDisableStaticMarkup=function(){return!0===this.props.disableStaticMarkup},t.prototype.isLegacyComponentRendering=function(){return!0===this.props.legacyComponentRendering},t.prototype.processSynchronousChanges=function(e){var t=r({},e);if(Object.keys(t).length>0){var n={};this.SYNCHRONOUS_CHANGE_PROPERTIES.forEach((function(e){t[e]&&(n[e]=t[e],delete t[e])})),Object.keys(n).length>0&&this.api&&a.ComponentUtil.processOnChange(n,this.gridOptions,this.api,this.columnApi)}return t},t.prototype.processAsynchronousChanges=function(e){var t=this;Object.keys(e).length>0&&window.setTimeout((function(){t.api&&a.ComponentUtil.processOnChange(e,t.gridOptions,t.api,t.columnApi)}))},t.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3,t.defaultProps={legacyComponentRendering:!1,disableStaticMarkup:!1,maxComponentCreationTimeMs:t.MAX_COMPONENT_CREATION_TIME_IN_MS},t}(u.Component);function v(e,t){e.forEach((function(e){m[e]=t}))}t.AgGridReactLegacy=m,m.propTypes={gridOptions:l.default.object},v(a.ComponentUtil.getEventCallbacks(),l.default.func),v(a.ComponentUtil.BOOLEAN_PROPERTIES,l.default.bool),v(a.ComponentUtil.STRING_PROPERTIES,l.default.string),v(a.ComponentUtil.OBJECT_PROPERTIES,l.default.object),v(a.ComponentUtil.ARRAY_PROPERTIES,l.default.array),v(a.ComponentUtil.NUMBER_PROPERTIES,l.default.number),v(a.ComponentUtil.FUNCTION_PROPERTIES,l.default.func);var y=function(e){function t(t,n){var o=e.call(this)||this;return o.agGridReact=t,o.portalManager=n,o}return o(t,e),t.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new c.LegacyReactComponent(e,this.agGridReact,this.portalManager,t):new h.NewReactComponent(e,this.portalManager,t)},t}(a.BaseComponentWrapper)},4619:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(2791),s=n(4164),a=n(1167),l=n(294),u=n(8340),c=r(n(3507)),p=function(e){function t(t,n,o,r){var i=e.call(this,t,o,r)||this;return i.staticMarkup=null,i.staticRenderTime=0,i.parentComponent=n,i}return o(t,e),t.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.renderStaticMarkup(e),new a.AgPromise((function(n){return t.createReactComponent(e,n)}))},t.prototype.createReactComponent=function(e,t){var n=this;this.isStatelessComponent()||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()});var o=i.createElement(this.reactComponent,e),r=s.createPortal(o,this.eParentElement,c.default());this.portal=r,this.portalManager.mountReactPortal(r,this,(function(e){t(e),n.isStatelessComponent()&&(n.isSlowRenderer()&&n.removeStaticMarkup(),setTimeout((function(){n.removeStaticMarkup()})))}))},t.prototype.fallbackMethodAvailable=function(e){return!1},t.prototype.fallbackMethod=function(e,t){},t.prototype.isSlowRenderer=function(){return this.staticRenderTime>=t.SLOW_RENDERING_THRESHOLD},t.prototype.isNullValue=function(){return""===this.staticMarkup},t.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer){var t=console.error,n=i.createElement(this.reactComponent,e);try{console.error=function(){};var o=Date.now(),r=u.renderToStaticMarkup(n);this.staticRenderTime=Date.now()-o,console.error=t,""===r?this.staticMarkup=r:r&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=r,this.eParentElement.appendChild(this.staticMarkup))}catch(s){}finally{console.error=t}}},t.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer&&this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},t.prototype.rendered=function(){return this.isNullValue()||!!this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},t.SLOW_RENDERING_THRESHOLD=3,t}(l.ReactComponent);t.LegacyReactComponent=p},2553:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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=this&&this.__assign||function(){return r=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},r.apply(this,arguments)},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1167),l=i(n(2791)),u=n(6745),c=n(4584),p=n(8665),d=n(3365),h=s(n(3970)),f=n(9575);var g=function(e){function t(t){var n=e.call(this,t)||this;return n.props=t,n.destroyFuncs=[],n.changeDetectionService=new c.ChangeDetectionService,n.eGui=l.default.createRef(),n.whenReadyFuncs=[],n.ready=!1,n.renderedAfterMount=!1,n.mounted=!1,n.state={context:void 0},n.portalManager=new d.PortalManager(n,t.componentWrappingElement,t.maxComponentCreationTimeMs),n.destroyFuncs.push((function(){return n.portalManager.destroy()})),n}return o(t,e),t.prototype.render=function(){return this.state.context,this.state.context&&(this.renderedAfterMount=!0),l.default.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&l.default.createElement(h.default,{context:this.state.context}),this.portalManager.getPortals())},t.prototype.createStyleForDiv=function(){return r({height:"100%"},this.props.containerStyle||{})},t.prototype.componentDidMount=function(){var e=this;if(!this.mounted){this.mounted=!0;var t=this.props.modules||[],n={providedBeanInstances:{frameworkComponentWrapper:new m(this.portalManager)},modules:t,frameworkOverrides:new f.ReactFrameworkOverrides(!0)};this.gridOptions=this.props.gridOptions||{};var o=this.props.children;u.AgGridColumn.hasChildColumns(o)&&(this.gridOptions.columnDefs=u.AgGridColumn.mapChildColumnDefs(o)),this.gridOptions=a.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props);(new a.GridCoreCreator).create(this.eGui.current,this.gridOptions,(function(t){e.setState({context:t}),t.getBean(a.CtrlsService.NAME).whenReady((function(){e.api=e.gridOptions.api,e.columnApi=e.gridOptions.columnApi,e.props.setGridApi(e.api,e.columnApi),e.destroyFuncs.push((function(){return e.api.destroy()}))}))}),(function(t){t.getBean(a.CtrlsService.NAME).whenReady((function(){e.whenReadyFuncs.forEach((function(e){return e()})),e.whenReadyFuncs.length=0,e.ready=!0}))}),n)}},t.prototype.componentWillUnmount=function(){this.renderedAfterMount&&(this.destroyFuncs.forEach((function(e){return e()})),this.destroyFuncs.length=0)},t.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},t.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.extractDeclarativeColDefChanges(t,n),this.processChanges(n)},t.prototype.extractDeclarativeColDefChanges=function(e,t){if(!(this.props.gridOptions&&this.props.gridOptions.columnDefs||this.props.columnDefs)){var n=!!e.debug,o="columnDefs",r=this.gridOptions.columnDefs;if(u.AgGridColumn.hasChildColumns(e.children)){var i=this.changeDetectionService.getStrategy(this.getStrategyTypeForProp(o)),s=u.AgGridColumn.mapChildColumnDefs(e.children);i.areEqual(r,s)||(n&&console.log("agGridReact: colDefs definitions changed"),t[o]={previousValue:r,currentValue:s})}else r&&r.length>0&&(t[o]={previousValue:r,currentValue:[]})}},t.prototype.extractGridPropertyChanges=function(e,t,n){var o=this,r=!!t.debug;Object.keys(t).forEach((function(i){a._.includes(a.ComponentUtil.ALL_PROPERTIES,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]}))})),a.ComponentUtil.getEventCallbacks().forEach((function(o){e[o]!==t[o]&&(r&&console.log("agGridReact: ["+o+"] event callback changed"),n[o]={previousValue:e[o],currentValue:t[o]})}))},t.prototype.processChanges=function(e){var t=this;this.processWhenReady((function(){return a.ComponentUtil.processOnChange(e,t.gridOptions,t.api,t.columnApi)}))},t.prototype.processWhenReady=function(e){this.ready?e():this.whenReadyFuncs.push(e)},t.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.isImmutableDataActive())return c.ChangeDetectionStrategyType.IdentityCheck}return c.ChangeDetectionStrategyType.DeepValueCheck},t.prototype.isImmutableDataActive=function(){return this.props.deltaRowDataMode||this.props.immutableData||null!=this.props.getRowId||this.props.gridOptions&&(this.props.gridOptions.deltaRowDataMode||this.props.gridOptions.immutableData||null!=this.props.gridOptions.getRowId)},t}(l.Component);t.AgGridReactUi=g;var m=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,n}return o(t,e),t.prototype.createWrapper=function(e,t){return new p.NewReactComponent(e,this.parent,t)},t}(a.BaseComponentWrapper)},2724:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(2791));t.BeansContext=r.default.createContext({})},7627:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2791)),s=n(6817),a=n(2724),l=n(2553),u=n(1622);t.default=i.forwardRef((function(e,t){var n=i.useContext(a.BeansContext),r=n.ctrlsFactory,c=n.context,p=n.gridOptionsWrapper,d=n.resizeObserverService,h=n.clientSideRowModel,f=n.serverSideRowModel,g=i.useState(new s.CssClasses),m=g[0],v=g[1],y=i.useState(new s.CssClasses),C=y[0],w=y[1],_=i.useState(),b=_[0],E=_[1],S=i.useState(),R=S[0],O=S[1],T=i.useRef(),P=i.useRef(null),A=i.useMemo((function(){return m.toString()+" ag-details-row"}),[m]),D=i.useMemo((function(){return C.toString()+" ag-details-grid"}),[C]);t&&i.useImperativeHandle(t,(function(){return{refresh:function(){return T.current.refresh()}}})),u.useEffectOnce((function(){e.template&&"string"===typeof e.template&&console.warn("AG Grid: detailCellRendererParams.template is not supported by React - this only works with frameworks that work against String templates. To change the template, please provide your own React Detail Cell Renderer.")})),u.useEffectOnce((function(){var t={addOrRemoveCssClass:function(e,t){return v((function(n){return n.setClass(e,t)}))},addOrRemoveDetailGridCssClass:function(e,t){return w((function(n){return n.setClass(e,t)}))},setDetailGrid:function(e){return E(e)},setRowData:function(e){return O(e)},getGui:function(){return P.current}},n=r.getInstance("detailCellRenderer");if(n){var o;if(c.createBean(n),n.init(t,e),T.current=n,p.isDetailRowAutoHeight()){var i=function(){if(null!=P.current){var t=P.current.clientHeight;if(null!=t&&t>0){setTimeout((function(){e.node.setRowHeight(t),h?h.onRowHeightChanged():f&&f.onRowHeightChanged()}),0)}}};o=d.observeResize(P.current,i),i()}return function(){c.destroyBean(n),o&&o()}}}));var x=i.useCallback((function(e,t){T.current.registerDetailWithMaster(e,t)}),[]);return i.default.createElement("div",{className:A,ref:P},b&&i.default.createElement(l.AgGridReactUi,o({className:D},b,{rowData:R,setGridApi:x})))}))},5728:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=n(1167),s=r(n(2791)),a=n(2724),l=n(8285),u=n(1622),c=n(6817),p=s.forwardRef((function(e,t){var n=s.useContext(a.BeansContext).context,r=s.useRef(null),d=s.useRef(null),h=s.useRef(null),f=s.useRef(null),g=s.useRef(null),m=s.useState(),v=m[0],y=m[1],C=s.useState(),w=C[0],_=C[1],b=s.useState(),E=b[0],S=b[1],R=s.useState(new c.CssClasses),O=R[0],T=R[1],P=s.useState(new c.CssClasses("ag-hidden")),A=P[0],D=P[1],x=s.useState(new c.CssClasses("ag-hidden")),N=x[0],M=x[1],I=s.useState(new c.CssClasses("ag-invisible")),L=I[0],F=I[1];s.useImperativeHandle(t,(function(){return{refresh:function(){return!1}}})),s.useEffect((function(){return l.showJsComp(v,n,d.current)}),[v]),u.useEffectOnce((function(){var t={setInnerRenderer:function(e,t){y(e),S(t)},setChildCount:function(e){return _(e)},addOrRemoveCssClass:function(e,t){return T((function(n){return n.setClass(e,t)}))},setContractedDisplayed:function(e){return M((function(t){return t.setClass("ag-hidden",!e)}))},setExpandedDisplayed:function(e){return D((function(t){return t.setClass("ag-hidden",!e)}))},setCheckboxVisible:function(e){return F((function(t){return t.setClass("ag-invisible",!e)}))}},o=n.createBean(new i.GroupCellRendererCtrl);return o.init(t,r.current,h.current,f.current,g.current,p,e),function(){n.destroyBean(o)}}));var k=s.useMemo((function(){return"ag-cell-wrapper "+O.toString()}),[O]),G=s.useMemo((function(){return"ag-group-expanded "+A.toString()}),[A]),H=s.useMemo((function(){return"ag-group-contracted "+N.toString()}),[N]),B=s.useMemo((function(){return"ag-group-checkbox "+L.toString()}),[L]),V=v&&v.componentFromFramework,W=V?v.componentClass:void 0,j=null==v&&null!=E;return s.default.createElement("span",o({className:k,ref:r},e.colDef?{}:{role:"gridcell"}),s.default.createElement("span",{className:G,ref:f}),s.default.createElement("span",{className:H,ref:g}),s.default.createElement("span",{className:B,ref:h}),s.default.createElement("span",{className:"ag-group-value",ref:d},j&&s.default.createElement(s.default.Fragment,null,E),V&&s.default.createElement(W,o({},v.params))),s.default.createElement("span",{className:"ag-group-child-count"},w))}));t.default=p},4148:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1167),a=r(n(2791)),l=n(6817),u=i(n(7664)),c=i(n(3930)),p=n(2724),d=n(8285),h=n(1622);!function(e){e[e.ShowValue=0]="ShowValue",e[e.EditValue=1]="EditValue"}(t.CellCompState||(t.CellCompState={}));t.default=a.memo((function(e){var t=a.useContext(p.BeansContext).context,n=e.cellCtrl,r=e.printLayout,i=e.editingRow,f=a.useState(),g=f[0],m=f[1],v=a.useState(),y=v[0],C=v[1],w=a.useState(1),_=w[0],b=w[1],E=a.useState(new l.CssClasses),S=E[0],R=E[1],O=a.useState(),T=O[0],P=O[1],A=a.useState(),D=A[0],x=A[1],N=a.useState(),M=N[0],I=N[1],L=a.useState(),F=L[0],k=L[1],G=a.useState(),H=G[0],B=G[1],V=a.useState(),W=V[0],j=V[1],U=a.useState(!1),z=U[0],Z=U[1],Y=a.useState(!1),K=Y[0],q=Y[1],X=a.useState(!1),Q=X[0],J=X[1],$=a.useState(),ee=$[0],te=$[1],ne=a.useMemo((function(){return n.isForceWrapper()}),[]),oe=a.useRef(null),re=a.useRef(null),ie=a.useRef(),se=a.useRef(),ae=a.useRef(),le=a.useState(0),ue=le[0],ce=le[1],pe=a.useCallback((function(e){ae.current=e,ce((function(e){return e+1}))}),[]),de=a.useRef(),he=a.useState(0),fe=he[0],ge=he[1],me=a.useCallback((function(e){de.current=e,ge((function(e){return e+1}))}),[]),ve=null!=g&&(z||Q||K),ye=ne||ve,Ce=a.useCallback((function(e,t){(se.current=t,t)&&(!function(e,t,n){var o=n.getColumn();if(!e&&t.isPopup&&t.isPopup()){var r="AG Grid: Found an issue in column "+o.getColId()+". If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.";s._.doOnce((function(){return console.warn(r)}),"jsEditorComp-isPopup-"+n.getColumn().getColId())}if(e&&t.getPopupPosition&&null!=t.getPopupPosition()){var i="AG Grid: Found an issue in column "+o.getColId()+". If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.";s._.doOnce((function(){return console.warn(i)}),"jsEditorComp-getPopupPosition-"+n.getColumn().getColId())}}(e,t,n),t.isCancelBeforeStart&&t.isCancelBeforeStart()&&setTimeout((function(){return n.stopEditing()}),0))}),[]),we=a.useCallback((function(e){return Ce(!0,e)}),[]),_e=a.useCallback((function(e){return Ce(!1,e)}),[]);c.default(g,ye,de.current,fe,ie,oe);var be=a.useRef();a.useEffect((function(){var e=be.current,t=g;if(be.current=g,null!=e&&null!=e.compDetails&&null!=t&&null!=t.compDetails){var n=e.compDetails,o=t.compDetails;if(n.componentClass==o.componentClass)if(null!=re.current&&null!=re.current.refresh)1!=re.current.refresh(o.params)&&b((function(e){return e+1}))}}),[g]),a.useEffect((function(){if(y&&!y.compDetails.componentFromFramework){var e=y.compDetails,n=!0===y.popup,o=d.createSyncJsComp(e);if(o){var r=o.getGui();return Ce(n,o),n||(oe.current.appendChild(r),o.afterGuiAttached&&o.afterGuiAttached()),te(o),function(){t.destroyBean(o),Ce(n,void 0),te(void 0),r&&r.parentElement&&r.parentElement.removeChild(r)}}}}),[y]),a.useEffect((function(){if(n&&t&&(I(ae.current?"cell-"+n.getInstanceId():void 0),ae.current&&ye)){var e=[],o=function(n){if(n){var o=n.getGui();ae.current.insertAdjacentElement("afterbegin",o),e.push((function(){t.destroyBean(n),s._.removeFromParent(o)}))}return n};return z&&o(n.createSelectionCheckbox()),Q&&o(n.createDndSource()),K&&o(n.createRowDragComp()),function(){e.forEach((function(e){e()}))}}}),[ye,Q,K,z,ue]),h.useEffectOnce((function(){if(n){var e={addOrRemoveCssClass:function(e,t){return R((function(n){return n.setClass(e,t)}))},setUserStyles:function(e){return P(e)},getFocusableElement:function(){return oe.current},setTabIndex:function(e){return x(e)},setRole:function(e){return k(e)},setColId:function(e){return B(e)},setTitle:function(e){return j(e)},setIncludeSelection:function(e){return Z(e)},setIncludeRowDrag:function(e){return q(e)},setIncludeDndSource:function(e){return J(e)},getCellEditor:function(){return se.current||null},getCellRenderer:function(){return re.current?re.current:ie.current},getParentOfValue:function(){return de.current?de.current:ae.current?ae.current:oe.current},setRenderDetails:function(e,t,n){m({value:t,compDetails:e,force:n})},setEditDetails:function(e,t,n){e?(C({compDetails:e,popup:t,popupPosition:n}),t||m(void 0)):C(void 0)}},t=ae.current||void 0;n.setComp(e,oe.current,t,r,i)}}));var Ee=a.useMemo((function(){return!!(g&&g.compDetails&&g.compDetails.componentFromFramework&&l.isComponentStateless(g.compDetails.componentClass))}),[g]),Se=a.useMemo((function(){var e=S.toString();return ye||(e+=" ag-cell-value"),e}),[S,ve]),Re=a.useMemo((function(){return n.getInstanceId()}),[]),Oe=function(){return a.default.createElement(a.default.Fragment,null,null!=g&&function(e,t,n,r,i,s,l){var u=e.compDetails,c=e.value,p=!u,d=u&&u.componentFromFramework,h=u&&u.componentClass,f=c&&c.toString?c.toString():c,g=function(){return a.default.createElement(a.default.Fragment,null,p&&a.default.createElement(a.default.Fragment,null,f),d&&!s&&a.default.createElement(h,o({},u.params,{key:t,ref:r})),d&&s&&a.default.createElement(h,o({},u.params,{key:t})))};return a.default.createElement(a.default.Fragment,null,i?a.default.createElement("span",{role:"presentation",id:"cell-"+n,className:"ag-cell-value",ref:l},g()):g())}(g,_,Re,re,ye,Ee,me),null!=y&&function(e,t,n,r,i,s){var l=e.compDetails,c=l.componentClass,p=l.componentFromFramework&&!e.popup,d=l.componentFromFramework&&e.popup,h=!l.componentFromFramework&&e.popup;return a.default.createElement(a.default.Fragment,null,p&&a.default.createElement(c,o({},e.compDetails.params,{ref:t})),d&&a.default.createElement(u.default,{editDetails:e,cellCtrl:i,eParentCell:r,wrappedContent:a.default.createElement(c,o({},e.compDetails.params,{ref:n}))}),h&&s&&a.default.createElement(u.default,{editDetails:e,cellCtrl:i,eParentCell:r,jsChildComp:s}))}(y,_e,we,oe.current,n,ee))};return a.default.createElement("div",{ref:oe,className:Se,style:T,tabIndex:D,role:F,"col-id":H,title:W,"aria-describedby":M},ye?a.default.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:pe},Oe()):Oe())}))},7664:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var r=n(1167),i=o(n(2791)),s=n(4164),a=n(2724),l=n(1622);t.default=i.memo((function(e){var t=i.useState(),n=t[0],o=t[1],u=i.useContext(a.BeansContext),c=u.context,p=u.popupService,d=u.gridOptionsWrapper;return l.useEffectOnce((function(){var t=e.editDetails,n=e.cellCtrl,i=e.eParentCell,s=t.compDetails,a=d.isStopEditingWhenCellsLoseFocus(),l=c.createBean(new r.PopupEditorWrapper(s.params)),u=l.getGui();if(e.jsChildComp){var h=e.jsChildComp.getGui();h&&u.appendChild(h)}var f={column:n.getColumn(),rowNode:n.getRowNode(),type:"popupCellEditor",eventSource:i,ePopup:u,keepWithinBounds:!0},g="under"===t.popupPosition?p.positionPopupUnderComponent.bind(p,f):p.positionPopupOverComponent.bind(p,f),m=d.getLocaleTextFunc(),v=p.addPopup({modal:a,eChild:u,closeOnEsc:!0,closedCallback:function(){n.onPopupEditorClosed()},anchorToElement:i,positionCallback:g,ariaLabel:m("ariaLabelCellEditor","Cell Editor")}),y=v?v.hideFunc:void 0;return o(l),e.jsChildComp&&e.jsChildComp.afterGuiAttached&&e.jsChildComp.afterGuiAttached(),function(){null!=y&&y(),c.destroyBean(l)}})),i.default.createElement(i.default.Fragment,null,n&&e.wrappedContent&&s.createPortal(e.wrappedContent,n.getGui()))}))},3930:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(2791),r=n(2724),i=n(1622);t.default=function(e,t,n,s,a,l){var u=o.useContext(r.BeansContext),c=u.context,p=(u.userComponentFactory,o.useCallback((function(){var e=a.current;if(e){var t=e.getGui();t&&t.parentElement&&t.parentElement.removeChild(t),c.destroyBean(e),a.current=void 0}}),[]));o.useEffect((function(){var o=null!=e,r=e&&e.compDetails&&!e.compDetails.componentFromFramework;if(o&&r&&!(t&&null==n)){var i=e.compDetails;if(a.current){var s=a.current,u=!!(null!=s.refresh&&0==e.force)&&s.refresh(i.params);if(!0===u||void 0===u)return;p()}var c=i.newAgStackInstance();if(c){var d=c.resolveNow(null,(function(e){return e}));if(d){var h=d.getGui();if(h)(t?n:l.current).appendChild(h),a.current=d}}}else p()}),[e,t,s]),i.useEffectOnce((function(){return p}))}},6556:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(1167),s=o(n(2791)),a=n(2724),l=r(n(332)),u=r(n(1008)),c=r(n(961)),p=n(1622),d=n(6817);t.default=s.memo((function(){var e=s.useContext(a.BeansContext),t=e.context,n=e.agStackComponentsRegistry,o=e.resizeObserverService,r=s.useState(""),h=r[0],f=r[1],g=s.useState(0),m=g[0],v=g[1],y=s.useState(0),C=y[0],w=y[1],_=s.useState(0),b=_[0],E=_[1],S=s.useState(0),R=S[0],O=S[1],T=s.useState(""),P=T[0],A=T[1],D=s.useState(""),x=D[0],N=D[1],M=s.useState(null),I=M[0],L=M[1],F=s.useState(null),k=F[0],G=F[1],H=s.useState(""),B=H[0],V=H[1],W=s.useState(null),j=W[0],U=W[1],z=s.useState("ag-layout-normal"),Z=z[0],Y=z[1],K=s.useRef(null),q=s.useRef(null),X=s.useRef(null),Q=s.useRef(null);u.default(" AG Grid Body ",K),u.default(" AG Pinned Top ",q),u.default(" AG Middle ",X),u.default(" AG Pinned Bottom ",Q),p.useEffectOnce((function(){var e=[],r=[];if(t){var s=function(o){var r=n.getComponentClass(o),i=t.createBean(new r);return e.push(i),i};K.current.appendChild(document.createComment(" AG Fake Horizontal Scroll ")),K.current.appendChild(s("AG-FAKE-HORIZONTAL-SCROLL").getGui()),K.current.appendChild(document.createComment(" AG Overlay Wrapper ")),K.current.appendChild(s("AG-OVERLAY-WRAPPER").getGui());var a={setRowAnimationCssOnBodyViewport:f,setColumnCount:v,setRowCount:w,setTopHeight:E,setBottomHeight:O,setTopDisplay:A,setBottomDisplay:N,setColumnMovingCss:L,updateLayoutClasses:Y,setAlwaysVerticalScrollClass:G,setPinnedTopBottomOverflowY:V,setCellSelectableCss:U,registerBodyViewportResizeListener:function(e){var t=o.observeResize(X.current,e);r.push((function(){return t()}))}},l=t.createBean(new i.GridBodyCtrl);return e.push(l),l.setComp(a,K.current,X.current,q.current,Q.current),function(){t.destroyBeans(e),r.forEach((function(e){return e()}))}}}));var J=s.useMemo((function(){return d.classesList("ag-root","ag-unselectable",I,Z)}),[I,Z]),$=s.useMemo((function(){return d.classesList("ag-body-viewport",h,Z,k,j)}),[h,Z,k,j]),ee=s.useMemo((function(){return d.classesList("ag-floating-top",j)}),[j]),te=s.useMemo((function(){return d.classesList("ag-floating-bottom",j)}),[j]),ne=s.useMemo((function(){return{height:b,minHeight:b,display:P,overflowY:B}}),[b,P,B]),oe=s.useMemo((function(){return{height:R,minHeight:R,display:x,overflowY:B}}),[R,x,B]),re=function(e){return s.default.createElement(c.default,{name:e,key:e+"-container"})},ie=function(e){var t=e.section,n=e.children,o=e.className,r=e.style;return s.default.createElement("div",{ref:t,className:o,role:"presentation",style:r},n.map(re))};return s.default.createElement("div",{ref:K,className:J,role:"grid","aria-colcount":m,"aria-rowcount":C},s.default.createElement(l.default,null),ie({section:q,className:ee,style:ne,children:[i.RowContainerName.TOP_LEFT,i.RowContainerName.TOP_CENTER,i.RowContainerName.TOP_RIGHT,i.RowContainerName.TOP_FULL_WIDTH]}),ie({section:X,className:$,children:[i.RowContainerName.LEFT,i.RowContainerName.CENTER,i.RowContainerName.RIGHT,i.RowContainerName.FULL_WIDTH]}),ie({section:Q,className:te,style:oe,children:[i.RowContainerName.BOTTOM_LEFT,i.RowContainerName.BOTTOM_CENTER,i.RowContainerName.BOTTOM_RIGHT,i.RowContainerName.BOTTOM_FULL_WIDTH]}))}))},3970:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(1167),s=o(n(2791)),a=n(2724),l=r(n(6556)),u=r(n(1008)),c=r(n(2051)),p=n(1622),d=n(6817);t.default=s.memo((function(e){var t=e.context,n=s.useState(""),o=n[0],r=n[1],h=s.useState(""),f=h[0],g=h[1],m=s.useState(""),v=m[0],y=m[1],C=s.useState(null),w=C[0],_=C[1],b=s.useState(null),E=b[0],S=b[1],R=s.useState(!1),O=R[0],T=R[1],P=s.useState(),A=P[0],D=P[1],x=s.useRef(null),N=s.useRef(null),M=s.useRef(),I=s.useRef(null),L=s.useRef((function(){})),F=s.useCallback((function(){}),[]),k=s.useMemo((function(){return t.getBean("beans")}),[]);u.default(" AG Grid ",N),p.useEffectOnce((function(){var e=x.current=t.createBean(new i.GridCtrl);return function(){t.destroyBean(e),x.current=null}})),p.useEffectOnce((function(){var e=x.current;L.current=e.focusInnerElement.bind(e);var t={destroyGridUi:function(){},setRtlClass:r,addOrRemoveKeyboardFocusClass:function(e){return g(e?i.FocusService.AG_KEYBOARD_FOCUS:"")},forceFocusOutOfContainer:function(){M.current.forceFocusOutOfContainer()},updateLayoutClasses:y,getFocusableContainers:function(){var e=[],t=N.current.querySelector(".ag-root"),n=N.current.querySelector(".ag-side-bar");return t&&e.push(t),n&&e.push(n),e},setCursor:_,setUserSelect:S};e.setComp(t,N.current,N.current),T(!0)})),s.useEffect((function(){if(A){var e=x.current,n=[],o=k.agStackComponentsRegistry,r=o.getComponentClass("AG-GRID-HEADER-DROP-ZONES"),i=o.getComponentClass("AG-SIDE-BAR"),s=o.getComponentClass("AG-STATUS-BAR"),a=o.getComponentClass("AG-WATERMARK"),l=o.getComponentClass("AG-PAGINATION"),u=[],c=N.current,p=I.current;if(e.showDropZones()&&r){var d=t.createBean(new r),h=d.getGui();c.insertAdjacentElement("afterbegin",h),u.push(h),n.push(d)}if(e.showSideBar()&&i){var f=t.createBean(new i),g=(h=f.getGui(),p.querySelector(".ag-tab-guard-bottom"));g&&(g.insertAdjacentElement("beforebegin",h),u.push(h)),n.push(f)}if(e.showStatusBar()&&s){var m=t.createBean(new s);h=m.getGui();c.insertAdjacentElement("beforeend",h),u.push(h),n.push(m)}if(l){var v=t.createBean(new l);h=v.getGui();c.insertAdjacentElement("beforeend",h),u.push(h),n.push(v)}if(e.showWatermark()&&a){var y=t.createBean(new a);h=y.getGui();c.insertAdjacentElement("beforeend",h),u.push(h),n.push(y)}return function(){t.destroyBeans(n),u.forEach((function(e){e.parentElement&&e.parentElement.removeChild(e)}))}}}),[A]);var G=s.useMemo((function(){return d.classesList("ag-root-wrapper",o,f,v)}),[o,f,v]),H=s.useMemo((function(){return d.classesList("ag-root-wrapper-body","ag-focus-managed",v)}),[v]),B=s.useMemo((function(){return{userSelect:null!=E?E:"",WebkitUserSelect:null!=E?E:"",cursor:null!=w?w:""}}),[E,w]),V=I.current,W=s.useCallback((function(e){M.current=e,D(!0)}),[]);return s.default.createElement("div",{ref:N,className:G,style:B},s.default.createElement("div",{className:H,ref:I},O&&V&&s.default.createElement(a.BeansContext.Provider,{value:k},s.default.createElement(c.default,{ref:W,eFocusableElement:V,onTabKeyDown:F,gridCtrl:x.current},s.default.createElement(l.default,null)))))}))},332:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(2791)),s=n(2724),a=n(1167),l=n(6817),u=r(n(1212)),c=n(1622);t.default=i.memo((function(){var e=i.useState(new l.CssClasses),t=e[0],n=e[1],o=i.useState(),r=o[0],p=o[1],d=i.useContext(s.BeansContext).context,h=i.useRef(null);c.useEffectOnce((function(){var e={addOrRemoveCssClass:function(e,t){return n((function(n){return n.setClass(e,t)}))},setHeightAndMinHeight:function(e){return p(e)}},t=d.createBean(new a.GridHeaderCtrl);return t.setComp(e,h.current,h.current),function(){d.destroyBean(t)}}));var f=i.useMemo((function(){return"ag-header "+t.toString()}),[t]),g=i.useMemo((function(){return{height:r,minHeight:r}}),[r]);return i.default.createElement("div",{ref:h,className:f,style:g,role:"presentation"},i.default.createElement(u.default,{pinned:a.Constants.PINNED_LEFT}),i.default.createElement(u.default,{pinned:null}),i.default.createElement(u.default,{pinned:a.Constants.PINNED_RIGHT}))}))},273:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2791)),s=n(2724),a=n(1167),l=n(6817),u=n(8285),c=n(1622);t.default=i.memo((function(e){var t=i.useContext(s.BeansContext).context,n=i.useState(),r=n[0],p=n[1],d=i.useState(),h=d[0],f=d[1],g=i.useState(),m=g[0],v=g[1],y=i.useState(),C=y[0],w=y[1],_=i.useState(),b=_[0],E=_[1],S=i.useState(),R=S[0],O=S[1],T=i.useRef(null),P=i.useRef(null),A=i.useRef(),D=e.ctrl,x=i.useMemo((function(){return new a.CssClassManager((function(){return T.current}))}),[]);c.useEffectOnce((function(){var e={setWidth:function(e){return p(e)},addOrRemoveCssClass:function(e,t){return x.addOrRemoveCssClass(e,t)},setColId:function(e){return v(e)},setTitle:function(e){return f(e)},setAriaDescription:function(e){return E(e)},setAriaSort:function(e){return w(e)},setUserCompDetails:function(e){return O(e)},getUserCompInstance:function(){return A.current||void 0}};D.setComp(e,T.current,P.current);var t=D.getSelectAllGui();P.current.insertAdjacentElement("afterend",t)})),i.useEffect((function(){return u.showJsComp(R,t,T.current,A)}),[R]),i.useEffect((function(){var e=void 0;T.current.childNodes.forEach((function(t){null!=t&&t!==P.current&&(e=t)})),D.setDragSource(e)}),[R]);var N=i.useMemo((function(){return{width:r}}),[r]),M=i.useMemo((function(){var e;return!!((null===(e=R)||void 0===e?void 0:e.componentFromFramework)&&l.isComponentStateless(R.componentClass))}),[R]),I=R&&R.componentFromFramework,L=R&&R.componentClass;return i.default.createElement("div",{ref:T,className:"ag-header-cell",style:N,title:h,"col-id":m,"aria-sort":C,role:"columnheader",tabIndex:-1,"aria-description":b},i.default.createElement("div",{ref:P,className:"ag-header-cell-resize",role:"presentation"}),I&&M&&i.default.createElement(L,o({},R.params)),I&&!M&&i.default.createElement(L,o({},R.params,{ref:A})))}))},1478:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2791)),s=n(2724),a=n(1167),l=n(6817),u=n(8285),c=n(1622);t.default=i.memo((function(e){var t=i.useContext(s.BeansContext).context,n=i.useState(new l.CssClasses),r=n[0],p=n[1],d=i.useState(new l.CssClasses),h=d[0],f=d[1],g=i.useState(new l.CssClasses),m=g[0],v=g[1],y=i.useState(),C=y[0],w=y[1],_=i.useState(),b=_[0],E=_[1],S=i.useRef(null),R=i.useRef(null),O=i.useRef(null),T=i.useRef(null),P=i.useRef(!1),A=i.useRef(),D=i.useRef();c.useEffectOnce((function(){D.current=new a.AgPromise((function(e){A.current=e}))}));var x=function(e){P.current||null!=e&&(A.current&&A.current(e),P.current=!0)},N=e.ctrl;c.useEffectOnce((function(){var e={addOrRemoveCssClass:function(e,t){return p((function(n){return n.setClass(e,t)}))},addOrRemoveBodyCssClass:function(e,t){return f((function(n){return n.setClass(e,t)}))},addOrRemoveButtonWrapperCssClass:function(e,t){return v((function(n){return n.setClass(e,t)}))},setWidth:function(e){return w(e)},setCompDetails:function(e){return E(e)},getFloatingFilterComp:function(){return D.current?D.current:null},setMenuIcon:function(e){return T.current.appendChild(e)}};N.setComp(e,S.current,T.current,R.current)})),i.useEffect((function(){return u.showJsComp(b,t,R.current,x)}),[b]);var M=i.useMemo((function(){return{width:C}}),[C]),I=i.useMemo((function(){return"ag-header-cell ag-floating-filter "+r.toString()}),[r]),L=i.useMemo((function(){return h.toString()}),[h]),F=i.useMemo((function(){return"ag-floating-filter-button "+m.toString()}),[h]),k=i.useMemo((function(){return!!(b&&b.componentFromFramework&&l.isComponentStateless(b.componentClass))}),[b]),G=b&&b.componentFromFramework,H=b&&b.componentClass;return i.default.createElement("div",{ref:S,className:I,style:M,role:"gridcell",tabIndex:-1},i.default.createElement("div",{ref:R,className:L,role:"presentation"},G&&k&&i.default.createElement(H,o({},b.params)),G&&!k&&i.default.createElement(H,o({},b.params,{ref:x}))),i.default.createElement("div",{ref:O,className:F,role:"presentation"},i.default.createElement("button",{ref:T,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))}))},5267:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2791)),s=n(2724),a=n(8285),l=n(1622),u=n(6817);t.default=i.memo((function(e){var t=i.useContext(s.BeansContext).context,n=i.useState(new u.CssClasses),r=n[0],c=n[1],p=i.useState(new u.CssClasses),d=p[0],h=p[1],f=i.useState(),g=f[0],m=f[1],v=i.useState(),y=v[0],C=v[1],w=i.useState(),_=w[0],b=w[1],E=i.useState(),S=E[0],R=E[1],O=i.useState(),T=O[0],P=O[1],A=i.useRef(null),D=i.useRef(null),x=e.ctrl;l.useEffectOnce((function(){var e={setWidth:function(e){return m(e)},addOrRemoveCssClass:function(e,t){return c((function(n){return n.setClass(e,t)}))},setColId:function(e){return b(e)},setTitle:function(e){return C(e)},setUserCompDetails:function(e){return P(e)},addOrRemoveResizableCssClass:function(e,t){return h((function(n){return n.setClass(e,t)}))},setAriaExpanded:function(e){return R(e)}};x.setComp(e,A.current,D.current)})),i.useEffect((function(){return a.showJsComp(T,t,A.current)}),[T]),i.useEffect((function(){var e=void 0;A.current.childNodes.forEach((function(t){null!=t&&t!==D.current&&(e=t)})),e&&x.setDragSource(e)}),[T]);var N=i.useMemo((function(){return{width:g}}),[g]),M=i.useMemo((function(){return"ag-header-group-cell "+r.toString()}),[r]),I=i.useMemo((function(){return"ag-header-cell-resize "+d.toString()}),[d]),L=T&&T.componentFromFramework,F=T&&T.componentClass;return i.default.createElement("div",{ref:A,className:M,style:N,title:y,"col-id":_,role:"columnheader",tabIndex:-1,"aria-expanded":S},L&&i.default.createElement(F,o({},T.params)),i.default.createElement("div",{ref:D,className:I}))}))},9979:function(e,t,n){"use strict";var o=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},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1167),a=r(n(2791)),l=n(2724),u=i(n(273)),c=i(n(5267)),p=i(n(1478)),d=n(1622);t.default=a.memo((function(e){var t=a.useContext(l.BeansContext).gridOptionsWrapper,n=a.useState(),r=n[0],i=n[1],h=a.useState(),f=h[0],g=h[1],m=a.useState(),v=m[0],y=m[1],C=a.useState(),w=C[0],_=C[1],b=a.useState(),E=b[0],S=b[1],R=a.useState([]),O=R[0],T=R[1],P=a.useRef(null),A=e.ctrl,D=A.getType()===s.HeaderRowType.COLUMN,x=A.getType()===s.HeaderRowType.COLUMN_GROUP,N=A.getType()===s.HeaderRowType.FLOATING_FILTER,M=a.useCallback((function(e,n){if(t.isEnsureDomOrder())return n;var r=s._.mapById(e,(function(e){return e.getInstanceId()})),i=s._.mapById(n,(function(e){return e.getInstanceId()})),a=e.filter((function(e){return i.has(e.getInstanceId())})),l=n.filter((function(e){return!r.has(e.getInstanceId())}));return o(a,l)}),[]);d.useEffectOnce((function(){var e={setTransform:function(e){return i(e)},setHeight:function(e){return g(e)},setTop:function(e){return y(e)},setHeaderCtrls:function(e){return T((function(t){return M(t,e)}))},setWidth:function(e){return _(e)},setAriaRowIndex:function(e){return S(e)}};A.setComp(e)}));var I=a.useMemo((function(){return{transform:r,height:f,top:v,width:w}}),[r,f,v,w]),L=a.useMemo((function(){var e=["ag-header-row"];return D&&e.push("ag-header-row-column"),x&&e.push("ag-header-row-column-group"),N&&e.push("ag-header-row-column-filter"),e.join(" ")}),[]),F=a.useCallback((function(e){switch(A.getType()){case s.HeaderRowType.COLUMN_GROUP:return a.default.createElement(c.default,{ctrl:e,key:e.getInstanceId()});case s.HeaderRowType.FLOATING_FILTER:return a.default.createElement(p.default,{ctrl:e,key:e.getInstanceId()});default:return a.default.createElement(u.default,{ctrl:e,key:e.getInstanceId()})}}),[]);return a.default.createElement("div",{ref:P,className:L,role:"row",style:I,"aria-rowindex":E},O.map(F))}))},1212:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(2791)),s=n(2724),a=n(1167),l=n(6817),u=r(n(9979)),c=n(1622);t.default=i.memo((function(e){var t=i.useState(new l.CssClasses),n=t[0],o=t[1],r=i.useState(),p=r[0],d=r[1],h=i.useState(),f=h[0],g=h[1],m=i.useState(),v=m[0],y=m[1],C=i.useState([]),w=C[0],_=C[1],b=i.useContext(s.BeansContext).context,E=i.useRef(null),S=e.pinned===a.Constants.PINNED_LEFT,R=e.pinned===a.Constants.PINNED_RIGHT,O=!S&&!R;c.useEffectOnce((function(){var t={addOrRemoveCssClass:function(e,t){return o((function(n){return n.setClass(e,t)}))},setCtrls:function(e){return _(e)},setCenterWidth:function(e){return d(e)},setContainerTransform:function(e){return g(e)},setPinnedContainerWidth:function(e){return y(e)}},n=b.createBean(new a.HeaderRowContainerCtrl(e.pinned));return n.setComp(t,E.current),function(){b.destroyBean(n)}}));var T=i.useMemo((function(){return n.toString()}),[n]),P=function(){return w.map((function(e){return i.default.createElement(u.default,{ctrl:e,key:e.getInstanceId()})}))},A=i.useMemo((function(){return{width:p,transform:f}}),[p,f]),D=i.useMemo((function(){return{width:v,minWidth:v,maxWidth:v}}),[v]);return i.default.createElement(i.default.Fragment,null,S&&i.default.createElement("div",{ref:E,className:"ag-pinned-left-header "+T,role:"presentation",style:D},P()),R&&i.default.createElement("div",{ref:E,className:"ag-pinned-right-header "+T,role:"presentation",style:D},P()),O&&i.default.createElement("div",{ref:E,className:"ag-header-viewport "+T,role:"presentation"},i.default.createElement("div",{className:"ag-header-container",role:"rowgroup",style:A},P())))}))},8285:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showJsComp=function(e,t,o,r){if(!(!e||e.componentFromFramework)){var i=e.newAgStackInstance();if(i){var s,a,l=!1;return i.then((function(e){l?t.destroyBean(e):(a=(s=e).getGui(),o.appendChild(a),n(r,s))})),function(){l=!0,s&&(a&&a.parentElement&&a.parentElement.removeChild(a),t.destroyBean(s),r&&n(r,void 0))}}}};var n=function(e,t){e&&(e instanceof Function?e(t):e.current=t)};t.createSyncJsComp=function(e){var t=e.newAgStackInstance();if(t)return t.resolveNow(null,(function(e){return e}))}},1008:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1622);t.default=function(e,t){o.useEffectOnce((function(){var n=t.current,o=n.parentElement;if(o){var r=document.createComment(e);return o.insertBefore(r,n),function(){o.removeChild(r)}}}))}},2939:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)},r=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},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(2791)),l=n(1167),u=n(8285),c=n(6817),p=n(2724),d=s(n(4148)),h=n(1622);t.default=a.memo((function(e){var t=a.useContext(p.BeansContext).context,n=e.rowCtrl,i=e.containerType,s=a.useState(),f=s[0],g=s[1],m=a.useState(),v=m[0],y=m[1],C=a.useState(),w=C[0],_=C[1],b=a.useState(),E=b[0],S=b[1],R=a.useState(),O=R[0],T=R[1],P=a.useState(),A=P[0],D=P[1],x=a.useState({list:[],instanceIdMap:new Map}),N=x[0],M=x[1],I=a.useState(),L=I[0],F=I[1],k=a.useState(!1),G=k[0],H=k[1],B=a.useState(n.getInitialRowTop()),V=B[0],W=B[1],j=a.useState(n.getInitialTransform()),U=j[0],z=j[1],Z=a.useRef(null),Y=a.useRef(),K=a.useRef(!1),q=a.useState(0),X=q[0],Q=q[1];a.useEffect((function(){var e;if(!K.current&&L&&!(X>10)){var t=null===(e=Z.current)||void 0===e?void 0:e.firstChild;t?(n.setupDetailRowAutoHeight(t),K.current=!0):Q((function(e){return e+1}))}}),[L,X]);var J=a.useMemo((function(){return new l.CssClassManager((function(){return Z.current}))}),[]);h.useEffectOnce((function(){if(n.isAlive()){var e={setTop:function(e){return W(e)},setTransform:function(e){return z(e)},addOrRemoveCssClass:function(e,t){return J.addOrRemoveCssClass(e,t)},setDomOrder:function(e){return H(e)},setRowIndex:function(e){return g(e)},setRowId:function(e){return y(e)},setRowBusinessKey:function(e){return S(e)},setTabIndex:function(e){return T(e)},setUserStyles:function(e){return D(e)},setRole:function(e){return _(e)},setCellCtrls:function(e){return M((function(t){return function(e,t,n){if(n){var o={list:t,instanceIdMap:new Map};return t.forEach((function(e){return o.instanceIdMap.set(e.getInstanceId(),e)})),o}var i=[],s=[],a=new Map,l=new Map;return t.forEach((function(e){return l.set(e.getInstanceId(),e)})),e.list.forEach((function(e){var t=e.getInstanceId();l.has(t)&&(i.push(e),a.set(t,e))})),t.forEach((function(t){var n=t.getInstanceId();e.instanceIdMap.has(n)||(s.push(t),a.set(n,t))})),{list:r(i,s),instanceIdMap:a}}(t,e,G)}))},showFullWidth:function(e){return F(e)},getFullWidthCellRenderer:function(){return Y.current}};n.setComp(e,Z.current,i)}})),a.useEffect((function(){return u.showJsComp(L,t,Z.current,Y)}),[L]);var $=a.useMemo((function(){var e={top:V,transform:U};return Object.assign(e,A),e}),[V,U,A]),ee=L&&L.componentFromFramework,te=null!=N,ne=a.useMemo((function(){var e;return!!((null===(e=L)||void 0===e?void 0:e.componentFromFramework)&&c.isComponentStateless(L.componentClass))}),[L]);return a.default.createElement("div",{ref:Z,role:w,style:$,"row-index":f,"row-id":v,"row-business-key":E,tabIndex:O},te&&N.list.map((function(e){return a.default.createElement(d.default,{cellCtrl:e,editingRow:n.isEditing(),printLayout:n.isPrintLayout(),key:e.getInstanceId()})})),ee&&function(){var e=L.componentClass;return a.default.createElement(a.default.Fragment,null,ne&&a.default.createElement(e,o({},L.params)),!ne&&a.default.createElement(e,o({},L.params,{ref:Y})))}())}))},961:function(e,t,n){"use strict";var o=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},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1167),a=r(n(2791)),l=n(6817),u=i(n(1008)),c=i(n(2939)),p=n(2724),d=n(1622);t.default=a.memo((function(e){var t=a.useContext(p.BeansContext).context,n=a.useState(""),r=n[0],i=n[1],h=a.useState([]),f=h[0],g=h[1],m=a.useState([]),v=m[0],y=m[1],C=a.useState(!1),w=C[0],_=C[1],b=a.useState(""),E=b[0],S=b[1],R=e.name,O=a.useMemo((function(){return s.getRowContainerTypeForName(R)}),[R]),T=a.useRef(null),P=a.useRef(null),A=a.useRef(null),D=a.useMemo((function(){return s.RowContainerCtrl.getRowContainerCssClasses(R)}),[R]),x=a.useMemo((function(){return l.classesList(D.wrapper)}),[]),N=a.useMemo((function(){return l.classesList(D.viewport)}),[]),M=a.useMemo((function(){return l.classesList(D.container)}),[]),I=R===s.RowContainerName.CENTER,L=R===s.RowContainerName.TOP_CENTER||R===s.RowContainerName.BOTTOM_CENTER,F=!I&&!L,k=I?T:L?P:A;u.default(" AG Row Container "+R+" ",k),a.useEffect((function(){g((function(e){if(w)return v;var t=e.filter((function(e){return v.indexOf(e)>=0})),n=v.filter((function(e){return t.indexOf(e)<0}));return o(t,n)}))}),[w,v]),d.useEffectOnce((function(){var e=[],n={setViewportHeight:i,setRowCtrls:function(e){return y(e)},setDomOrder:function(e){return _(e)},setContainerWidth:function(e){return S(e)}},o=t.createBean(new s.RowContainerCtrl(R));return e.push(o),o.setComp(n,A.current,P.current,T.current),function(){t.destroyBeans(e)}}));var G=a.useMemo((function(){return{height:r}}),[r]),H=a.useMemo((function(){return{width:E}}),[E]),B=function(){return a.default.createElement("div",{className:M,ref:A,role:v.length?"rowgroup":"presentation",style:H},f.map((function(e){return a.default.createElement(c.default,{rowCtrl:e,containerType:O,key:e.getInstanceId()})})))};return a.default.createElement(a.default.Fragment,null,I&&a.default.createElement("div",{className:x,ref:T,role:"presentation"},a.default.createElement("div",{className:N,ref:P,role:"presentation",style:G},B())),L&&a.default.createElement("div",{className:N,ref:P,role:"presentation",style:G},B()),F&&B())}))},2051:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(2791)),i=n(1167),s=n(2724),a=n(1622),l=r.forwardRef((function(e,t){var n=e.children,o=e.eFocusableElement,l=e.onTabKeyDown,u=e.gridCtrl,c=r.useContext(s.BeansContext).context,p=r.useRef(null),d=r.useRef(null),h=r.useRef(),f=r.useState(),g=f[0],m=f[1];r.useImperativeHandle(t,(function(){return{forceFocusOutOfContainer:function(){h.current.forceFocusOutOfContainer()}}})),a.useEffectOnce((function(){var e=p.current,t=d.current,n={setTabIndex:function(e){return m(null==e?void 0:parseInt(e,10))}},r=h.current=c.createBean(new i.TabGuardCtrl({comp:n,eTopGuard:e,eBottomGuard:t,eFocusableElement:o,onTabKeyDown:l,focusInnerElement:function(e){return u.focusInnerElement(e)}}));return function(){c.destroyBean(r)}}));var v=function(e){return r.default.createElement("div",{className:"ag-tab-guard ag-tab-guard-"+e,role:"presentation",tabIndex:g,ref:"top"===e?p:d})};return r.default.createElement(r.default.Fragment,null,v("top"),n,v("bottom"))}));t.default=r.memo(l)},1622:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(2791);t.useEffectOnce=function(e){var t=o.useRef(),n=o.useRef(!1),r=o.useRef(!1),i=o.useState(0),s=(i[0],i[1]);n.current&&(r.current=!0),o.useEffect((function(){return n.current||(t.current=e(),n.current=!0),s((function(e){return e+1})),function(){r.current&&t.current&&t.current()}}),[])}},6817:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=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},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.classesList=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter((function(e){return null!=e&&""!==e}));return n.join(" ")};var o=function(){function e(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.classesMap={},t.forEach((function(t){e.classesMap[t]=!0}))}return e.prototype.setClass=function(t,o){if(!!this.classesMap[t]==o)return this;var r=new e;return r.classesMap=n({},this.classesMap),r.classesMap[t]=o,r},e.prototype.toString=function(){var e=this;return Object.keys(this.classesMap).filter((function(t){return e.classesMap[t]})).join(" ")},e}();t.CssClasses=o,t.isComponentStateless=function(e){return"function"===typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"===typeof e&&e.$$typeof===("function"===typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115)}},6745:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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=this&&this.__rest||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},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(2791)),l=s(n(2007)),u=i(n(1167)),c=function(e){function t(t){var n=e.call(this,t)||this;return n.props=t,n}return o(t,e),t.prototype.render=function(){return null},t.mapChildColumnDefs=function(e){return a.default.Children.map(e,(function(e){return e?t.toColDef(e.props):null}))},t.toColDef=function(e){var n=e.children,o=r(e,["children"]);return t.hasChildColumns(n)&&(o.children=t.mapChildColumnDefs(n)),o},t.hasChildColumns=function(e){return a.default.Children.count(e)>0},t}(a.Component);function p(e,t){e.forEach((function(e){c[e]=t}))}t.AgGridColumn=c,p(u.ColDefUtil.BOOLEAN_PROPERTIES,l.default.bool),p(u.ColDefUtil.STRING_PROPERTIES,l.default.string),p(u.ColDefUtil.OBJECT_PROPERTIES,l.default.object),p(u.ColDefUtil.ARRAY_PROPERTIES,l.default.array),p(u.ColDefUtil.NUMBER_PROPERTIES,l.default.number),p(u.ColDefUtil.FUNCTION_PROPERTIES,l.default.func)},4584:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.IdentityCheck="IdentityCheck",e.DeepValueCheck="DeepValueCheck",e.NoCheck="NoCheck"}(n=t.ChangeDetectionStrategyType||(t.ChangeDetectionStrategyType={}));var o=function(){function e(e){this.strategy=e}return e.prototype.areEqual=function(e,t){return this.strategy(e,t)},e}(),r=function(){function e(){}return e.prototype.areEqual=function(t,n){return e.areEquivalent(e.copy(t),e.copy(n))},e.unwrapStringOrNumber=function(e){return e instanceof Number||e instanceof String?e.valueOf():e},e.copy=function(e){if(!e)return e;if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)t.push(this.copy(e[n]));return t}return"object"!==typeof e?e:[{},e].reduce((function(e,t){return Object.keys(t).forEach((function(n){e[n]=t[n]})),e}),{})},e.isNaN=function(e){return Number.isNaN?Number.isNaN(e):"number"===typeof e&&isNaN(e)},e.areEquivalent=function(t,n){if(t=e.unwrapStringOrNumber(t),n=e.unwrapStringOrNumber(n),t===n)return!0;if(null===t||null===n||typeof t!==typeof n)return!1;if(e.isNaN(t)&&e.isNaN(n))return!0;if(t instanceof Date)return n instanceof Date&&t.valueOf()===n.valueOf();if("function"===typeof t)return!1;if("object"!==typeof t||t.$$typeof&&"Symbol(react.element)"===t.$$typeof.toString())return t==n;if(Object.isFrozen(t)||Object.isFrozen(n))return t===n;var 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}(),i=function(){function e(){var e;this.strategyMap=((e={})[n.DeepValueCheck]=new r,e[n.IdentityCheck]=new o((function(e,t){return e===t})),e[n.NoCheck]=new o((function(e,t){return!1})),e)}return e.prototype.getStrategy=function(e){return this.strategyMap[e]},e}();t.ChangeDetectionService=i},3507:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=0;t.default=function(){return"agPortalKey_"+ ++n}},8665:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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=this&&this.__assign||function(){return r=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},r.apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(2791),a=n(4164),l=n(1167),u=n(294),c=n(8340),p=i(n(3507)),d=function(e){function t(t,n,o){var r=e.call(this,t,n,o)||this;return r.oldPortal=null,r.key=p.default(),r.portalKey=p.default(),r}return o(t,e),t.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new l.AgPromise((function(e){return t.createReactComponent(e)}))},t.prototype.createOrUpdatePortal=function(e){var t=this;this.isStatelessComponent()||(e.ref=function(e){t.componentInstance=e,t.addParentContainerStyleAndClasses()}),this.reactElement=s.createElement(this.reactComponent,r(r({},e),{key:this.key})),this.portal=a.createPortal(this.reactElement,this.eParentElement,this.portalKey)},t.prototype.createReactComponent=function(e){this.portalManager.mountReactPortal(this.portal,this,(function(t){e(t)}))},t.prototype.isNullValue=function(){return this.valueRenderedIsNull(this.params)},t.prototype.rendered=function(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},t.prototype.valueRenderedIsNull=function(e){if(!this.componentType.cellRenderer)return!1;var t=console.error;try{return console.error=function(){},""===c.renderToStaticMarkup(s.createElement(this.reactComponent,e))}catch(n){}finally{console.error=t}return!1},t.prototype.refreshComponent=function(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)},t.prototype.fallbackMethod=function(e,t){var n=this[e+"Component"];if(n)return n.bind(this)(t)},t.prototype.fallbackMethodAvailable=function(e){return!!this[e+"Component"]},t}(u.ReactComponent);t.NewReactComponent=d},3365:function(e,t){"use strict";var n=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 o=function(){function e(t,n,o){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=n||"div",this.parent=t,this.maxComponentCreationTimeMs=o||e.MAX_COMPONENT_CREATION_TIME_IN_MS}return e.prototype.getPortals=function(){return this.portals},e.prototype.destroy=function(){this.destroyed=!0},e.prototype.destroyPortal=function(e){this.portals=this.portals.filter((function(t){return t!==e})),this.batchUpdate()},e.prototype.getComponentWrappingElement=function(){return this.wrappingElement},e.prototype.mountReactPortal=function(e,t,o){this.portals=n(this.portals,[e]),this.waitForInstance(t,o),this.batchUpdate()},e.prototype.updateReactPortal=function(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()},e.prototype.batchUpdate=function(){var e=this;this.hasPendingPortalUpdate||(setTimeout((function(){e.destroyed||e.parent.forceUpdate((function(){e.hasPendingPortalUpdate=!1}))})),this.hasPendingPortalUpdate=!0)},e.prototype.waitForInstance=function(e,t,n){var o=this;if(void 0===n&&(n=Date.now()),this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void t(e):void console.error("AG Grid: React Component '"+e.getReactComponentName()+"' not created within "+this.maxComponentCreationTimeMs+"ms");window.setTimeout((function(){o.waitForInstance(e,t,n)}))}},e.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3,e}();t.PortalManager=o},294:function(e,t){"use strict";var n=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t,n,o){var r=e.call(this)||this;return r.portal=null,r.reactComponent=t,r.portalManager=n,r.componentType=o,r.statelessComponent=r.isStateless(r.reactComponent),r}return n(t,e),t.prototype.getGui=function(){return this.eParentElement},t.prototype.destroy=function(){return this.componentInstance&&"function"==typeof this.componentInstance.destroy&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)},t.prototype.createParentElement=function(e){var t=this.portalManager.getComponentWrappingElement(),n=document.createElement(t||"div");return n.classList.add("ag-react-container"),e.reactContainer=n,n},t.prototype.addParentContainerStyleAndClasses=function(){var e=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach((function(t){return e.eParentElement.classList.add(t)})))},t.prototype.statelessComponentRendered=function(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0},t.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},t.prototype.isStatelessComponent=function(){return this.statelessComponent},t.prototype.getReactComponentName=function(){return this.reactComponent.name},t.prototype.getMemoType=function(){return this.hasSymbol()?Symbol.for("react.memo"):60115},t.prototype.hasSymbol=function(){return"function"===typeof Symbol&&Symbol.for},t.prototype.isStateless=function(e){return"function"===typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"===typeof e&&e.$$typeof===this.getMemoType()},t.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return!!t&&null!==t[e]||this.fallbackMethodAvailable(e)},t.prototype.callMethod=function(e,t){var n=this,o=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});if(o){var r=o[e];return r?r.apply(o,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0}setTimeout((function(){return n.callMethod(e,t)}))},t.prototype.addMethod=function(e,t){this[e]=t},t}((function(){}));t.ReactComponent=o},9575:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(1167),s=r(n(5728)),a=r(n(7627)),l=function(e){function t(t){var n=e.call(this)||this;return n.frameworkComponents={agGroupCellRenderer:s.default,agGroupRowRenderer:s.default,agDetailCellRenderer:a.default},n.reactUi=t,n}return o(t,e),t.prototype.frameworkComponent=function(e){if(this.reactUi)return this.frameworkComponents[e]},t.prototype.isFrameworkComponent=function(e){if(!e)return!1;var t=e.prototype;return!(t&&"getGui"in t)},t}(i.VanillaFrameworkOverrides);t.ReactFrameworkOverrides=l},2953:function(e,t,n){t.AgGridReact=n(7945).AgGridReact,n(6745).AgGridColumn,n(4584).ChangeDetectionStrategyType,n(2553).AgGridReactUi},4569:function(e,t,n){e.exports=n(8036)},3381:function(e,t,n){"use strict";var o=n(3589),r=n(7297),i=n(9301),s=n(9774),a=n(1804),l=n(9145),u=n(5411),c=n(6789),p=n(4531),d=n(6569),h=n(6261);e.exports=function(e){return new Promise((function(t,n){var f,g=e.data,m=e.headers,v=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}o.isFormData(g)&&o.isStandardBrowserEnv()&&delete m["Content-Type"];var C=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(w+":"+_)}var b=a(e.baseURL,e.url);function E(){if(C){var o="getAllResponseHeaders"in C?l(C.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?C.response:C.responseText,status:C.status,statusText:C.statusText,headers:o,config:e,request:C};r((function(e){t(e),y()}),(function(e){n(e),y()}),i),C=null}}if(C.open(e.method.toUpperCase(),s(b,e.params,e.paramsSerializer),!0),C.timeout=e.timeout,"onloadend"in C?C.onloadend=E:C.onreadystatechange=function(){C&&4===C.readyState&&(0!==C.status||C.responseURL&&0===C.responseURL.indexOf("file:"))&&setTimeout(E)},C.onabort=function(){C&&(n(new p("Request aborted",p.ECONNABORTED,e,C)),C=null)},C.onerror=function(){n(new p("Network Error",p.ERR_NETWORK,e,C,C)),C=null},C.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",o=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new p(t,o.clarifyTimeoutError?p.ETIMEDOUT:p.ECONNABORTED,e,C)),C=null},o.isStandardBrowserEnv()){var S=(e.withCredentials||u(b))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;S&&(m[e.xsrfHeaderName]=S)}"setRequestHeader"in C&&o.forEach(m,(function(e,t){"undefined"===typeof g&&"content-type"===t.toLowerCase()?delete m[t]:C.setRequestHeader(t,e)})),o.isUndefined(e.withCredentials)||(C.withCredentials=!!e.withCredentials),v&&"json"!==v&&(C.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&C.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&C.upload&&C.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){C&&(n(!e||e&&e.type?new d:e),C.abort(),C=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),g||(g=null);var R=h(b);R&&-1===["http","https","file"].indexOf(R)?n(new p("Unsupported protocol "+R+":",p.ERR_BAD_REQUEST,e)):C.send(g)}))}},8036:function(e,t,n){"use strict";var o=n(3589),r=n(4049),i=n(3773),s=n(777);var a=function e(t){var n=new i(t),a=r(i.prototype.request,n);return o.extend(a,i.prototype,n),o.extend(a,n),a.create=function(n){return e(s(t,n))},a}(n(1709));a.Axios=i,a.CanceledError=n(6569),a.CancelToken=n(6857),a.isCancel=n(5517),a.VERSION=n(7600).version,a.toFormData=n(1397),a.AxiosError=n(4531),a.Cancel=a.CanceledError,a.all=function(e){return Promise.all(e)},a.spread=n(8089),a.isAxiosError=n(9580),e.exports=a,e.exports.default=a},6857:function(e,t,n){"use strict";var o=n(6569);function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,o=n._listeners.length;for(t=0;t<o;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,o=new Promise((function(e){n.subscribe(e),t=e})).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e((function(e){n.reason||(n.reason=new o(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},r.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},r.source=function(){var e;return{token:new r((function(t){e=t})),cancel:e}},e.exports=r},6569:function(e,t,n){"use strict";var o=n(4531);function r(e){o.call(this,null==e?"canceled":e,o.ERR_CANCELED),this.name="CanceledError"}n(3589).inherits(r,o,{__CANCEL__:!0}),e.exports=r},5517:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},3773:function(e,t,n){"use strict";var o=n(3589),r=n(9774),i=n(7470),s=n(2733),a=n(777),l=n(1804),u=n(7835),c=u.validators;function p(e){this.defaults=e,this.interceptors={request:new i,response:new i}}p.prototype.request=function(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var o=[],r=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));var i,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!r){var p=[s,void 0];for(Array.prototype.unshift.apply(p,o),p=p.concat(l),i=Promise.resolve(t);p.length;)i=i.then(p.shift(),p.shift());return i}for(var d=t;o.length;){var h=o.shift(),f=o.shift();try{d=h(d)}catch(g){f(g);break}}try{i=s(d)}catch(g){return Promise.reject(g)}for(;l.length;)i=i.then(l.shift(),l.shift());return i},p.prototype.getUri=function(e){e=a(this.defaults,e);var t=l(e.baseURL,e.url);return r(t,e.params,e.paramsSerializer)},o.forEach(["delete","get","head","options"],(function(e){p.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),o.forEach(["post","put","patch"],(function(e){function t(t){return function(n,o,r){return this.request(a(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}p.prototype[e]=t(),p.prototype[e+"Form"]=t(!0)})),e.exports=p},4531:function(e,t,n){"use strict";var o=n(3589);function r(e,t,n,o,r){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r)}o.inherits(r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=r.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){s[e]={value:e}})),Object.defineProperties(r,s),Object.defineProperty(i,"isAxiosError",{value:!0}),r.from=function(e,t,n,s,a,l){var u=Object.create(i);return o.toFlatObject(e,u,(function(e){return e!==Error.prototype})),r.call(u,e.message,t,n,s,a),u.name=e.name,l&&Object.assign(u,l),u},e.exports=r},7470:function(e,t,n){"use strict";var o=n(3589);function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},1804:function(e,t,n){"use strict";var o=n(4044),r=n(9549);e.exports=function(e,t){return e&&!o(t)?r(e,t):t}},2733:function(e,t,n){"use strict";var o=n(3589),r=n(2693),i=n(5517),s=n(1709),a=n(6569);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),o.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return l(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},777:function(e,t,n){"use strict";var o=n(3589);e.exports=function(e,t){t=t||{};var n={};function r(e,t){return o.isPlainObject(e)&&o.isPlainObject(t)?o.merge(e,t):o.isPlainObject(t)?o.merge({},t):o.isArray(t)?t.slice():t}function i(n){return o.isUndefined(t[n])?o.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function s(e){if(!o.isUndefined(t[e]))return r(void 0,t[e])}function a(n){return o.isUndefined(t[n])?o.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function l(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var u={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return o.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,r=t(e);o.isUndefined(r)&&t!==l||(n[e]=r)})),n}},7297:function(e,t,n){"use strict";var o=n(4531);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new o("Request failed with status code "+n.status,[o.ERR_BAD_REQUEST,o.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},2693:function(e,t,n){"use strict";var o=n(3589),r=n(1709);e.exports=function(e,t,n){var i=this||r;return o.forEach(n,(function(n){e=n.call(i,e,t)})),e}},1709:function(e,t,n){"use strict";var o=n(3589),r=n(4341),i=n(4531),s=n(6789),a=n(1397),l={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c={transitional:s,adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(3381)),e}(),transformRequest:[function(e,t){if(r(t,"Accept"),r(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e))return e;if(o.isArrayBufferView(e))return e.buffer;if(o.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,i=o.isObject(e),s=t&&t["Content-Type"];if((n=o.isFileList(e))||i&&"multipart/form-data"===s){var l=this.env&&this.env.FormData;return a(n?{"files[]":e}:e,l&&new l)}return i||"application/json"===s?(u(t,"application/json"),function(e,t,n){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,s=!n&&"json"===this.responseType;if(s||r&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(a){if(s){if("SyntaxError"===a.name)throw i.from(a,i.ERR_BAD_RESPONSE,this,null,this.response);throw a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(3035)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){c.headers[e]=o.merge(l)})),e.exports=c},6789:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7600:function(e){e.exports={version:"0.27.2"}},4049:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),o=0;o<n.length;o++)n[o]=arguments[o];return e.apply(t,n)}}},9774:function(e,t,n){"use strict";var o=n(3589);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(o.isURLSearchParams(t))i=t.toString();else{var s=[];o.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,(function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+"="+r(e))})))})),i=s.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},9549:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},9301:function(e,t,n){"use strict";var o=n(3589);e.exports=o.isStandardBrowserEnv()?{write:function(e,t,n,r,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),o.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),o.isString(r)&&a.push("path="+r),o.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},4044:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},9580:function(e,t,n){"use strict";var o=n(3589);e.exports=function(e){return o.isObject(e)&&!0===e.isAxiosError}},5411:function(e,t,n){"use strict";var o=n(3589);e.exports=o.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var o=e;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=o.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},4341:function(e,t,n){"use strict";var o=n(3589);e.exports=function(e,t){o.forEach(e,(function(n,o){o!==t&&o.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[o])}))}},3035:function(e){e.exports=null},9145:function(e,t,n){"use strict";var o=n(3589),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,s={};return e?(o.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=o.trim(e.substr(0,i)).toLowerCase(),n=o.trim(e.substr(i+1)),t){if(s[t]&&r.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},6261:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8089:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1397:function(e,t,n){"use strict";var o=n(3589);e.exports=function(e,t){t=t||new FormData;var n=[];function r(e){return null===e?"":o.isDate(e)?e.toISOString():o.isArrayBuffer(e)||o.isTypedArray(e)?"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(i,s){if(o.isPlainObject(i)||o.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+s);n.push(i),o.forEach(i,(function(n,i){if(!o.isUndefined(n)){var a,l=s?s+"."+i:i;if(n&&!s&&"object"===typeof n)if(o.endsWith(i,"{}"))n=JSON.stringify(n);else if(o.endsWith(i,"[]")&&(a=o.toArray(n)))return void a.forEach((function(e){!o.isUndefined(e)&&t.append(l,r(e))}));e(n,l)}})),n.pop()}else t.append(s,r(i))}(e),t}},7835:function(e,t,n){"use strict";var o=n(7600).version,r=n(4531),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var s={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+o+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,a){if(!1===e)throw new r(i(o," has been removed"+(t?" in "+t:"")),r.ERR_DEPRECATED);return t&&!s[o]&&(s[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new r("options must be an object",r.ERR_BAD_OPTION_VALUE);for(var o=Object.keys(e),i=o.length;i-- >0;){var s=o[i],a=t[s];if(a){var l=e[s],u=void 0===l||a(l,s,e);if(!0!==u)throw new r("option "+s+" must be "+u,r.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new r("Unknown option "+s,r.ERR_BAD_OPTION)}},validators:i}},3589:function(e,t,n){"use strict";var o,r=n(4049),i=Object.prototype.toString,s=(o=Object.create(null),function(e){var t=i.call(e);return o[t]||(o[t]=t.slice(8,-1).toLowerCase())});function a(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function l(e){return Array.isArray(e)}function u(e){return"undefined"===typeof e}var c=a("ArrayBuffer");function p(e){return null!==e&&"object"===typeof e}function d(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=a("Date"),f=a("File"),g=a("Blob"),m=a("FileList");function v(e){return"[object Function]"===i.call(e)}var y=a("URLSearchParams");function C(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),l(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}var w,_=(w="undefined"!==typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return w&&e instanceof w});e.exports={isArray:l,isArrayBuffer:c,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"===typeof FormData&&e instanceof FormData||i.call(e)===t||v(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer)},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:p,isPlainObject:d,isUndefined:u,isDate:h,isFile:f,isBlob:g,isFunction:v,isStream:function(e){return p(e)&&v(e.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:C,merge:function e(){var t={};function n(n,o){d(t[o])&&d(n)?t[o]=e(t[o],n):d(n)?t[o]=e({},n):l(n)?t[o]=n.slice():t[o]=n}for(var o=0,r=arguments.length;o<r;o++)C(arguments[o],n);return t},extend:function(e,t,n){return C(t,(function(t,o){e[o]=n&&"function"===typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,o){e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var o,r,i,s={};t=t||{};do{for(r=(o=Object.getOwnPropertyNames(e)).length;r-- >0;)s[i=o[r]]||(t[i]=e[i],s[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:a,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var o=e.indexOf(t,n);return-1!==o&&o===n},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:_,isFileList:m}},2618:function(e,t,n){var o;!function(){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen};void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()},2110:function(e,t,n){"use strict";var o=n(8309),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return o.isMemo(e)?s:a[e.$$typeof]||r}a[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[o.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,o){if("string"!==typeof n){if(f){var r=h(n);r&&r!==f&&e(t,r,o)}var s=c(n);p&&(s=s.concat(p(n)));for(var a=l(t),g=l(n),m=0;m<s.length;++m){var v=s[m];if(!i[v]&&(!o||!o[v])&&(!g||!g[v])&&(!a||!a[v])){var y=d(n,v);try{u(t,v,y)}catch(C){}}}}return t}},746:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,C=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case c:case p:case i:case a:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case d:case m:case g:case l:return e;default:return t}}case r:return t}}}function b(e){return _(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=d,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=r,t.Profiler=a,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return b(e)||_(e)===c},t.isConcurrentMode=b,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return _(e)===d},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===m},t.isMemo=function(e){return _(e)===g},t.isPortal=function(e){return _(e)===r},t.isProfiler=function(e){return _(e)===a},t.isStrictMode=function(e){return _(e)===s},t.isSuspense=function(e){return _(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===p||e===a||e===s||e===h||e===f||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===C||e.$$typeof===w||e.$$typeof===v)},t.typeOf=_},8309:function(e,t,n){"use strict";e.exports=n(746)},8559:function(e,t){!function(e){"use strict";var t="1.8.0";function n(e){var t,n,o,r;for(n=1,o=arguments.length;n<o;n++)for(t in r=arguments[n])e[t]=r[t];return e}var o=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}();function r(e,t){var n=Array.prototype.slice;if(e.bind)return e.bind.apply(e,n.call(arguments,1));var o=n.call(arguments,2);return function(){return e.apply(t,o.length?o.concat(n.call(arguments)):arguments)}}var i=0;function s(e){return"_leaflet_id"in e||(e._leaflet_id=++i),e._leaflet_id}function a(e,t,n){var o,r,i,s;return s=function(){o=!1,r&&(i.apply(n,r),r=!1)},i=function(){o?r=arguments:(e.apply(n,arguments),setTimeout(s,t),o=!0)},i}function l(e,t,n){var o=t[1],r=t[0],i=o-r;return e===o&&n?e:((e-r)%i+i)%i+r}function u(){return!1}function c(e,t){if(!1===t)return e;var n=Math.pow(10,void 0===t?6:t);return Math.round(e*n)/n}function p(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function d(e){return p(e).split(/\s+/)}function h(e,t){for(var n in Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?o(e.options):{}),t)e.options[n]=t[n];return e.options}function f(e,t,n){var o=[];for(var r in e)o.push(encodeURIComponent(n?r.toUpperCase():r)+"="+encodeURIComponent(e[r]));return(t&&-1!==t.indexOf("?")?"&":"?")+o.join("&")}var g=/\{ *([\w_ -]+) *\}/g;function m(e,t){return e.replace(g,(function(e,n){var o=t[n];if(void 0===o)throw new Error("No value provided for variable "+e);return"function"===typeof o&&(o=o(t)),o}))}var v=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function y(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}var C="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function w(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var _=0;function b(e){var t=+new Date,n=Math.max(0,16-(t-_));return _=t+n,window.setTimeout(e,n)}var E=window.requestAnimationFrame||w("RequestAnimationFrame")||b,S=window.cancelAnimationFrame||w("CancelAnimationFrame")||w("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};function R(e,t,n){if(!n||E!==b)return E.call(window,r(e,t));e.call(t)}function O(e){e&&S.call(window,e)}var T={__proto__:null,extend:n,create:o,bind:r,get lastId(){return i},stamp:s,throttle:a,wrapNum:l,falseFn:u,formatNum:c,trim:p,splitWords:d,setOptions:h,getParamString:f,template:m,isArray:v,indexOf:y,emptyImageUrl:C,requestFn:E,cancelFn:S,requestAnimFrame:R,cancelAnimFrame:O};function P(){}function A(e){if("undefined"!==typeof L&&L&&L.Mixin){e=v(e)?e:[e];for(var t=0;t<e.length;t++)e[t]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}P.extend=function(e){var t=function(){h(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},r=t.__super__=this.prototype,i=o(r);for(var s in i.constructor=t,t.prototype=i,this)Object.prototype.hasOwnProperty.call(this,s)&&"prototype"!==s&&"__super__"!==s&&(t[s]=this[s]);return e.statics&&n(t,e.statics),e.includes&&(A(e.includes),n.apply(null,[i].concat(e.includes))),n(i,e),delete i.statics,delete i.includes,i.options&&(i.options=r.options?o(r.options):{},n(i.options,e.options)),i._initHooks=[],i.callInitHooks=function(){if(!this._initHooksCalled){r.callInitHooks&&r.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=i._initHooks.length;e<t;e++)i._initHooks[e].call(this)}},t},P.include=function(e){var t=this.prototype.options;return n(this.prototype,e),e.options&&(this.prototype.options=t,this.mergeOptions(e.options)),this},P.mergeOptions=function(e){return n(this.prototype.options,e),this},P.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1),n="function"===typeof e?e:function(){this[e].apply(this,t)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var D={on:function(e,t,n){if("object"===typeof e)for(var o in e)this._on(o,e[o],t);else for(var r=0,i=(e=d(e)).length;r<i;r++)this._on(e[r],t,n);return this},off:function(e,t,n){if(arguments.length)if("object"===typeof e)for(var o in e)this._off(o,e[o],t);else{e=d(e);for(var r=1===arguments.length,i=0,s=e.length;i<s;i++)r?this._off(e[i]):this._off(e[i],t,n)}else delete this._events;return this},_on:function(e,t,n){if("function"===typeof t){this._events=this._events||{};var o=this._events[e];o||(o=[],this._events[e]=o),n===this&&(n=void 0);for(var r={fn:t,ctx:n},i=o,s=0,a=i.length;s<a;s++)if(i[s].fn===t&&i[s].ctx===n)return;i.push(r)}else console.warn("wrong listener type: "+typeof t)},_off:function(e,t,n){var o,r,i;if(this._events&&(o=this._events[e]))if(1!==arguments.length)if(n===this&&(n=void 0),"function"===typeof t){for(r=0,i=o.length;r<i;r++){var s=o[r];if(s.ctx===n&&s.fn===t)return this._firingCount&&(s.fn=u,this._events[e]=o=o.slice()),void o.splice(r,1)}console.warn("listener not found")}else console.warn("wrong listener type: "+typeof t);else{if(this._firingCount)for(r=0,i=o.length;r<i;r++)o[r].fn=u;delete this._events[e]}},fire:function(e,t,o){if(!this.listens(e,o))return this;var r=n({},t,{type:e,target:this,sourceTarget:t&&t.sourceTarget||this});if(this._events){var i=this._events[e];if(i){this._firingCount=this._firingCount+1||1;for(var s=0,a=i.length;s<a;s++){var l=i[s];l.fn.call(l.ctx||this,r)}this._firingCount--}}return o&&this._propagateEvent(r),this},listens:function(e,t){"string"!==typeof e&&console.warn('"string" type argument expected');var n=this._events&&this._events[e];if(n&&n.length)return!0;if(t)for(var o in this._eventParents)if(this._eventParents[o].listens(e,t))return!0;return!1},once:function(e,t,n){if("object"===typeof e){for(var o in e)this.once(o,e[o],t);return this}var i=r((function(){this.off(e,t,n).off(e,i,n)}),this);return this.on(e,t,n).on(e,i,n)},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[s(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[s(e)],this},_propagateEvent:function(e){for(var t in this._eventParents)this._eventParents[t].fire(e.type,n({layer:e.target,propagatedFrom:e.target},e),!0)}};D.addEventListener=D.on,D.removeEventListener=D.clearAllEventListeners=D.off,D.addOneTimeEventListener=D.once,D.fireEvent=D.fire,D.hasEventListeners=D.listens;var x=P.extend(D);function N(e,t,n){this.x=n?Math.round(e):e,this.y=n?Math.round(t):t}var M=Math.trunc||function(e){return e>0?Math.floor(e):Math.ceil(e)};function I(e,t,n){return e instanceof N?e:v(e)?new N(e[0],e[1]):void 0===e||null===e?e:"object"===typeof e&&"x"in e&&"y"in e?new N(e.x,e.y):new N(e,t,n)}function F(e,t){if(e)for(var n=t?[e,t]:e,o=0,r=n.length;o<r;o++)this.extend(n[o])}function k(e,t){return!e||e instanceof F?e:new F(e,t)}function G(e,t){if(e)for(var n=t?[e,t]:e,o=0,r=n.length;o<r;o++)this.extend(n[o])}function H(e,t){return e instanceof G?e:new G(e,t)}function B(e,t,n){if(isNaN(e)||isNaN(t))throw new Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=+e,this.lng=+t,void 0!==n&&(this.alt=+n)}function V(e,t,n){return e instanceof B?e:v(e)&&"object"!==typeof e[0]?3===e.length?new B(e[0],e[1],e[2]):2===e.length?new B(e[0],e[1]):null:void 0===e||null===e?e:"object"===typeof e&&"lat"in e?new B(e.lat,"lng"in e?e.lng:e.lon,e.alt):void 0===t?null:new B(e,t,n)}N.prototype={clone:function(){return new N(this.x,this.y)},add:function(e){return this.clone()._add(I(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(I(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new N(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new N(this.x/e.x,this.y/e.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=M(this.x),this.y=M(this.y),this},distanceTo:function(e){var t=(e=I(e)).x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},equals:function(e){return(e=I(e)).x===this.x&&e.y===this.y},contains:function(e){return e=I(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+c(this.x)+", "+c(this.y)+")"}},F.prototype={extend:function(e){return e=I(e),this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(e.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(e.y,this.max.y)):(this.min=e.clone(),this.max=e.clone()),this},getCenter:function(e){return new N((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return new N(this.min.x,this.max.y)},getTopRight:function(){return new N(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(e){var t,n;return(e="number"===typeof e[0]||e instanceof N?I(e):k(e))instanceof F?(t=e.min,n=e.max):t=n=e,t.x>=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=k(e);var t=this.min,n=this.max,o=e.min,r=e.max,i=r.x>=t.x&&o.x<=n.x,s=r.y>=t.y&&o.y<=n.y;return i&&s},overlaps:function(e){e=k(e);var t=this.min,n=this.max,o=e.min,r=e.max,i=r.x>t.x&&o.x<n.x,s=r.y>t.y&&o.y<n.y;return i&&s},isValid:function(){return!(!this.min||!this.max)}},G.prototype={extend:function(e){var t,n,o=this._southWest,r=this._northEast;if(e instanceof B)t=e,n=e;else{if(!(e instanceof G))return e?this.extend(V(e)||H(e)):this;if(t=e._southWest,n=e._northEast,!t||!n)return this}return o||r?(o.lat=Math.min(t.lat,o.lat),o.lng=Math.min(t.lng,o.lng),r.lat=Math.max(n.lat,r.lat),r.lng=Math.max(n.lng,r.lng)):(this._southWest=new B(t.lat,t.lng),this._northEast=new B(n.lat,n.lng)),this},pad:function(e){var t=this._southWest,n=this._northEast,o=Math.abs(t.lat-n.lat)*e,r=Math.abs(t.lng-n.lng)*e;return new G(new B(t.lat-o,t.lng-r),new B(n.lat+o,n.lng+r))},getCenter:function(){return new B((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new B(this.getNorth(),this.getWest())},getSouthEast:function(){return new B(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(e){e="number"===typeof e[0]||e instanceof B||"lat"in e?V(e):H(e);var t,n,o=this._southWest,r=this._northEast;return e instanceof G?(t=e.getSouthWest(),n=e.getNorthEast()):t=n=e,t.lat>=o.lat&&n.lat<=r.lat&&t.lng>=o.lng&&n.lng<=r.lng},intersects:function(e){e=H(e);var t=this._southWest,n=this._northEast,o=e.getSouthWest(),r=e.getNorthEast(),i=r.lat>=t.lat&&o.lat<=n.lat,s=r.lng>=t.lng&&o.lng<=n.lng;return i&&s},overlaps:function(e){e=H(e);var t=this._southWest,n=this._northEast,o=e.getSouthWest(),r=e.getNorthEast(),i=r.lat>t.lat&&o.lat<n.lat,s=r.lng>t.lng&&o.lng<n.lng;return i&&s},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e,t){return!!e&&(e=H(e),this._southWest.equals(e.getSouthWest(),t)&&this._northEast.equals(e.getNorthEast(),t))},isValid:function(){return!(!this._southWest||!this._northEast)}},B.prototype={equals:function(e,t){return!!e&&(e=V(e),Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng))<=(void 0===t?1e-9:t))},toString:function(e){return"LatLng("+c(this.lat,e)+", "+c(this.lng,e)+")"},distanceTo:function(e){return j.distance(this,V(e))},wrap:function(){return j.wrapLatLng(this)},toBounds:function(e){var t=180*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return H([this.lat-t,this.lng-n],[this.lat+t,this.lng+n])},clone:function(){return new B(this.lat,this.lng,this.alt)}};var W={latLngToPoint:function(e,t){var n=this.projection.project(e),o=this.scale(t);return this.transformation._transform(n,o)},pointToLatLng:function(e,t){var n=this.scale(t),o=this.transformation.untransform(e,n);return this.projection.unproject(o)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*Math.pow(2,e)},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){if(this.infinite)return null;var t=this.projection.bounds,n=this.scale(e);return new F(this.transformation.transform(t.min,n),this.transformation.transform(t.max,n))},infinite:!1,wrapLatLng:function(e){var t=this.wrapLng?l(e.lng,this.wrapLng,!0):e.lng;return new B(this.wrapLat?l(e.lat,this.wrapLat,!0):e.lat,t,e.alt)},wrapLatLngBounds:function(e){var t=e.getCenter(),n=this.wrapLatLng(t),o=t.lat-n.lat,r=t.lng-n.lng;if(0===o&&0===r)return e;var i=e.getSouthWest(),s=e.getNorthEast();return new G(new B(i.lat-o,i.lng-r),new B(s.lat-o,s.lng-r))}},j=n({},W,{wrapLng:[-180,180],R:6371e3,distance:function(e,t){var n=Math.PI/180,o=e.lat*n,r=t.lat*n,i=Math.sin((t.lat-e.lat)*n/2),s=Math.sin((t.lng-e.lng)*n/2),a=i*i+Math.cos(o)*Math.cos(r)*s*s,l=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*l}}),U=6378137,z={R:U,MAX_LATITUDE:85.0511287798,project:function(e){var t=Math.PI/180,n=this.MAX_LATITUDE,o=Math.max(Math.min(n,e.lat),-n),r=Math.sin(o*t);return new N(this.R*e.lng*t,this.R*Math.log((1+r)/(1-r))/2)},unproject:function(e){var t=180/Math.PI;return new B((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*t,e.x*t/this.R)},bounds:function(){var e=U*Math.PI;return new F([-e,-e],[e,e])}()};function Z(e,t,n,o){if(v(e))return this._a=e[0],this._b=e[1],this._c=e[2],void(this._d=e[3]);this._a=e,this._b=t,this._c=n,this._d=o}function Y(e,t,n,o){return new Z(e,t,n,o)}Z.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){return t=t||1,e.x=t*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},untransform:function(e,t){return t=t||1,new N((e.x/t-this._b)/this._a,(e.y/t-this._d)/this._c)}};var K=n({},j,{code:"EPSG:3857",projection:z,transformation:function(){var e=.5/(Math.PI*z.R);return Y(e,.5,-e,.5)}()}),q=n({},K,{code:"EPSG:900913"});function X(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Q(e,t){var n,o,r,i,s,a,l="";for(n=0,r=e.length;n<r;n++){for(o=0,i=(s=e[n]).length;o<i;o++)l+=(o?"L":"M")+(a=s[o]).x+" "+a.y;l+=t?Ie.svg?"z":"x":""}return l||"M0 0"}var J=document.documentElement.style,$="ActiveXObject"in window,ee=$&&!document.addEventListener,te="msLaunchUri"in navigator&&!("documentMode"in document),ne=Me("webkit"),oe=Me("android"),re=Me("android 2")||Me("android 3"),ie=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),se=oe&&Me("Google")&&ie<537&&!("AudioNode"in window),ae=!!window.opera,le=!te&&Me("chrome"),ue=Me("gecko")&&!ne&&!ae&&!$,ce=!le&&Me("safari"),pe=Me("phantom"),de="OTransition"in J,he=0===navigator.platform.indexOf("Win"),fe=$&&"transition"in J,ge="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!re,me="MozPerspective"in J,ve=!window.L_DISABLE_3D&&(fe||ge||me)&&!de&&!pe,ye="undefined"!==typeof orientation||Me("mobile"),Ce=ye&&ne,we=ye&&ge,_e=!window.PointerEvent&&window.MSPointerEvent,be=!(!window.PointerEvent&&!_e),Ee="ontouchstart"in window||!!window.TouchEvent,Se=!window.L_NO_TOUCH&&(Ee||be),Re=ye&&ae,Oe=ye&&ue,Te=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Pe=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",u,t),window.removeEventListener("testPassiveEventSupport",u,t)}catch(n){}return e}(),Ae=!!document.createElement("canvas").getContext,De=!(!document.createElementNS||!X("svg").createSVGRect),xe=!!De&&function(){var e=document.createElement("div");return e.innerHTML="<svg/>","http://www.w3.org/2000/svg"===(e.firstChild&&e.firstChild.namespaceURI)}(),Ne=!De&&function(){try{var e=document.createElement("div");e.innerHTML='<v:shape adj="1"/>';var t=e.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"===typeof t.adj}catch(n){return!1}}();function Me(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var Ie={ie:$,ielt9:ee,edge:te,webkit:ne,android:oe,android23:re,androidStock:se,opera:ae,chrome:le,gecko:ue,safari:ce,phantom:pe,opera12:de,win:he,ie3d:fe,webkit3d:ge,gecko3d:me,any3d:ve,mobile:ye,mobileWebkit:Ce,mobileWebkit3d:we,msPointer:_e,pointer:be,touch:Se,touchNative:Ee,mobileOpera:Re,mobileGecko:Oe,retina:Te,passiveEvents:Pe,canvas:Ae,svg:De,vml:Ne,inlineSvg:xe},Le=Ie.msPointer?"MSPointerDown":"pointerdown",Fe=Ie.msPointer?"MSPointerMove":"pointermove",ke=Ie.msPointer?"MSPointerUp":"pointerup",Ge=Ie.msPointer?"MSPointerCancel":"pointercancel",He={touchstart:Le,touchmove:Fe,touchend:ke,touchcancel:Ge},Be={touchstart:Xe,touchmove:qe,touchend:qe,touchcancel:qe},Ve={},We=!1;function je(e,t,n){return"touchstart"===t&&Ke(),Be[t]?(n=Be[t].bind(this,n),e.addEventListener(He[t],n,!1),n):(console.warn("wrong event specified:",t),L.Util.falseFn)}function Ue(e,t,n){He[t]?e.removeEventListener(He[t],n,!1):console.warn("wrong event specified:",t)}function ze(e){Ve[e.pointerId]=e}function Ze(e){Ve[e.pointerId]&&(Ve[e.pointerId]=e)}function Ye(e){delete Ve[e.pointerId]}function Ke(){We||(document.addEventListener(Le,ze,!0),document.addEventListener(Fe,Ze,!0),document.addEventListener(ke,Ye,!0),document.addEventListener(Ge,Ye,!0),We=!0)}function qe(e,t){if(t.pointerType!==(t.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in t.touches=[],Ve)t.touches.push(Ve[n]);t.changedTouches=[t],e(t)}}function Xe(e,t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&zt(t),qe(e,t)}function Qe(e){var t,n,o={};for(n in e)t=e[n],o[n]=t&&t.bind?t.bind(e):t;return e=o,o.type="dblclick",o.detail=2,o.isTrusted=!1,o._simulated=!0,o}var Je=200;function $e(e,t){e.addEventListener("dblclick",t);var n,o=0;function r(e){if(1===e.detail){if("mouse"!==e.pointerType&&(!e.sourceCapabilities||e.sourceCapabilities.firesTouchEvents)){var r=Date.now();r-o<=Je?2===++n&&t(Qe(e)):n=1,o=r}}else n=e.detail}return e.addEventListener("click",r),{dblclick:t,simDblclick:r}}function et(e,t){e.removeEventListener("dblclick",t.dblclick),e.removeEventListener("click",t.simDblclick)}var tt,nt,ot,rt,it,st=Et(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),at=Et(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),lt="webkitTransition"===at||"OTransition"===at?at+"End":"transitionend";function ut(e){return"string"===typeof e?document.getElementById(e):e}function ct(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){var o=document.defaultView.getComputedStyle(e,null);n=o?o[t]:null}return"auto"===n?null:n}function pt(e,t,n){var o=document.createElement(e);return o.className=t||"",n&&n.appendChild(o),o}function dt(e){var t=e.parentNode;t&&t.removeChild(e)}function ht(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function ft(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function gt(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function mt(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=wt(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}function vt(e,t){if(void 0!==e.classList)for(var n=d(t),o=0,r=n.length;o<r;o++)e.classList.add(n[o]);else if(!mt(e,t)){var i=wt(e);Ct(e,(i?i+" ":"")+t)}}function yt(e,t){void 0!==e.classList?e.classList.remove(t):Ct(e,p((" "+wt(e)+" ").replace(" "+t+" "," ")))}function Ct(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}function wt(e){return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}function _t(e,t){"opacity"in e.style?e.style.opacity=t:"filter"in e.style&&bt(e,t)}function bt(e,t){var n=!1,o="DXImageTransform.Microsoft.Alpha";try{n=e.filters.item(o)}catch(r){if(1===t)return}t=Math.round(100*t),n?(n.Enabled=100!==t,n.Opacity=t):e.style.filter+=" progid:"+o+"(opacity="+t+")"}function Et(e){for(var t=document.documentElement.style,n=0;n<e.length;n++)if(e[n]in t)return e[n];return!1}function St(e,t,n){var o=t||new N(0,0);e.style[st]=(Ie.ie3d?"translate("+o.x+"px,"+o.y+"px)":"translate3d("+o.x+"px,"+o.y+"px,0)")+(n?" scale("+n+")":"")}function Rt(e,t){e._leaflet_pos=t,Ie.any3d?St(e,t):(e.style.left=t.x+"px",e.style.top=t.y+"px")}function Ot(e){return e._leaflet_pos||new N(0,0)}if("onselectstart"in document)tt=function(){Lt(window,"selectstart",zt)},nt=function(){kt(window,"selectstart",zt)};else{var Tt=Et(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);tt=function(){if(Tt){var e=document.documentElement.style;ot=e[Tt],e[Tt]="none"}},nt=function(){Tt&&(document.documentElement.style[Tt]=ot,ot=void 0)}}function Pt(){Lt(window,"dragstart",zt)}function At(){kt(window,"dragstart",zt)}function Dt(e){for(;-1===e.tabIndex;)e=e.parentNode;e.style&&(xt(),rt=e,it=e.style.outline,e.style.outline="none",Lt(window,"keydown",xt))}function xt(){rt&&(rt.style.outline=it,rt=void 0,it=void 0,kt(window,"keydown",xt))}function Nt(e){do{e=e.parentNode}while((!e.offsetWidth||!e.offsetHeight)&&e!==document.body);return e}function Mt(e){var t=e.getBoundingClientRect();return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}var It={__proto__:null,TRANSFORM:st,TRANSITION:at,TRANSITION_END:lt,get:ut,getStyle:ct,create:pt,remove:dt,empty:ht,toFront:ft,toBack:gt,hasClass:mt,addClass:vt,removeClass:yt,setClass:Ct,getClass:wt,setOpacity:_t,testProp:Et,setTransform:St,setPosition:Rt,getPosition:Ot,get disableTextSelection(){return tt},get enableTextSelection(){return nt},disableImageDrag:Pt,enableImageDrag:At,preventOutline:Dt,restoreOutline:xt,getSizedParentNode:Nt,getScale:Mt};function Lt(e,t,n,o){if(t&&"object"===typeof t)for(var r in t)Bt(e,r,t[r],n);else for(var i=0,s=(t=d(t)).length;i<s;i++)Bt(e,t[i],n,o);return this}var Ft="_leaflet_events";function kt(e,t,n,o){if(1===arguments.length)Gt(e),delete e[Ft];else if(t&&"object"===typeof t)for(var r in t)Vt(e,r,t[r],n);else if(t=d(t),2===arguments.length)Gt(e,(function(e){return-1!==y(t,e)}));else for(var i=0,s=t.length;i<s;i++)Vt(e,t[i],n,o);return this}function Gt(e,t){for(var n in e[Ft]){var o=n.split(/\d/)[0];t&&!t(o)||Vt(e,o,null,null,n)}}var Ht={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Bt(e,t,n,o){var r=t+s(n)+(o?"_"+s(o):"");if(e[Ft]&&e[Ft][r])return this;var i=function(t){return n.call(o||e,t||window.event)},a=i;!Ie.touchNative&&Ie.pointer&&0===t.indexOf("touch")?i=je(e,t,i):Ie.touch&&"dblclick"===t?i=$e(e,i):"addEventListener"in e?"touchstart"===t||"touchmove"===t||"wheel"===t||"mousewheel"===t?e.addEventListener(Ht[t]||t,i,!!Ie.passiveEvents&&{passive:!1}):"mouseenter"===t||"mouseleave"===t?(i=function(t){t=t||window.event,Xt(e,t)&&a(t)},e.addEventListener(Ht[t],i,!1)):e.addEventListener(t,a,!1):e.attachEvent("on"+t,i),e[Ft]=e[Ft]||{},e[Ft][r]=i}function Vt(e,t,n,o,r){r=r||t+s(n)+(o?"_"+s(o):"");var i=e[Ft]&&e[Ft][r];if(!i)return this;!Ie.touchNative&&Ie.pointer&&0===t.indexOf("touch")?Ue(e,t,i):Ie.touch&&"dblclick"===t?et(e,i):"removeEventListener"in e?e.removeEventListener(Ht[t]||t,i,!1):e.detachEvent("on"+t,i),e[Ft][r]=null}function Wt(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,this}function jt(e){return Bt(e,"wheel",Wt),this}function Ut(e){return Lt(e,"mousedown touchstart dblclick contextmenu",Wt),e._leaflet_disable_click=!0,this}function zt(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function Zt(e){return zt(e),Wt(e),this}function Yt(e,t){if(!t)return new N(e.clientX,e.clientY);var n=Mt(t),o=n.boundingClientRect;return new N((e.clientX-o.left)/n.x-t.clientLeft,(e.clientY-o.top)/n.y-t.clientTop)}var Kt=Ie.win&&Ie.chrome?2*window.devicePixelRatio:Ie.gecko?window.devicePixelRatio:1;function qt(e){return Ie.edge?e.wheelDeltaY/2:e.deltaY&&0===e.deltaMode?-e.deltaY/Kt:e.deltaY&&1===e.deltaMode?20*-e.deltaY:e.deltaY&&2===e.deltaMode?60*-e.deltaY:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?20*-e.detail:e.detail?e.detail/-32765*60:0}function Xt(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(o){return!1}return n!==e}var Qt={__proto__:null,on:Lt,off:kt,stopPropagation:Wt,disableScrollPropagation:jt,disableClickPropagation:Ut,preventDefault:zt,stop:Zt,getMousePosition:Yt,getWheelDelta:qt,isExternalTarget:Xt,addListener:Lt,removeListener:kt},Jt=x.extend({run:function(e,t,n,o){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(o||.5,.2),this._startPos=Ot(e),this._offset=t.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=R(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,n=1e3*this._duration;t<n?this._runFrame(this._easeOut(t/n),e):(this._runFrame(1),this._complete())},_runFrame:function(e,t){var n=this._startPos.add(this._offset.multiplyBy(e));t&&n._round(),Rt(this._el,n),this.fire("step")},_complete:function(){O(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),$t=x.extend({options:{crs:K,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(e,t){t=h(this,t),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),this._onResize=r(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),void 0!==t.zoom&&(this._zoom=this._limitZoom(t.zoom)),t.center&&void 0!==t.zoom&&this.setView(V(t.center),t.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=at&&Ie.any3d&&!Ie.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Lt(this._proxy,lt,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(e,t,o){return t=void 0===t?this._zoom:this._limitZoom(t),e=this._limitCenter(V(e),t,this.options.maxBounds),o=o||{},this._stop(),this._loaded&&!o.reset&&!0!==o&&(void 0!==o.animate&&(o.zoom=n({animate:o.animate},o.zoom),o.pan=n({animate:o.animate,duration:o.duration},o.pan)),this._zoom!==t?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,t,o.zoom):this._tryAnimatedPan(e,o.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(e,t),this)},setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=e,this)},zoomIn:function(e,t){return e=e||(Ie.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+e,t)},zoomOut:function(e,t){return e=e||(Ie.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-e,t)},setZoomAround:function(e,t,n){var o=this.getZoomScale(t),r=this.getSize().divideBy(2),i=(e instanceof N?e:this.latLngToContainerPoint(e)).subtract(r).multiplyBy(1-1/o),s=this.containerPointToLatLng(r.add(i));return this.setView(s,t,{zoom:n})},_getBoundsCenterZoom:function(e,t){t=t||{},e=e.getBounds?e.getBounds():H(e);var n=I(t.paddingTopLeft||t.padding||[0,0]),o=I(t.paddingBottomRight||t.padding||[0,0]),r=this.getBoundsZoom(e,!1,n.add(o));if((r="number"===typeof t.maxZoom?Math.min(t.maxZoom,r):r)===1/0)return{center:e.getCenter(),zoom:r};var i=o.subtract(n).divideBy(2),s=this.project(e.getSouthWest(),r),a=this.project(e.getNorthEast(),r);return{center:this.unproject(s.add(a).divideBy(2).add(i),r),zoom:r}},fitBounds:function(e,t){if(!(e=H(e)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(e,t);return this.setView(n.center,n.zoom,t)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e,t){if(t=t||{},!(e=I(e).round()).x&&!e.y)return this.fire("moveend");if(!0!==t.animate&&!this.getSize().contains(e))return this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Jt,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire("movestart"),!1!==t.animate){vt(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(e).round();this._panAnim.run(this._mapPane,n,t.duration||.25,t.easeLinearity)}else this._rawPanBy(e),this.fire("move").fire("moveend");return this},flyTo:function(e,t,n){if(!1===(n=n||{}).animate||!Ie.any3d)return this.setView(e,t,n);this._stop();var o=this.project(this.getCenter()),r=this.project(e),i=this.getSize(),s=this._zoom;e=V(e),t=void 0===t?s:t;var a=Math.max(i.x,i.y),l=a*this.getZoomScale(s,t),u=r.distanceTo(o)||1,c=1.42,p=c*c;function d(e){var t=(l*l-a*a+(e?-1:1)*p*p*u*u)/(2*(e?l:a)*p*u),n=Math.sqrt(t*t+1)-t;return n<1e-9?-18:Math.log(n)}function h(e){return(Math.exp(e)-Math.exp(-e))/2}function f(e){return(Math.exp(e)+Math.exp(-e))/2}function g(e){return h(e)/f(e)}var m=d(0);function v(e){return a*(f(m)/f(m+c*e))}function y(e){return a*(f(m)*g(m+c*e)-h(m))/p}function C(e){return 1-Math.pow(1-e,1.5)}var w=Date.now(),_=(d(1)-m)/c,b=n.duration?1e3*n.duration:1e3*_*.8;function E(){var n=(Date.now()-w)/b,i=C(n)*_;n<=1?(this._flyToFrame=R(E,this),this._move(this.unproject(o.add(r.subtract(o).multiplyBy(y(i)/u)),s),this.getScaleZoom(a/v(i),s),{flyTo:!0})):this._move(e,t)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),E.call(this),this},flyToBounds:function(e,t){var n=this._getBoundsCenterZoom(e,t);return this.flyTo(n.center,n.zoom,t)},setMaxBounds:function(e){return(e=H(e)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(e){var t=this.options.minZoom;return this.options.minZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(e):this},setMaxZoom:function(e){var t=this.options.maxZoom;return this.options.maxZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),o=this._limitCenter(n,this._zoom,H(e));return n.equals(o)||this.panTo(o,t),this._enforcingBounds=!1,this},panInside:function(e,t){var n=I((t=t||{}).paddingTopLeft||t.padding||[0,0]),o=I(t.paddingBottomRight||t.padding||[0,0]),r=this.project(this.getCenter()),i=this.project(e),s=this.getPixelBounds(),a=k([s.min.add(n),s.max.subtract(o)]),l=a.getSize();if(!a.contains(i)){this._enforcingBounds=!0;var u=i.subtract(a.getCenter()),c=a.extend(i).getSize().subtract(l);r.x+=u.x<0?-c.x:c.x,r.y+=u.y<0?-c.y:c.y,this.panTo(this.unproject(r),t),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=n({animate:!1,pan:!0},!0===e?{animate:!0}:e);var t=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),i=t.divideBy(2).round(),s=o.divideBy(2).round(),a=i.subtract(s);return a.x||a.y?(e.animate&&e.pan?this.panBy(a):(e.pan&&this._rawPanBy(a),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:t,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=n({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var t=r(this._handleGeolocationResponse,this),o=r(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,o,e):navigator.geolocation.getCurrentPosition(t,o,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var t=e.code,n=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t=new B(e.coords.latitude,e.coords.longitude),n=t.toBounds(2*e.coords.accuracy),o=this._locateOptions;if(o.setView){var r=this.getBoundsZoom(n);this.setView(t,o.maxZoom?Math.min(r,o.maxZoom):r)}var i={latlng:t,bounds:n,timestamp:e.timestamp};for(var s in e.coords)"number"===typeof e.coords[s]&&(i[s]=e.coords[s]);this.fire("locationfound",i)}},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var e;for(e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),dt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(O(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)dt(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var n=pt("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),t||this._mapPane);return e&&(this._panes[e]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new G(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=H(e),n=I(n||[0,0]);var o=this.getZoom()||0,r=this.getMinZoom(),i=this.getMaxZoom(),s=e.getNorthWest(),a=e.getSouthEast(),l=this.getSize().subtract(n),u=k(this.project(a,o),this.project(s,o)).getSize(),c=Ie.any3d?this.options.zoomSnap:1,p=l.x/u.x,d=l.y/u.y,h=t?Math.max(p,d):Math.min(p,d);return o=this.getScaleZoom(h,o),c&&(o=Math.round(o/(c/100))*(c/100),o=t?Math.ceil(o/c)*c:Math.floor(o/c)*c),Math.max(r,Math.min(i,o))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new N(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,t){var n=this._getTopLeftPoint(e,t);return new F(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},getPane:function(e){return"string"===typeof e?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=void 0===t?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;t=void 0===t?this._zoom:t;var o=n.zoom(e*n.scale(t));return isNaN(o)?1/0:o},project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(V(e),t)},unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(I(e),t)},layerPointToLatLng:function(e){var t=I(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(V(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(V(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(H(e))},distance:function(e,t){return this.options.crs.distance(V(e),V(t))},containerPointToLayerPoint:function(e){return I(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return I(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(I(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(V(e)))},mouseEventToContainerPoint:function(e){return Yt(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=ut(e);if(!t)throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");Lt(t,"scroll",this._onScroll,this),this._containerId=s(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ie.any3d,vt(e,"leaflet-container"+(Ie.touch?" leaflet-touch":"")+(Ie.retina?" leaflet-retina":"")+(Ie.ielt9?" leaflet-oldie":"")+(Ie.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var t=ct(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Rt(this._mapPane,new N(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(vt(e.markerPane,"leaflet-zoom-hide"),vt(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,t){Rt(this._mapPane,new N(0,0));var n=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset");var o=this._zoom!==t;this._moveStart(o,!1)._move(e,t)._moveEnd(o),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(e,t){return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,n,o){void 0===t&&(t=this._zoom);var r=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),o?n&&n.pinch&&this.fire("zoom",n):((r||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return O(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){Rt(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(e){this._targets={},this._targets[s(this._container)]=this;var t=e?kt:Lt;t(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),Ie.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){O(this._resizeRequest),this._resizeRequest=R((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n,o=[],r="mouseout"===t||"mouseover"===t,i=e.target||e.srcElement,a=!1;i;){if((n=this._targets[s(i)])&&("click"===t||"preclick"===t)&&this._draggableMoved(n)){a=!0;break}if(n&&n.listens(t,!0)){if(r&&!Xt(i,e))break;if(o.push(n),r)break}if(i===this._container)break;i=i.parentNode}return o.length||a||r||!this.listens(t,!0)||(o=[this]),o},_isClickDisabled:function(e){for(;e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var t=e.target||e.srcElement;if(!(!this._loaded||t._leaflet_disable_events||"click"===e.type&&this._isClickDisabled(t))){var n=e.type;"mousedown"===n&&Dt(t),this._fireDOMEvent(e,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,t,o){if("click"===e.type){var r=n({},e);r.type="preclick",this._fireDOMEvent(r,r.type,o)}var i=this._findEventTargets(e,t);if(o){for(var s=[],a=0;a<o.length;a++)o[a].listens(t,!0)&&s.push(o[a]);i=s.concat(i)}if(i.length){"contextmenu"===t&&zt(e);var l=i[0],u={originalEvent:e};if("keypress"!==e.type&&"keydown"!==e.type&&"keyup"!==e.type){var c=l.getLatLng&&(!l._radius||l._radius<=10);u.containerPoint=c?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(e),u.layerPoint=this.containerPointToLayerPoint(u.containerPoint),u.latlng=c?l.getLatLng():this.layerPointToLatLng(u.layerPoint)}for(a=0;a<i.length;a++)if(i[a].fire(t,u,!0),u.originalEvent._stopped||!1===i[a].options.bubblingMouseEvents&&-1!==y(this._mouseEvents,t))return}},_draggableMoved:function(e){return(e=e.dragging&&e.dragging.enabled()?e:this).dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,t=this._handlers.length;e<t;e++)this._handlers[e].disable()},whenReady:function(e,t){return this._loaded?e.call(t||this,{target:this}):this.on("load",e,t),this},_getMapPanePos:function(){return Ot(this._mapPane)||new N(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,t){return(e&&void 0!==t?this._getNewPixelOrigin(e,t):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,t){var n=this.getSize()._divideBy(2);return this.project(e,t)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,t,n){var o=this._getNewPixelOrigin(n,t);return this.project(e,t)._subtract(o)},_latLngBoundsToNewLayerBounds:function(e,t,n){var o=this._getNewPixelOrigin(n,t);return k([this.project(e.getSouthWest(),t)._subtract(o),this.project(e.getNorthWest(),t)._subtract(o),this.project(e.getSouthEast(),t)._subtract(o),this.project(e.getNorthEast(),t)._subtract(o)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,n){if(!n)return e;var o=this.project(e,t),r=this.getSize().divideBy(2),i=new F(o.subtract(r),o.add(r)),s=this._getBoundsOffset(i,n,t);return s.round().equals([0,0])?e:this.unproject(o.add(s),t)},_limitOffset:function(e,t){if(!t)return e;var n=this.getPixelBounds(),o=new F(n.min.add(e),n.max.add(e));return e.add(this._getBoundsOffset(o,t))},_getBoundsOffset:function(e,t,n){var o=k(this.project(t.getNorthEast(),n),this.project(t.getSouthWest(),n)),r=o.min.subtract(e.min),i=o.max.subtract(e.max);return new N(this._rebound(r.x,-i.x),this._rebound(r.y,-i.y))},_rebound:function(e,t){return e+t>0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),o=Ie.any3d?this.options.zoomSnap:1;return o&&(e=Math.round(e/o)*o),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){yt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._trunc();return!(!0!==(t&&t.animate)&&!this.getSize().contains(n))&&(this.panBy(n,t),!0)},_createAnimProxy:function(){var e=this._proxy=pt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",(function(e){var t=st,n=this._proxy.style[t];St(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){dt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();St(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var o=this.getZoomScale(t),r=this._getCenterOffset(e)._divideBy(1-1/o);return!(!0!==n.animate&&!this.getSize().contains(r))&&(R((function(){this._moveStart(!0,!1)._animateZoom(e,t,!0)}),this),!0)},_animateZoom:function(e,t,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,vt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:t,noUpdate:o}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&yt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function en(e,t){return new $t(e,t)}var tn=P.extend({options:{position:"topright"},initialize:function(e){h(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),o=e._controlCorners[n];return vt(t,"leaflet-control"),-1!==n.indexOf("bottom")?o.insertBefore(t,o.firstChild):o.appendChild(t),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(dt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),nn=function(e){return new tn(e)};$t.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},t="leaflet-",n=this._controlContainer=pt("div",t+"control-container",this._container);function o(o,r){var i=t+o+" "+t+r;e[o+r]=pt("div",i,n)}o("top","left"),o("top","right"),o("bottom","left"),o("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)dt(this._controlCorners[e]);dt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var on=tn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,o){return n<o?-1:o<n?1:0}},initialize:function(e,t,n){for(var o in h(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,e)this._addLayer(e[o],o);for(o in t)this._addLayer(t[o],o,!0)},onAdd:function(e){this._initLayout(),this._update(),this._map=e,e.on("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){return tn.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(e,t){return this._addLayer(e,t),this._map?this._update():this},addOverlay:function(e,t){return this._addLayer(e,t,!0),this._map?this._update():this},removeLayer:function(e){e.off("add remove",this._onLayerChange,this);var t=this._getLayer(s(e));return t&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){vt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(vt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=e+"px"):yt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return yt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=pt("div",e),n=this.options.collapsed;t.setAttribute("aria-haspopup",!0),Ut(t),jt(t);var o=this._section=pt("section",e+"-list");n&&(this._map.on("click",this.collapse,this),Lt(t,{mouseenter:function(){Lt(o,"click",zt),this.expand(),setTimeout((function(){kt(o,"click",zt)}))},mouseleave:this.collapse},this));var r=this._layersLink=pt("a",e+"-toggle",t);r.href="#",r.title="Layers",r.setAttribute("role","button"),Lt(r,"click",zt),Lt(r,"focus",this.expand,this),n||this.expand(),this._baseLayersList=pt("div",e+"-base",o),this._separator=pt("div",e+"-separator",o),this._overlaysList=pt("div",e+"-overlays",o),t.appendChild(o)},_getLayer:function(e){for(var t=0;t<this._layers.length;t++)if(this._layers[t]&&s(this._layers[t].layer)===e)return this._layers[t]},_addLayer:function(e,t,n){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:t,overlay:n}),this.options.sortLayers&&this._layers.sort(r((function(e,t){return this.options.sortFunction(e.layer,t.layer,e.name,t.name)}),this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ht(this._baseLayersList),ht(this._overlaysList),this._layerControlInputs=[];var e,t,n,o,r=0;for(n=0;n<this._layers.length;n++)o=this._layers[n],this._addItem(o),t=t||o.overlay,e=e||!o.overlay,r+=o.overlay?0:1;return this.options.hideSingleBase&&(e=e&&r>1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=t&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(s(e.target)),n=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null;n&&this._map.fire(n,t)},_createRadioElement:function(e,t){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(t?' checked="checked"':"")+"/>",o=document.createElement("div");return o.innerHTML=n,o.firstChild},_addItem:function(e){var t,n=document.createElement("label"),o=this._map.hasLayer(e.layer);e.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=o):t=this._createRadioElement("leaflet-base-layers_"+s(this),o),this._layerControlInputs.push(t),t.layerId=s(e.layer),Lt(t,"click",this._onInputClick,this);var r=document.createElement("span");r.innerHTML=" "+e.name;var i=document.createElement("span");return n.appendChild(i),i.appendChild(t),i.appendChild(r),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var e,t,n=this._layerControlInputs,o=[],r=[];this._handlingClick=!0;for(var i=n.length-1;i>=0;i--)e=n[i],t=this._getLayer(e.layerId).layer,e.checked?o.push(t):e.checked||r.push(t);for(i=0;i<r.length;i++)this._map.hasLayer(r[i])&&this._map.removeLayer(r[i]);for(i=0;i<o.length;i++)this._map.hasLayer(o[i])||this._map.addLayer(o[i]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var e,t,n=this._layerControlInputs,o=this._map.getZoom(),r=n.length-1;r>=0;r--)e=n[r],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&o<t.options.minZoom||void 0!==t.options.maxZoom&&o>t.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this}}),rn=function(e,t,n){return new on(e,t,n)},sn=tn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=pt("div",t+" leaflet-bar"),o=this.options;return this._zoomInButton=this._createButton(o.zoomInText,o.zoomInTitle,t+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(o.zoomOutText,o.zoomOutTitle,t+"-out",n,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,o,r){var i=pt("a",n,o);return i.innerHTML=e,i.href="#",i.title=t,i.setAttribute("role","button"),i.setAttribute("aria-label",t),Ut(i),Lt(i,"click",Zt),Lt(i,"click",r,this),Lt(i,"click",this._refocusOnMap,this),i},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";yt(this._zoomInButton,t),yt(this._zoomOutButton,t),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||e._zoom===e.getMinZoom())&&(vt(this._zoomOutButton,t),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||e._zoom===e.getMaxZoom())&&(vt(this._zoomInButton,t),this._zoomInButton.setAttribute("aria-disabled","true"))}});$t.mergeOptions({zoomControl:!0}),$t.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new sn,this.addControl(this.zoomControl))}));var an=function(e){return new sn(e)},ln=tn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t="leaflet-control-scale",n=pt("div",t),o=this.options;return this._addScales(o,t+"-line",n),e.on(o.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=pt("div",t,n)),e.imperial&&(this._iScale=pt("div",t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e),n=t<1e3?t+" m":t/1e3+" km";this._updateScale(this._mScale,n,t/e)},_updateImperial:function(e){var t,n,o,r=3.2808399*e;r>5280?(t=r/5280,n=this._getRoundNum(t),this._updateScale(this._iScale,n+" mi",n/t)):(o=this._getRoundNum(r),this._updateScale(this._iScale,o+" ft",o/r))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),n=e/t;return t*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),un=function(e){return new ln(e)},cn='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',pn=tn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Ie.inlineSvg?cn+" ":"")+"Leaflet</a>"},initialize:function(e){h(this,e),this._attributions={}},onAdd:function(e){for(var t in e.attributionControl=this,this._container=pt("div","leaflet-control-attribution"),Ut(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),e.on("layeradd",this._addAttribution,this),this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once("remove",(function(){this.removeAttribution(e.layer.getAttribution())}),this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});$t.mergeOptions({attributionControl:!0}),$t.addInitHook((function(){this.options.attributionControl&&(new pn).addTo(this)}));var dn=function(e){return new pn(e)};tn.Layers=on,tn.Zoom=sn,tn.Scale=ln,tn.Attribution=pn,nn.layers=rn,nn.zoom=an,nn.scale=un,nn.attribution=dn;var hn=P.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});hn.addTo=function(e,t){return e.addHandler(t,this),this};var fn,gn={Events:D},mn=Ie.touch?"touchstart mousedown":"mousedown",vn=x.extend({options:{clickTolerance:3},initialize:function(e,t,n,o){h(this,o),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},enable:function(){this._enabled||(Lt(this._dragStartTarget,mn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(vn._dragging===this&&this.finishDrag(!0),kt(this._dragStartTarget,mn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(this._enabled&&(this._moved=!1,!mt(this._element,"leaflet-zoom-anim")))if(e.touches&&1!==e.touches.length)vn._dragging===this&&this.finishDrag();else if(!(vn._dragging||e.shiftKey||1!==e.which&&1!==e.button&&!e.touches)&&(vn._dragging=this,this._preventOutline&&Dt(this._element),Pt(),tt(),!this._moving)){this.fire("down");var t=e.touches?e.touches[0]:e,n=Nt(this._element);this._startPoint=new N(t.clientX,t.clientY),this._startPos=Ot(this._element),this._parentScale=Mt(n);var o="mousedown"===e.type;Lt(document,o?"mousemove":"touchmove",this._onMove,this),Lt(document,o?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(e){if(this._enabled)if(e.touches&&e.touches.length>1)this._moved=!0;else{var t=e.touches&&1===e.touches.length?e.touches[0]:e,n=new N(t.clientX,t.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,zt(e),this._moved||(this.fire("dragstart"),this._moved=!0,vt(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),vt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=e,this._updatePosition()))}},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire("predrag",e),Rt(this._element,this._newPos),this.fire("drag",e)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(e){yt(document.body,"leaflet-dragging"),this._lastTarget&&(yt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),kt(document,"mousemove touchmove",this._onMove,this),kt(document,"mouseup touchend touchcancel",this._onUp,this),At(),nt(),this._moved&&this._moving&&this.fire("dragend",{noInertia:e,distance:this._newPos.distanceTo(this._startPos)}),this._moving=!1,vn._dragging=!1}});function yn(e,t){if(!t||!e.length)return e.slice();var n=t*t;return e=_n(e=En(e,n),n)}function Cn(e,t,n){return Math.sqrt(Pn(e,t,n,!0))}function wn(e,t,n){return Pn(e,t,n)}function _n(e,t){var n=e.length,o=new(typeof Uint8Array!==void 0+""?Uint8Array:Array)(n);o[0]=o[n-1]=1,bn(e,o,t,0,n-1);var r,i=[];for(r=0;r<n;r++)o[r]&&i.push(e[r]);return i}function bn(e,t,n,o,r){var i,s,a,l=0;for(s=o+1;s<=r-1;s++)(a=Pn(e[s],e[o],e[r],!0))>l&&(i=s,l=a);l>n&&(t[i]=1,bn(e,t,n,o,i),bn(e,t,n,i,r))}function En(e,t){for(var n=[e[0]],o=1,r=0,i=e.length;o<i;o++)Tn(e[o],e[r])>t&&(n.push(e[o]),r=o);return r<i-1&&n.push(e[i-1]),n}function Sn(e,t,n,o,r){var i,s,a,l=o?fn:On(e,n),u=On(t,n);for(fn=u;;){if(!(l|u))return[e,t];if(l&u)return!1;a=On(s=Rn(e,t,i=l||u,n,r),n),i===l?(e=s,l=a):(t=s,u=a)}}function Rn(e,t,n,o,r){var i,s,a=t.x-e.x,l=t.y-e.y,u=o.min,c=o.max;return 8&n?(i=e.x+a*(c.y-e.y)/l,s=c.y):4&n?(i=e.x+a*(u.y-e.y)/l,s=u.y):2&n?(i=c.x,s=e.y+l*(c.x-e.x)/a):1&n&&(i=u.x,s=e.y+l*(u.x-e.x)/a),new N(i,s,r)}function On(e,t){var n=0;return e.x<t.min.x?n|=1:e.x>t.max.x&&(n|=2),e.y<t.min.y?n|=4:e.y>t.max.y&&(n|=8),n}function Tn(e,t){var n=t.x-e.x,o=t.y-e.y;return n*n+o*o}function Pn(e,t,n,o){var r,i=t.x,s=t.y,a=n.x-i,l=n.y-s,u=a*a+l*l;return u>0&&((r=((e.x-i)*a+(e.y-s)*l)/u)>1?(i=n.x,s=n.y):r>0&&(i+=a*r,s+=l*r)),a=e.x-i,l=e.y-s,o?a*a+l*l:new N(i,s)}function An(e){return!v(e[0])||"object"!==typeof e[0][0]&&"undefined"!==typeof e[0][0]}function Dn(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),An(e)}var xn={__proto__:null,simplify:yn,pointToSegmentDistance:Cn,closestPointOnSegment:wn,clipSegment:Sn,_getEdgeIntersection:Rn,_getBitCode:On,_sqClosestPointOnSegment:Pn,isFlat:An,_flat:Dn};function Nn(e,t,n){var o,r,i,s,a,l,u,c,p,d=[1,4,2,8];for(r=0,u=e.length;r<u;r++)e[r]._code=On(e[r],t);for(s=0;s<4;s++){for(c=d[s],o=[],r=0,i=(u=e.length)-1;r<u;i=r++)a=e[r],l=e[i],a._code&c?l._code&c||((p=Rn(l,a,c,t,n))._code=On(p,t),o.push(p)):(l._code&c&&((p=Rn(l,a,c,t,n))._code=On(p,t),o.push(p)),o.push(a));e=o}return e}var Mn={__proto__:null,clipPolygon:Nn},In={project:function(e){return new N(e.lng,e.lat)},unproject:function(e){return new B(e.y,e.x)},bounds:new F([-180,-90],[180,90])},Ln={R:6378137,R_MINOR:6356752.314245179,bounds:new F([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,n=this.R,o=e.lat*t,r=this.R_MINOR/n,i=Math.sqrt(1-r*r),s=i*Math.sin(o),a=Math.tan(Math.PI/4-o/2)/Math.pow((1-s)/(1+s),i/2);return o=-n*Math.log(Math.max(a,1e-10)),new N(e.lng*t*n,o)},unproject:function(e){for(var t,n=180/Math.PI,o=this.R,r=this.R_MINOR/o,i=Math.sqrt(1-r*r),s=Math.exp(-e.y/o),a=Math.PI/2-2*Math.atan(s),l=0,u=.1;l<15&&Math.abs(u)>1e-7;l++)t=i*Math.sin(a),t=Math.pow((1-t)/(1+t),i/2),a+=u=Math.PI/2-2*Math.atan(s*t)-a;return new B(a*n,e.x*n/o)}},Fn={__proto__:null,LonLat:In,Mercator:Ln,SphericalMercator:z},kn=n({},j,{code:"EPSG:3395",projection:Ln,transformation:function(){var e=.5/(Math.PI*Ln.R);return Y(e,.5,-e,.5)}()}),Gn=n({},j,{code:"EPSG:4326",projection:In,transformation:Y(1/180,1,-1/180,.5)}),Hn=n({},W,{projection:In,transformation:Y(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,o=t.lat-e.lat;return Math.sqrt(n*n+o*o)},infinite:!0});W.Earth=j,W.EPSG3395=kn,W.EPSG3857=K,W.EPSG900913=q,W.EPSG4326=Gn,W.Simple=Hn;var Bn=x.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[s(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[s(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once("remove",(function(){t.off(n,this)}),this)}this.onAdd(t),this.fire("add"),t.fire("layeradd",{layer:this})}}});$t.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var t=s(e);return this._layers[t]||(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this},removeLayer:function(e){var t=s(e);return this._layers[t]?(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return s(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){for(var t=0,n=(e=e?v(e)?e:[e]:[]).length;t<n;t++)this.addLayer(e[t])},_addZoomLimit:function(e){isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[s(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){var t=s(e);this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var e=1/0,t=-1/0,n=this._getZoomSpan();for(var o in this._zoomBoundLayers){var r=this._zoomBoundLayers[o].options;e=void 0===r.minZoom?e:Math.min(e,r.minZoom),t=void 0===r.maxZoom?t:Math.max(t,r.maxZoom)}this._layersMaxZoom=t===-1/0?void 0:t,this._layersMinZoom=e===1/0?void 0:e,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Vn=Bn.extend({initialize:function(e,t){var n,o;if(h(this,t),this._layers={},e)for(n=0,o=e.length;n<o;n++)this.addLayer(e[n])},addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){var t=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(e){return("number"===typeof e?e:this.getLayerId(e))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var t,n,o=Array.prototype.slice.call(arguments,1);for(t in this._layers)(n=this._layers[t])[e]&&n[e].apply(n,o);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:function(e){return s(e)}}),Wn=function(e,t){return new Vn(e,t)},jn=Vn.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),Vn.prototype.addLayer.call(this,e),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),e.removeEventParent(this),Vn.prototype.removeLayer.call(this,e),this.fire("layerremove",{layer:e})):this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e=new G;for(var t in this._layers){var n=this._layers[t];e.extend(n.getBounds?n.getBounds():n.getLatLng())}return e}}),Un=function(e,t){return new jn(e,t)},zn=P.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(e){h(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var n=this._getIconUrl(e);if(!n){if("icon"===e)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var o=this._createImg(n,t&&"IMG"===t.tagName?t:null);return this._setIconStyles(o,e),(this.options.crossOrigin||""===this.options.crossOrigin)&&(o.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),o},_setIconStyles:function(e,t){var n=this.options,o=n[t+"Size"];"number"===typeof o&&(o=[o,o]);var r=I(o),i=I("shadow"===t&&n.shadowAnchor||n.iconAnchor||r&&r.divideBy(2,!0));e.className="leaflet-marker-"+t+" "+(n.className||""),i&&(e.style.marginLeft=-i.x+"px",e.style.marginTop=-i.y+"px"),r&&(e.style.width=r.x+"px",e.style.height=r.y+"px")},_createImg:function(e,t){return(t=t||document.createElement("img")).src=e,t},_getIconUrl:function(e){return Ie.retina&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}});function Zn(e){return new zn(e)}var Yn=zn.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(e){return"string"!==typeof Yn.imagePath&&(Yn.imagePath=this._detectIconPath()),(this.options.imagePath||Yn.imagePath)+zn.prototype._getIconUrl.call(this,e)},_stripUrl:function(e){var t=function(e,t,n){var o=t.exec(e);return o&&o[n]};return(e=t(e,/^url\((['"])?(.+)\1\)$/,2))&&t(e,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var e=pt("div","leaflet-default-icon-path",document.body),t=ct(e,"background-image")||ct(e,"backgroundImage");if(document.body.removeChild(e),t=this._stripUrl(t))return t;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-"leaflet.css".length-1):""}}),Kn=hn.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new vn(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),vt(e,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&yt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var t=this._marker,n=t._map,o=this._marker.options.autoPanSpeed,r=this._marker.options.autoPanPadding,i=Ot(t._icon),s=n.getPixelBounds(),a=n.getPixelOrigin(),l=k(s.min._subtract(a).add(r),s.max._subtract(a).subtract(r));if(!l.contains(i)){var u=I((Math.max(l.max.x,i.x)-l.max.x)/(s.max.x-l.max.x)-(Math.min(l.min.x,i.x)-l.min.x)/(s.min.x-l.min.x),(Math.max(l.max.y,i.y)-l.max.y)/(s.max.y-l.max.y)-(Math.min(l.min.y,i.y)-l.min.y)/(s.min.y-l.min.y)).multiplyBy(o);n.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),Rt(t._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=R(this._adjustPan.bind(this,e))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(e){this._marker.options.autoPan&&(O(this._panRequest),this._panRequest=R(this._adjustPan.bind(this,e)))},_onDrag:function(e){var t=this._marker,n=t._shadow,o=Ot(t._icon),r=t._map.layerPointToLatLng(o);n&&Rt(n,o),t._latlng=r,e.latlng=r,e.oldLatLng=this._oldLatLng,t.fire("move",e).fire("drag",e)},_onDragEnd:function(e){O(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),qn=Bn.extend({options:{icon:new Yn,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(e,t){h(this,t),this._latlng=V(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(e){var t=this._latlng;return this._latlng=V(e),this.update(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},getIcon:function(){return this.options.icon},setIcon:function(e){return this.options.icon=e,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var e=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(e)}return this},_initIcon:function(){var e=this.options,t="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=e.icon.createIcon(this._icon),o=!1;n!==this._icon&&(this._icon&&this._removeIcon(),o=!0,e.title&&(n.title=e.title),"IMG"===n.tagName&&(n.alt=e.alt||"")),vt(n,t),e.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Lt(n,"focus",this._panOnFocus,this);var r=e.icon.createShadow(this._shadow),i=!1;r!==this._shadow&&(this._removeShadow(),i=!0),r&&(vt(r,t),r.alt=""),this._shadow=r,e.opacity<1&&this._updateOpacity(),o&&this.getPane().appendChild(this._icon),this._initInteraction(),r&&i&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&kt(this._icon,"focus",this._panOnFocus,this),dt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&dt(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&Rt(this._icon,e),this._shadow&&Rt(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(t)},_initInteraction:function(){if(this.options.interactive&&(vt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Kn)){var e=this.options.draggable;this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Kn(this),e&&this.dragging.enable()}},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&&_t(this._icon,e),this._shadow&&_t(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var e=this._map;if(e){var t=this.options.icon.options,n=t.iconSize?I(t.iconSize):I(0,0),o=t.iconAnchor?I(t.iconAnchor):I(0,0);e.panInside(this._latlng,{paddingTopLeft:o,paddingBottomRight:n.subtract(o)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Xn(e,t){return new qn(e,t)}var Qn=Bn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(e){this._renderer=e.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(e){return h(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Jn=Qn.extend({options:{fill:!0,radius:10},initialize:function(e,t){h(this,t),this._latlng=V(e),this._radius=this.options.radius},setLatLng:function(e){var t=this._latlng;return this._latlng=V(e),this.redraw(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var t=e&&e.radius||this._radius;return Qn.prototype.setStyle.call(this,e),this.setRadius(t),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,n=this._clickTolerance(),o=[e+n,t+n];this._pxBounds=new F(this._point.subtract(o),this._point.add(o))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function $n(e,t){return new Jn(e,t)}var eo=Jn.extend({initialize:function(e,t,o){if("number"===typeof t&&(t=n({},o,{radius:t})),h(this,t),this._latlng=V(e),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(e){return this._mRadius=e,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new G(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:Qn.prototype.setStyle,_project:function(){var e=this._latlng.lng,t=this._latlng.lat,n=this._map,o=n.options.crs;if(o.distance===j.distance){var r=Math.PI/180,i=this._mRadius/j.R/r,s=n.project([t+i,e]),a=n.project([t-i,e]),l=s.add(a).divideBy(2),u=n.unproject(l).lat,c=Math.acos((Math.cos(i*r)-Math.sin(t*r)*Math.sin(u*r))/(Math.cos(t*r)*Math.cos(u*r)))/r;(isNaN(c)||0===c)&&(c=i/Math.cos(Math.PI/180*t)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(c)?0:l.x-n.project([u,e-c]).x,this._radiusY=l.y-s.y}else{var p=o.unproject(o.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(p).x}this._updateBounds()}});function to(e,t,n){return new eo(e,t,n)}var no=Qn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,t){h(this,t),this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){for(var t,n,o=1/0,r=null,i=Pn,s=0,a=this._parts.length;s<a;s++)for(var l=this._parts[s],u=1,c=l.length;u<c;u++){var p=i(e,t=l[u-1],n=l[u],!0);p<o&&(o=p,r=i(e,t,n))}return r&&(r.distance=Math.sqrt(o)),r},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var e,t,n,o,r,i,s,a=this._rings[0],l=a.length;if(!l)return null;for(e=0,t=0;e<l-1;e++)t+=a[e].distanceTo(a[e+1])/2;if(0===t)return this._map.layerPointToLatLng(a[0]);for(e=0,o=0;e<l-1;e++)if(r=a[e],i=a[e+1],(o+=n=r.distanceTo(i))>t)return s=(o-t)/n,this._map.layerPointToLatLng([i.x-s*(i.x-r.x),i.y-s*(i.y-r.y)])},getBounds:function(){return this._bounds},addLatLng:function(e,t){return t=t||this._defaultShape(),e=V(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new G,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return An(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var t=[],n=An(e),o=0,r=e.length;o<r;o++)n?(t[o]=V(e[o]),this._bounds.extend(t[o])):t[o]=this._convertLatLngs(e[o]);return t},_project:function(){var e=new F;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=this._clickTolerance(),t=new N(e,e);this._rawPxBounds&&(this._pxBounds=new F([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs:function(e,t,n){var o,r,i=e[0]instanceof B,s=e.length;if(i){for(r=[],o=0;o<s;o++)r[o]=this._map.latLngToLayerPoint(e[o]),n.extend(r[o]);t.push(r)}else for(o=0;o<s;o++)this._projectLatlngs(e[o],t,n)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else{var t,n,o,r,i,s,a,l=this._parts;for(t=0,o=0,r=this._rings.length;t<r;t++)for(n=0,i=(a=this._rings[t]).length;n<i-1;n++)(s=Sn(a[n],a[n+1],e,n,!0))&&(l[o]=l[o]||[],l[o].push(s[0]),s[1]===a[n+1]&&n!==i-2||(l[o].push(s[1]),o++))}},_simplifyPoints:function(){for(var e=this._parts,t=this.options.smoothFactor,n=0,o=e.length;n<o;n++)e[n]=yn(e[n],t)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,t){var n,o,r,i,s,a,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(n=0,i=this._parts.length;n<i;n++)for(o=0,r=(s=(a=this._parts[n]).length)-1;o<s;r=o++)if((t||0!==o)&&Cn(e,a[r],a[o])<=l)return!0;return!1}});function oo(e,t){return new no(e,t)}no._flat=Dn;var ro=no.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var e,t,n,o,r,i,s,a,l,u=this._rings[0],c=u.length;if(!c)return null;for(i=s=a=0,e=0,t=c-1;e<c;t=e++)n=u[e],o=u[t],r=n.y*o.x-o.y*n.x,s+=(n.x+o.x)*r,a+=(n.y+o.y)*r,i+=3*r;return l=0===i?u[0]:[s/i,a/i],this._map.layerPointToLatLng(l)},_convertLatLngs:function(e){var t=no.prototype._convertLatLngs.call(this,e),n=t.length;return n>=2&&t[0]instanceof B&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){no.prototype._setLatLngs.call(this,e),An(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return An(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,n=new N(t,t);if(e=new F(e.min.subtract(n),e.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var o,r=0,i=this._rings.length;r<i;r++)(o=Nn(this._rings[r],e,!0)).length&&this._parts.push(o)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var t,n,o,r,i,s,a,l,u=!1;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(r=0,a=this._parts.length;r<a;r++)for(i=0,s=(l=(t=this._parts[r]).length)-1;i<l;s=i++)n=t[i],o=t[s],n.y>e.y!==o.y>e.y&&e.x<(o.x-n.x)*(e.y-n.y)/(o.y-n.y)+n.x&&(u=!u);return u||no.prototype._containsPoint.call(this,e,!0)}});function io(e,t){return new ro(e,t)}var so=jn.extend({initialize:function(e,t){h(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,n,o,r=v(e)?e:e.features;if(r){for(t=0,n=r.length;t<n;t++)((o=r[t]).geometries||o.geometry||o.features||o.coordinates)&&this.addData(o);return this}var i=this.options;if(i.filter&&!i.filter(e))return this;var s=ao(e,i);return s?(s.feature=go(e),s.defaultOptions=s.options,this.resetStyle(s),i.onEachFeature&&i.onEachFeature(e,s),this.addLayer(s)):this},resetStyle:function(e){return void 0===e?this.eachLayer(this.resetStyle,this):(e.options=n({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},setStyle:function(e){return this.eachLayer((function(t){this._setLayerStyle(t,e)}),this)},_setLayerStyle:function(e,t){e.setStyle&&("function"===typeof t&&(t=t(e.feature)),e.setStyle(t))}});function ao(e,t){var n,o,r,i,s="Feature"===e.type?e.geometry:e,a=s?s.coordinates:null,l=[],u=t&&t.pointToLayer,c=t&&t.coordsToLatLng||uo;if(!a&&!s)return null;switch(s.type){case"Point":return lo(u,e,n=c(a),t);case"MultiPoint":for(r=0,i=a.length;r<i;r++)n=c(a[r]),l.push(lo(u,e,n,t));return new jn(l);case"LineString":case"MultiLineString":return o=co(a,"LineString"===s.type?0:1,c),new no(o,t);case"Polygon":case"MultiPolygon":return o=co(a,"Polygon"===s.type?1:2,c),new ro(o,t);case"GeometryCollection":for(r=0,i=s.geometries.length;r<i;r++){var p=ao({geometry:s.geometries[r],type:"Feature",properties:e.properties},t);p&&l.push(p)}return new jn(l);default:throw new Error("Invalid GeoJSON object.")}}function lo(e,t,n,o){return e?e(t,n):new qn(n,o&&o.markersInheritOptions&&o)}function uo(e){return new B(e[1],e[0],e[2])}function co(e,t,n){for(var o,r=[],i=0,s=e.length;i<s;i++)o=t?co(e[i],t-1,n):(n||uo)(e[i]),r.push(o);return r}function po(e,t){return void 0!==(e=V(e)).alt?[c(e.lng,t),c(e.lat,t),c(e.alt,t)]:[c(e.lng,t),c(e.lat,t)]}function ho(e,t,n,o){for(var r=[],i=0,s=e.length;i<s;i++)r.push(t?ho(e[i],t-1,n,o):po(e[i],o));return!t&&n&&r.push(r[0]),r}function fo(e,t){return e.feature?n({},e.feature,{geometry:t}):go(t)}function go(e){return"Feature"===e.type||"FeatureCollection"===e.type?e:{type:"Feature",properties:{},geometry:e}}var mo={toGeoJSON:function(e){return fo(this,{type:"Point",coordinates:po(this.getLatLng(),e)})}};function vo(e,t){return new so(e,t)}qn.include(mo),eo.include(mo),Jn.include(mo),no.include({toGeoJSON:function(e){var t=!An(this._latlngs);return fo(this,{type:(t?"Multi":"")+"LineString",coordinates:ho(this._latlngs,t?1:0,!1,e)})}}),ro.include({toGeoJSON:function(e){var t=!An(this._latlngs),n=t&&!An(this._latlngs[0]),o=ho(this._latlngs,n?2:t?1:0,!0,e);return t||(o=[o]),fo(this,{type:(n?"Multi":"")+"Polygon",coordinates:o})}}),Vn.include({toMultiPoint:function(e){var t=[];return this.eachLayer((function(n){t.push(n.toGeoJSON(e).geometry.coordinates)})),fo(this,{type:"MultiPoint",coordinates:t})},toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===t)return this.toMultiPoint(e);var n="GeometryCollection"===t,o=[];return this.eachLayer((function(t){if(t.toGeoJSON){var r=t.toGeoJSON(e);if(n)o.push(r.geometry);else{var i=go(r);"FeatureCollection"===i.type?o.push.apply(o,i.features):o.push(i)}}})),n?fo(this,{geometries:o,type:"GeometryCollection"}):{type:"FeatureCollection",features:o}}});var yo=vo,Co=Bn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,t,n){this._url=e,this._bounds=H(t),h(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(vt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){dt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&ft(this._image),this},bringToBack:function(){return this._map&&gt(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=H(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e="IMG"===this._url.tagName,t=this._image=e?this._url:pt("img");vt(t,"leaflet-image-layer"),this._zoomAnimated&&vt(t,"leaflet-zoom-animated"),this.options.className&&vt(t,this.options.className),t.onselectstart=u,t.onmousemove=u,t.onload=r(this.fire,this,"load"),t.onerror=r(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(t.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e?this._url=t.src:(t.src=this._url,t.alt=this.options.alt)},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;St(this._image,n,t)},_reset:function(){var e=this._image,t=new F(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=t.getSize();Rt(e,t.min),e.style.width=n.x+"px",e.style.height=n.y+"px"},_updateOpacity:function(){_t(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),wo=function(e,t,n){return new Co(e,t,n)},_o=Co.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e="VIDEO"===this._url.tagName,t=this._image=e?this._url:pt("video");if(vt(t,"leaflet-image-layer"),this._zoomAnimated&&vt(t,"leaflet-zoom-animated"),this.options.className&&vt(t,this.options.className),t.onselectstart=u,t.onmousemove=u,t.onloadeddata=r(this.fire,this,"load"),e){for(var n=t.getElementsByTagName("source"),o=[],i=0;i<n.length;i++)o.push(n[i].src);this._url=n.length>0?o:[t.src]}else{v(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,"objectFit")&&(t.style.objectFit="fill"),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted,t.playsInline=!!this.options.playsInline;for(var s=0;s<this._url.length;s++){var a=pt("source");a.src=this._url[s],t.appendChild(a)}}}});function bo(e,t,n){return new _o(e,t,n)}var Eo=Co.extend({_initImage:function(){var e=this._image=this._url;vt(e,"leaflet-image-layer"),this._zoomAnimated&&vt(e,"leaflet-zoom-animated"),this.options.className&&vt(e,this.options.className),e.onselectstart=u,e.onmousemove=u}});function So(e,t,n){return new Eo(e,t,n)}var Ro=Bn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0},initialize:function(e,t){h(this,e),this._source=t},openOn:function(e){return(e=arguments.length?e:this._source._map).hasLayer(this)||e.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(e){return this._map?this.close():(arguments.length?this._source=e:e=this._source,this._prepareOpen(),this.openOn(e._map)),this},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&_t(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&_t(this._container,1),this.bringToFront(),this.options.interactive&&(vt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(e){e._fadeAnimated?(_t(this._container,0),this._removeTimeout=setTimeout(r(dt,void 0,this._container),200)):dt(this._container),this.options.interactive&&(yt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=V(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ft(this._container),this},bringToBack:function(){return this._map&&gt(this._container),this},_prepareOpen:function(e){var t=this._source;if(!t._map)return!1;if(t instanceof jn){t=null;var n=this._source._layers;for(var o in n)if(n[o]._map){t=n[o];break}if(!t)return!1;this._source=t}if(!e)if(t.getCenter)e=t.getCenter();else if(t.getLatLng)e=t.getLatLng();else{if(!t.getBounds)throw new Error("Unable to get source layer LatLng.");e=t.getBounds().getCenter()}return this.setLatLng(e),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var e=this._contentNode,t="function"===typeof this._content?this._content(this._source||this):this._content;if("string"===typeof t)e.innerHTML=t;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(t)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),t=I(this.options.offset),n=this._getAnchor();this._zoomAnimated?Rt(this._container,e.add(n)):t=t.add(e).add(n);var o=this._containerBottom=-t.y,r=this._containerLeft=-Math.round(this._containerWidth/2)+t.x;this._container.style.bottom=o+"px",this._container.style.left=r+"px"}},_getAnchor:function(){return[0,0]}});$t.include({_initOverlay:function(e,t,n,o){var r=t;return r instanceof e||(r=new e(o).setContent(t)),n&&r.setLatLng(n),r}}),Bn.include({_initOverlay:function(e,t,n,o){var r=n;return r instanceof e?(h(r,o),r._source=this):(r=t&&!o?t:new e(o,this)).setContent(n),r}});var Oo=Ro.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(e){return!(e=arguments.length?e:this._source._map).hasLayer(this)&&e._popup&&e._popup.options.autoClose&&e.removeLayer(e._popup),e._popup=this,Ro.prototype.openOn.call(this,e)},onAdd:function(e){Ro.prototype.onAdd.call(this,e),e.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Qn||this._source.on("preclick",Wt))},onRemove:function(e){Ro.prototype.onRemove.call(this,e),e.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Qn||this._source.off("preclick",Wt))},getEvents:function(){var e=Ro.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this.close),this.options.keepInView&&(e.moveend=this._adjustPan),e},_initLayout:function(){var e="leaflet-popup",t=this._container=pt("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=pt("div",e+"-content-wrapper",t);if(this._contentNode=pt("div",e+"-content",n),Ut(t),jt(this._contentNode),Lt(t,"contextmenu",Wt),this._tipContainer=pt("div",e+"-tip-container",t),this._tip=pt("div",e+"-tip",this._tipContainer),this.options.closeButton){var o=this._closeButton=pt("a",e+"-close-button",t);o.setAttribute("role","button"),o.setAttribute("aria-label","Close popup"),o.href="#close",o.innerHTML='<span aria-hidden="true">&#215;</span>',Lt(o,"click",this.close,this)}},_updateLayout:function(){var e=this._contentNode,t=e.style;t.width="",t.whiteSpace="nowrap";var n=e.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),t.width=n+1+"px",t.whiteSpace="",t.height="";var o=e.offsetHeight,r=this.options.maxHeight,i="leaflet-popup-scrolled";r&&o>r?(t.height=r+"px",vt(e,i)):yt(e,i),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),n=this._getAnchor();Rt(this._container,t.add(n))},_adjustPan:function(e){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,n=parseInt(ct(this._container,"marginBottom"),10)||0,o=this._container.offsetHeight+n,r=this._containerWidth,i=new N(this._containerLeft,-o-this._containerBottom);i._add(Ot(this._container));var s=t.layerPointToContainerPoint(i),a=I(this.options.autoPanPadding),l=I(this.options.autoPanPaddingTopLeft||a),u=I(this.options.autoPanPaddingBottomRight||a),c=t.getSize(),p=0,d=0;s.x+r+u.x>c.x&&(p=s.x+r-c.x+u.x),s.x-p-l.x<0&&(p=s.x-l.x),s.y+o+u.y>c.y&&(d=s.y+o-c.y+u.y),s.y-d-l.y<0&&(d=s.y-l.y),(p||d)&&t.fire("autopanstart").panBy([p,d],{animate:e&&"moveend"===e.type})}},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),To=function(e,t){return new Oo(e,t)};$t.mergeOptions({closePopupOnClick:!0}),$t.include({openPopup:function(e,t,n){return this._initOverlay(Oo,e,t,n).openOn(this),this},closePopup:function(e){return(e=arguments.length?e:this._popup)&&e.close(),this}}),Bn.include({bindPopup:function(e,t){return this._popup=this._initOverlay(Oo,this._popup,e,t),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(e){return this._popup&&this._popup._prepareOpen(e)&&this._popup.openOn(this._map),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){if(this._popup&&this._map){Zt(e);var t=e.layer||e.target;this._popup._source!==t||t instanceof Qn?(this._popup._source=t,this.openPopup(e.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}});var Po=Ro.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){Ro.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(e){Ro.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var e=Ro.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=pt("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,n,o=this._map,r=this._container,i=o.latLngToContainerPoint(o.getCenter()),s=o.layerPointToContainerPoint(e),a=this.options.direction,l=r.offsetWidth,u=r.offsetHeight,c=I(this.options.offset),p=this._getAnchor();"top"===a?(t=l/2,n=u):"bottom"===a?(t=l/2,n=0):"center"===a?(t=l/2,n=u/2):"right"===a?(t=0,n=u/2):"left"===a?(t=l,n=u/2):s.x<i.x?(a="right",t=0,n=u/2):(a="left",t=l+2*(c.x+p.x),n=u/2),e=e.subtract(I(t,n,!0)).add(c).add(p),yt(r,"leaflet-tooltip-right"),yt(r,"leaflet-tooltip-left"),yt(r,"leaflet-tooltip-top"),yt(r,"leaflet-tooltip-bottom"),vt(r,"leaflet-tooltip-"+a),Rt(r,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&_t(this._container,e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(t)},_getAnchor:function(){return I(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Ao=function(e,t){return new Po(e,t)};$t.include({openTooltip:function(e,t,n){return this._initOverlay(Po,e,t,n).openOn(this),this},closeTooltip:function(e){return e.close(),this}}),Bn.include({bindTooltip:function(e,t){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Po,this._tooltip,e,t),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(e){if(e||!this._tooltipHandlersAdded){var t=e?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[t](n),this._tooltipHandlersAdded=!e}},openTooltip:function(e){return this._tooltip&&this._tooltip._prepareOpen(e)&&this._tooltip.openOn(this._map),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(e){return this._tooltip&&this._tooltip.setContent(e),this},getTooltip:function(){return this._tooltip},_openTooltip:function(e){!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()||(this._tooltip._source=e.layer||e.target,this.openTooltip(this._tooltip.options.sticky?e.latlng:void 0))},_moveTooltip:function(e){var t,n,o=e.latlng;this._tooltip.options.sticky&&e.originalEvent&&(t=this._map.mouseEventToContainerPoint(e.originalEvent),n=this._map.containerPointToLayerPoint(t),o=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(o)}});var Do=zn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){var t=e&&"DIV"===e.tagName?e:document.createElement("div"),n=this.options;if(n.html instanceof Element?(ht(t),t.appendChild(n.html)):t.innerHTML=!1!==n.html?n.html:"",n.bgPos){var o=I(n.bgPos);t.style.backgroundPosition=-o.x+"px "+-o.y+"px"}return this._setIconStyles(t,"icon"),t},createShadow:function(){return null}});function xo(e){return new Do(e)}zn.Default=Yn;var No=Bn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Ie.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(e){h(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),dt(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ft(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(gt(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var e=this._clampZoom(this._map.getZoom());e!==this._tileZoom&&(this._tileZoom=e,this._updateLevels()),this._update()}return this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=a(this._onMoveEnd,this.options.updateInterval,this)),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},createTile:function(){return document.createElement("div")},getTileSize:function(){var e=this.options.tileSize;return e instanceof N?e:new N(e,e)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var t,n=this.getPane().children,o=-e(-1/0,1/0),r=0,i=n.length;r<i;r++)t=n[r].style.zIndex,n[r]!==this._container&&t&&(o=e(o,+t));isFinite(o)&&(this.options.zIndex=o+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Ie.ielt9){_t(this._container,this.options.opacity);var e=+new Date,t=!1,n=!1;for(var o in this._tiles){var r=this._tiles[o];if(r.current&&r.loaded){var i=Math.min(1,(e-r.loaded)/200);_t(r.el,i),i<1?t=!0:(r.active?n=!0:this._onOpaqueTile(r),r.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),t&&(O(this._fadeFrame),this._fadeFrame=R(this._updateOpacity,this))}},_onOpaqueTile:u,_initContainer:function(){this._container||(this._container=pt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,t=this.options.maxZoom;if(void 0!==e){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===e?(this._levels[n].el.style.zIndex=t-Math.abs(e-n),this._onUpdateLevel(n)):(dt(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var o=this._levels[e],r=this._map;return o||((o=this._levels[e]={}).el=pt("div","leaflet-tile-container leaflet-zoom-animated",this._container),o.el.style.zIndex=t,o.origin=r.project(r.unproject(r.getPixelOrigin()),e).round(),o.zoom=e,this._setZoomTransform(o,r.getCenter(),r.getZoom()),u(o.el.offsetWidth),this._onCreateLevel(o)),this._level=o,o}},_onUpdateLevel:u,_onRemoveLevel:u,_onCreateLevel:u,_pruneTiles:function(){if(this._map){var e,t,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(e in this._tiles)(t=this._tiles[e]).retain=t.current;for(e in this._tiles)if((t=this._tiles[e]).current&&!t.active){var o=t.coords;this._retainParent(o.x,o.y,o.z,o.z-5)||this._retainChildren(o.x,o.y,o.z,o.z+2)}for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}}},_removeTilesAtZoom:function(e){for(var t in this._tiles)this._tiles[t].coords.z===e&&this._removeTile(t)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)dt(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,t,n,o){var r=Math.floor(e/2),i=Math.floor(t/2),s=n-1,a=new N(+r,+i);a.z=+s;var l=this._tileCoordsToKey(a),u=this._tiles[l];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),s>o&&this._retainParent(r,i,s,o))},_retainChildren:function(e,t,n,o){for(var r=2*e;r<2*e+2;r++)for(var i=2*t;i<2*t+2;i++){var s=new N(r,i);s.z=n+1;var a=this._tileCoordsToKey(s),l=this._tiles[a];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<o&&this._retainChildren(r,i,n+1,o))}},_resetView:function(e){var t=e&&(e.pinch||e.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var t=this.options;return void 0!==t.minNativeZoom&&e<t.minNativeZoom?t.minNativeZoom:void 0!==t.maxNativeZoom&&t.maxNativeZoom<e?t.maxNativeZoom:e},_setView:function(e,t,n,o){var r=Math.round(t);r=void 0!==this.options.maxZoom&&r>this.options.maxZoom||void 0!==this.options.minZoom&&r<this.options.minZoom?void 0:this._clampZoom(r);var i=this.options.updateWhenZooming&&r!==this._tileZoom;o&&!i||(this._tileZoom=r,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==r&&this._update(e),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(e,t)},_setZoomTransforms:function(e,t){for(var n in this._levels)this._setZoomTransform(this._levels[n],e,t)},_setZoomTransform:function(e,t,n){var o=this._map.getZoomScale(n,e.zoom),r=e.origin.multiplyBy(o).subtract(this._map._getNewPixelOrigin(t,n)).round();Ie.any3d?St(e.el,r,o):Rt(e.el,r)},_resetGrid:function(){var e=this._map,t=e.options.crs,n=this._tileSize=this.getTileSize(),o=this._tileZoom,r=this._map.getPixelWorldBounds(this._tileZoom);r&&(this._globalTileRange=this._pxBoundsToTileRange(r)),this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,t.wrapLng[0]],o).x/n.x),Math.ceil(e.project([0,t.wrapLng[1]],o).x/n.y)],this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([t.wrapLat[0],0],o).y/n.x),Math.ceil(e.project([t.wrapLat[1],0],o).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(e){var t=this._map,n=t._animatingZoom?Math.max(t._animateToZoom,t.getZoom()):t.getZoom(),o=t.getZoomScale(n,this._tileZoom),r=t.project(e,this._tileZoom).floor(),i=t.getSize().divideBy(2*o);return new F(r.subtract(i),r.add(i))},_update:function(e){var t=this._map;if(t){var n=this._clampZoom(t.getZoom());if(void 0===e&&(e=t.getCenter()),void 0!==this._tileZoom){var o=this._getTiledPixelBounds(e),r=this._pxBoundsToTileRange(o),i=r.getCenter(),s=[],a=this.options.keepBuffer,l=new F(r.getBottomLeft().subtract([a,-a]),r.getTopRight().add([a,-a]));if(!(isFinite(r.min.x)&&isFinite(r.min.y)&&isFinite(r.max.x)&&isFinite(r.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var c=this._tiles[u].coords;c.z===this._tileZoom&&l.contains(new N(c.x,c.y))||(this._tiles[u].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(e,n);else{for(var p=r.min.y;p<=r.max.y;p++)for(var d=r.min.x;d<=r.max.x;d++){var h=new N(d,p);if(h.z=this._tileZoom,this._isValidTile(h)){var f=this._tiles[this._tileCoordsToKey(h)];f?f.current=!0:s.push(h)}}if(s.sort((function(e,t){return e.distanceTo(i)-t.distanceTo(i)})),0!==s.length){this._loading||(this._loading=!0,this.fire("loading"));var g=document.createDocumentFragment();for(d=0;d<s.length;d++)this._addTile(s[d],g);this._level.el.appendChild(g)}}}}},_isValidTile:function(e){var t=this._map.options.crs;if(!t.infinite){var n=this._globalTileRange;if(!t.wrapLng&&(e.x<n.min.x||e.x>n.max.x)||!t.wrapLat&&(e.y<n.min.y||e.y>n.max.y))return!1}if(!this.options.bounds)return!0;var o=this._tileCoordsToBounds(e);return H(this.options.bounds).overlaps(o)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,n=this.getTileSize(),o=e.scaleBy(n),r=o.add(n);return[t.unproject(o,e.z),t.unproject(r,e.z)]},_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),n=new G(t[0],t[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var t=e.split(":"),n=new N(+t[0],+t[1]);return n.z=+t[2],n},_removeTile:function(e){var t=this._tiles[e];t&&(dt(t.el),delete this._tiles[e],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){vt(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=u,e.onmousemove=u,Ie.ielt9&&this.options.opacity<1&&_t(e,this.options.opacity)},_addTile:function(e,t){var n=this._getTilePos(e),o=this._tileCoordsToKey(e),i=this.createTile(this._wrapCoords(e),r(this._tileReady,this,e));this._initTile(i),this.createTile.length<2&&R(r(this._tileReady,this,e,null,i)),Rt(i,n),this._tiles[o]={el:i,coords:e,current:!0},t.appendChild(i),this.fire("tileloadstart",{tile:i,coords:e})},_tileReady:function(e,t,n){t&&this.fire("tileerror",{error:t,tile:n,coords:e});var o=this._tileCoordsToKey(e);(n=this._tiles[o])&&(n.loaded=+new Date,this._map._fadeAnimated?(_t(n.el,0),O(this._fadeFrame),this._fadeFrame=R(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),t||(vt(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ie.ielt9||!this._map._fadeAnimated?R(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new N(this._wrapX?l(e.x,this._wrapX):e.x,this._wrapY?l(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new F(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}});function Mo(e){return new No(e)}var Io=No.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,t){this._url=e,(t=h(this,t)).detectRetina&&Ie.retina&&t.maxZoom>0&&(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom++):(t.zoomOffset++,t.maxZoom--),t.minZoom=Math.max(0,t.minZoom)),"string"===typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(e,t){return this._url===e&&void 0===t&&(t=!0),this._url=e,t||this.redraw(),this},createTile:function(e,t){var n=document.createElement("img");return Lt(n,"load",r(this._tileOnLoad,this,t,n)),Lt(n,"error",r(this._tileOnError,this,t,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"===typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(e),n},getTileUrl:function(e){var t={r:Ie.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var o=this._globalTileRange.max.y-e.y;this.options.tms&&(t.y=o),t["-y"]=o}return m(this._url,n(t,this.options))},_tileOnLoad:function(e,t){Ie.ielt9?setTimeout(r(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,n){var o=this.options.errorTileUrl;o&&t.getAttribute("src")!==o&&(t.src=o),e(n,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom;return this.options.zoomReverse&&(e=t-e),e+this.options.zoomOffset},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var e,t;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&((t=this._tiles[e].el).onload=u,t.onerror=u,!t.complete)){t.src=C;var n=this._tiles[e].coords;dt(t),delete this._tiles[e],this.fire("tileabort",{tile:t,coords:n})}},_removeTile:function(e){var t=this._tiles[e];if(t)return t.el.setAttribute("src",C),No.prototype._removeTile.call(this,e)},_tileReady:function(e,t,n){if(this._map&&(!n||n.getAttribute("src")!==C))return No.prototype._tileReady.call(this,e,t,n)}});function Lo(e,t){return new Io(e,t)}var Fo=Io.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,t){this._url=e;var o=n({},this.defaultWmsParams);for(var r in t)r in this.options||(o[r]=t[r]);var i=(t=h(this,t)).detectRetina&&Ie.retina?2:1,s=this.getTileSize();o.width=s.x*i,o.height=s.y*i,this.wmsParams=o},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,Io.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),n=this._crs,o=k(n.project(t[0]),n.project(t[1])),r=o.min,i=o.max,s=(this._wmsVersion>=1.3&&this._crs===Gn?[r.y,r.x,i.y,i.x]:[r.x,r.y,i.x,i.y]).join(","),a=Io.prototype.getTileUrl.call(this,e);return a+f(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+s},setParams:function(e,t){return n(this.wmsParams,e),t||this.redraw(),this}});function ko(e,t){return new Fo(e,t)}Io.WMS=Fo,Lo.wms=ko;var Go=Bn.extend({options:{padding:.1},initialize:function(e){h(this,e),s(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&vt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var n=this._map.getZoomScale(t,this._zoom),o=this._map.getSize().multiplyBy(.5+this.options.padding),r=this._map.project(this._center,t),i=o.multiplyBy(-n).add(r).subtract(this._map._getNewPixelOrigin(e,t));Ie.any3d?St(this._container,i,n):Rt(this._container,i)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,t=this._map.getSize(),n=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new F(n,n.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Ho=Go.extend({options:{tolerance:0},getEvents:function(){var e=Go.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Go.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");Lt(e,"mousemove",this._onMouseMove,this),Lt(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Lt(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){O(this._redrawRequest),delete this._ctx,dt(this._container),kt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Go.prototype._update.call(this);var e=this._bounds,t=this._container,n=e.getSize(),o=Ie.retina?2:1;Rt(t,e.min),t.width=o*n.x,t.height=o*n.y,t.style.width=n.x+"px",t.style.height=n.y+"px",Ie.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){Go.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[s(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,n=t.next,o=t.prev;n?n.prev=o:this._drawLast=o,o?o.next=n:this._drawFirst=n,delete e._order,delete this._layers[s(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if("string"===typeof e.options.dashArray){var t,n,o=e.options.dashArray.split(/[, ]+/),r=[];for(n=0;n<o.length;n++){if(t=Number(o[n]),isNaN(t))return;r.push(t)}e.options._dashArray=r}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||R(this._redraw,this))},_extendRedrawBounds:function(e){if(e._pxBounds){var t=(e.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new F,this._redrawBounds.extend(e._pxBounds.min.subtract([t,t])),this._redrawBounds.extend(e._pxBounds.max.add([t,t]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var e=this._redrawBounds;if(e){var t=e.getSize();this._ctx.clearRect(e.min.x,e.min.y,t.x,t.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var e,t=this._redrawBounds;if(this._ctx.save(),t){var n=t.getSize();this._ctx.beginPath(),this._ctx.rect(t.min.x,t.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var o=this._drawFirst;o;o=o.next)e=o.layer,(!t||e._pxBounds&&e._pxBounds.intersects(t))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,t){if(this._drawing){var n,o,r,i,s=e._parts,a=s.length,l=this._ctx;if(a){for(l.beginPath(),n=0;n<a;n++){for(o=0,r=s[n].length;o<r;o++)i=s[n][o],l[o?"lineTo":"moveTo"](i.x,i.y);t&&l.closePath()}this._fillStroke(l,e)}}},_updateCircle:function(e){if(this._drawing&&!e._empty()){var t=e._point,n=this._ctx,o=Math.max(Math.round(e._radius),1),r=(Math.max(Math.round(e._radiusY),1)||o)/o;1!==r&&(n.save(),n.scale(1,r)),n.beginPath(),n.arc(t.x,t.y/r,o,0,2*Math.PI,!1),1!==r&&n.restore(),this._fillStroke(n,e)}},_fillStroke:function(e,t){var n=t.options;n.fill&&(e.globalAlpha=n.fillOpacity,e.fillStyle=n.fillColor||n.color,e.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(e.setLineDash&&e.setLineDash(t.options&&t.options._dashArray||[]),e.globalAlpha=n.opacity,e.lineWidth=n.weight,e.strokeStyle=n.color,e.lineCap=n.lineCap,e.lineJoin=n.lineJoin,e.stroke())},_onClick:function(e){for(var t,n,o=this._map.mouseEventToLayerPoint(e),r=this._drawFirst;r;r=r.next)(t=r.layer).options.interactive&&t._containsPoint(o)&&("click"!==e.type&&"preclick"!==e.type||!this._map._draggableMoved(t))&&(n=t);this._fireEvent(!!n&&[n],e)},_onMouseMove:function(e){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var t=this._map.mouseEventToLayerPoint(e);this._handleMouseHover(e,t)}},_handleMouseOut:function(e){var t=this._hoveredLayer;t&&(yt(this._container,"leaflet-interactive"),this._fireEvent([t],e,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,t){if(!this._mouseHoverThrottled){for(var n,o,i=this._drawFirst;i;i=i.next)(n=i.layer).options.interactive&&n._containsPoint(t)&&(o=n);o!==this._hoveredLayer&&(this._handleMouseOut(e),o&&(vt(this._container,"leaflet-interactive"),this._fireEvent([o],e,"mouseover"),this._hoveredLayer=o)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],e),this._mouseHoverThrottled=!0,setTimeout(r((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(e,t,n){this._map._fireDOMEvent(t,n||t.type,e)},_bringToFront:function(e){var t=e._order;if(t){var n=t.next,o=t.prev;n&&(n.prev=o,o?o.next=n:n&&(this._drawFirst=n),t.prev=this._drawLast,this._drawLast.next=t,t.next=null,this._drawLast=t,this._requestRedraw(e))}},_bringToBack:function(e){var t=e._order;if(t){var n=t.next,o=t.prev;o&&(o.next=n,n?n.prev=o:o&&(this._drawLast=o),t.prev=null,t.next=this._drawFirst,this._drawFirst.prev=t,this._drawFirst=t,this._requestRedraw(e))}}});function Bo(e){return Ie.canvas?new Ho(e):null}var Vo=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch(e){}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Wo={_initContainer:function(){this._container=pt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Go.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=Vo("shape");vt(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=Vo("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[s(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;dt(t),e.removeInteractiveTarget(t),delete this._layers[s(e)]},_updateStyle:function(e){var t=e._stroke,n=e._fill,o=e.options,r=e._container;r.stroked=!!o.stroke,r.filled=!!o.fill,o.stroke?(t||(t=e._stroke=Vo("stroke")),r.appendChild(t),t.weight=o.weight+"px",t.color=o.color,t.opacity=o.opacity,o.dashArray?t.dashStyle=v(o.dashArray)?o.dashArray.join(" "):o.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=o.lineCap.replace("butt","flat"),t.joinstyle=o.lineJoin):t&&(r.removeChild(t),e._stroke=null),o.fill?(n||(n=e._fill=Vo("fill")),r.appendChild(n),n.color=o.fillColor||o.color,n.opacity=o.fillOpacity):n&&(r.removeChild(n),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),n=Math.round(e._radius),o=Math.round(e._radiusY||n);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+n+","+o+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){ft(e._container)},_bringToBack:function(e){gt(e._container)}},jo=Ie.vml?Vo:X,Uo=Go.extend({_initContainer:function(){this._container=jo("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=jo("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){dt(this._container),kt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Go.prototype._update.call(this);var e=this._bounds,t=e.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,n.setAttribute("width",t.x),n.setAttribute("height",t.y)),Rt(n,e.min),n.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update")}},_initPath:function(e){var t=e._path=jo("path");e.options.className&&vt(t,e.options.className),e.options.interactive&&vt(t,"leaflet-interactive"),this._updateStyle(e),this._layers[s(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){dt(e._path),e.removeInteractiveTarget(e._path),delete this._layers[s(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,n=e.options;t&&(n.stroke?(t.setAttribute("stroke",n.color),t.setAttribute("stroke-opacity",n.opacity),t.setAttribute("stroke-width",n.weight),t.setAttribute("stroke-linecap",n.lineCap),t.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?t.setAttribute("stroke-dasharray",n.dashArray):t.removeAttribute("stroke-dasharray"),n.dashOffset?t.setAttribute("stroke-dashoffset",n.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),n.fill?(t.setAttribute("fill",n.fillColor||n.color),t.setAttribute("fill-opacity",n.fillOpacity),t.setAttribute("fill-rule",n.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,Q(e._parts,t))},_updateCircle:function(e){var t=e._point,n=Math.max(Math.round(e._radius),1),o="a"+n+","+(Math.max(Math.round(e._radiusY),1)||n)+" 0 1,0 ",r=e._empty()?"M0 0":"M"+(t.x-n)+","+t.y+o+2*n+",0 "+o+2*-n+",0 ";this._setPath(e,r)},_setPath:function(e,t){e._path.setAttribute("d",t)},_bringToFront:function(e){ft(e._path)},_bringToBack:function(e){gt(e._path)}});function zo(e){return Ie.svg||Ie.vml?new Uo(e):null}Ie.vml&&Uo.include(Wo),$t.include({getRenderer:function(e){var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return t||(t=this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(e){if("overlayPane"===e||void 0===e)return!1;var t=this._paneRenderers[e];return void 0===t&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){return this.options.preferCanvas&&Bo(e)||zo(e)}});var Zo=ro.extend({initialize:function(e,t){ro.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return[(e=H(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});function Yo(e,t){return new Zo(e,t)}Uo.create=jo,Uo.pointsToPath=Q,so.geometryToLayer=ao,so.coordsToLatLng=uo,so.coordsToLatLngs=co,so.latLngToCoords=po,so.latLngsToCoords=ho,so.getFeature=fo,so.asFeature=go,$t.mergeOptions({boxZoom:!0});var Ko=hn.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){Lt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){kt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){dt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;this._clearDeferredResetState(),this._resetState(),tt(),Pt(),this._startPoint=this._map.mouseEventToContainerPoint(e),Lt(document,{contextmenu:Zt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=pt("div","leaflet-zoom-box",this._container),vt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=new F(this._point,this._startPoint),n=t.getSize();Rt(this._box,t.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(dt(this._box),yt(this._container,"leaflet-crosshair")),nt(),At(),kt(document,{contextmenu:Zt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if((1===e.which||1===e.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(r(this._resetState,this),0);var t=new G(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})}},_onKeyDown:function(e){27===e.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});$t.addInitHook("addHandler","boxZoom",Ko),$t.mergeOptions({doubleClickZoom:!0});var qo=hn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom(),o=t.options.zoomDelta,r=e.originalEvent.shiftKey?n-o:n+o;"center"===t.options.doubleClickZoom?t.setZoom(r):t.setZoomAround(e.containerPoint,r)}});$t.addInitHook("addHandler","doubleClickZoom",qo),$t.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Xo=hn.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new vn(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}vt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){yt(this._map._container,"leaflet-grab"),yt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=H(this._map.options.maxBounds);this._offsetLimit=k(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(t),this._prunePositions(t)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;e.x<t.min.x&&(e.x=this._viscousLimit(e.x,t.min.x)),e.y<t.min.y&&(e.y=this._viscousLimit(e.y,t.min.y)),e.x>t.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,o=this._draggable._newPos.x,r=(o-t+n)%e+t-n,i=(o+t+n)%e-t-n,s=Math.abs(r+n)<Math.abs(i+n)?r:i;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=s},_onDragEnd:function(e){var t=this._map,n=t.options,o=!n.inertia||e.noInertia||this._times.length<2;if(t.fire("dragend",e),o)t.fire("moveend");else{this._prunePositions(+new Date);var r=this._lastPos.subtract(this._positions[0]),i=(this._lastTime-this._times[0])/1e3,s=n.easeLinearity,a=r.multiplyBy(s/i),l=a.distanceTo([0,0]),u=Math.min(n.inertiaMaxSpeed,l),c=a.multiplyBy(u/l),p=u/(n.inertiaDeceleration*s),d=c.multiplyBy(-p/2).round();d.x||d.y?(d=t._limitOffset(d,t.options.maxBounds),R((function(){t.panBy(d,{duration:p,easeLinearity:s,noMoveStart:!0,animate:!0})}))):t.fire("moveend")}}});$t.addInitHook("addHandler","dragging",Xo),$t.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Qo=hn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;e.tabIndex<=0&&(e.tabIndex="0"),Lt(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),kt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var e=document.body,t=document.documentElement,n=e.scrollTop||t.scrollTop,o=e.scrollLeft||t.scrollLeft;this._map._container.focus(),window.scrollTo(o,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){var t,n,o=this._panKeys={},r=this.keyCodes;for(t=0,n=r.left.length;t<n;t++)o[r.left[t]]=[-1*e,0];for(t=0,n=r.right.length;t<n;t++)o[r.right[t]]=[e,0];for(t=0,n=r.down.length;t<n;t++)o[r.down[t]]=[0,e];for(t=0,n=r.up.length;t<n;t++)o[r.up[t]]=[0,-1*e]},_setZoomDelta:function(e){var t,n,o=this._zoomKeys={},r=this.keyCodes;for(t=0,n=r.zoomIn.length;t<n;t++)o[r.zoomIn[t]]=e;for(t=0,n=r.zoomOut.length;t<n;t++)o[r.zoomOut[t]]=-e},_addHooks:function(){Lt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){kt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var t,n=e.keyCode,o=this._map;if(n in this._panKeys)o._panAnim&&o._panAnim._inProgress||(t=this._panKeys[n],e.shiftKey&&(t=I(t).multiplyBy(3)),o.panBy(t),o.options.maxBounds&&o.panInsideBounds(o.options.maxBounds));else if(n in this._zoomKeys)o.setZoom(o.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!o._popup||!o._popup.options.closeOnEscapeKey)return;o.closePopup()}Zt(e)}}});$t.addInitHook("addHandler","keyboard",Qo),$t.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Jo=hn.extend({addHooks:function(){Lt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){kt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var t=qt(e),n=this._map.options.wheelDebounceTime;this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date);var o=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(r(this._performZoom,this),o),Zt(e)},_performZoom:function(){var e=this._map,t=e.getZoom(),n=this._map.options.zoomSnap||0;e._stop();var o=this._delta/(4*this._map.options.wheelPxPerZoomLevel),r=4*Math.log(2/(1+Math.exp(-Math.abs(o))))/Math.LN2,i=n?Math.ceil(r/n)*n:r,s=e._limitZoom(t+(this._delta>0?i:-i))-t;this._delta=0,this._startTime=null,s&&("center"===e.options.scrollWheelZoom?e.setZoom(t+s):e.setZoomAround(this._lastMousePos,t+s))}});$t.addInitHook("addHandler","scrollWheelZoom",Jo);var $o=600;$t.mergeOptions({tapHold:Ie.touchNative&&Ie.safari&&Ie.mobile,tapTolerance:15});var er=hn.extend({addHooks:function(){Lt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){kt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),1===e.touches.length){var t=e.touches[0];this._startPos=this._newPos=new N(t.clientX,t.clientY),this._holdTimeout=setTimeout(r((function(){this._cancel(),this._isTapValid()&&(Lt(document,"touchend",zt),Lt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",t))}),this),$o),Lt(document,"touchend touchcancel contextmenu",this._cancel,this),Lt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function e(){kt(document,"touchend",zt),kt(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),kt(document,"touchend touchcancel contextmenu",this._cancel,this),kt(document,"touchmove",this._onMove,this)},_onMove:function(e){var t=e.touches[0];this._newPos=new N(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,t){var n=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY});n._simulated=!0,t.target.dispatchEvent(n)}});$t.addInitHook("addHandler","tapHold",er),$t.mergeOptions({touchZoom:Ie.touch,bounceAtZoomLimits:!0});var tr=hn.extend({addHooks:function(){vt(this._map._container,"leaflet-touch-zoom"),Lt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){yt(this._map._container,"leaflet-touch-zoom"),kt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming){var n=t.mouseEventToContainerPoint(e.touches[0]),o=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),"center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(n.add(o)._divideBy(2))),this._startDist=n.distanceTo(o),this._startZoom=t.getZoom(),this._moved=!1,this._zooming=!0,t._stop(),Lt(document,"touchmove",this._onTouchMove,this),Lt(document,"touchend touchcancel",this._onTouchEnd,this),zt(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,n=t.mouseEventToContainerPoint(e.touches[0]),o=t.mouseEventToContainerPoint(e.touches[1]),i=n.distanceTo(o)/this._startDist;if(this._zoom=t.getScaleZoom(i,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&i<1||this._zoom>t.getMaxZoom()&&i>1)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1===i)return}else{var s=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(1===i&&0===s.x&&0===s.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),O(this._animRequest);var a=r(t._move,t,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=R(a,this,!0),zt(e)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,O(this._animRequest),kt(document,"touchmove",this._onTouchMove,this),kt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});$t.addInitHook("addHandler","touchZoom",tr),$t.BoxZoom=Ko,$t.DoubleClickZoom=qo,$t.Drag=Xo,$t.Keyboard=Qo,$t.ScrollWheelZoom=Jo,$t.TapHold=er,$t.TouchZoom=tr,e.Bounds=F,e.Browser=Ie,e.CRS=W,e.Canvas=Ho,e.Circle=eo,e.CircleMarker=Jn,e.Class=P,e.Control=tn,e.DivIcon=Do,e.DivOverlay=Ro,e.DomEvent=Qt,e.DomUtil=It,e.Draggable=vn,e.Evented=x,e.FeatureGroup=jn,e.GeoJSON=so,e.GridLayer=No,e.Handler=hn,e.Icon=zn,e.ImageOverlay=Co,e.LatLng=B,e.LatLngBounds=G,e.Layer=Bn,e.LayerGroup=Vn,e.LineUtil=xn,e.Map=$t,e.Marker=qn,e.Mixin=gn,e.Path=Qn,e.Point=N,e.PolyUtil=Mn,e.Polygon=ro,e.Polyline=no,e.Popup=Oo,e.PosAnimation=Jt,e.Projection=Fn,e.Rectangle=Zo,e.Renderer=Go,e.SVG=Uo,e.SVGOverlay=Eo,e.TileLayer=Io,e.Tooltip=Po,e.Transformation=Z,e.Util=T,e.VideoOverlay=_o,e.bind=r,e.bounds=k,e.canvas=Bo,e.circle=to,e.circleMarker=$n,e.control=nn,e.divIcon=xo,e.extend=n,e.featureGroup=Un,e.geoJSON=vo,e.geoJson=yo,e.gridLayer=Mo,e.icon=Zn,e.imageOverlay=wo,e.latLng=V,e.latLngBounds=H,e.layerGroup=Wn,e.map=en,e.marker=Xn,e.point=I,e.polygon=io,e.polyline=oo,e.popup=To,e.rectangle=Yo,e.setOptions=h,e.stamp=s,e.svg=zo,e.svgOverlay=So,e.tileLayer=Lo,e.tooltip=Ao,e.transformation=Y,e.version=t,e.videoOverlay=bo;var nr=window.L;e.noConflict=function(){return window.L=nr,this},window.L=e}(t)},888:function(e,t,n){"use strict";var o=n(9047);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,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},2007:function(e,t,n){e.exports=n(888)()},9047:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7511:function(e,t,n){"use strict";t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(2791)),r=l(n(2007)),i=l(n(1511)),s=l(n(9198)),a=n(9051);function l(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){return c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(){return!0},_="suggestions-revealed",b="input-focused",E="input-changed",S="escape-pressed",R=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(c,e);var t,n,r,l,u=(t=c,function(){var e,n=v(t);if(m()){var o=v(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return f(this,e)});function c(e){var t,n=e.alwaysRenderSuggestions;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),C(g(t=u.call(this)),"onDocumentMouseDown",(function(e){t.justClickedOnSuggestionsContainer=!1;for(var n=e.detail&&e.detail.target||e.target;null!==n&&n!==document;){if(n.getAttribute&&null!==n.getAttribute("data-suggestion-index"))return;if(n===t.suggestionsContainer)return void(t.justClickedOnSuggestionsContainer=!0);n=n.parentNode}})),C(g(t),"storeAutowhateverRef",(function(e){null!==e&&(t.autowhatever=e)})),C(g(t),"onSuggestionMouseEnter",(function(e,n){var o=n.sectionIndex,r=n.itemIndex;t.updateHighlightedSuggestion(o,r),e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!0),t.justMouseEntered=!0,setTimeout((function(){t.justMouseEntered=!1}))})),C(g(t),"highlightFirstSuggestion",(function(){t.updateHighlightedSuggestion(t.props.multiSection?0:null,0)})),C(g(t),"onDocumentMouseUp",(function(){t.pressedSuggestion&&!t.justSelectedSuggestion&&t.input.focus(),t.pressedSuggestion=null})),C(g(t),"onSuggestionMouseDown",(function(e){t.justSelectedSuggestion||(t.justSelectedSuggestion=!0,t.pressedSuggestion=e.target)})),C(g(t),"onSuggestionsClearRequested",(function(){var e=t.props.onSuggestionsClearRequested;e&&e()})),C(g(t),"onSuggestionSelected",(function(e,n){var o=t.props,r=o.alwaysRenderSuggestions,i=o.onSuggestionSelected,s=o.onSuggestionsFetchRequested;i&&i(e,n);var a=t.props.shouldKeepSuggestionsOnSelect(n.suggestion);r||a?s({value:n.suggestionValue,reason:"suggestion-selected"}):t.onSuggestionsClearRequested(),t.resetHighlightedSuggestion()})),C(g(t),"onSuggestionClick",(function(e){var n=t.props,o=n.alwaysRenderSuggestions,r=n.focusInputOnSuggestionClick,i=t.getSuggestionIndices(t.findSuggestionElement(e.target)),s=i.sectionIndex,a=i.suggestionIndex,l=t.getSuggestion(s,a),u=t.props.getSuggestionValue(l);t.maybeCallOnChange(e,u,"click"),t.onSuggestionSelected(e,{suggestion:l,suggestionValue:u,suggestionIndex:a,sectionIndex:s,method:"click"});var c=t.props.shouldKeepSuggestionsOnSelect(l);o||c||t.closeSuggestions(),!0===r?t.input.focus():t.onBlur(),setTimeout((function(){t.justSelectedSuggestion=!1}))})),C(g(t),"onBlur",(function(){var e=t.props,n=e.inputProps,o=e.shouldRenderSuggestions,r=n.value,i=n.onBlur,s=t.getHighlightedSuggestion(),a=o(r,"input-blurred");t.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!a}),i&&i(t.blurEvent,{highlightedSuggestion:s})})),C(g(t),"onSuggestionMouseLeave",(function(e){t.resetHighlightedSuggestion(!1),t.justSelectedSuggestion&&e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!1)})),C(g(t),"onSuggestionTouchStart",(function(){t.justSelectedSuggestion=!0})),C(g(t),"onSuggestionTouchMove",(function(){t.justSelectedSuggestion=!1,t.pressedSuggestion=null,t.input.focus()})),C(g(t),"itemProps",(function(e){return{"data-section-index":e.sectionIndex,"data-suggestion-index":e.itemIndex,onMouseEnter:t.onSuggestionMouseEnter,onMouseLeave:t.onSuggestionMouseLeave,onMouseDown:t.onSuggestionMouseDown,onTouchStart:t.onSuggestionTouchStart,onTouchMove:t.onSuggestionTouchMove,onClick:t.onSuggestionClick}})),C(g(t),"renderSuggestionsContainer",(function(e){var n=e.containerProps,o=e.children;return(0,t.props.renderSuggestionsContainer)({containerProps:n,children:o,query:t.getQuery()})})),t.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},t.justPressedUpDown=!1,t.justMouseEntered=!1,t.pressedSuggestion=null,t}return n=c,r=[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=0===this.state.highlightedSuggestionIndex&&this.props.highlightFirstSuggestion&&!e.highlightFirstSuggestion;(0,i.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered?this.highlightFirstSuggestion():t&&this.resetHighlightedSuggestion():this.willRenderSuggestions(e,"suggestions-updated")?(this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions(),t&&this.resetHighlightedSuggestion()):this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.suggestions,r=n.onSuggestionHighlighted,s=n.highlightFirstSuggestion;if(!(0,i.default)(o,e.suggestions)&&o.length>0&&s)this.highlightFirstSuggestion();else if(r){var a=this.getHighlightedSuggestion();a!=t.highlightedSuggestion&&r({suggestion:a})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var o=this;this.setState((function(r){var i=r.valueBeforeUpDown;return null===t?i=null:null===i&&"undefined"!==typeof n&&(i=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:o.getSuggestion(e,t),valueBeforeUpDown:i}}))}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState((function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}}))}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,o=n.suggestions,r=n.multiSection,i=n.getSectionSuggestions;return r?i(o[e])[t]:o[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"===typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(t.getAttribute&&null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var o=this.props.inputProps,r=o.value,i=o.onChange;t!==r&&i(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e,t){var n=e.suggestions,o=e.inputProps,r=e.shouldRenderSuggestions,i=o.value;return n.length>0&&r(i,t)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,r=t.renderInputComponent,i=t.onSuggestionsFetchRequested,l=t.renderSuggestion,u=t.inputProps,c=t.multiSection,p=t.renderSectionTitle,h=t.id,f=t.getSectionSuggestions,g=t.theme,m=t.getSuggestionValue,v=t.alwaysRenderSuggestions,y=t.highlightFirstSuggestion,C=t.containerProps,R=this.state,O=R.isFocused,T=R.isCollapsed,P=R.highlightedSectionIndex,A=R.highlightedSuggestionIndex,D=R.valueBeforeUpDown,x=v?w:this.props.shouldRenderSuggestions,N=u.value,M=u.onFocus,I=u.onKeyDown,L=this.willRenderSuggestions(this.props,"render"),F=v||O&&!T&&L,k=F?n:[],G=d({},u,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=x(N,b);e.setState({isFocused:!0,isCollapsed:!n}),M&&M(t),n&&i({value:N,reason:b})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,o=x(n,E);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(d({},y?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!o})),o?i({value:n,reason:E}):e.onSuggestionsClearRequested()},onKeyDown:function(t,o){var r=t.keyCode;switch(r){case 40:case 38:if(T)x(N,_)&&(i({value:N,reason:_}),e.revealSuggestions(),t.preventDefault());else if(n.length>0){var s,a=o.newHighlightedSectionIndex,l=o.newHighlightedItemIndex;s=null===l?null===D?N:D:e.getSuggestionValueByIndex(a,l),e.updateHighlightedSuggestion(a,l,N),e.maybeCallOnChange(t,s,40===r?"down":"up"),t.preventDefault()}e.justPressedUpDown=!0,setTimeout((function(){e.justPressedUpDown=!1}));break;case 13:if(229===t.keyCode)break;var u=e.getHighlightedSuggestion();if(F&&!v&&e.closeSuggestions(),null!=u){t.preventDefault();var c=m(u);e.maybeCallOnChange(t,c,"enter"),e.onSuggestionSelected(t,{suggestion:u,suggestionValue:c,suggestionIndex:A,sectionIndex:P,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout((function(){e.justSelectedSuggestion=!1}))}break;case 27:F&&t.preventDefault();var p=F&&!v;null===D?p||(e.maybeCallOnChange(t,"","escape"),x("",S)?i({value:"",reason:S}):e.onSuggestionsClearRequested()):e.maybeCallOnChange(t,D,"escape"),p?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}I&&I(t)}}),H={query:this.getQuery()};return o.default.createElement(s.default,{multiSection:c,items:k,renderInputComponent:r,renderItemsContainer:this.renderSuggestionsContainer,renderItem:l,renderItemData:H,renderSectionTitle:p,getSectionItems:f,highlightedSectionIndex:P,highlightedItemIndex:A,containerProps:C,inputProps:G,itemProps:this.itemProps,theme:(0,a.mapToAutowhateverTheme)(g),id:h,ref:this.storeAutowhateverRef})}}],r&&h(n.prototype,r),l&&h(n,l),c}(o.Component);t.default=R,C(R,"propTypes",{suggestions:r.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){var n=e[t];if("function"!==typeof n)throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!==typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},shouldKeepSuggestionsOnSelect:r.default.func,onSuggestionSelected:r.default.func,onSuggestionHighlighted:r.default.func,renderInputComponent:r.default.func,renderSuggestionsContainer:r.default.func,getSuggestionValue:r.default.func.isRequired,renderSuggestion:r.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n)throw new Error("'inputProps' must be passed.");if(!Object.prototype.hasOwnProperty.call(n,"value"))throw new Error("'inputProps' must have 'value'.");if(!Object.prototype.hasOwnProperty.call(n,"onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:r.default.func,alwaysRenderSuggestions:r.default.bool,multiSection:r.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!==typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!==typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:r.default.bool,highlightFirstSuggestion:r.default.bool,theme:r.default.object,id:r.default.string,containerProps:r.default.object}),C(R,"defaultProps",{renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return o.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,shouldKeepSuggestionsOnSelect:function(){return!1},focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:a.defaultTheme,id:"1",containerProps:{}})},9198:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==g(e)&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(2791)),r=u(n(2007)),i=u(n(5201)),s=u(n(1016)),a=u(n(326)),l=u(n(5875));function u(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],o=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(l){r=!0,i=l}finally{try{o||null==a.return||a.return()}finally{if(r)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function g(e){return g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,t){return!t||"object"!==g(t)&&"function"!==typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E={},S=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(p,e);var t,n,r,u,c=(t=p,function(){var e,n=w(t);if(C()){var o=w(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return v(this,e)});function p(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),b(y(t=c.call(this,e)),"storeInputReference",(function(e){null!==e&&(t.input=e);var n=t.props.inputProps.ref;n&&("function"===typeof n?n(e):"object"===g(n)&&Object.prototype.hasOwnProperty.call(n,"current")&&(n.current=e))})),b(y(t),"storeItemsContainerReference",(function(e){null!==e&&(t.itemsContainer=e)})),b(y(t),"onHighlightedItemChange",(function(e){t.highlightedItem=e})),b(y(t),"getItemId",(function(e,n){if(null===n)return null;var o=t.props.id,r=null===e?"":"section-".concat(e);return"react-autowhatever-".concat(o,"-").concat(r,"-item-").concat(n)})),b(y(t),"onFocus",(function(e){var n=t.props.inputProps;t.setState({isInputFocused:!0}),n.onFocus&&n.onFocus(e)})),b(y(t),"onBlur",(function(e){var n=t.props.inputProps;t.setState({isInputFocused:!1}),n.onBlur&&n.onBlur(e)})),b(y(t),"onKeyDown",(function(e){var n=t.props,o=n.inputProps,r=n.highlightedSectionIndex,i=n.highlightedItemIndex,s=e.keyCode;switch(s){case 40:case 38:var a=40===s?"next":"prev",l=h(t.sectionIterator[a]([r,i]),2),u=l[0],c=l[1];o.onKeyDown(e,{newHighlightedSectionIndex:u,newHighlightedItemIndex:c});break;default:o.onKeyDown(e,{highlightedSectionIndex:r,highlightedItemIndex:i})}})),t.highlightedItem=null,t.state={isInputFocused:!1},t.setSectionsItems(e),t.setSectionIterator(e),t.setTheme(e),t}return n=p,(r=[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.items!==this.props.items&&this.setSectionsItems(e),e.items===this.props.items&&e.multiSection===this.props.multiSection||this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:"componentDidUpdate",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function(e){e.multiSection&&(this.sectionsItems=e.items.map((function(t){return e.getSectionItems(t)})),this.sectionsLengths=this.sectionsItems.map((function(e){return e.length})),this.allSectionsAreEmpty=this.sectionsLengths.every((function(e){return 0===e})))}},{key:"setSectionIterator",value:function(e){this.sectionIterator=(0,i.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function(e){this.theme=(0,s.default)(e.theme)}},{key:"renderSections",value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,n=this.props,r=n.id,i=n.items,s=n.renderItem,u=n.renderItemData,c=n.renderSectionTitle,p=n.highlightedSectionIndex,d=n.highlightedItemIndex,h=n.itemProps;return i.map((function(n,i){var f="react-autowhatever-".concat(r,"-"),g="".concat(f,"section-").concat(i,"-"),m=0===i;return o.default.createElement("div",t("".concat(g,"container"),"sectionContainer",m&&"sectionContainerFirst"),o.default.createElement(a.default,{section:n,renderSectionTitle:c,theme:t,sectionKeyPrefix:g}),o.default.createElement(l.default,{items:e.sectionsItems[i],itemProps:h,renderItem:s,renderItemData:u,sectionIndex:i,highlightedItemIndex:p===i?d:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:f,ref:e.storeItemsListReference}))}))}},{key:"renderItems",value:function(){var e=this.props.items;if(0===e.length)return null;var t=this.theme,n=this.props,r=n.id,i=n.renderItem,s=n.renderItemData,a=n.highlightedSectionIndex,u=n.highlightedItemIndex,c=n.itemProps;return o.default.createElement(l.default,{items:e,itemProps:c,renderItem:i,renderItemData:s,highlightedItemIndex:null===a?u:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-".concat(r,"-")})}},{key:"ensureHighlightedItemIsVisible",value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,o=t.scrollTop;n<o?o=n:n+e.offsetHeight>o+t.offsetHeight&&(o=n+e.offsetHeight-t.offsetHeight),o!==t.scrollTop&&(t.scrollTop=o)}}},{key:"render",value:function(){var e=this.theme,t=this.props,n=t.id,r=t.multiSection,i=t.renderInputComponent,s=t.renderItemsContainer,a=t.highlightedSectionIndex,l=t.highlightedItemIndex,u=this.state.isInputFocused,c=r?this.renderSections():this.renderItems(),p=null!==c,h=this.getItemId(a,l),f="react-autowhatever-".concat(n),g=d({role:"combobox","aria-haspopup":"listbox","aria-owns":f,"aria-expanded":p},e("react-autowhatever-".concat(n,"-container"),"container",p&&"containerOpen"),{},this.props.containerProps),m=i(d({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":f,"aria-activedescendant":h},e("react-autowhatever-".concat(n,"-input"),"input",p&&"inputOpen",u&&"inputFocused"),{},this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),v=s({containerProps:d({id:f,role:"listbox"},e("react-autowhatever-".concat(n,"-items-container"),"itemsContainer",p&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:c});return o.default.createElement("div",g,m,v)}}])&&m(n.prototype,r),u&&m(n,u),p}(o.Component);t.default=S,b(S,"propTypes",{id:r.default.string,multiSection:r.default.bool,renderInputComponent:r.default.func,renderItemsContainer:r.default.func,items:r.default.array.isRequired,renderItem:r.default.func,renderItemData:r.default.object,renderSectionTitle:r.default.func,getSectionItems:r.default.func,containerProps:r.default.object,inputProps:r.default.object,itemProps:r.default.oneOfType([r.default.object,r.default.func]),highlightedSectionIndex:r.default.number,highlightedItemIndex:r.default.number,theme:r.default.oneOfType([r.default.object,r.default.array])}),b(S,"defaultProps",{id:"1",multiSection:!1,renderInputComponent:function(e){return o.default.createElement("input",e)},renderItemsContainer:function(e){var t=e.containerProps,n=e.children;return o.default.createElement("div",t,n)},renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:E,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:E,inputProps:E,itemProps:E,highlightedSectionIndex:null,highlightedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"}})},7391:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(2791)),r=s(n(2007)),i=s(n(8448));function s(e){return e&&e.__esModule?e:{default:e}}function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function l(e){return l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}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},u.apply(this,arguments)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function p(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(l,e);var t,n,r,s,a=(t=l,function(){var e,n=v(t);if(m()){var o=v(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return f(this,e)});function l(){var e;d(this,l);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return C(g(e=a.call.apply(a,[this].concat(n))),"storeItemReference",(function(t){null!==t&&(e.item=t)})),C(g(e),"onMouseEnter",(function(t){var n=e.props,o=n.sectionIndex,r=n.itemIndex;e.props.onMouseEnter(t,{sectionIndex:o,itemIndex:r})})),C(g(e),"onMouseLeave",(function(t){var n=e.props,o=n.sectionIndex,r=n.itemIndex;e.props.onMouseLeave(t,{sectionIndex:o,itemIndex:r})})),C(g(e),"onMouseDown",(function(t){var n=e.props,o=n.sectionIndex,r=n.itemIndex;e.props.onMouseDown(t,{sectionIndex:o,itemIndex:r})})),C(g(e),"onClick",(function(t){var n=e.props,o=n.sectionIndex,r=n.itemIndex;e.props.onClick(t,{sectionIndex:o,itemIndex:r})})),e}return n=l,r=[{key:"shouldComponentUpdate",value:function(e){return(0,i.default)(e,this.props,["renderItemData"])}},{key:"render",value:function(){var e=this.props,t=e.isHighlighted,n=e.item,r=e.renderItem,i=e.renderItemData,s=p(e,["isHighlighted","item","renderItem","renderItemData"]);return delete s.sectionIndex,delete s.itemIndex,"function"===typeof s.onMouseEnter&&(s.onMouseEnter=this.onMouseEnter),"function"===typeof s.onMouseLeave&&(s.onMouseLeave=this.onMouseLeave),"function"===typeof s.onMouseDown&&(s.onMouseDown=this.onMouseDown),"function"===typeof s.onClick&&(s.onClick=this.onClick),o.default.createElement("li",u({role:"option"},s,{ref:this.storeItemReference}),r(n,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({isHighlighted:t},i)))}}],r&&h(n.prototype,r),s&&h(n,s),l}(o.Component);t.default=w,C(w,"propTypes",{sectionIndex:r.default.number,isHighlighted:r.default.bool.isRequired,itemIndex:r.default.number.isRequired,item:r.default.any.isRequired,renderItem:r.default.func.isRequired,renderItemData:r.default.object.isRequired,onMouseEnter:r.default.func,onMouseLeave:r.default.func,onMouseDown:r.default.func,onClick:r.default.func})},5875:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(2791)),r=a(n(2007)),i=a(n(7391)),s=a(n(8448));function a(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e){return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(){return c=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},c.apply(this,arguments)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(u,e);var t,n,r,a,l=(t=u,function(){var e,n=v(t);if(m()){var o=v(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return f(this,e)});function u(){var e;d(this,u);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return C(g(e=l.call.apply(l,[this].concat(n))),"storeHighlightedItemReference",(function(t){e.props.onHighlightedItemChange(null===t?null:t.item)})),e}return n=u,r=[{key:"shouldComponentUpdate",value:function(e){return(0,s.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,r=t.itemProps,s=t.renderItem,a=t.renderItemData,l=t.sectionIndex,u=t.highlightedItemIndex,d=t.getItemId,h=t.theme,f=t.keyPrefix,g=null===l?f:"".concat(f,"section-").concat(l,"-"),m="function"===typeof r;return o.default.createElement("ul",c({role:"listbox"},h("".concat(g,"items-list"),"itemsList")),n.map((function(t,n){var f=0===n,v=n===u,y="".concat(g,"item-").concat(n),w=m?r({sectionIndex:l,itemIndex:n}):r,_=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:d(l,n),"aria-selected":v},h(y,"item",f&&"itemFirst",v&&"itemHighlighted"),{},w);return v&&(_.ref=e.storeHighlightedItemReference),o.default.createElement(i.default,c({},_,{sectionIndex:l,isHighlighted:v,itemIndex:n,item:t,renderItem:s,renderItemData:a}))})))}}],r&&h(n.prototype,r),a&&h(n,a),u}(o.Component);t.default=w,C(w,"propTypes",{items:r.default.array.isRequired,itemProps:r.default.oneOfType([r.default.object,r.default.func]),renderItem:r.default.func.isRequired,renderItemData:r.default.object.isRequired,sectionIndex:r.default.number,highlightedItemIndex:r.default.number,onHighlightedItemChange:r.default.func.isRequired,getItemId:r.default.func.isRequired,theme:r.default.func.isRequired,keyPrefix:r.default.string.isRequired}),C(w,"defaultProps",{sectionIndex:null})},326:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(2791)),r=s(n(2007)),i=s(n(8448));function s(e){return e&&e.__esModule?e:{default:e}}function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function l(e){return l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}var g,m,v,y=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(l,e);var t,n,r,s,a=(t=l,function(){var e,n=h(t);if(d()){var o=h(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return p(this,e)});function l(){return u(this,l),a.apply(this,arguments)}return n=l,(r=[{key:"shouldComponentUpdate",value:function(e){return(0,i.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,r=e.theme,i=e.sectionKeyPrefix,s=n(t);return s?o.default.createElement("div",r("".concat(i,"title"),"sectionTitle"),s):null}}])&&c(n.prototype,r),s&&c(n,s),l}(o.Component);t.default=y,g=y,m="propTypes",v={section:r.default.any.isRequired,renderSectionTitle:r.default.func.isRequired,theme:r.default.func.isRequired,sectionKeyPrefix:r.default.string.isRequired},m in g?Object.defineProperty(g,m,{value:v,enumerable:!0,configurable:!0,writable:!0}):g[m]=v},8448:function(e,t){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!0;var s,a,l={};for(s=0,a=o.length;s<a;s++)l[o[s]]=!0;for(s=0,a=r.length;s<a;s++){var u=r[s],c=e[u],p=t[u];if(c!==p){if(!l[u]||null===c||null===p||"object"!==n(c)||"object"!==n(p))return!0;var d=Object.keys(c),h=Object.keys(p);if(d.length!==h.length)return!0;for(var f=0,g=d.length;f<g;f++){var m=d[f];if(c[m]!==p[m])return!0}}}return!1}},9986:function(e,t,n){"use strict";e.exports=n(7511).default},9051:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToAutowhateverTheme=t.defaultTheme=void 0;t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"};t.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},1071:function(e,t,n){"use strict";var o=n(2791);function r(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 i=Object.prototype.hasOwnProperty,s=/^[: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]*$/,a={},l={};function u(e){return!!i.call(l,e)||!i.call(a,e)&&(s.test(e)?l[e]=!0:(a[e]=!0,!1))}function c(e,t,n,o,r,i,s){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,this.removeEmptyString=s}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){p[e]=new c(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];p[t]=new c(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){p[e]=new c(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){p[e]=new c(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){p[e]=new c(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){p[e]=new c(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){p[e]=new c(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){p[e]=new c(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){p[e]=new c(e,5,!1,e.toLowerCase(),null,!1,!1)}));var d=/[\-:]([a-z])/g;function h(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(d,h);p[t]=new c(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(d,h);p[t]=new c(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(d,h);p[t]=new c(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){p[e]=new c(e,1,!1,e.toLowerCase(),null,!1,!1)})),p.xlinkHref=new c("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){p[e]=new c(e,1,!1,e.toLowerCase(),null,!0,!0)}));var f={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},g=["Webkit","ms","Moz","O"];Object.keys(f).forEach((function(e){g.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),f[t]=f[e]}))}));var m=/["'&<>]/;function v(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=m.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}var y=/([A-Z])/g,C=/^ms-/,w=Array.isArray;function _(e,t){return{insertionMode:e,selectedValue:t}}var b=new Map;function E(e,t,n){if("object"!==typeof n)throw Error(r(62));for(var o in t=!0,n)if(i.call(n,o)){var s=n[o];if(null!=s&&"boolean"!==typeof s&&""!==s){if(0===o.indexOf("--")){var a=v(o);s=v((""+s).trim())}else{a=o;var l=b.get(a);void 0!==l||(l=v(a.replace(y,"-$1").toLowerCase().replace(C,"-ms-")),b.set(a,l)),a=l,s="number"===typeof s?0===s||i.call(f,o)?""+s:s+"px":v((""+s).trim())}t?(t=!1,e.push(' style="',a,":",s)):e.push(";",a,":",s)}}t||e.push('"')}function S(e,t,n,o){switch(n){case"style":return void E(e,t,o);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=p.hasOwnProperty(n)?p[n]:null)){switch(typeof o){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:o&&e.push(" ",n,'=""');break;case 4:!0===o?e.push(" ",n,'=""'):!1!==o&&e.push(" ",n,'="',v(o),'"');break;case 5:isNaN(o)||e.push(" ",n,'="',v(o),'"');break;case 6:!isNaN(o)&&1<=o&&e.push(" ",n,'="',v(o),'"');break;default:t.sanitizeURL&&(o=""+o),e.push(" ",n,'="',v(o),'"')}}else if(u(n)){switch(typeof o){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",n,'="',v(o),'"')}}function R(e,t,n){if(null!=t){if(null!=n)throw Error(r(60));if("object"!==typeof t||!("__html"in t))throw Error(r(61));null!==(t=t.__html)&&void 0!==t&&e.push(""+t)}}function O(e,t,n,o){e.push(A(n));var r,s=n=null;for(r in t)if(i.call(t,r)){var a=t[r];if(null!=a)switch(r){case"children":n=a;break;case"dangerouslySetInnerHTML":s=a;break;default:S(e,o,r,a)}}return e.push(">"),R(e,s,n),"string"===typeof n?(e.push(v(n)),null):n}var T=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,P=new Map;function A(e){var t=P.get(e);if(void 0===t){if(!T.test(e))throw Error(r(65,e));t="<"+e,P.set(e,t)}return t}function D(e,t,n,s,a){switch(t){case"select":e.push(A("select"));var l=null,c=null;for(f in n)if(i.call(n,f)){var p=n[f];if(null!=p)switch(f){case"children":l=p;break;case"dangerouslySetInnerHTML":c=p;break;case"defaultValue":case"value":break;default:S(e,s,f,p)}}return e.push(">"),R(e,c,l),l;case"option":c=a.selectedValue,e.push(A("option"));var d=p=null,h=null,f=null;for(l in n)if(i.call(n,l)){var g=n[l];if(null!=g)switch(l){case"children":p=g;break;case"selected":h=g;break;case"dangerouslySetInnerHTML":f=g;break;case"value":d=g;default:S(e,s,l,g)}}if(null!=c)if(n=null!==d?""+d:function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(p),w(c)){for(s=0;s<c.length;s++)if(""+c[s]===n){e.push(' selected=""');break}}else""+c===n&&e.push(' selected=""');else h&&e.push(' selected=""');return e.push(">"),R(e,f,p),p;case"textarea":for(p in e.push(A("textarea")),f=c=l=null,n)if(i.call(n,p)&&null!=(d=n[p]))switch(p){case"children":f=d;break;case"value":l=d;break;case"defaultValue":c=d;break;case"dangerouslySetInnerHTML":throw Error(r(91));default:S(e,s,p,d)}if(null===l&&null!==c&&(l=c),e.push(">"),null!=f){if(null!=l)throw Error(r(92));if(w(f)&&1<f.length)throw Error(r(93));l=""+f}return"string"===typeof l&&"\n"===l[0]&&e.push("\n"),null!==l&&e.push(v(""+l)),null;case"input":for(c in e.push(A("input")),d=f=p=l=null,n)if(i.call(n,c)&&null!=(h=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"input"));case"defaultChecked":d=h;break;case"defaultValue":p=h;break;case"checked":f=h;break;case"value":l=h;break;default:S(e,s,c,h)}return null!==f?S(e,s,"checked",f):null!==d&&S(e,s,"checked",d),null!==l?S(e,s,"value",l):null!==p&&S(e,s,"value",p),e.push("/>"),null;case"menuitem":for(var m in e.push(A("menuitem")),n)if(i.call(n,m)&&null!=(l=n[m]))switch(m){case"children":case"dangerouslySetInnerHTML":throw Error(r(400));default:S(e,s,m,l)}return e.push(">"),null;case"title":for(g in e.push(A("title")),l=null,n)if(i.call(n,g)&&null!=(c=n[g]))switch(g){case"children":l=c;break;case"dangerouslySetInnerHTML":throw Error(r(434));default:S(e,s,g,c)}return e.push(">"),l;case"listing":case"pre":for(d in e.push(A(t)),c=l=null,n)if(i.call(n,d)&&null!=(p=n[d]))switch(d){case"children":l=p;break;case"dangerouslySetInnerHTML":c=p;break;default:S(e,s,d,p)}if(e.push(">"),null!=c){if(null!=l)throw Error(r(60));if("object"!==typeof c||!("__html"in c))throw Error(r(61));null!==(n=c.__html)&&void 0!==n&&("string"===typeof n&&0<n.length&&"\n"===n[0]?e.push("\n",n):e.push(""+n))}return"string"===typeof l&&"\n"===l[0]&&e.push("\n"),l;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var y in e.push(A(t)),n)if(i.call(n,y)&&null!=(l=n[y]))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,t));default:S(e,s,y,l)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return O(e,n,t,s);case"html":return 0===a.insertionMode&&e.push("<!DOCTYPE html>"),O(e,n,t,s);default:if(-1===t.indexOf("-")&&"string"!==typeof n.is)return O(e,n,t,s);for(h in e.push(A(t)),c=l=null,n)if(i.call(n,h)&&null!=(p=n[h]))switch(h){case"children":l=p;break;case"dangerouslySetInnerHTML":c=p;break;case"style":E(e,s,p);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:u(h)&&"function"!==typeof p&&"symbol"!==typeof p&&e.push(" ",h,'="',v(p),'"')}return e.push(">"),R(e,c,l),l}}function x(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(r(395));return e.push(n),e.push('"></template>')}var N=/[<\u2028\u2029]/g;function M(e){return JSON.stringify(e).replace(N,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}function I(e,t,n,o){return n.generateStaticMarkup?(e.push(v(t)),!1):(""===t?e=o:(o&&e.push("\x3c!-- --\x3e"),e.push(v(t)),e=!0),e)}var L=Object.assign,F=Symbol.for("react.element"),k=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),V=Symbol.for("react.provider"),W=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),K=Symbol.for("react.scope"),q=Symbol.for("react.debug_trace_mode"),X=Symbol.for("react.legacy_hidden"),Q=Symbol.for("react.default_value"),J=Symbol.iterator;function $(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 G:return"Fragment";case k:return"Portal";case B:return"Profiler";case H:return"StrictMode";case U:return"Suspense";case z:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case W:return(e.displayName||"Context")+".Consumer";case V:return(e._context.displayName||"Context")+".Provider";case j:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return null!==(t=e.displayName||null)?t:$(e.type)||"Memo";case Y:t=e._payload,e=e._init;try{return $(e(t))}catch(n){}}return null}var ee={};function te(e,t){if(!(e=e.contextTypes))return ee;var n,o={};for(n in e)o[n]=t[n];return o}var ne=null;function oe(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(r(401))}else{if(null===n)throw Error(r(401));oe(e,n)}t.context._currentValue2=t.value}}function re(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&re(e)}function ie(e){var t=e.parent;null!==t&&ie(t),e.context._currentValue2=e.value}function se(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(r(402));e.depth===t.depth?oe(e,t):se(e,t)}function ae(e,t){var n=t.parent;if(null===n)throw Error(r(402));e.depth===n.depth?oe(e,n):ae(e,n),t.context._currentValue2=t.value}function le(e){var t=ne;t!==e&&(null===t?ie(e):null===e?re(t):t.depth===e.depth?oe(t,e):t.depth>e.depth?se(t,e):ae(t,e),ne=e)}var ue={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function ce(e,t,n,o){var r=void 0!==e.state?e.state:null;e.updater=ue,e.props=n,e.state=r;var i={queue:[],replace:!1};e._reactInternals=i;var s=t.contextType;if(e.context="object"===typeof s&&null!==s?s._currentValue2:o,"function"===typeof(s=t.getDerivedStateFromProps)&&(r=null===(s=s(n,r))||void 0===s?r:L({},r,s),e.state=r),"function"!==typeof t.getDerivedStateFromProps&&"function"!==typeof e.getSnapshotBeforeUpdate&&("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount))if(t=e.state,"function"===typeof e.componentWillMount&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&ue.enqueueReplaceState(e,e.state,null),null!==i.queue&&0<i.queue.length)if(t=i.queue,s=i.replace,i.queue=null,i.replace=!1,s&&1===t.length)e.state=t[0];else{for(i=s?t[0]:e.state,r=!0,s=s?1:0;s<t.length;s++){var a=t[s];null!=(a="function"===typeof a?a.call(e,i,n,o):a)&&(r?(r=!1,i=L({},i,a)):L(i,a))}e.state=i}else i.queue=null}var pe={id:1,overflow:""};function de(e,t,n){var o=e.id;e=e.overflow;var r=32-he(o)-1;o&=~(1<<r),n+=1;var i=32-he(t)+r;if(30<i){var s=r-r%5;return i=(o&(1<<s)-1).toString(32),o>>=s,r-=s,{id:1<<32-he(t)+r|n<<r|o,overflow:i+e}}return{id:1<<i|n<<r|o,overflow:e}}var he=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(fe(e)/ge|0)|0},fe=Math.log,ge=Math.LN2;var me="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},ve=null,ye=null,Ce=null,we=null,_e=!1,be=!1,Ee=0,Se=null,Re=0;function Oe(){if(null===ve)throw Error(r(321));return ve}function Te(){if(0<Re)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function Pe(){return null===we?null===Ce?(_e=!1,Ce=we=Te()):(_e=!0,we=Ce):null===we.next?(_e=!1,we=we.next=Te()):(_e=!0,we=we.next),we}function Ae(){ye=ve=null,be=!1,Ce=null,Re=0,we=Se=null}function De(e,t){return"function"===typeof t?t(e):t}function xe(e,t,n){if(ve=Oe(),we=Pe(),_e){var o=we.queue;if(t=o.dispatch,null!==Se&&void 0!==(n=Se.get(o))){Se.delete(o),o=we.memoizedState;do{o=e(o,n.action),n=n.next}while(null!==n);return we.memoizedState=o,[o,t]}return[we.memoizedState,t]}return e=e===De?"function"===typeof t?t():t:void 0!==n?n(t):t,we.memoizedState=e,e=(e=we.queue={last:null,dispatch:null}).dispatch=Me.bind(null,ve,e),[we.memoizedState,e]}function Ne(e,t){if(ve=Oe(),t=void 0===t?null:t,null!==(we=Pe())){var n=we.memoizedState;if(null!==n&&null!==t){var o=n[1];e:if(null===o)o=!1;else{for(var r=0;r<o.length&&r<t.length;r++)if(!me(t[r],o[r])){o=!1;break e}o=!0}if(o)return n[0]}}return e=e(),we.memoizedState=[e,t],e}function Me(e,t,n){if(25<=Re)throw Error(r(301));if(e===ve)if(be=!0,e={action:n,next:null},null===Se&&(Se=new Map),void 0===(n=Se.get(t)))Se.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Ie(){throw Error(r(394))}function Le(){}var Fe={readContext:function(e){return e._currentValue2},useContext:function(e){return Oe(),e._currentValue2},useMemo:Ne,useReducer:xe,useRef:function(e){ve=Oe();var t=(we=Pe()).memoizedState;return null===t?(e={current:e},we.memoizedState=e):t},useState:function(e){return xe(De,e)},useInsertionEffect:Le,useLayoutEffect:function(){},useCallback:function(e,t){return Ne((function(){return e}),t)},useImperativeHandle:Le,useEffect:Le,useDebugValue:Le,useDeferredValue:function(e){return Oe(),e},useTransition:function(){return Oe(),[!1,Ie]},useId:function(){var e=ye.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-he(e)-1)).toString(32)+t;var n=ke;if(null===n)throw Error(r(404));return t=Ee++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Oe(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(r(407));return n()}},ke=null,Ge=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function He(e){return console.error(e),null}function Be(){}function Ve(e,t,n,o,r,i,s,a){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&nt(e)},blockedBoundary:n,blockedSegment:o,abortSet:r,legacyContext:i,context:s,treeContext:a};return r.add(l),l}function We(e,t,n,o,r,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:o,boundary:n,lastPushedText:r,textEmbedded:i}}function je(e,t){if(null!=(e=e.onError(t))&&"string"!==typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function Ue(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function ze(e,t,n,o,r){for(ve={},ye=t,Ee=0,e=n(o,r);be;)be=!1,Ee=0,Re+=1,we=null,e=n(o,r);return Ae(),e}function Ze(e,t,n,o){var i=n.render(),s=o.childContextTypes;if(null!==s&&void 0!==s){var a=t.legacyContext;if("function"!==typeof n.getChildContext)o=a;else{for(var l in n=n.getChildContext())if(!(l in s))throw Error(r(108,$(o)||"Unknown",l));o=L({},a,n)}t.legacyContext=o,qe(e,t,i),t.legacyContext=a}else qe(e,t,i)}function Ye(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Ke(e,t,n,o,i){if("function"===typeof n)if(n.prototype&&n.prototype.isReactComponent){i=te(n,t.legacyContext);var s=n.contextType;ce(s=new n(o,"object"===typeof s&&null!==s?s._currentValue2:i),n,o,i),Ze(e,t,s,n)}else{i=ze(e,t,n,o,s=te(n,t.legacyContext));var a=0!==Ee;if("object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof)ce(i,n,o,s),Ze(e,t,i,n);else if(a){o=t.treeContext,t.treeContext=de(o,1,0);try{qe(e,t,i)}finally{t.treeContext=o}}else qe(e,t,i)}else{if("string"!==typeof n){switch(n){case X:case q:case H:case B:case G:case z:return void qe(e,t,o.children);case K:throw Error(r(343));case U:e:{n=t.blockedBoundary,i=t.blockedSegment,s=o.fallback,o=o.children;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a=new Set,errorDigest:null},u=We(0,i.chunks.length,l,i.formatContext,!1,!1);i.children.push(u),i.lastPushedText=!1;var c=We(0,0,null,i.formatContext,!1,!1);c.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=c;try{if(Qe(e,t,o),e.responseState.generateStaticMarkup||c.lastPushedText&&c.textEmbedded&&c.chunks.push("\x3c!-- --\x3e"),c.status=1,et(l,c),0===l.pendingTasks)break e}catch(p){c.status=4,l.forceClientRender=!0,l.errorDigest=je(e,p)}finally{t.blockedBoundary=n,t.blockedSegment=i}t=Ve(e,s,n,u,a,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"===typeof n&&null!==n)switch(n.$$typeof){case j:if(o=ze(e,t,n.render,o,i),0!==Ee){n=t.treeContext,t.treeContext=de(n,1,0);try{qe(e,t,o)}finally{t.treeContext=n}}else qe(e,t,o);return;case Z:return void Ke(e,t,n=n.type,o=Ye(n,o),i);case V:if(i=o.children,n=n._context,o=o.value,s=n._currentValue2,n._currentValue2=o,ne=o={parent:a=ne,depth:null===a?0:a.depth+1,context:n,parentValue:s,value:o},t.context=o,qe(e,t,i),null===(e=ne))throw Error(r(403));return o=e.parentValue,e.context._currentValue2=o===Q?e.context._defaultValue:o,e=ne=e.parent,void(t.context=e);case W:return void qe(e,t,o=(o=o.children)(n._currentValue2));case Y:return void Ke(e,t,n=(i=n._init)(n._payload),o=Ye(n,o),void 0)}throw Error(r(130,null==n?n:typeof n,""))}switch(s=D((i=t.blockedSegment).chunks,n,o,e.responseState,i.formatContext),i.lastPushedText=!1,a=i.formatContext,i.formatContext=function(e,t,n){switch(t){case"select":return _(1,null!=n.value?n.value:n.defaultValue);case"svg":return _(2,null);case"math":return _(3,null);case"foreignObject":return _(1,null);case"table":return _(4,null);case"thead":case"tbody":case"tfoot":return _(5,null);case"colgroup":return _(7,null);case"tr":return _(6,null)}return 4<=e.insertionMode||0===e.insertionMode?_(1,null):e}(a,n,o),Qe(e,t,s),i.formatContext=a,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:i.chunks.push("</",n,">")}i.lastPushedText=!1}}function qe(e,t,n){if(t.node=n,"object"===typeof n&&null!==n){switch(n.$$typeof){case F:return void Ke(e,t,n.type,n.props,n.ref);case k:throw Error(r(257));case Y:var o=n._init;return void qe(e,t,n=o(n._payload))}if(w(n))return void Xe(e,t,n);if(null===n||"object"!==typeof n?o=null:o="function"===typeof(o=J&&n[J]||n["@@iterator"])?o:null,o&&(o=o.call(n))){if(!(n=o.next()).done){var i=[];do{i.push(n.value),n=o.next()}while(!n.done);Xe(e,t,i)}return}throw e=Object.prototype.toString.call(n),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"===typeof n?(o=t.blockedSegment).lastPushedText=I(t.blockedSegment.chunks,n,e.responseState,o.lastPushedText):"number"===typeof n&&((o=t.blockedSegment).lastPushedText=I(t.blockedSegment.chunks,""+n,e.responseState,o.lastPushedText))}function Xe(e,t,n){for(var o=n.length,r=0;r<o;r++){var i=t.treeContext;t.treeContext=de(i,o,r);try{Qe(e,t,n[r])}finally{t.treeContext=i}}}function Qe(e,t,n){var o=t.blockedSegment.formatContext,r=t.legacyContext,i=t.context;try{return qe(e,t,n)}catch(l){if(Ae(),"object"!==typeof l||null===l||"function"!==typeof l.then)throw t.blockedSegment.formatContext=o,t.legacyContext=r,t.context=i,le(i),l;n=l;var s=t.blockedSegment,a=We(0,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=Ve(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=o,t.legacyContext=r,t.context=i,le(i)}}function Je(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,tt(this,t,e)}function $e(e,t,n){var o=e.blockedBoundary;e.blockedSegment.status=3,null===o?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(o.pendingTasks--,o.forceClientRender||(o.forceClientRender=!0,e=void 0===n?Error(r(432)):n,o.errorDigest=t.onError(e),o.parentFlushed&&t.clientRenderedBoundaries.push(o)),o.fallbackAbortableTasks.forEach((function(e){return $e(e,t,n)})),o.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(o=t.onAllReady)())}function et(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&et(e,n)}else e.completedSegments.push(t)}function tt(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(r(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=Be,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&et(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Je,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(et(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function nt(e){if(2!==e.status){var t=ne,n=Ge.current;Ge.current=Fe;var o=ke;ke=e.responseState;try{var r,i=e.pingedTasks;for(r=0;r<i.length;r++){var s=i[r],a=e,l=s.blockedSegment;if(0===l.status){le(s.context);try{qe(a,s,s.node),a.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("\x3c!-- --\x3e"),s.abortSet.delete(s),l.status=1,tt(a,s.blockedBoundary,l)}catch(h){if(Ae(),"object"===typeof h&&null!==h&&"function"===typeof h.then){var u=s.ping;h.then(u,u)}else{s.abortSet.delete(s),l.status=4;var c=s.blockedBoundary,p=h,d=je(a,p);if(null===c?Ue(a,p):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=d,c.parentFlushed&&a.clientRenderedBoundaries.push(c))),a.allPendingTasks--,0===a.allPendingTasks)(0,a.onAllReady)()}}}}i.splice(0,r),null!==e.destination&&lt(e,e.destination)}catch(h){je(e,h),Ue(e,h)}finally{ke=o,Ge.current=n,n===Fe&&le(t)}}}function ot(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var o=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=o.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var i=!0;o=n.chunks;var s=0;n=n.children;for(var a=0;a<n.length;a++){for(i=n[a];s<i.index;s++)t.push(o[s]);i=rt(e,t,i)}for(;s<o.length-1;s++)t.push(o[s]);return s<o.length&&(i=t.push(o[s])),i;default:throw Error(r(390))}}function rt(e,t,n){var o=n.boundary;if(null===o)return ot(e,t,n);if(o.parentFlushed=!0,o.forceClientRender)return e.responseState.generateStaticMarkup||(o=o.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),o&&(t.push(' data-dgst="'),o=v(o),t.push(o),t.push('"')),t.push("></template>")),ot(e,t,n),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<o.pendingTasks){o.rootSegmentID=e.nextSegmentId++,0<o.completedSegments.length&&e.partialBoundaries.push(o);var i=e.responseState,s=i.nextSuspenseID++;return i=i.boundaryPrefix+s.toString(16),o=o.id=i,x(t,e.responseState,o),ot(e,t,n),t.push("\x3c!--/$--\x3e")}if(o.byteSize>e.progressiveChunkSize)return o.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(o),x(t,e.responseState,o.id),ot(e,t,n),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(n=o.completedSegments).length)throw Error(r(391));return rt(e,t,n[0]),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function it(e,t,n){return function(e,t,n,o){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');default:throw Error(r(397))}}(t,e.responseState,n.formatContext,n.id),rt(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(r(397))}}(t,n.formatContext)}function st(e,t,n){for(var o=n.completedSegments,i=0;i<o.length;i++)at(e,t,n,o[i]);if(o.length=0,e=e.responseState,o=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===o)throw Error(r(395));return n=n.toString(16),t.push(o),t.push('","'),t.push(e.segmentPrefix),t.push(n),t.push('")<\/script>')}function at(e,t,n,o){if(2===o.status)return!0;var i=o.id;if(-1===i){if(-1===(o.id=n.rootSegmentID))throw Error(r(392));return it(e,t,o)}return it(e,t,o),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),i=i.toString(16),t.push(i),t.push('","'),t.push(e.placeholderPrefix),t.push(i),t.push('")<\/script>')}function lt(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){rt(e,t,n),e.completedRootSegment=null;var o=e.responseState.bootstrapChunks;for(n=0;n<o.length-1;n++)t.push(o[n]);n<o.length&&t.push(o[n])}var i,s=e.clientRenderedBoundaries;for(i=0;i<s.length;i++){var a=s[i];o=t;var l=e.responseState,u=a.id,c=a.errorDigest,p=a.errorMessage,d=a.errorComponentStack;if(o.push(l.startInlineScript),l.sentClientRenderFunction?o.push('$RX("'):(l.sentClientRenderFunction=!0,o.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===u)throw Error(r(395));if(o.push(u),o.push('"'),c||p||d){o.push(",");var h=M(c||"");o.push(h)}if(p||d){o.push(",");var f=M(p||"");o.push(f)}if(d){o.push(",");var g=M(d);o.push(g)}if(!o.push(")<\/script>"))return e.destination=null,i++,void s.splice(0,i)}s.splice(0,i);var m=e.completedBoundaries;for(i=0;i<m.length;i++)if(!st(e,t,m[i]))return e.destination=null,i++,void m.splice(0,i);m.splice(0,i);var v=e.partialBoundaries;for(i=0;i<v.length;i++){var y=v[i];e:{s=e,a=t;var C=y.completedSegments;for(l=0;l<C.length;l++)if(!at(s,a,y,C[l])){l++,C.splice(0,l);var w=!1;break e}C.splice(0,l),w=!0}if(!w)return e.destination=null,i++,void v.splice(0,i)}v.splice(0,i);var _=e.completedBoundaries;for(i=0;i<_.length;i++)if(!st(e,t,_[i]))return e.destination=null,i++,void _.splice(0,i);_.splice(0,i)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function ut(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return $e(n,e,t)})),n.clear(),null!==e.destination&&lt(e,e.destination)}catch(o){je(e,o),Ue(e,o)}}function ct(){}function pt(e,t,n,o){var i=!1,s=null,a="",l={push:function(e){return null!==e&&(a+=e),!0},destroy:function(e){i=!0,s=e}},u=!1;if(e=function(e,t,n,o,r,i,s,a,l){var u=[],c=new Set;return(n=We(t={destination:null,responseState:t,progressiveChunkSize:void 0===o?12800:o,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===r?He:r,onAllReady:void 0===i?Be:i,onShellReady:void 0===s?Be:s,onShellError:void 0===a?Be:a,onFatalError:void 0===l?Be:l},0,null,n,!1,!1)).parentFlushed=!0,e=Ve(t,e,null,n,c,ee,null,pe),u.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(t=void 0===t?"":t)+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(n,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ct,void 0,(function(){u=!0}),void 0,void 0),nt(e),ut(e,o),1===e.status)e.status=2,l.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=l;try{lt(e,l)}catch(c){je(e,c),Ue(e,c)}}if(i)throw s;if(!u)throw Error(r(426));return a}t.renderToNodeStream=function(){throw Error(r(207))},t.renderToStaticMarkup=function(e,t){return pt(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.renderToStaticNodeStream=function(){throw Error(r(208))},t.renderToString=function(e,t){return pt(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.version="18.2.0"},4424:function(e,t,n){"use strict";var o=n(2791);function r(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 i=null,s=0;function a(e,t){if(0!==t.length)if(512<t.length)0<s&&(e.enqueue(new Uint8Array(i.buffer,0,s)),i=new Uint8Array(512),s=0),e.enqueue(t);else{var n=i.length-s;n<t.length&&(0===n?e.enqueue(i):(i.set(t.subarray(0,n),s),e.enqueue(i),t=t.subarray(n)),i=new Uint8Array(512),s=0),i.set(t,s),s+=t.length}}function l(e,t){return a(e,t),!0}function u(e){i&&0<s&&(e.enqueue(new Uint8Array(i.buffer,0,s)),i=null,s=0)}var c=new TextEncoder;function p(e){return c.encode(e)}function d(e){return c.encode(e)}function h(e,t){"function"===typeof e.error?e.error(t):e.close()}var f=Object.prototype.hasOwnProperty,g=/^[: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]*$/,m={},v={};function y(e){return!!f.call(v,e)||!f.call(m,e)&&(g.test(e)?v[e]=!0:(m[e]=!0,!1))}function C(e,t,n,o,r,i,s){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,this.removeEmptyString=s}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){w[e]=new C(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];w[t]=new C(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){w[e]=new C(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){w[e]=new C(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){w[e]=new C(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){w[e]=new C(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){w[e]=new C(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){w[e]=new C(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){w[e]=new C(e,5,!1,e.toLowerCase(),null,!1,!1)}));var _=/[\-:]([a-z])/g;function b(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(_,b);w[t]=new C(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(_,b);w[t]=new C(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(_,b);w[t]=new C(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){w[e]=new C(e,1,!1,e.toLowerCase(),null,!1,!1)})),w.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){w[e]=new C(e,1,!1,e.toLowerCase(),null,!0,!0)}));var E={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},S=["Webkit","ms","Moz","O"];Object.keys(E).forEach((function(e){S.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),E[t]=E[e]}))}));var R=/["'&<>]/;function O(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=R.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}var T=/([A-Z])/g,P=/^ms-/,A=Array.isArray,D=d("<script>"),x=d("<\/script>"),N=d('<script src="'),M=d('<script type="module" src="'),I=d('" async=""><\/script>'),L=/(<\/|<)(s)(cript)/gi;function F(e,t,n,o){return t+("s"===n?"\\u0073":"\\u0053")+o}function k(e,t){return{insertionMode:e,selectedValue:t}}var G=d("\x3c!-- --\x3e");function H(e,t,n,o){return""===t?o:(o&&e.push(G),e.push(p(O(t))),!0)}var B=new Map,V=d(' style="'),W=d(":"),j=d(";");function U(e,t,n){if("object"!==typeof n)throw Error(r(62));for(var o in t=!0,n)if(f.call(n,o)){var i=n[o];if(null!=i&&"boolean"!==typeof i&&""!==i){if(0===o.indexOf("--")){var s=p(O(o));i=p(O((""+i).trim()))}else{s=o;var a=B.get(s);void 0!==a||(a=d(O(s.replace(T,"-$1").toLowerCase().replace(P,"-ms-"))),B.set(s,a)),s=a,i="number"===typeof i?0===i||f.call(E,o)?p(""+i):p(i+"px"):p(O((""+i).trim()))}t?(t=!1,e.push(V,s,W,i)):e.push(j,s,W,i)}}t||e.push(Y)}var z=d(" "),Z=d('="'),Y=d('"'),K=d('=""');function q(e,t,n,o){switch(n){case"style":return void U(e,t,o);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=w.hasOwnProperty(n)?w[n]:null)){switch(typeof o){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=p(t.attributeName),t.type){case 3:o&&e.push(z,n,K);break;case 4:!0===o?e.push(z,n,K):!1!==o&&e.push(z,n,Z,p(O(o)),Y);break;case 5:isNaN(o)||e.push(z,n,Z,p(O(o)),Y);break;case 6:!isNaN(o)&&1<=o&&e.push(z,n,Z,p(O(o)),Y);break;default:t.sanitizeURL&&(o=""+o),e.push(z,n,Z,p(O(o)),Y)}}else if(y(n)){switch(typeof o){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(z,p(n),Z,p(O(o)),Y)}}var X=d(">"),Q=d("/>");function J(e,t,n){if(null!=t){if(null!=n)throw Error(r(60));if("object"!==typeof t||!("__html"in t))throw Error(r(61));null!==(t=t.__html)&&void 0!==t&&e.push(p(""+t))}}var $=d(' selected=""');function ee(e,t,n,o){e.push(re(n));var r,i=n=null;for(r in t)if(f.call(t,r)){var s=t[r];if(null!=s)switch(r){case"children":n=s;break;case"dangerouslySetInnerHTML":i=s;break;default:q(e,o,r,s)}}return e.push(X),J(e,i,n),"string"===typeof n?(e.push(p(O(n))),null):n}var te=d("\n"),ne=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,oe=new Map;function re(e){var t=oe.get(e);if(void 0===t){if(!ne.test(e))throw Error(r(65,e));t=d("<"+e),oe.set(e,t)}return t}var ie=d("<!DOCTYPE html>");function se(e,t,n,i,s){switch(t){case"select":e.push(re("select"));var a=null,l=null;for(h in n)if(f.call(n,h)){var u=n[h];if(null!=u)switch(h){case"children":a=u;break;case"dangerouslySetInnerHTML":l=u;break;case"defaultValue":case"value":break;default:q(e,i,h,u)}}return e.push(X),J(e,l,a),a;case"option":l=s.selectedValue,e.push(re("option"));var c=u=null,d=null,h=null;for(a in n)if(f.call(n,a)){var g=n[a];if(null!=g)switch(a){case"children":u=g;break;case"selected":d=g;break;case"dangerouslySetInnerHTML":h=g;break;case"value":c=g;default:q(e,i,a,g)}}if(null!=l)if(n=null!==c?""+c:function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(u),A(l)){for(i=0;i<l.length;i++)if(""+l[i]===n){e.push($);break}}else""+l===n&&e.push($);else d&&e.push($);return e.push(X),J(e,h,u),u;case"textarea":for(u in e.push(re("textarea")),h=l=a=null,n)if(f.call(n,u)&&null!=(c=n[u]))switch(u){case"children":h=c;break;case"value":a=c;break;case"defaultValue":l=c;break;case"dangerouslySetInnerHTML":throw Error(r(91));default:q(e,i,u,c)}if(null===a&&null!==l&&(a=l),e.push(X),null!=h){if(null!=a)throw Error(r(92));if(A(h)&&1<h.length)throw Error(r(93));a=""+h}return"string"===typeof a&&"\n"===a[0]&&e.push(te),null!==a&&e.push(p(O(""+a))),null;case"input":for(l in e.push(re("input")),c=h=u=a=null,n)if(f.call(n,l)&&null!=(d=n[l]))switch(l){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"input"));case"defaultChecked":c=d;break;case"defaultValue":u=d;break;case"checked":h=d;break;case"value":a=d;break;default:q(e,i,l,d)}return null!==h?q(e,i,"checked",h):null!==c&&q(e,i,"checked",c),null!==a?q(e,i,"value",a):null!==u&&q(e,i,"value",u),e.push(Q),null;case"menuitem":for(var m in e.push(re("menuitem")),n)if(f.call(n,m)&&null!=(a=n[m]))switch(m){case"children":case"dangerouslySetInnerHTML":throw Error(r(400));default:q(e,i,m,a)}return e.push(X),null;case"title":for(g in e.push(re("title")),a=null,n)if(f.call(n,g)&&null!=(l=n[g]))switch(g){case"children":a=l;break;case"dangerouslySetInnerHTML":throw Error(r(434));default:q(e,i,g,l)}return e.push(X),a;case"listing":case"pre":for(c in e.push(re(t)),l=a=null,n)if(f.call(n,c)&&null!=(u=n[c]))switch(c){case"children":a=u;break;case"dangerouslySetInnerHTML":l=u;break;default:q(e,i,c,u)}if(e.push(X),null!=l){if(null!=a)throw Error(r(60));if("object"!==typeof l||!("__html"in l))throw Error(r(61));null!==(n=l.__html)&&void 0!==n&&("string"===typeof n&&0<n.length&&"\n"===n[0]?e.push(te,p(n)):e.push(p(""+n)))}return"string"===typeof a&&"\n"===a[0]&&e.push(te),a;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var v in e.push(re(t)),n)if(f.call(n,v)&&null!=(a=n[v]))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,t));default:q(e,i,v,a)}return e.push(Q),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ee(e,n,t,i);case"html":return 0===s.insertionMode&&e.push(ie),ee(e,n,t,i);default:if(-1===t.indexOf("-")&&"string"!==typeof n.is)return ee(e,n,t,i);for(d in e.push(re(t)),l=a=null,n)if(f.call(n,d)&&null!=(u=n[d]))switch(d){case"children":a=u;break;case"dangerouslySetInnerHTML":l=u;break;case"style":U(e,i,u);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:y(d)&&"function"!==typeof u&&"symbol"!==typeof u&&e.push(z,p(d),Z,p(O(u)),Y)}return e.push(X),J(e,l,a),a}}var ae=d("</"),le=d(">"),ue=d('<template id="'),ce=d('"></template>'),pe=d("\x3c!--$--\x3e"),de=d('\x3c!--$?--\x3e<template id="'),he=d('"></template>'),fe=d("\x3c!--$!--\x3e"),ge=d("\x3c!--/$--\x3e"),me=d("<template"),ve=d('"'),ye=d(' data-dgst="');d(' data-msg="'),d(' data-stck="');var Ce=d("></template>");function we(e,t,n){if(a(e,de),null===n)throw Error(r(395));return a(e,n),l(e,he)}var _e=d('<div hidden id="'),be=d('">'),Ee=d("</div>"),Se=d('<svg aria-hidden="true" style="display:none" id="'),Re=d('">'),Oe=d("</svg>"),Te=d('<math aria-hidden="true" style="display:none" id="'),Pe=d('">'),Ae=d("</math>"),De=d('<table hidden id="'),xe=d('">'),Ne=d("</table>"),Me=d('<table hidden><tbody id="'),Ie=d('">'),Le=d("</tbody></table>"),Fe=d('<table hidden><tr id="'),ke=d('">'),Ge=d("</tr></table>"),He=d('<table hidden><colgroup id="'),Be=d('">'),Ve=d("</colgroup></table>");var We=d('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),je=d('$RS("'),Ue=d('","'),ze=d('")<\/script>'),Ze=d('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Ye=d('$RC("'),Ke=d('","'),qe=d('")<\/script>'),Xe=d('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Qe=d('$RX("'),Je=d('"'),$e=d(")<\/script>"),et=d(","),tt=/[<\u2028\u2029]/g;function nt(e){return JSON.stringify(e).replace(tt,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}var ot=Object.assign,rt=Symbol.for("react.element"),it=Symbol.for("react.portal"),st=Symbol.for("react.fragment"),at=Symbol.for("react.strict_mode"),lt=Symbol.for("react.profiler"),ut=Symbol.for("react.provider"),ct=Symbol.for("react.context"),pt=Symbol.for("react.forward_ref"),dt=Symbol.for("react.suspense"),ht=Symbol.for("react.suspense_list"),ft=Symbol.for("react.memo"),gt=Symbol.for("react.lazy"),mt=Symbol.for("react.scope"),vt=Symbol.for("react.debug_trace_mode"),yt=Symbol.for("react.legacy_hidden"),Ct=Symbol.for("react.default_value"),wt=Symbol.iterator;function _t(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 st:return"Fragment";case it:return"Portal";case lt:return"Profiler";case at:return"StrictMode";case dt:return"Suspense";case ht:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case ct:return(e.displayName||"Context")+".Consumer";case ut:return(e._context.displayName||"Context")+".Provider";case pt:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case ft:return null!==(t=e.displayName||null)?t:_t(e.type)||"Memo";case gt:t=e._payload,e=e._init;try{return _t(e(t))}catch(n){}}return null}var bt={};function Et(e,t){if(!(e=e.contextTypes))return bt;var n,o={};for(n in e)o[n]=t[n];return o}var St=null;function Rt(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(r(401))}else{if(null===n)throw Error(r(401));Rt(e,n)}t.context._currentValue=t.value}}function Ot(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&Ot(e)}function Tt(e){var t=e.parent;null!==t&&Tt(t),e.context._currentValue=e.value}function Pt(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(r(402));e.depth===t.depth?Rt(e,t):Pt(e,t)}function At(e,t){var n=t.parent;if(null===n)throw Error(r(402));e.depth===n.depth?Rt(e,n):At(e,n),t.context._currentValue=t.value}function Dt(e){var t=St;t!==e&&(null===t?Tt(e):null===e?Ot(t):t.depth===e.depth?Rt(t,e):t.depth>e.depth?Pt(t,e):At(t,e),St=e)}var xt={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function Nt(e,t,n,o){var r=void 0!==e.state?e.state:null;e.updater=xt,e.props=n,e.state=r;var i={queue:[],replace:!1};e._reactInternals=i;var s=t.contextType;if(e.context="object"===typeof s&&null!==s?s._currentValue:o,"function"===typeof(s=t.getDerivedStateFromProps)&&(r=null===(s=s(n,r))||void 0===s?r:ot({},r,s),e.state=r),"function"!==typeof t.getDerivedStateFromProps&&"function"!==typeof e.getSnapshotBeforeUpdate&&("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount))if(t=e.state,"function"===typeof e.componentWillMount&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&xt.enqueueReplaceState(e,e.state,null),null!==i.queue&&0<i.queue.length)if(t=i.queue,s=i.replace,i.queue=null,i.replace=!1,s&&1===t.length)e.state=t[0];else{for(i=s?t[0]:e.state,r=!0,s=s?1:0;s<t.length;s++){var a=t[s];null!=(a="function"===typeof a?a.call(e,i,n,o):a)&&(r?(r=!1,i=ot({},i,a)):ot(i,a))}e.state=i}else i.queue=null}var Mt={id:1,overflow:""};function It(e,t,n){var o=e.id;e=e.overflow;var r=32-Lt(o)-1;o&=~(1<<r),n+=1;var i=32-Lt(t)+r;if(30<i){var s=r-r%5;return i=(o&(1<<s)-1).toString(32),o>>=s,r-=s,{id:1<<32-Lt(t)+r|n<<r|o,overflow:i+e}}return{id:1<<i|n<<r|o,overflow:e}}var Lt=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(Ft(e)/kt|0)|0},Ft=Math.log,kt=Math.LN2;var Gt="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Ht=null,Bt=null,Vt=null,Wt=null,jt=!1,Ut=!1,zt=0,Zt=null,Yt=0;function Kt(){if(null===Ht)throw Error(r(321));return Ht}function qt(){if(0<Yt)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function Xt(){return null===Wt?null===Vt?(jt=!1,Vt=Wt=qt()):(jt=!0,Wt=Vt):null===Wt.next?(jt=!1,Wt=Wt.next=qt()):(jt=!0,Wt=Wt.next),Wt}function Qt(){Bt=Ht=null,Ut=!1,Vt=null,Yt=0,Wt=Zt=null}function Jt(e,t){return"function"===typeof t?t(e):t}function $t(e,t,n){if(Ht=Kt(),Wt=Xt(),jt){var o=Wt.queue;if(t=o.dispatch,null!==Zt&&void 0!==(n=Zt.get(o))){Zt.delete(o),o=Wt.memoizedState;do{o=e(o,n.action),n=n.next}while(null!==n);return Wt.memoizedState=o,[o,t]}return[Wt.memoizedState,t]}return e=e===Jt?"function"===typeof t?t():t:void 0!==n?n(t):t,Wt.memoizedState=e,e=(e=Wt.queue={last:null,dispatch:null}).dispatch=tn.bind(null,Ht,e),[Wt.memoizedState,e]}function en(e,t){if(Ht=Kt(),t=void 0===t?null:t,null!==(Wt=Xt())){var n=Wt.memoizedState;if(null!==n&&null!==t){var o=n[1];e:if(null===o)o=!1;else{for(var r=0;r<o.length&&r<t.length;r++)if(!Gt(t[r],o[r])){o=!1;break e}o=!0}if(o)return n[0]}}return e=e(),Wt.memoizedState=[e,t],e}function tn(e,t,n){if(25<=Yt)throw Error(r(301));if(e===Ht)if(Ut=!0,e={action:n,next:null},null===Zt&&(Zt=new Map),void 0===(n=Zt.get(t)))Zt.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function nn(){throw Error(r(394))}function on(){}var rn={readContext:function(e){return e._currentValue},useContext:function(e){return Kt(),e._currentValue},useMemo:en,useReducer:$t,useRef:function(e){Ht=Kt();var t=(Wt=Xt()).memoizedState;return null===t?(e={current:e},Wt.memoizedState=e):t},useState:function(e){return $t(Jt,e)},useInsertionEffect:on,useLayoutEffect:function(){},useCallback:function(e,t){return en((function(){return e}),t)},useImperativeHandle:on,useEffect:on,useDebugValue:on,useDeferredValue:function(e){return Kt(),e},useTransition:function(){return Kt(),[!1,nn]},useId:function(){var e=Bt.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-Lt(e)-1)).toString(32)+t;var n=sn;if(null===n)throw Error(r(404));return t=zt++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Kt(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(r(407));return n()}},sn=null,an=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function ln(e){return console.error(e),null}function un(){}function cn(e,t,n,o,r,i,s,a){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&Rn(e)},blockedBoundary:n,blockedSegment:o,abortSet:r,legacyContext:i,context:s,treeContext:a};return r.add(l),l}function pn(e,t,n,o,r,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:o,boundary:n,lastPushedText:r,textEmbedded:i}}function dn(e,t){if(null!=(e=e.onError(t))&&"string"!==typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function hn(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,h(e.destination,t)):(e.status=1,e.fatalError=t)}function fn(e,t,n,o,r){for(Ht={},Bt=t,zt=0,e=n(o,r);Ut;)Ut=!1,zt=0,Yt+=1,Wt=null,e=n(o,r);return Qt(),e}function gn(e,t,n,o){var i=n.render(),s=o.childContextTypes;if(null!==s&&void 0!==s){var a=t.legacyContext;if("function"!==typeof n.getChildContext)o=a;else{for(var l in n=n.getChildContext())if(!(l in s))throw Error(r(108,_t(o)||"Unknown",l));o=ot({},a,n)}t.legacyContext=o,yn(e,t,i),t.legacyContext=a}else yn(e,t,i)}function mn(e,t){if(e&&e.defaultProps){for(var n in t=ot({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function vn(e,t,n,o,i){if("function"===typeof n)if(n.prototype&&n.prototype.isReactComponent){i=Et(n,t.legacyContext);var s=n.contextType;Nt(s=new n(o,"object"===typeof s&&null!==s?s._currentValue:i),n,o,i),gn(e,t,s,n)}else{i=fn(e,t,n,o,s=Et(n,t.legacyContext));var a=0!==zt;if("object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof)Nt(i,n,o,s),gn(e,t,i,n);else if(a){o=t.treeContext,t.treeContext=It(o,1,0);try{yn(e,t,i)}finally{t.treeContext=o}}else yn(e,t,i)}else{if("string"!==typeof n){switch(n){case yt:case vt:case at:case lt:case st:case ht:return void yn(e,t,o.children);case mt:throw Error(r(343));case dt:e:{n=t.blockedBoundary,i=t.blockedSegment,s=o.fallback,o=o.children;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a=new Set,errorDigest:null},u=pn(0,i.chunks.length,l,i.formatContext,!1,!1);i.children.push(u),i.lastPushedText=!1;var c=pn(0,0,null,i.formatContext,!1,!1);c.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=c;try{if(wn(e,t,o),c.lastPushedText&&c.textEmbedded&&c.chunks.push(G),c.status=1,En(l,c),0===l.pendingTasks)break e}catch(d){c.status=4,l.forceClientRender=!0,l.errorDigest=dn(e,d)}finally{t.blockedBoundary=n,t.blockedSegment=i}t=cn(e,s,n,u,a,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"===typeof n&&null!==n)switch(n.$$typeof){case pt:if(o=fn(e,t,n.render,o,i),0!==zt){n=t.treeContext,t.treeContext=It(n,1,0);try{yn(e,t,o)}finally{t.treeContext=n}}else yn(e,t,o);return;case ft:return void vn(e,t,n=n.type,o=mn(n,o),i);case ut:if(i=o.children,n=n._context,o=o.value,s=n._currentValue,n._currentValue=o,St=o={parent:a=St,depth:null===a?0:a.depth+1,context:n,parentValue:s,value:o},t.context=o,yn(e,t,i),null===(e=St))throw Error(r(403));return o=e.parentValue,e.context._currentValue=o===Ct?e.context._defaultValue:o,e=St=e.parent,void(t.context=e);case ct:return void yn(e,t,o=(o=o.children)(n._currentValue));case gt:return void vn(e,t,n=(i=n._init)(n._payload),o=mn(n,o),void 0)}throw Error(r(130,null==n?n:typeof n,""))}switch(s=se((i=t.blockedSegment).chunks,n,o,e.responseState,i.formatContext),i.lastPushedText=!1,a=i.formatContext,i.formatContext=function(e,t,n){switch(t){case"select":return k(1,null!=n.value?n.value:n.defaultValue);case"svg":return k(2,null);case"math":return k(3,null);case"foreignObject":return k(1,null);case"table":return k(4,null);case"thead":case"tbody":case"tfoot":return k(5,null);case"colgroup":return k(7,null);case"tr":return k(6,null)}return 4<=e.insertionMode||0===e.insertionMode?k(1,null):e}(a,n,o),wn(e,t,s),i.formatContext=a,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:i.chunks.push(ae,p(n),le)}i.lastPushedText=!1}}function yn(e,t,n){if(t.node=n,"object"===typeof n&&null!==n){switch(n.$$typeof){case rt:return void vn(e,t,n.type,n.props,n.ref);case it:throw Error(r(257));case gt:var o=n._init;return void yn(e,t,n=o(n._payload))}if(A(n))return void Cn(e,t,n);if(null===n||"object"!==typeof n?o=null:o="function"===typeof(o=wt&&n[wt]||n["@@iterator"])?o:null,o&&(o=o.call(n))){if(!(n=o.next()).done){var i=[];do{i.push(n.value),n=o.next()}while(!n.done);Cn(e,t,i)}return}throw e=Object.prototype.toString.call(n),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"===typeof n?(o=t.blockedSegment).lastPushedText=H(t.blockedSegment.chunks,n,e.responseState,o.lastPushedText):"number"===typeof n&&((o=t.blockedSegment).lastPushedText=H(t.blockedSegment.chunks,""+n,e.responseState,o.lastPushedText))}function Cn(e,t,n){for(var o=n.length,r=0;r<o;r++){var i=t.treeContext;t.treeContext=It(i,o,r);try{wn(e,t,n[r])}finally{t.treeContext=i}}}function wn(e,t,n){var o=t.blockedSegment.formatContext,r=t.legacyContext,i=t.context;try{return yn(e,t,n)}catch(l){if(Qt(),"object"!==typeof l||null===l||"function"!==typeof l.then)throw t.blockedSegment.formatContext=o,t.legacyContext=r,t.context=i,Dt(i),l;n=l;var s=t.blockedSegment,a=pn(0,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=cn(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=o,t.legacyContext=r,t.context=i,Dt(i)}}function _n(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,Sn(this,t,e)}function bn(e,t,n){var o=e.blockedBoundary;e.blockedSegment.status=3,null===o?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.close())):(o.pendingTasks--,o.forceClientRender||(o.forceClientRender=!0,e=void 0===n?Error(r(432)):n,o.errorDigest=t.onError(e),o.parentFlushed&&t.clientRenderedBoundaries.push(o)),o.fallbackAbortableTasks.forEach((function(e){return bn(e,t,n)})),o.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(o=t.onAllReady)())}function En(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&En(e,n)}else e.completedSegments.push(t)}function Sn(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(r(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=un,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&En(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(_n,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(En(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function Rn(e){if(2!==e.status){var t=St,n=an.current;an.current=rn;var o=sn;sn=e.responseState;try{var r,i=e.pingedTasks;for(r=0;r<i.length;r++){var s=i[r],a=e,l=s.blockedSegment;if(0===l.status){Dt(s.context);try{yn(a,s,s.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(G),s.abortSet.delete(s),l.status=1,Sn(a,s.blockedBoundary,l)}catch(h){if(Qt(),"object"===typeof h&&null!==h&&"function"===typeof h.then){var u=s.ping;h.then(u,u)}else{s.abortSet.delete(s),l.status=4;var c=s.blockedBoundary,p=h,d=dn(a,p);if(null===c?hn(a,p):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=d,c.parentFlushed&&a.clientRenderedBoundaries.push(c))),a.allPendingTasks--,0===a.allPendingTasks)(0,a.onAllReady)()}}}}i.splice(0,r),null!==e.destination&&xn(e,e.destination)}catch(h){dn(e,h),hn(e,h)}finally{sn=o,an.current=n,n===rn&&Dt(t)}}}function On(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var o=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,a(t,ue),a(t,e.placeholderPrefix),a(t,e=p(o.toString(16))),l(t,ce);case 1:n.status=2;var i=!0;o=n.chunks;var s=0;n=n.children;for(var u=0;u<n.length;u++){for(i=n[u];s<i.index;s++)a(t,o[s]);i=Tn(e,t,i)}for(;s<o.length-1;s++)a(t,o[s]);return s<o.length&&(i=l(t,o[s])),i;default:throw Error(r(390))}}function Tn(e,t,n){var o=n.boundary;if(null===o)return On(e,t,n);if(o.parentFlushed=!0,o.forceClientRender)o=o.errorDigest,l(t,fe),a(t,me),o&&(a(t,ye),a(t,p(O(o))),a(t,ve)),l(t,Ce),On(e,t,n);else if(0<o.pendingTasks){o.rootSegmentID=e.nextSegmentId++,0<o.completedSegments.length&&e.partialBoundaries.push(o);var i=e.responseState,s=i.nextSuspenseID++;i=d(i.boundaryPrefix+s.toString(16)),o=o.id=i,we(t,e.responseState,o),On(e,t,n)}else if(o.byteSize>e.progressiveChunkSize)o.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(o),we(t,e.responseState,o.id),On(e,t,n);else{if(l(t,pe),1!==(n=o.completedSegments).length)throw Error(r(391));Tn(e,t,n[0])}return l(t,ge)}function Pn(e,t,n){return function(e,t,n,o){switch(n.insertionMode){case 0:case 1:return a(e,_e),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,be);case 2:return a(e,Se),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,Re);case 3:return a(e,Te),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,Pe);case 4:return a(e,De),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,xe);case 5:return a(e,Me),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,Ie);case 6:return a(e,Fe),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,ke);case 7:return a(e,He),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,Be);default:throw Error(r(397))}}(t,e.responseState,n.formatContext,n.id),Tn(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return l(e,Ee);case 2:return l(e,Oe);case 3:return l(e,Ae);case 4:return l(e,Ne);case 5:return l(e,Le);case 6:return l(e,Ge);case 7:return l(e,Ve);default:throw Error(r(397))}}(t,n.formatContext)}function An(e,t,n){for(var o=n.completedSegments,i=0;i<o.length;i++)Dn(e,t,n,o[i]);if(o.length=0,e=e.responseState,o=n.id,n=n.rootSegmentID,a(t,e.startInlineScript),e.sentCompleteBoundaryFunction?a(t,Ye):(e.sentCompleteBoundaryFunction=!0,a(t,Ze)),null===o)throw Error(r(395));return n=p(n.toString(16)),a(t,o),a(t,Ke),a(t,e.segmentPrefix),a(t,n),l(t,qe)}function Dn(e,t,n,o){if(2===o.status)return!0;var i=o.id;if(-1===i){if(-1===(o.id=n.rootSegmentID))throw Error(r(392));return Pn(e,t,o)}return Pn(e,t,o),a(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?a(t,je):(e.sentCompleteSegmentFunction=!0,a(t,We)),a(t,e.segmentPrefix),a(t,i=p(i.toString(16))),a(t,Ue),a(t,e.placeholderPrefix),a(t,i),l(t,ze)}function xn(e,t){i=new Uint8Array(512),s=0;try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){Tn(e,t,n),e.completedRootSegment=null;var o=e.responseState.bootstrapChunks;for(n=0;n<o.length-1;n++)a(t,o[n]);n<o.length&&l(t,o[n])}var c,d=e.clientRenderedBoundaries;for(c=0;c<d.length;c++){var h=d[c];o=t;var f=e.responseState,g=h.id,m=h.errorDigest,v=h.errorMessage,y=h.errorComponentStack;if(a(o,f.startInlineScript),f.sentClientRenderFunction?a(o,Qe):(f.sentClientRenderFunction=!0,a(o,Xe)),null===g)throw Error(r(395));if(a(o,g),a(o,Je),(m||v||y)&&(a(o,et),a(o,p(nt(m||"")))),(v||y)&&(a(o,et),a(o,p(nt(v||"")))),y&&(a(o,et),a(o,p(nt(y)))),!l(o,$e))return e.destination=null,c++,void d.splice(0,c)}d.splice(0,c);var C=e.completedBoundaries;for(c=0;c<C.length;c++)if(!An(e,t,C[c]))return e.destination=null,c++,void C.splice(0,c);C.splice(0,c),u(t),i=new Uint8Array(512),s=0;var w=e.partialBoundaries;for(c=0;c<w.length;c++){var _=w[c];e:{d=e,h=t;var b=_.completedSegments;for(f=0;f<b.length;f++)if(!Dn(d,h,_,b[f])){f++,b.splice(0,f);var E=!1;break e}b.splice(0,f),E=!0}if(!E)return e.destination=null,c++,void w.splice(0,c)}w.splice(0,c);var S=e.completedBoundaries;for(c=0;c<S.length;c++)if(!An(e,t,S[c]))return e.destination=null,c++,void S.splice(0,c);S.splice(0,c)}finally{u(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function Nn(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return bn(n,e,t)})),n.clear(),null!==e.destination&&xn(e,e.destination)}catch(o){dn(e,o),hn(e,o)}}t.renderToReadableStream=function(e,t){return new Promise((function(n,o){var r,i,s=new Promise((function(e,t){i=e,r=t})),a=function(e,t,n,o,r,i,s,a,l){var u=[],c=new Set;return(n=pn(t={destination:null,responseState:t,progressiveChunkSize:void 0===o?12800:o,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===r?ln:r,onAllReady:void 0===i?un:i,onShellReady:void 0===s?un:s,onShellError:void 0===a?un:a,onFatalError:void 0===l?un:l},0,null,n,!1,!1)).parentFlushed=!0,e=cn(t,e,null,n,c,bt,null,Mt),u.push(e),t}(e,function(e,t,n,o,r){e=void 0===e?"":e,t=void 0===t?D:d('<script nonce="'+O(t)+'">');var i=[];if(void 0!==n&&i.push(t,p((""+n).replace(L,F)),x),void 0!==o)for(n=0;n<o.length;n++)i.push(N,p(O(o[n])),I);if(void 0!==r)for(o=0;o<r.length;o++)i.push(M,p(O(r[o])),I);return{bootstrapChunks:i,startInlineScript:t,placeholderPrefix:d(e+"P:"),segmentPrefix:d(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),function(e){return k("http://www.w3.org/2000/svg"===e?2:"http://www.w3.org/1998/Math/MathML"===e?3:0,null)}(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,i,(function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===a.status)a.status=2,h(e,a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=e;try{xn(a,e)}catch(t){dn(a,t),hn(a,t)}}},cancel:function(){Nn(a)}},{highWaterMark:0});e.allReady=s,n(e)}),(function(e){s.catch((function(){})),o(e)}),r);if(t&&t.signal){var l=t.signal;l.addEventListener("abort",(function e(){Nn(a,l.reason),l.removeEventListener("abort",e)}))}Rn(a)}))},t.version="18.2.0"},4463:function(e,t,n){"use strict";var o=n(2791),r=n(5296);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=new Set,a={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(a[e]=t,e=0;e<t.length;e++)s.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),p=Object.prototype.hasOwnProperty,d=/^[: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]*$/,h={},f={};function g(e,t,n,o,r,i,s){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,this.removeEmptyString=s}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function C(e,t,n,o){var r=m.hasOwnProperty(t)?m[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||"undefined"===typeof 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!!p.call(f,e)||!p.call(h,e)&&(d.test(e)?f[e]=!0:(h[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))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),b=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),T=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var I=Symbol.iterator;function L(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=I&&e[I]||e["@@iterator"])?e:null}var F,k=Object.assign;function G(e){if(void 0===F)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var H=!1;function B(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var o=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){o=u}e.call(t.prototype)}else{try{throw Error()}catch(u){o=u}e()}}catch(u){if(u&&o&&"string"===typeof u.stack){for(var r=u.stack.split("\n"),i=o.stack.split("\n"),s=r.length-1,a=i.length-1;1<=s&&0<=a&&r[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(r[s]!==i[a]){if(1!==s||1!==a)do{if(s--,0>--a||r[s]!==i[a]){var l="\n"+r[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=a);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?G(e):""}function V(e){switch(e.tag){case 5:return G(e.type);case 16:return G("Lazy");case 13:return G("Suspense");case 19:return G("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function W(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 E:return"Fragment";case b:return"Portal";case R:return"Profiler";case S:return"StrictMode";case A:return"Suspense";case D:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case x:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return W(e(t))}catch(n){}}return null}function j(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function z(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Z(e){e._valueTracker||(e._valueTracker=function(e){var t=z(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof 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 Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=z(e)?e.checked?"true":"false":e.value),(e=o)!==n&&(t.setValue(e),!0)}function K(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function q(e,t){var n=t.checked;return k({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=U(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 Q(e,t){null!=(t=t.checked)&&C(e,"checked",t,!1)}function J(e,t){Q(e,t);var n=U(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")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function $(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 ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(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=""+U(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 oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return k({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function re(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:U(n)}}function ie(e,t){var n=U(t.value),o=U(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 se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(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 le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,pe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,o){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var o=0===n.indexOf("--"),r=ge(n,t[n],o);"float"===n&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}Object.keys(he).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ve=k({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 ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function Ce(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 we=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var be=null,Ee=null,Se=null;function Re(e){if(e=wr(e)){if("function"!==typeof be)throw Error(i(280));var t=e.stateNode;t&&(t=br(t),be(e.stateNode,e.type,t))}}function Oe(e){Ee?Se?Se.push(e):Se=[e]:Ee=e}function Te(){if(Ee){var e=Ee,t=Se;if(Se=Ee=null,Re(e),t)for(e=0;e<t.length;e++)Re(t[e])}}function Pe(e,t){return e(t)}function Ae(){}var De=!1;function xe(e,t,n){if(De)return e(t,n);De=!0;try{return Pe(e,t,n)}finally{De=!1,(null!==Ee||null!==Se)&&(Ae(),Te())}}function Ne(e,t){var n=e.stateNode;if(null===n)return null;var o=br(n);if(null===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(i(231,t,typeof n));return n}var Me=!1;if(c)try{var Ie={};Object.defineProperty(Ie,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Ie,Ie),window.removeEventListener("test",Ie,Ie)}catch(ce){Me=!1}function Le(e,t,n,o,r,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Fe=!1,ke=null,Ge=!1,He=null,Be={onError:function(e){Fe=!0,ke=e}};function Ve(e,t,n,o,r,i,s,a,l){Fe=!1,ke=null,Le.apply(Be,arguments)}function We(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function je(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 Ue(e){if(We(e)!==e)throw Error(i(188))}function ze(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,o=t;;){var r=n.return;if(null===r)break;var s=r.alternate;if(null===s){if(null!==(o=r.return)){n=o;continue}break}if(r.child===s.child){for(s=r.child;s;){if(s===n)return Ue(r),e;if(s===o)return Ue(r),t;s=s.sibling}throw Error(i(188))}if(n.return!==o.return)n=r,o=s;else{for(var a=!1,l=r.child;l;){if(l===n){a=!0,n=r,o=s;break}if(l===o){a=!0,o=r,n=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===n){a=!0,n=s,o=r;break}if(l===o){a=!0,o=s,n=r;break}l=l.sibling}if(!a)throw Error(i(189))}}if(n.alternate!==o)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ze(e):null}function Ze(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ze(e);if(null!==t)return t;e=e.sibling}return null}var Ye=r.unstable_scheduleCallback,Ke=r.unstable_cancelCallback,qe=r.unstable_shouldYield,Xe=r.unstable_requestPaint,Qe=r.unstable_now,Je=r.unstable_getCurrentPriorityLevel,$e=r.unstable_ImmediatePriority,et=r.unstable_UserBlockingPriority,tt=r.unstable_NormalPriority,nt=r.unstable_LowPriority,ot=r.unstable_IdlePriority,rt=null,it=null;var st=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(at(e)/lt|0)|0},at=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function pt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var o=0,r=e.suspendedLanes,i=e.pingedLanes,s=268435455&n;if(0!==s){var a=s&~r;0!==a?o=pt(a):0!==(i&=s)&&(o=pt(i))}else 0!==(s=n&~r)?o=pt(s):0!==i&&(o=pt(i));if(0===o)return 0;if(0!==t&&t!==o&&0===(t&r)&&((r=o&-o)>=(i=t&-t)||16===r&&0!==(4194240&i)))return t;if(0!==(4&o)&&(o|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=o;0<t;)r=1<<(n=31-st(t)),o|=e[n],t&=~r;return o}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ut;return 0===(4194240&(ut<<=1))&&(ut=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var o=31-st(n),r=1<<o;r&t|e[o]&t&&(e[o]|=t),n&=~r}}var Ct=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var _t,bt,Et,St,Rt,Ot=!1,Tt=[],Pt=null,At=null,Dt=null,xt=new Map,Nt=new Map,Mt=[],It="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Lt(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Dt=null;break;case"pointerover":case"pointerout":xt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nt.delete(t.pointerId)}}function Ft(e,t,n,o,r,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:o,nativeEvent:i,targetContainers:[r]},null!==t&&(null!==(t=wr(t))&&bt(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,null!==r&&-1===t.indexOf(r)&&t.push(r),e)}function kt(e){var t=Cr(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=je(n)))return e.blockedOn=t,void Rt(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wr(n))&&bt(t),e.blockedOn=n,!1;var o=new(n=e.nativeEvent).constructor(n.type,n);we=o,n.target.dispatchEvent(o),we=null,t.shift()}return!0}function Ht(e,t,n){Gt(e)&&n.delete(t)}function Bt(){Ot=!1,null!==Pt&&Gt(Pt)&&(Pt=null),null!==At&&Gt(At)&&(At=null),null!==Dt&&Gt(Dt)&&(Dt=null),xt.forEach(Ht),Nt.forEach(Ht)}function Vt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Bt)))}function Wt(e){function t(t){return Vt(t,e)}if(0<Tt.length){Vt(Tt[0],e);for(var n=1;n<Tt.length;n++){var o=Tt[n];o.blockedOn===e&&(o.blockedOn=null)}}for(null!==Pt&&Vt(Pt,e),null!==At&&Vt(At,e),null!==Dt&&Vt(Dt,e),xt.forEach(t),Nt.forEach(t),n=0;n<Mt.length;n++)(o=Mt[n]).blockedOn===e&&(o.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)kt(n),null===n.blockedOn&&Mt.shift()}var jt=w.ReactCurrentBatchConfig,Ut=!0;function zt(e,t,n,o){var r=Ct,i=jt.transition;jt.transition=null;try{Ct=1,Yt(e,t,n,o)}finally{Ct=r,jt.transition=i}}function Zt(e,t,n,o){var r=Ct,i=jt.transition;jt.transition=null;try{Ct=4,Yt(e,t,n,o)}finally{Ct=r,jt.transition=i}}function Yt(e,t,n,o){if(Ut){var r=qt(e,t,n,o);if(null===r)zo(e,t,o,Kt,n),Lt(e,o);else if(function(e,t,n,o,r){switch(t){case"focusin":return Pt=Ft(Pt,e,t,n,o,r),!0;case"dragenter":return At=Ft(At,e,t,n,o,r),!0;case"mouseover":return Dt=Ft(Dt,e,t,n,o,r),!0;case"pointerover":var i=r.pointerId;return xt.set(i,Ft(xt.get(i)||null,e,t,n,o,r)),!0;case"gotpointercapture":return i=r.pointerId,Nt.set(i,Ft(Nt.get(i)||null,e,t,n,o,r)),!0}return!1}(r,e,t,n,o))o.stopPropagation();else if(Lt(e,o),4&t&&-1<It.indexOf(e)){for(;null!==r;){var i=wr(r);if(null!==i&&_t(i),null===(i=qt(e,t,n,o))&&zo(e,t,o,Kt,n),i===r)break;r=i}null!==r&&o.stopPropagation()}else zo(e,t,o,null,n)}}var Kt=null;function qt(e,t,n,o){if(Kt=null,null!==(e=Cr(e=_e(o))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=je(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case $e:return 1;case et:return 4;case tt:case nt:return 16;case ot:return 536870912;default:return 16}default:return 16}}var Qt=null,Jt=null,$t=null;function en(){if($t)return $t;var e,t,n=Jt,o=n.length,r="value"in Qt?Qt.value:Qt.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 $t=r.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function on(){return!1}function rn(e){function t(t,n,o,r,i){for(var s in this._reactName=t,this._targetInst=o,this.type=n,this.nativeEvent=r,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(r):r[s]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?nn:on,this.isPropagationStopped=on,this}return k(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var sn,an,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=rn(un),pn=k({},un,{view:0,detail:0}),dn=rn(pn),hn=k({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(sn=e.screenX-ln.screenX,an=e.screenY-ln.screenY):an=sn=0,ln=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:an}}),fn=rn(hn),gn=rn(k({},hn,{dataTransfer:0})),mn=rn(k({},pn,{relatedTarget:0})),vn=rn(k({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=k({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cn=rn(yn),wn=rn(k({},un,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bn={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"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Rn(){return Sn}var On=k({},pn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?bn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=rn(On),Pn=rn(k({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=rn(k({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rn})),Dn=rn(k({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),xn=k({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Nn=rn(xn),Mn=[9,13,27,32],In=c&&"CompositionEvent"in window,Ln=null;c&&"documentMode"in document&&(Ln=document.documentMode);var Fn=c&&"TextEvent"in window&&!Ln,kn=c&&(!In||Ln&&8<Ln&&11>=Ln),Gn=String.fromCharCode(32),Hn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1;var jn={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 Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!jn[e.type]:"textarea"===t}function zn(e,t,n,o){Oe(o),0<(t=Yo(t,"onChange")).length&&(n=new cn("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var Zn=null,Yn=null;function Kn(e){Ho(e,0)}function qn(e){if(Y(_r(e)))return e}function Xn(e,t){if("change"===e)return t}var Qn=!1;if(c){var Jn;if(c){var $n="oninput"in document;if(!$n){var eo=document.createElement("div");eo.setAttribute("oninput","return;"),$n="function"===typeof eo.oninput}Jn=$n}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function to(){Zn&&(Zn.detachEvent("onpropertychange",no),Yn=Zn=null)}function no(e){if("value"===e.propertyName&&qn(Yn)){var t=[];zn(t,Yn,e,_e(e)),xe(Kn,t)}}function oo(e,t,n){"focusin"===e?(to(),Yn=n,(Zn=t).attachEvent("onpropertychange",no)):"focusout"===e&&to()}function ro(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Yn)}function io(e,t){if("click"===e)return qn(t)}function so(e,t){if("input"===e||"change"===e)return qn(t)}var ao="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lo(e,t){if(ao(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++){var r=n[o];if(!p.call(t,r)||!ao(e[r],t[r]))return!1}return!0}function uo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function co(e,t){var n,o=uo(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=uo(o)}}function po(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?po(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ho(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(o){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function fo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function go(e){var t=ho(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&po(n.ownerDocument.documentElement,n)){if(null!==o&&fo(n))if(t=o.start,void 0===(e=o.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var r=n.textContent.length,i=Math.min(o.start,r);o=void 0===o.end?i:Math.min(o.end,r),!e.extend&&i>o&&(r=o,o=i,i=r),r=co(n,i);var s=co(n,o);r&&s&&(1!==e.rangeCount||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(r.node,r.offset),e.removeAllRanges(),i>o?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mo=c&&"documentMode"in document&&11>=document.documentMode,vo=null,yo=null,Co=null,wo=!1;function _o(e,t,n){var o=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wo||null==vo||vo!==K(o)||("selectionStart"in(o=vo)&&fo(o)?o={start:o.selectionStart,end:o.selectionEnd}:o={anchorNode:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset},Co&&lo(Co,o)||(Co=o,0<(o=Yo(yo,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=vo)))}function bo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Eo={animationend:bo("Animation","AnimationEnd"),animationiteration:bo("Animation","AnimationIteration"),animationstart:bo("Animation","AnimationStart"),transitionend:bo("Transition","TransitionEnd")},So={},Ro={};function Oo(e){if(So[e])return So[e];if(!Eo[e])return e;var t,n=Eo[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ro)return So[e]=n[t];return e}c&&(Ro=document.createElement("div").style,"AnimationEvent"in window||(delete Eo.animationend.animation,delete Eo.animationiteration.animation,delete Eo.animationstart.animation),"TransitionEvent"in window||delete Eo.transitionend.transition);var To=Oo("animationend"),Po=Oo("animationiteration"),Ao=Oo("animationstart"),Do=Oo("transitionend"),xo=new Map,No="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mo(e,t){xo.set(e,t),l(t,[e])}for(var Io=0;Io<No.length;Io++){var Lo=No[Io];Mo(Lo.toLowerCase(),"on"+(Lo[0].toUpperCase()+Lo.slice(1)))}Mo(To,"onAnimationEnd"),Mo(Po,"onAnimationIteration"),Mo(Ao,"onAnimationStart"),Mo("dblclick","onDoubleClick"),Mo("focusin","onFocus"),Mo("focusout","onBlur"),Mo(Do,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ko=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fo));function Go(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,o,r,s,a,l,u){if(Ve.apply(this,arguments),Fe){if(!Fe)throw Error(i(198));var c=ke;Fe=!1,ke=null,Ge||(Ge=!0,He=c)}}(o,t,void 0,e),e.currentTarget=null}function Ho(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var o=e[n],r=o.event;o=o.listeners;e:{var i=void 0;if(t)for(var s=o.length-1;0<=s;s--){var a=o[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&r.isPropagationStopped())break e;Go(r,a,u),i=l}else for(s=0;s<o.length;s++){if(l=(a=o[s]).instance,u=a.currentTarget,a=a.listener,l!==i&&r.isPropagationStopped())break e;Go(r,a,u),i=l}}}if(Ge)throw e=He,Ge=!1,He=null,e}function Bo(e,t){var n=t[mr];void 0===n&&(n=t[mr]=new Set);var o=e+"__bubble";n.has(o)||(Uo(t,e,2,!1),n.add(o))}function Vo(e,t,n){var o=0;t&&(o|=4),Uo(n,e,o,t)}var Wo="_reactListening"+Math.random().toString(36).slice(2);function jo(e){if(!e[Wo]){e[Wo]=!0,s.forEach((function(t){"selectionchange"!==t&&(ko.has(t)||Vo(t,!1,e),Vo(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Wo]||(t[Wo]=!0,Vo("selectionchange",!1,t))}}function Uo(e,t,n,o){switch(Xt(t)){case 1:var r=zt;break;case 4:r=Zt;break;default:r=Yt}n=r.bind(null,t,n,e),r=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r=!0),o?void 0!==r?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):void 0!==r?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function zo(e,t,n,o,r){var i=o;if(0===(1&t)&&0===(2&t)&&null!==o)e:for(;;){if(null===o)return;var s=o.tag;if(3===s||4===s){var a=o.stateNode.containerInfo;if(a===r||8===a.nodeType&&a.parentNode===r)break;if(4===s)for(s=o.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===r||8===l.nodeType&&l.parentNode===r))return;s=s.return}for(;null!==a;){if(null===(s=Cr(a)))return;if(5===(l=s.tag)||6===l){o=i=s;continue e}a=a.parentNode}}o=o.return}xe((function(){var o=i,r=_e(n),s=[];e:{var a=xo.get(e);if(void 0!==a){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":u="focus",l=mn;break;case"focusout":u="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=An;break;case To:case Po:case Ao:l=vn;break;case Do:l=Dn;break;case"scroll":l=dn;break;case"wheel":l=Nn;break;case"copy":case"cut":case"paste":l=Cn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Pn}var c=0!==(4&t),p=!c&&"scroll"===e,d=c?null!==a?a+"Capture":null:a;c=[];for(var h,f=o;null!==f;){var g=(h=f).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==d&&(null!=(g=Ne(f,d))&&c.push(Zo(f,g,h)))),p)break;f=f.return}0<c.length&&(a=new l(a,u,null,n,r),s.push({event:a,listeners:c}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===we||!(u=n.relatedTarget||n.fromElement)||!Cr(u)&&!u[gr])&&(l||a)&&(a=r.window===r?r:(a=r.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=o,null!==(u=(u=n.relatedTarget||n.toElement)?Cr(u):null)&&(u!==(p=We(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=o),l!==u)){if(c=fn,g="onMouseLeave",d="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=Pn,g="onPointerLeave",d="onPointerEnter",f="pointer"),p=null==l?a:_r(l),h=null==u?a:_r(u),(a=new c(g,f+"leave",l,n,r)).target=p,a.relatedTarget=h,g=null,Cr(r)===o&&((c=new c(d,f+"enter",u,n,r)).target=h,c.relatedTarget=p,g=c),p=g,l&&u)e:{for(d=u,f=0,h=c=l;h;h=Ko(h))f++;for(h=0,g=d;g;g=Ko(g))h++;for(;0<f-h;)c=Ko(c),f--;for(;0<h-f;)d=Ko(d),h--;for(;f--;){if(c===d||null!==d&&c===d.alternate)break e;c=Ko(c),d=Ko(d)}c=null}else c=null;null!==l&&qo(s,a,l,c,!1),null!==u&&null!==p&&qo(s,p,u,c,!0)}if("select"===(l=(a=o?_r(o):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var m=Xn;else if(Un(a))if(Qn)m=so;else{m=ro;var v=oo}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(m=io);switch(m&&(m=m(e,o))?zn(s,m,n,r):(v&&v(e,a,o),"focusout"===e&&(v=a._wrapperState)&&v.controlled&&"number"===a.type&&ee(a,"number",a.value)),v=o?_r(o):window,e){case"focusin":(Un(v)||"true"===v.contentEditable)&&(vo=v,yo=o,Co=null);break;case"focusout":Co=yo=vo=null;break;case"mousedown":wo=!0;break;case"contextmenu":case"mouseup":case"dragend":wo=!1,_o(s,n,r);break;case"selectionchange":if(mo)break;case"keydown":case"keyup":_o(s,n,r)}var y;if(In)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Wn?Bn(e,n)&&(C="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(C="onCompositionStart");C&&(kn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==C?"onCompositionEnd"===C&&Wn&&(y=en()):(Jt="value"in(Qt=r)?Qt.value:Qt.textContent,Wn=!0)),0<(v=Yo(o,C)).length&&(C=new wn(C,e,null,n,r),s.push({event:C,listeners:v}),y?C.data=y:null!==(y=Vn(n))&&(C.data=y))),(y=Fn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Hn=!0,Gn);case"textInput":return(e=t.data)===Gn&&Hn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!In&&Bn(e,t)?(e=en(),$t=Jt=Qt=null,Wn=!1,e):null;switch(e){case"paste":default: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 kn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(o=Yo(o,"onBeforeInput")).length&&(r=new wn("onBeforeInput","beforeinput",null,n,r),s.push({event:r,listeners:o}),r.data=y))}Ho(s,t)}))}function Zo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yo(e,t){for(var n=t+"Capture",o=[];null!==e;){var r=e,i=r.stateNode;5===r.tag&&null!==i&&(r=i,null!=(i=Ne(e,n))&&o.unshift(Zo(e,i,r)),null!=(i=Ne(e,t))&&o.push(Zo(e,i,r))),e=e.return}return o}function Ko(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function qo(e,t,n,o,r){for(var i=t._reactName,s=[];null!==n&&n!==o;){var a=n,l=a.alternate,u=a.stateNode;if(null!==l&&l===o)break;5===a.tag&&null!==u&&(a=u,r?null!=(l=Ne(n,i))&&s.unshift(Zo(n,l,a)):r||null!=(l=Ne(n,i))&&s.push(Zo(n,l,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Xo=/\r\n?/g,Qo=/\u0000|\uFFFD/g;function Jo(e){return("string"===typeof e?e:""+e).replace(Xo,"\n").replace(Qo,"")}function $o(e,t,n){if(t=Jo(t),Jo(e)!==t&&n)throw Error(i(425))}function er(){}var tr=null,nr=null;function or(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var rr="function"===typeof setTimeout?setTimeout:void 0,ir="function"===typeof clearTimeout?clearTimeout:void 0,sr="function"===typeof Promise?Promise:void 0,ar="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof sr?function(e){return sr.resolve(null).then(e).catch(lr)}:rr;function lr(e){setTimeout((function(){throw e}))}function ur(e,t){var n=t,o=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===o)return e.removeChild(r),void Wt(t);o--}else"$"!==n&&"$?"!==n&&"$!"!==n||o++;n=r}while(n);Wt(t)}function cr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function pr(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 dr=Math.random().toString(36).slice(2),hr="__reactFiber$"+dr,fr="__reactProps$"+dr,gr="__reactContainer$"+dr,mr="__reactEvents$"+dr,vr="__reactListeners$"+dr,yr="__reactHandles$"+dr;function Cr(e){var t=e[hr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gr]||n[hr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=pr(e);null!==e;){if(n=e[hr])return n;e=pr(e)}return t}n=(e=n).parentNode}return null}function wr(e){return!(e=e[hr]||e[gr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _r(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function br(e){return e[fr]||null}var Er=[],Sr=-1;function Rr(e){return{current:e}}function Or(e){0>Sr||(e.current=Er[Sr],Er[Sr]=null,Sr--)}function Tr(e,t){Sr++,Er[Sr]=e.current,e.current=t}var Pr={},Ar=Rr(Pr),Dr=Rr(!1),xr=Pr;function Nr(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 Mr(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ir(){Or(Dr),Or(Ar)}function Lr(e,t,n){if(Ar.current!==Pr)throw Error(i(168));Tr(Ar,t),Tr(Dr,n)}function Fr(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,"function"!==typeof o.getChildContext)return n;for(var r in o=o.getChildContext())if(!(r in t))throw Error(i(108,j(e)||"Unknown",r));return k({},n,o)}function kr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pr,xr=Ar.current,Tr(Ar,e),Tr(Dr,Dr.current),!0}function Gr(e,t,n){var o=e.stateNode;if(!o)throw Error(i(169));n?(e=Fr(e,t,xr),o.__reactInternalMemoizedMergedChildContext=e,Or(Dr),Or(Ar),Tr(Ar,e)):Or(Dr),Tr(Dr,n)}var Hr=null,Br=!1,Vr=!1;function Wr(e){null===Hr?Hr=[e]:Hr.push(e)}function jr(){if(!Vr&&null!==Hr){Vr=!0;var e=0,t=Ct;try{var n=Hr;for(Ct=1;e<n.length;e++){var o=n[e];do{o=o(!0)}while(null!==o)}Hr=null,Br=!1}catch(r){throw null!==Hr&&(Hr=Hr.slice(e+1)),Ye($e,jr),r}finally{Ct=t,Vr=!1}}return null}var Ur=[],zr=0,Zr=null,Yr=0,Kr=[],qr=0,Xr=null,Qr=1,Jr="";function $r(e,t){Ur[zr++]=Yr,Ur[zr++]=Zr,Zr=e,Yr=t}function ei(e,t,n){Kr[qr++]=Qr,Kr[qr++]=Jr,Kr[qr++]=Xr,Xr=e;var o=Qr;e=Jr;var r=32-st(o)-1;o&=~(1<<r),n+=1;var i=32-st(t)+r;if(30<i){var s=r-r%5;i=(o&(1<<s)-1).toString(32),o>>=s,r-=s,Qr=1<<32-st(t)+r|n<<r|o,Jr=i+e}else Qr=1<<i|n<<r|o,Jr=e}function ti(e){null!==e.return&&($r(e,1),ei(e,1,0))}function ni(e){for(;e===Zr;)Zr=Ur[--zr],Ur[zr]=null,Yr=Ur[--zr],Ur[zr]=null;for(;e===Xr;)Xr=Kr[--qr],Kr[qr]=null,Jr=Kr[--qr],Kr[qr]=null,Qr=Kr[--qr],Kr[qr]=null}var oi=null,ri=null,ii=!1,si=null;function ai(e,t){var n=xu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(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,oi=e,ri=cr(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,oi=e,ri=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xr?{id:Qr,overflow:Jr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=xu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,oi=e,ri=null,!0);default:return!1}}function ui(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ci(e){if(ii){var t=ri;if(t){var n=t;if(!li(e,t)){if(ui(e))throw Error(i(418));t=cr(n.nextSibling);var o=oi;t&&li(e,t)?ai(o,n):(e.flags=-4097&e.flags|2,ii=!1,oi=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,oi=e}}}function pi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;oi=e}function di(e){if(e!==oi)return!1;if(!ii)return pi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!or(e.type,e.memoizedProps)),t&&(t=ri)){if(ui(e))throw hi(),Error(i(418));for(;t;)ai(e,t),t=cr(t.nextSibling)}if(pi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ri=cr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ri=null}}else ri=oi?cr(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=ri;e;)e=cr(e.nextSibling)}function fi(){ri=oi=null,ii=!1}function gi(e){null===si?si=[e]:si.push(e)}var mi=w.ReactCurrentBatchConfig;function vi(e,t){if(e&&e.defaultProps){for(var n in t=k({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var yi=Rr(null),Ci=null,wi=null,_i=null;function bi(){_i=wi=Ci=null}function Ei(e){var t=yi.current;Or(yi),e._currentValue=t}function Si(e,t,n){for(;null!==e;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==o&&(o.childLanes|=t)):null!==o&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Ri(e,t){Ci=e,_i=wi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(wa=!0),e.firstContext=null)}function Oi(e){var t=e._currentValue;if(_i!==e)if(e={context:e,memoizedValue:t,next:null},null===wi){if(null===Ci)throw Error(i(308));wi=e,Ci.dependencies={lanes:0,firstContext:e}}else wi=wi.next=e;return t}var Ti=null;function Pi(e){null===Ti?Ti=[e]:Ti.push(e)}function Ai(e,t,n,o){var r=t.interleaved;return null===r?(n.next=n,Pi(t)):(n.next=r.next,r.next=n),t.interleaved=n,Di(e,o)}function Di(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var xi=!1;function Ni(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ii(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Li(e,t,n){var o=e.updateQueue;if(null===o)return null;if(o=o.shared,0!==(2&Pl)){var r=o.pending;return null===r?t.next=t:(t.next=r.next,r.next=t),o.pending=t,Di(e,n)}return null===(r=o.interleaved)?(t.next=t,Pi(o)):(t.next=r.next,r.next=t),o.interleaved=t,Di(e,n)}function Fi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var o=t.lanes;n|=o&=e.pendingLanes,t.lanes=n,yt(e,n)}}function ki(e,t){var n=e.updateQueue,o=e.alternate;if(null!==o&&n===(o=o.updateQueue)){var r=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?r=i=s:i=i.next=s,n=n.next}while(null!==n);null===i?r=i=t:i=i.next=t}else r=i=t;return n={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:o.shared,effects:o.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Gi(e,t,n,o){var r=e.updateQueue;xi=!1;var i=r.firstBaseUpdate,s=r.lastBaseUpdate,a=r.shared.pending;if(null!==a){r.shared.pending=null;var l=a,u=l.next;l.next=null,null===s?i=u:s.next=u,s=l;var c=e.alternate;null!==c&&((a=(c=c.updateQueue).lastBaseUpdate)!==s&&(null===a?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(null!==i){var p=r.baseState;for(s=0,c=u=l=null,a=i;;){var d=a.lane,h=a.eventTime;if((o&d)===d){null!==c&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var f=e,g=a;switch(d=t,h=n,g.tag){case 1:if("function"===typeof(f=g.payload)){p=f.call(h,p,d);break e}p=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null===(d="function"===typeof(f=g.payload)?f.call(h,p,d):f)||void 0===d)break e;p=k({},p,d);break e;case 2:xi=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(d=r.effects)?r.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(u=c=h,l=p):c=c.next=h,s|=d;if(null===(a=a.next)){if(null===(a=r.shared.pending))break;a=(d=a).next,d.next=null,r.lastBaseUpdate=d,r.shared.pending=null}}if(null===c&&(l=p),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,null!==(t=r.shared.interleaved)){r=t;do{s|=r.lane,r=r.next}while(r!==t)}else null===i&&(r.shared.lanes=0);Fl|=s,e.lanes=s,e.memoizedState=p}}function Hi(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=n,"function"!==typeof r)throw Error(i(191,r));r.call(o)}}}var Bi=(new o.Component).refs;function Vi(e,t,n,o){n=null===(n=n(o,t=e.memoizedState))||void 0===n?t:k({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Wi={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=eu(),r=tu(e),i=Ii(o,r);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Li(e,i,r))&&(nu(t,e,r,o),Fi(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=eu(),r=tu(e),i=Ii(o,r);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Li(e,i,r))&&(nu(t,e,r,o),Fi(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),o=tu(e),r=Ii(n,o);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),null!==(t=Li(e,r,o))&&(nu(t,e,o,n),Fi(t,e,o))}};function ji(e,t,n,o,r,i,s){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,i,s):!t.prototype||!t.prototype.isPureReactComponent||(!lo(n,o)||!lo(r,i))}function Ui(e,t,n){var o=!1,r=Pr,i=t.contextType;return"object"===typeof i&&null!==i?i=Oi(i):(r=Mr(t)?xr:Ar.current,i=(o=null!==(o=t.contextTypes)&&void 0!==o)?Nr(e,r):Pr),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Wi,e.stateNode=t,t._reactInternals=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),t}function zi(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&&Wi.enqueueReplaceState(t,t.state,null)}function Zi(e,t,n,o){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=Bi,Ni(e);var i=t.contextType;"object"===typeof i&&null!==i?r.context=Oi(i):(i=Mr(t)?xr:Ar.current,r.context=Nr(e,i)),r.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(Vi(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&&Wi.enqueueReplaceState(r,r.state,null),Gi(e,n,r,o),r.state=e.memoizedState),"function"===typeof r.componentDidMount&&(e.flags|=4194308)}function Yi(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(i(309));var o=n.stateNode}if(!o)throw Error(i(147,e));var r=o,s=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=r.refs;t===Bi&&(t=r.refs={}),null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Ki(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function qi(e){return(0,e._init)(e._payload)}function Xi(e){function t(t,n){if(e){var o=t.deletions;null===o?(t.deletions=[n],t.flags|=16):o.push(n)}}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=Mu(e,t)).index=0,e.sibling=null,e}function s(t,n,o){return t.index=o,e?null!==(o=t.alternate)?(o=o.index)<n?(t.flags|=2,n):o:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,o){return null===t||6!==t.tag?((t=ku(n,e.mode,o)).return=e,t):((t=r(t,n)).return=e,t)}function u(e,t,n,o){var i=n.type;return i===E?p(e,t,n.props.children,o,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===N&&qi(i)===t.type)?((o=r(t,n.props)).ref=Yi(e,t,n),o.return=e,o):((o=Iu(n.type,n.key,n.props,null,e.mode,o)).ref=Yi(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=Gu(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=Lu(n,e.mode,o,i)).return=e,t):((t=r(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=ku(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Iu(t.type,t.key,t.props,null,e.mode,n)).ref=Yi(e,null,t),n.return=e,n;case b:return(t=Gu(t,e.mode,n)).return=e,t;case N:return d(e,(0,t._init)(t._payload),n)}if(te(t)||L(t))return(t=Lu(t,e.mode,n,null)).return=e,t;Ki(e,t)}return null}function h(e,t,n,o){var r=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==r?null:l(e,t,""+n,o);if("object"===typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===r?u(e,t,n,o):null;case b:return n.key===r?c(e,t,n,o):null;case N:return h(e,t,(r=n._init)(n._payload),o)}if(te(n)||L(n))return null!==r?null:p(e,t,n,o,null);Ki(e,n)}return null}function f(e,t,n,o,r){if("string"===typeof o&&""!==o||"number"===typeof o)return l(t,e=e.get(n)||null,""+o,r);if("object"===typeof o&&null!==o){switch(o.$$typeof){case _:return u(t,e=e.get(null===o.key?n:o.key)||null,o,r);case b:return c(t,e=e.get(null===o.key?n:o.key)||null,o,r);case N:return f(e,t,n,(0,o._init)(o._payload),r)}if(te(o)||L(o))return p(t,e=e.get(n)||null,o,r,null);Ki(t,o)}return null}function g(r,i,a,l){for(var u=null,c=null,p=i,g=i=0,m=null;null!==p&&g<a.length;g++){p.index>g?(m=p,p=null):m=p.sibling;var v=h(r,p,a[g],l);if(null===v){null===p&&(p=m);break}e&&p&&null===v.alternate&&t(r,p),i=s(v,i,g),null===c?u=v:c.sibling=v,c=v,p=m}if(g===a.length)return n(r,p),ii&&$r(r,g),u;if(null===p){for(;g<a.length;g++)null!==(p=d(r,a[g],l))&&(i=s(p,i,g),null===c?u=p:c.sibling=p,c=p);return ii&&$r(r,g),u}for(p=o(r,p);g<a.length;g++)null!==(m=f(p,r,g,a[g],l))&&(e&&null!==m.alternate&&p.delete(null===m.key?g:m.key),i=s(m,i,g),null===c?u=m:c.sibling=m,c=m);return e&&p.forEach((function(e){return t(r,e)})),ii&&$r(r,g),u}function m(r,a,l,u){var c=L(l);if("function"!==typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var p=c=null,g=a,m=a=0,v=null,y=l.next();null!==g&&!y.done;m++,y=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var C=h(r,g,y.value,u);if(null===C){null===g&&(g=v);break}e&&g&&null===C.alternate&&t(r,g),a=s(C,a,m),null===p?c=C:p.sibling=C,p=C,g=v}if(y.done)return n(r,g),ii&&$r(r,m),c;if(null===g){for(;!y.done;m++,y=l.next())null!==(y=d(r,y.value,u))&&(a=s(y,a,m),null===p?c=y:p.sibling=y,p=y);return ii&&$r(r,m),c}for(g=o(r,g);!y.done;m++,y=l.next())null!==(y=f(g,r,m,y.value,u))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),a=s(y,a,m),null===p?c=y:p.sibling=y,p=y);return e&&g.forEach((function(e){return t(r,e)})),ii&&$r(r,m),c}return function e(o,i,s,l){if("object"===typeof s&&null!==s&&s.type===E&&null===s.key&&(s=s.props.children),"object"===typeof s&&null!==s){switch(s.$$typeof){case _:e:{for(var u=s.key,c=i;null!==c;){if(c.key===u){if((u=s.type)===E){if(7===c.tag){n(o,c.sibling),(i=r(c,s.props.children)).return=o,o=i;break e}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===N&&qi(u)===c.type){n(o,c.sibling),(i=r(c,s.props)).ref=Yi(o,c,s),i.return=o,o=i;break e}n(o,c);break}t(o,c),c=c.sibling}s.type===E?((i=Lu(s.props.children,o.mode,l,s.key)).return=o,o=i):((l=Iu(s.type,s.key,s.props,null,o.mode,l)).ref=Yi(o,i,s),l.return=o,o=l)}return a(o);case b:e:{for(c=s.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===s.containerInfo&&i.stateNode.implementation===s.implementation){n(o,i.sibling),(i=r(i,s.children||[])).return=o,o=i;break e}n(o,i);break}t(o,i),i=i.sibling}(i=Gu(s,o.mode,l)).return=o,o=i}return a(o);case N:return e(o,i,(c=s._init)(s._payload),l)}if(te(s))return g(o,i,s,l);if(L(s))return m(o,i,s,l);Ki(o,s)}return"string"===typeof s&&""!==s||"number"===typeof s?(s=""+s,null!==i&&6===i.tag?(n(o,i.sibling),(i=r(i,s)).return=o,o=i):(n(o,i),(i=ku(s,o.mode,l)).return=o,o=i),a(o)):n(o,i)}}var Qi=Xi(!0),Ji=Xi(!1),$i={},es=Rr($i),ts=Rr($i),ns=Rr($i);function os(e){if(e===$i)throw Error(i(174));return e}function rs(e,t){switch(Tr(ns,t),Tr(ts,e),Tr(es,$i),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Or(es),Tr(es,t)}function is(){Or(es),Or(ts),Or(ns)}function ss(e){os(ns.current);var t=os(es.current),n=le(t,e.type);t!==n&&(Tr(ts,e),Tr(es,n))}function as(e){ts.current===e&&(Or(es),Or(ts))}var ls=Rr(0);function us(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var cs=[];function ps(){for(var e=0;e<cs.length;e++)cs[e]._workInProgressVersionPrimary=null;cs.length=0}var ds=w.ReactCurrentDispatcher,hs=w.ReactCurrentBatchConfig,fs=0,gs=null,ms=null,vs=null,ys=!1,Cs=!1,ws=0,_s=0;function bs(){throw Error(i(321))}function Es(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ao(e[n],t[n]))return!1;return!0}function Ss(e,t,n,o,r,s){if(fs=s,gs=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ds.current=null===e||null===e.memoizedState?aa:la,e=n(o,r),Cs){s=0;do{if(Cs=!1,ws=0,25<=s)throw Error(i(301));s+=1,vs=ms=null,t.updateQueue=null,ds.current=ua,e=n(o,r)}while(Cs)}if(ds.current=sa,t=null!==ms&&null!==ms.next,fs=0,vs=ms=gs=null,ys=!1,t)throw Error(i(300));return e}function Rs(){var e=0!==ws;return ws=0,e}function Os(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vs?gs.memoizedState=vs=e:vs=vs.next=e,vs}function Ts(){if(null===ms){var e=gs.alternate;e=null!==e?e.memoizedState:null}else e=ms.next;var t=null===vs?gs.memoizedState:vs.next;if(null!==t)vs=t,ms=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ms=e).memoizedState,baseState:ms.baseState,baseQueue:ms.baseQueue,queue:ms.queue,next:null},null===vs?gs.memoizedState=vs=e:vs=vs.next=e}return vs}function Ps(e,t){return"function"===typeof t?t(e):t}function As(e){var t=Ts(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var o=ms,r=o.baseQueue,s=n.pending;if(null!==s){if(null!==r){var a=r.next;r.next=s.next,s.next=a}o.baseQueue=r=s,n.pending=null}if(null!==r){s=r.next,o=o.baseState;var l=a=null,u=null,c=s;do{var p=c.lane;if((fs&p)===p)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var d={lane:p,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=d,a=o):u=u.next=d,gs.lanes|=p,Fl|=p}c=c.next}while(null!==c&&c!==s);null===u?a=o:u.next=l,ao(o,t.memoizedState)||(wa=!0),t.memoizedState=o,t.baseState=a,t.baseQueue=u,n.lastRenderedState=o}if(null!==(e=n.interleaved)){r=e;do{s=r.lane,gs.lanes|=s,Fl|=s,r=r.next}while(r!==e)}else null===r&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ds(e){var t=Ts(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var o=n.dispatch,r=n.pending,s=t.memoizedState;if(null!==r){n.pending=null;var a=r=r.next;do{s=e(s,a.action),a=a.next}while(a!==r);ao(s,t.memoizedState)||(wa=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,o]}function xs(){}function Ns(e,t){var n=gs,o=Ts(),r=t(),s=!ao(o.memoizedState,r);if(s&&(o.memoizedState=r,wa=!0),o=o.queue,Us(Ls.bind(null,n,o,e),[e]),o.getSnapshot!==t||s||null!==vs&&1&vs.memoizedState.tag){if(n.flags|=2048,Hs(9,Is.bind(null,n,o,r,t),void 0,null),null===Al)throw Error(i(349));0!==(30&fs)||Ms(n,t,r)}return r}function Ms(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=gs.updateQueue)?(t={lastEffect:null,stores:null},gs.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Is(e,t,n,o){t.value=n,t.getSnapshot=o,Fs(t)&&ks(e)}function Ls(e,t,n){return n((function(){Fs(t)&&ks(e)}))}function Fs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ao(e,n)}catch(o){return!0}}function ks(e){var t=Di(e,1);null!==t&&nu(t,e,1,-1)}function Gs(e){var t=Os();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ps,lastRenderedState:e},t.queue=e,e=e.dispatch=na.bind(null,gs,e),[t.memoizedState,e]}function Hs(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===(t=gs.updateQueue)?(t={lastEffect:null,stores:null},gs.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 Bs(){return Ts().memoizedState}function Vs(e,t,n,o){var r=Os();gs.flags|=e,r.memoizedState=Hs(1|t,n,void 0,void 0===o?null:o)}function Ws(e,t,n,o){var r=Ts();o=void 0===o?null:o;var i=void 0;if(null!==ms){var s=ms.memoizedState;if(i=s.destroy,null!==o&&Es(o,s.deps))return void(r.memoizedState=Hs(t,n,i,o))}gs.flags|=e,r.memoizedState=Hs(1|t,n,i,o)}function js(e,t){return Vs(8390656,8,e,t)}function Us(e,t){return Ws(2048,8,e,t)}function zs(e,t){return Ws(4,2,e,t)}function Zs(e,t){return Ws(4,4,e,t)}function Ys(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ks(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ws(4,4,Ys.bind(null,t,e),n)}function qs(){}function Xs(e,t){var n=Ts();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Es(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function Qs(e,t){var n=Ts();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Es(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function Js(e,t,n){return 0===(21&fs)?(e.baseState&&(e.baseState=!1,wa=!0),e.memoizedState=n):(ao(n,t)||(n=gt(),gs.lanes|=n,Fl|=n,e.baseState=!0),t)}function $s(e,t){var n=Ct;Ct=0!==n&&4>n?n:4,e(!0);var o=hs.transition;hs.transition={};try{e(!1),t()}finally{Ct=n,hs.transition=o}}function ea(){return Ts().memoizedState}function ta(e,t,n){var o=tu(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},oa(e))ra(t,n);else if(null!==(n=Ai(e,t,n,o))){nu(n,e,o,eu()),ia(n,t,o)}}function na(e,t,n){var o=tu(e),r={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(oa(e))ra(t,r);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=i(s,n);if(r.hasEagerState=!0,r.eagerState=a,ao(a,s)){var l=t.interleaved;return null===l?(r.next=r,Pi(t)):(r.next=l.next,l.next=r),void(t.interleaved=r)}}catch(u){}null!==(n=Ai(e,t,r,o))&&(nu(n,e,o,r=eu()),ia(n,t,o))}}function oa(e){var t=e.alternate;return e===gs||null!==t&&t===gs}function ra(e,t){Cs=ys=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ia(e,t,n){if(0!==(4194240&n)){var o=t.lanes;n|=o&=e.pendingLanes,t.lanes=n,yt(e,n)}}var sa={readContext:Oi,useCallback:bs,useContext:bs,useEffect:bs,useImperativeHandle:bs,useInsertionEffect:bs,useLayoutEffect:bs,useMemo:bs,useReducer:bs,useRef:bs,useState:bs,useDebugValue:bs,useDeferredValue:bs,useTransition:bs,useMutableSource:bs,useSyncExternalStore:bs,useId:bs,unstable_isNewReconciler:!1},aa={readContext:Oi,useCallback:function(e,t){return Os().memoizedState=[e,void 0===t?null:t],e},useContext:Oi,useEffect:js,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Vs(4194308,4,Ys.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vs(4,2,e,t)},useMemo:function(e,t){var n=Os();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=Os();return t=void 0!==n?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=ta.bind(null,gs,e),[o.memoizedState,e]},useRef:function(e){return e={current:e},Os().memoizedState=e},useState:Gs,useDebugValue:qs,useDeferredValue:function(e){return Os().memoizedState=e},useTransition:function(){var e=Gs(!1),t=e[0];return e=$s.bind(null,e[1]),Os().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=gs,r=Os();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Al)throw Error(i(349));0!==(30&fs)||Ms(o,t,n)}r.memoizedState=n;var s={value:n,getSnapshot:t};return r.queue=s,js(Ls.bind(null,o,s,e),[e]),o.flags|=2048,Hs(9,Is.bind(null,o,s,n,t),void 0,null),n},useId:function(){var e=Os(),t=Al.identifierPrefix;if(ii){var n=Jr;t=":"+t+"R"+(n=(Qr&~(1<<32-st(Qr)-1)).toString(32)+n),0<(n=ws++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=_s++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},la={readContext:Oi,useCallback:Xs,useContext:Oi,useEffect:Us,useImperativeHandle:Ks,useInsertionEffect:zs,useLayoutEffect:Zs,useMemo:Qs,useReducer:As,useRef:Bs,useState:function(){return As(Ps)},useDebugValue:qs,useDeferredValue:function(e){return Js(Ts(),ms.memoizedState,e)},useTransition:function(){return[As(Ps)[0],Ts().memoizedState]},useMutableSource:xs,useSyncExternalStore:Ns,useId:ea,unstable_isNewReconciler:!1},ua={readContext:Oi,useCallback:Xs,useContext:Oi,useEffect:Us,useImperativeHandle:Ks,useInsertionEffect:zs,useLayoutEffect:Zs,useMemo:Qs,useReducer:Ds,useRef:Bs,useState:function(){return Ds(Ps)},useDebugValue:qs,useDeferredValue:function(e){var t=Ts();return null===ms?t.memoizedState=e:Js(t,ms.memoizedState,e)},useTransition:function(){return[Ds(Ps)[0],Ts().memoizedState]},useMutableSource:xs,useSyncExternalStore:Ns,useId:ea,unstable_isNewReconciler:!1};function ca(e,t){try{var n="",o=t;do{n+=V(o),o=o.return}while(o);var r=n}catch(i){r="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:r,digest:null}}function pa(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function da(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ha="function"===typeof WeakMap?WeakMap:Map;function fa(e,t,n){(n=Ii(-1,n)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Ul||(Ul=!0,zl=o),da(0,t)},n}function ga(e,t,n){(n=Ii(-1,n)).tag=3;var o=e.type.getDerivedStateFromError;if("function"===typeof o){var r=t.value;n.payload=function(){return o(r)},n.callback=function(){da(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){da(0,t),"function"!==typeof o&&(null===Zl?Zl=new Set([this]):Zl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ma(e,t,n){var o=e.pingCache;if(null===o){o=e.pingCache=new ha;var r=new Set;o.set(t,r)}else void 0===(r=o.get(t))&&(r=new Set,o.set(t,r));r.has(n)||(r.add(n),e=Ru.bind(null,e,t,n),t.then(e,e))}function va(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ya(e,t,n,o,r){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ii(-1,1)).tag=2,Li(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=r,e)}var Ca=w.ReactCurrentOwner,wa=!1;function _a(e,t,n,o){t.child=null===e?Ji(t,null,n,o):Qi(t,e.child,n,o)}function ba(e,t,n,o,r){n=n.render;var i=t.ref;return Ri(t,r),o=Ss(e,t,n,o,i,r),n=Rs(),null===e||wa?(ii&&n&&ti(t),t.flags|=1,_a(e,t,o,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Ua(e,t,r))}function Ea(e,t,n,o,r){if(null===e){var i=n.type;return"function"!==typeof i||Nu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Iu(n.type,null,o,t,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Sa(e,t,i,o,r))}if(i=e.child,0===(e.lanes&r)){var s=i.memoizedProps;if((n=null!==(n=n.compare)?n:lo)(s,o)&&e.ref===t.ref)return Ua(e,t,r)}return t.flags|=1,(e=Mu(i,o)).ref=t.ref,e.return=t,t.child=e}function Sa(e,t,n,o,r){if(null!==e){var i=e.memoizedProps;if(lo(i,o)&&e.ref===t.ref){if(wa=!1,t.pendingProps=o=i,0===(e.lanes&r))return t.lanes=e.lanes,Ua(e,t,r);0!==(131072&e.flags)&&(wa=!0)}}return Ta(e,t,n,o,r)}function Ra(e,t,n){var o=t.pendingProps,r=o.children,i=null!==e?e.memoizedState:null;if("hidden"===o.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Tr(Ml,Nl),Nl|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Tr(Ml,Nl),Nl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=null!==i?i.baseLanes:n,Tr(Ml,Nl),Nl|=o}else null!==i?(o=i.baseLanes|n,t.memoizedState=null):o=n,Tr(Ml,Nl),Nl|=o;return _a(e,t,r,n),t.child}function Oa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ta(e,t,n,o,r){var i=Mr(n)?xr:Ar.current;return i=Nr(t,i),Ri(t,r),n=Ss(e,t,n,o,i,r),o=Rs(),null===e||wa?(ii&&o&&ti(t),t.flags|=1,_a(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Ua(e,t,r))}function Pa(e,t,n,o,r){if(Mr(n)){var i=!0;kr(t)}else i=!1;if(Ri(t,r),null===t.stateNode)ja(e,t),Ui(t,n,o),Zi(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=Oi(u):u=Nr(t,u=Mr(n)?xr:Ar.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)&&zi(t,s,o,u),xi=!1;var d=t.memoizedState;s.state=d,Gi(t,o,s,r),l=t.memoizedState,a!==o||d!==l||Dr.current||xi?("function"===typeof c&&(Vi(t,n,c,o),l=t.memoizedState),(a=xi||ji(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.flags|=4194308)):("function"===typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=l),s.props=o,s.state=l,s.context=u,o=a):("function"===typeof s.componentDidMount&&(t.flags|=4194308),o=!1)}else{s=t.stateNode,Mi(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:vi(t.type,a),s.props=u,p=t.pendingProps,d=s.context,"object"===typeof(l=n.contextType)&&null!==l?l=Oi(l):l=Nr(t,l=Mr(n)?xr:Ar.current);var h=n.getDerivedStateFromProps;(c="function"===typeof h||"function"===typeof s.getSnapshotBeforeUpdate)||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(a!==p||d!==l)&&zi(t,s,o,l),xi=!1,d=t.memoizedState,s.state=d,Gi(t,o,s,r);var f=t.memoizedState;a!==p||d!==f||Dr.current||xi?("function"===typeof h&&(Vi(t,n,h,o),f=t.memoizedState),(u=xi||ji(t,n,u,o,d,f,l)||!1)?(c||"function"!==typeof s.UNSAFE_componentWillUpdate&&"function"!==typeof s.componentWillUpdate||("function"===typeof s.componentWillUpdate&&s.componentWillUpdate(o,f,l),"function"===typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(o,f,l)),"function"===typeof s.componentDidUpdate&&(t.flags|=4),"function"===typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=f),s.props=o,s.state=f,s.context=l,o=u):("function"!==typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),o=!1)}return Aa(e,t,n,o,i,r)}function Aa(e,t,n,o,r,i){Oa(e,t);var s=0!==(128&t.flags);if(!o&&!s)return r&&Gr(t,n,!1),Ua(e,t,i);o=t.stateNode,Ca.current=t;var a=s&&"function"!==typeof n.getDerivedStateFromError?null:o.render();return t.flags|=1,null!==e&&s?(t.child=Qi(t,e.child,null,i),t.child=Qi(t,null,a,i)):_a(e,t,a,i),t.memoizedState=o.state,r&&Gr(t,n,!0),t.child}function Da(e){var t=e.stateNode;t.pendingContext?Lr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Lr(0,t.context,!1),rs(e,t.containerInfo)}function xa(e,t,n,o,r){return fi(),gi(r),t.flags|=256,_a(e,t,n,o),t.child}var Na,Ma,Ia,La={dehydrated:null,treeContext:null,retryLane:0};function Fa(e){return{baseLanes:e,cachePool:null,transitions:null}}function ka(e,t,n){var o,r=t.pendingProps,s=ls.current,a=!1,l=0!==(128&t.flags);if((o=l)||(o=(null===e||null!==e.memoizedState)&&0!==(2&s)),o?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),Tr(ls,1&s),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=r.children,e=r.fallback,a?(r=t.mode,a=t.child,l={mode:"hidden",children:l},0===(1&r)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=Fu(l,r,0,null),e=Lu(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Fa(n),t.memoizedState=La,e):Ga(t,l));if(null!==(s=e.memoizedState)&&null!==(o=s.dehydrated))return function(e,t,n,o,r,s,a){if(n)return 256&t.flags?(t.flags&=-257,Ha(e,t,a,o=pa(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=o.fallback,r=t.mode,o=Fu({mode:"visible",children:o.children},r,0,null),(s=Lu(s,r,a,null)).flags|=2,o.return=t,s.return=t,o.sibling=s,t.child=o,0!==(1&t.mode)&&Qi(t,e.child,null,a),t.child.memoizedState=Fa(a),t.memoizedState=La,s);if(0===(1&t.mode))return Ha(e,t,a,null);if("$!"===r.data){if(o=r.nextSibling&&r.nextSibling.dataset)var l=o.dgst;return o=l,Ha(e,t,a,o=pa(s=Error(i(419)),o,void 0))}if(l=0!==(a&e.childLanes),wa||l){if(null!==(o=Al)){switch(a&-a){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}0!==(r=0!==(r&(o.suspendedLanes|a))?0:r)&&r!==s.retryLane&&(s.retryLane=r,Di(e,r),nu(o,e,r,-1))}return gu(),Ha(e,t,a,o=pa(Error(i(421))))}return"$?"===r.data?(t.flags|=128,t.child=e.child,t=Tu.bind(null,e),r._reactRetry=t,null):(e=s.treeContext,ri=cr(r.nextSibling),oi=t,ii=!0,si=null,null!==e&&(Kr[qr++]=Qr,Kr[qr++]=Jr,Kr[qr++]=Xr,Qr=e.id,Jr=e.overflow,Xr=t),(t=Ga(t,o.children)).flags|=4096,t)}(e,t,l,r,o,s,n);if(a){a=r.fallback,l=t.mode,o=(s=e.child).sibling;var u={mode:"hidden",children:r.children};return 0===(1&l)&&t.child!==s?((r=t.child).childLanes=0,r.pendingProps=u,t.deletions=null):(r=Mu(s,u)).subtreeFlags=14680064&s.subtreeFlags,null!==o?a=Mu(o,a):(a=Lu(a,l,n,null)).flags|=2,a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,l=null===(l=e.child.memoizedState)?Fa(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=La,r}return e=(a=e.child).sibling,r=Mu(a,{mode:"visible",children:r.children}),0===(1&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ga(e,t){return(t=Fu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ha(e,t,n,o){return null!==o&&gi(o),Qi(t,e.child,null,n),(e=Ga(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ba(e,t,n){e.lanes|=t;var o=e.alternate;null!==o&&(o.lanes|=t),Si(e.return,t,n)}function Va(e,t,n,o,r){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=n,i.tailMode=r)}function Wa(e,t,n){var o=t.pendingProps,r=o.revealOrder,i=o.tail;if(_a(e,t,o.children,n),0!==(2&(o=ls.current)))o=1&o|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ba(e,n,t);else if(19===e.tag)Ba(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(Tr(ls,o),0===(1&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===us(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Va(t,!1,r,n,i);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===us(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Va(t,!0,n,null,i);break;case"together":Va(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ja(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ua(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Mu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Mu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function za(e,t){if(!ii)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 Za(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,o=0;if(t)for(var r=e.child;null!==r;)n|=r.lanes|r.childLanes,o|=14680064&r.subtreeFlags,o|=14680064&r.flags,r.return=e,r=r.sibling;else for(r=e.child;null!==r;)n|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=o,e.childLanes=n,t}function Ya(e,t,n){var o=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Za(t),null;case 1:case 17:return Mr(t.type)&&Ir(),Za(t),null;case 3:return o=t.stateNode,is(),Or(Dr),Or(Ar),ps(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==si&&(su(si),si=null))),Za(t),null;case 5:as(t);var r=os(ns.current);if(n=t.type,null!==e&&null!=t.stateNode)Ma(e,t,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(null===t.stateNode)throw Error(i(166));return Za(t),null}if(e=os(es.current),di(t)){o=t.stateNode,n=t.type;var s=t.memoizedProps;switch(o[hr]=t,o[fr]=s,e=0!==(1&t.mode),n){case"dialog":Bo("cancel",o),Bo("close",o);break;case"iframe":case"object":case"embed":Bo("load",o);break;case"video":case"audio":for(r=0;r<Fo.length;r++)Bo(Fo[r],o);break;case"source":Bo("error",o);break;case"img":case"image":case"link":Bo("error",o),Bo("load",o);break;case"details":Bo("toggle",o);break;case"input":X(o,s),Bo("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!s.multiple},Bo("invalid",o);break;case"textarea":re(o,s),Bo("invalid",o)}for(var l in ye(n,s),r=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"===typeof u?o.textContent!==u&&(!0!==s.suppressHydrationWarning&&$o(o.textContent,u,e),r=["children",u]):"number"===typeof u&&o.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&$o(o.textContent,u,e),r=["children",""+u]):a.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Bo("scroll",o)}switch(n){case"input":Z(o),$(o,s,!0);break;case"textarea":Z(o),se(o);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(o.onclick=er)}o=r,t.updateQueue=o,null!==o&&(t.flags|=4)}else{l=9===r.nodeType?r:r.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof o.is?e=l.createElement(n,{is:o.is}):(e=l.createElement(n),"select"===n&&(l=e,o.multiple?l.multiple=!0:o.size&&(l.size=o.size))):e=l.createElementNS(e,n),e[hr]=t,e[fr]=o,Na(e,t),t.stateNode=e;e:{switch(l=Ce(n,o),n){case"dialog":Bo("cancel",e),Bo("close",e),r=o;break;case"iframe":case"object":case"embed":Bo("load",e),r=o;break;case"video":case"audio":for(r=0;r<Fo.length;r++)Bo(Fo[r],e);r=o;break;case"source":Bo("error",e),r=o;break;case"img":case"image":case"link":Bo("error",e),Bo("load",e),r=o;break;case"details":Bo("toggle",e),r=o;break;case"input":X(e,o),r=q(e,o),Bo("invalid",e);break;case"option":default:r=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},r=k({},o,{value:void 0}),Bo("invalid",e);break;case"textarea":re(e,o),r=oe(e,o),Bo("invalid",e)}for(s in ye(n,r),u=r)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?me(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&pe(e,c):"children"===s?"string"===typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"===typeof c&&de(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Bo("scroll",e):null!=c&&C(e,s,c,l))}switch(n){case"input":Z(e),$(e,o,!1);break;case"textarea":Z(e),se(e);break;case"option":null!=o.value&&e.setAttribute("value",""+U(o.value));break;case"select":e.multiple=!!o.multiple,null!=(s=o.value)?ne(e,!!o.multiple,s,!1):null!=o.defaultValue&&ne(e,!!o.multiple,o.defaultValue,!0);break;default:"function"===typeof r.onClick&&(e.onclick=er)}switch(n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Za(t),null;case 6:if(e&&null!=t.stateNode)Ia(0,t,e.memoizedProps,o);else{if("string"!==typeof o&&null===t.stateNode)throw Error(i(166));if(n=os(ns.current),os(es.current),di(t)){if(o=t.stateNode,n=t.memoizedProps,o[hr]=t,(s=o.nodeValue!==n)&&null!==(e=oi))switch(e.tag){case 3:$o(o.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&$o(o.nodeValue,n,0!==(1&e.mode))}s&&(t.flags|=4)}else(o=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[hr]=t,t.stateNode=o}return Za(t),null;case 13:if(Or(ls),o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==ri&&0!==(1&t.mode)&&0===(128&t.flags))hi(),fi(),t.flags|=98560,s=!1;else if(s=di(t),null!==o&&null!==o.dehydrated){if(null===e){if(!s)throw Error(i(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(i(317));s[hr]=t}else fi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Za(t),s=!1}else null!==si&&(su(si),si=null),s=!0;if(!s)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((o=null!==o)!==(null!==e&&null!==e.memoizedState)&&o&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ls.current)?0===Il&&(Il=3):gu())),null!==t.updateQueue&&(t.flags|=4),Za(t),null);case 4:return is(),null===e&&jo(t.stateNode.containerInfo),Za(t),null;case 10:return Ei(t.type._context),Za(t),null;case 19:if(Or(ls),null===(s=t.memoizedState))return Za(t),null;if(o=0!==(128&t.flags),null===(l=s.rendering))if(o)za(s,!1);else{if(0!==Il||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=us(e))){for(t.flags|=128,za(s,!1),null!==(o=l.updateQueue)&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=n,n=t.child;null!==n;)e=o,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Tr(ls,1&ls.current|2),t.child}e=e.sibling}null!==s.tail&&Qe()>Wl&&(t.flags|=128,o=!0,za(s,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=us(l))){if(t.flags|=128,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),za(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ii)return Za(t),null}else 2*Qe()-s.renderingStartTime>Wl&&1073741824!==n&&(t.flags|=128,o=!0,za(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Qe(),t.sibling=null,n=ls.current,Tr(ls,o?1&n|2:1&n),t):(Za(t),null);case 22:case 23:return pu(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&0!==(1&t.mode)?0!==(1073741824&Nl)&&(Za(t),6&t.subtreeFlags&&(t.flags|=8192)):Za(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Ka(e,t){switch(ni(t),t.tag){case 1:return Mr(t.type)&&Ir(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return is(),Or(Dr),Or(Ar),ps(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return as(t),null;case 13:if(Or(ls),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));fi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Or(ls),null;case 4:return is(),null;case 10:return Ei(t.type._context),null;case 22:case 23:return pu(),null;default:return null}}Na=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}},Ma=function(e,t,n,o){var r=e.memoizedProps;if(r!==o){e=t.stateNode,os(es.current);var i,s=null;switch(n){case"input":r=q(e,r),o=q(e,o),s=[];break;case"select":r=k({},r,{value:void 0}),o=k({},o,{value:void 0}),s=[];break;case"textarea":r=oe(e,r),o=oe(e,o),s=[];break;default:"function"!==typeof r.onClick&&"function"===typeof o.onClick&&(e.onclick=er)}for(c in ye(n,o),n=null,r)if(!o.hasOwnProperty(c)&&r.hasOwnProperty(c)&&null!=r[c])if("style"===c){var l=r[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in o){var u=o[c];if(l=null!=r?r[c]:void 0,o.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(a.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Bo("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Ia=function(e,t,n,o){n!==o&&(t.flags|=4)};var qa=!1,Xa=!1,Qa="function"===typeof WeakSet?WeakSet:Set,Ja=null;function $a(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(o){Su(e,t,o)}else n.current=null}function el(e,t,n){try{n()}catch(o){Su(e,t,o)}}var tl=!1;function nl(e,t,n){var o=t.updateQueue;if(null!==(o=null!==o?o.lastEffect:null)){var r=o=o.next;do{if((r.tag&e)===e){var i=r.destroy;r.destroy=void 0,void 0!==i&&el(t,n,i)}r=r.next}while(r!==o)}}function ol(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 rl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[hr],delete t[fr],delete t[mr],delete t[vr],delete t[yr])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function al(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var o=e.tag;if(5===o||6===o)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=er));else if(4!==o&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var o=e.tag;if(5===o||6===o)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==o&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,pl=!1;function dl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(rt,n)}catch(a){}switch(n.tag){case 5:Xa||$a(n,t);case 6:var o=cl,r=pl;cl=null,dl(e,t,n),pl=r,null!==(cl=o)&&(pl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(pl?(e=cl,n=n.stateNode,8===e.nodeType?ur(e.parentNode,n):1===e.nodeType&&ur(e,n),Wt(e)):ur(cl,n.stateNode));break;case 4:o=cl,r=pl,cl=n.stateNode.containerInfo,pl=!0,dl(e,t,n),cl=o,pl=r;break;case 0:case 11:case 14:case 15:if(!Xa&&(null!==(o=n.updateQueue)&&null!==(o=o.lastEffect))){r=o=o.next;do{var i=r,s=i.destroy;i=i.tag,void 0!==s&&(0!==(2&i)||0!==(4&i))&&el(n,t,s),r=r.next}while(r!==o)}dl(e,t,n);break;case 1:if(!Xa&&($a(n,t),"function"===typeof(o=n.stateNode).componentWillUnmount))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(a){Su(n,t,a)}dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:1&n.mode?(Xa=(o=Xa)||null!==n.memoizedState,dl(e,t,n),Xa=o):dl(e,t,n);break;default:dl(e,t,n)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qa),t.forEach((function(t){var o=Pu.bind(null,e,t);n.has(t)||(n.add(t),t.then(o,o))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var r=n[o];try{var s=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,pl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,pl=!0;break e}l=l.return}if(null===cl)throw Error(i(160));hl(s,a,r),cl=null,pl=!1;var u=r.alternate;null!==u&&(u.return=null),r.return=null}catch(c){Su(r,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ml(t,e),t=t.sibling}function ml(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),vl(e),4&o){try{nl(3,e,e.return),ol(3,e)}catch(m){Su(e,e.return,m)}try{nl(5,e,e.return)}catch(m){Su(e,e.return,m)}}break;case 1:gl(t,e),vl(e),512&o&&null!==n&&$a(n,n.return);break;case 5:if(gl(t,e),vl(e),512&o&&null!==n&&$a(n,n.return),32&e.flags){var r=e.stateNode;try{de(r,"")}catch(m){Su(e,e.return,m)}}if(4&o&&null!=(r=e.stateNode)){var s=e.memoizedProps,a=null!==n?n.memoizedProps:s,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===s.type&&null!=s.name&&Q(r,s),Ce(l,a);var c=Ce(l,s);for(a=0;a<u.length;a+=2){var p=u[a],d=u[a+1];"style"===p?me(r,d):"dangerouslySetInnerHTML"===p?pe(r,d):"children"===p?de(r,d):C(r,p,d,c)}switch(l){case"input":J(r,s);break;case"textarea":ie(r,s);break;case"select":var h=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!s.multiple;var f=s.value;null!=f?ne(r,!!s.multiple,f,!1):h!==!!s.multiple&&(null!=s.defaultValue?ne(r,!!s.multiple,s.defaultValue,!0):ne(r,!!s.multiple,s.multiple?[]:"",!1))}r[fr]=s}catch(m){Su(e,e.return,m)}}break;case 6:if(gl(t,e),vl(e),4&o){if(null===e.stateNode)throw Error(i(162));r=e.stateNode,s=e.memoizedProps;try{r.nodeValue=s}catch(m){Su(e,e.return,m)}}break;case 3:if(gl(t,e),vl(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(m){Su(e,e.return,m)}break;case 4:default:gl(t,e),vl(e);break;case 13:gl(t,e),vl(e),8192&(r=e.child).flags&&(s=null!==r.memoizedState,r.stateNode.isHidden=s,!s||null!==r.alternate&&null!==r.alternate.memoizedState||(Vl=Qe())),4&o&&fl(e);break;case 22:if(p=null!==n&&null!==n.memoizedState,1&e.mode?(Xa=(c=Xa)||p,gl(t,e),Xa=c):gl(t,e),vl(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!p&&0!==(1&e.mode))for(Ja=e,p=e.child;null!==p;){for(d=Ja=p;null!==Ja;){switch(f=(h=Ja).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:$a(h,h.return);var g=h.stateNode;if("function"===typeof g.componentWillUnmount){o=h,n=h.return;try{t=o,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){Su(o,n,m)}}break;case 5:$a(h,h.return);break;case 22:if(null!==h.memoizedState){_l(d);continue}}null!==f?(f.return=h,Ja=f):_l(d)}p=p.sibling}e:for(p=null,d=e;;){if(5===d.tag){if(null===p){p=d;try{r=d.stateNode,c?"function"===typeof(s=r.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=d.stateNode,a=void 0!==(u=d.memoizedProps.style)&&null!==u&&u.hasOwnProperty("display")?u.display:null,l.style.display=ge("display",a))}catch(m){Su(e,e.return,m)}}}else if(6===d.tag){if(null===p)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(m){Su(e,e.return,m)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;p===d&&(p=null),d=d.return}p===d&&(p=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:gl(t,e),vl(e),4&o&&fl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var o=n;break e}n=n.return}throw Error(i(160))}switch(o.tag){case 5:var r=o.stateNode;32&o.flags&&(de(r,""),o.flags&=-33),ul(e,al(e),r);break;case 3:case 4:var s=o.stateNode.containerInfo;ll(e,al(e),s);break;default:throw Error(i(161))}}catch(a){Su(e,e.return,a)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Ja=e,Cl(e,t,n)}function Cl(e,t,n){for(var o=0!==(1&e.mode);null!==Ja;){var r=Ja,i=r.child;if(22===r.tag&&o){var s=null!==r.memoizedState||qa;if(!s){var a=r.alternate,l=null!==a&&null!==a.memoizedState||Xa;a=qa;var u=Xa;if(qa=s,(Xa=l)&&!u)for(Ja=r;null!==Ja;)l=(s=Ja).child,22===s.tag&&null!==s.memoizedState?bl(r):null!==l?(l.return=s,Ja=l):bl(r);for(;null!==i;)Ja=i,Cl(i,t,n),i=i.sibling;Ja=r,qa=a,Xa=u}wl(e)}else 0!==(8772&r.subtreeFlags)&&null!==i?(i.return=r,Ja=i):wl(e)}}function wl(e){for(;null!==Ja;){var t=Ja;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xa||ol(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Xa)if(null===n)o.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:vi(t.type,n.memoizedProps);o.componentDidUpdate(r,n.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&Hi(t,s,o);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Hi(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var p=c.memoizedState;if(null!==p){var d=p.dehydrated;null!==d&&Wt(d)}}}break;default:throw Error(i(163))}Xa||512&t.flags&&rl(t)}catch(h){Su(t,t.return,h)}}if(t===e){Ja=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ja=n;break}Ja=t.return}}function _l(e){for(;null!==Ja;){var t=Ja;if(t===e){Ja=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ja=n;break}Ja=t.return}}function bl(e){for(;null!==Ja;){var t=Ja;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ol(4,t)}catch(l){Su(t,n,l)}break;case 1:var o=t.stateNode;if("function"===typeof o.componentDidMount){var r=t.return;try{o.componentDidMount()}catch(l){Su(t,r,l)}}var i=t.return;try{rl(t)}catch(l){Su(t,i,l)}break;case 5:var s=t.return;try{rl(t)}catch(l){Su(t,s,l)}}}catch(l){Su(t,t.return,l)}if(t===e){Ja=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Ja=a;break}Ja=t.return}}var El,Sl=Math.ceil,Rl=w.ReactCurrentDispatcher,Ol=w.ReactCurrentOwner,Tl=w.ReactCurrentBatchConfig,Pl=0,Al=null,Dl=null,xl=0,Nl=0,Ml=Rr(0),Il=0,Ll=null,Fl=0,kl=0,Gl=0,Hl=null,Bl=null,Vl=0,Wl=1/0,jl=null,Ul=!1,zl=null,Zl=null,Yl=!1,Kl=null,ql=0,Xl=0,Ql=null,Jl=-1,$l=0;function eu(){return 0!==(6&Pl)?Qe():-1!==Jl?Jl:Jl=Qe()}function tu(e){return 0===(1&e.mode)?1:0!==(2&Pl)&&0!==xl?xl&-xl:null!==mi.transition?(0===$l&&($l=gt()),$l):0!==(e=Ct)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function nu(e,t,n,o){if(50<Xl)throw Xl=0,Ql=null,Error(i(185));vt(e,n,o),0!==(2&Pl)&&e===Al||(e===Al&&(0===(2&Pl)&&(kl|=n),4===Il&&au(e,xl)),ou(e,o),1===n&&0===Pl&&0===(1&t.mode)&&(Wl=Qe()+500,Br&&jr()))}function ou(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,r=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-st(i),a=1<<s,l=r[s];-1===l?0!==(a&n)&&0===(a&o)||(r[s]=ht(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}(e,t);var o=dt(e,e===Al?xl:0);if(0===o)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){Br=!0,Wr(e)}(lu.bind(null,e)):Wr(lu.bind(null,e)),ar((function(){0===(6&Pl)&&jr()})),n=null;else{switch(wt(o)){case 1:n=$e;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=ot}n=Au(n,ru.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ru(e,t){if(Jl=-1,$l=0,0!==(6&Pl))throw Error(i(327));var n=e.callbackNode;if(bu()&&e.callbackNode!==n)return null;var o=dt(e,e===Al?xl:0);if(0===o)return null;if(0!==(30&o)||0!==(o&e.expiredLanes)||t)t=mu(e,o);else{t=o;var r=Pl;Pl|=2;var s=fu();for(Al===e&&xl===t||(jl=null,Wl=Qe()+500,du(e,t));;)try{yu();break}catch(l){hu(e,l)}bi(),Rl.current=s,Pl=r,null!==Dl?t=0:(Al=null,xl=0,t=Il)}if(0!==t){if(2===t&&(0!==(r=ft(e))&&(o=r,t=iu(e,r))),1===t)throw n=Ll,du(e,0),au(e,o),ou(e,Qe()),n;if(6===t)au(e,o);else{if(r=e.current.alternate,0===(30&o)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var o=0;o<n.length;o++){var r=n[o],i=r.getSnapshot;r=r.value;try{if(!ao(i(),r))return!1}catch(a){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(r)&&(2===(t=mu(e,o))&&(0!==(s=ft(e))&&(o=s,t=iu(e,s))),1===t))throw n=Ll,du(e,0),au(e,o),ou(e,Qe()),n;switch(e.finishedWork=r,e.finishedLanes=o,t){case 0:case 1:throw Error(i(345));case 2:case 5:_u(e,Bl,jl);break;case 3:if(au(e,o),(130023424&o)===o&&10<(t=Vl+500-Qe())){if(0!==dt(e,0))break;if(((r=e.suspendedLanes)&o)!==o){eu(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=rr(_u.bind(null,e,Bl,jl),t);break}_u(e,Bl,jl);break;case 4:if(au(e,o),(4194240&o)===o)break;for(t=e.eventTimes,r=-1;0<o;){var a=31-st(o);s=1<<a,(a=t[a])>r&&(r=a),o&=~s}if(o=r,10<(o=(120>(o=Qe()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Sl(o/1960))-o)){e.timeoutHandle=rr(_u.bind(null,e,Bl,jl),o);break}_u(e,Bl,jl);break;default:throw Error(i(329))}}}return ou(e,Qe()),e.callbackNode===n?ru.bind(null,e):null}function iu(e,t){var n=Hl;return e.current.memoizedState.isDehydrated&&(du(e,t).flags|=256),2!==(e=mu(e,t))&&(t=Bl,Bl=n,null!==t&&su(t)),e}function su(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function au(e,t){for(t&=~Gl,t&=~kl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),o=1<<n;e[n]=-1,t&=~o}}function lu(e){if(0!==(6&Pl))throw Error(i(327));bu();var t=dt(e,0);if(0===(1&t))return ou(e,Qe()),null;var n=mu(e,t);if(0!==e.tag&&2===n){var o=ft(e);0!==o&&(t=o,n=iu(e,o))}if(1===n)throw n=Ll,du(e,0),au(e,t),ou(e,Qe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_u(e,Bl,jl),ou(e,Qe()),null}function uu(e,t){var n=Pl;Pl|=1;try{return e(t)}finally{0===(Pl=n)&&(Wl=Qe()+500,Br&&jr())}}function cu(e){null!==Kl&&0===Kl.tag&&0===(6&Pl)&&bu();var t=Pl;Pl|=1;var n=Tl.transition,o=Ct;try{if(Tl.transition=null,Ct=1,e)return e()}finally{Ct=o,Tl.transition=n,0===(6&(Pl=t))&&jr()}}function pu(){Nl=Ml.current,Or(Ml)}function du(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ir(n)),null!==Dl)for(n=Dl.return;null!==n;){var o=n;switch(ni(o),o.tag){case 1:null!==(o=o.type.childContextTypes)&&void 0!==o&&Ir();break;case 3:is(),Or(Dr),Or(Ar),ps();break;case 5:as(o);break;case 4:is();break;case 13:case 19:Or(ls);break;case 10:Ei(o.type._context);break;case 22:case 23:pu()}n=n.return}if(Al=e,Dl=e=Mu(e.current,null),xl=Nl=t,Il=0,Ll=null,Gl=kl=Fl=0,Bl=Hl=null,null!==Ti){for(t=0;t<Ti.length;t++)if(null!==(o=(n=Ti[t]).interleaved)){n.interleaved=null;var r=o.next,i=n.pending;if(null!==i){var s=i.next;i.next=r,o.next=s}n.pending=o}Ti=null}return e}function hu(e,t){for(;;){var n=Dl;try{if(bi(),ds.current=sa,ys){for(var o=gs.memoizedState;null!==o;){var r=o.queue;null!==r&&(r.pending=null),o=o.next}ys=!1}if(fs=0,vs=ms=gs=null,Cs=!1,ws=0,Ol.current=null,null===n||null===n.return){Il=1,Ll=t,Dl=null;break}e:{var s=e,a=n.return,l=n,u=t;if(t=xl,l.flags|=32768,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u,p=l,d=p.tag;if(0===(1&p.mode)&&(0===d||11===d||15===d)){var h=p.alternate;h?(p.updateQueue=h.updateQueue,p.memoizedState=h.memoizedState,p.lanes=h.lanes):(p.updateQueue=null,p.memoizedState=null)}var f=va(a);if(null!==f){f.flags&=-257,ya(f,a,l,0,t),1&f.mode&&ma(s,c,t),u=c;var g=(t=f).updateQueue;if(null===g){var m=new Set;m.add(u),t.updateQueue=m}else g.add(u);break e}if(0===(1&t)){ma(s,c,t),gu();break e}u=Error(i(426))}else if(ii&&1&l.mode){var v=va(a);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),ya(v,a,l,0,t),gi(ca(u,l));break e}}s=u=ca(u,l),4!==Il&&(Il=2),null===Hl?Hl=[s]:Hl.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,ki(s,fa(0,u,t));break e;case 1:l=u;var y=s.type,C=s.stateNode;if(0===(128&s.flags)&&("function"===typeof y.getDerivedStateFromError||null!==C&&"function"===typeof C.componentDidCatch&&(null===Zl||!Zl.has(C)))){s.flags|=65536,t&=-t,s.lanes|=t,ki(s,ga(s,l,t));break e}}s=s.return}while(null!==s)}wu(n)}catch(w){t=w,Dl===n&&null!==n&&(Dl=n=n.return);continue}break}}function fu(){var e=Rl.current;return Rl.current=sa,null===e?sa:e}function gu(){0!==Il&&3!==Il&&2!==Il||(Il=4),null===Al||0===(268435455&Fl)&&0===(268435455&kl)||au(Al,xl)}function mu(e,t){var n=Pl;Pl|=2;var o=fu();for(Al===e&&xl===t||(jl=null,du(e,t));;)try{vu();break}catch(r){hu(e,r)}if(bi(),Pl=n,Rl.current=o,null!==Dl)throw Error(i(261));return Al=null,xl=0,Il}function vu(){for(;null!==Dl;)Cu(Dl)}function yu(){for(;null!==Dl&&!qe();)Cu(Dl)}function Cu(e){var t=El(e.alternate,e,Nl);e.memoizedProps=e.pendingProps,null===t?wu(e):Dl=t,Ol.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ya(n,t,Nl)))return void(Dl=n)}else{if(null!==(n=Ka(n,t)))return n.flags&=32767,void(Dl=n);if(null===e)return Il=6,void(Dl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Dl=t);Dl=t=e}while(null!==t);0===Il&&(Il=5)}function _u(e,t,n){var o=Ct,r=Tl.transition;try{Tl.transition=null,Ct=1,function(e,t,n,o){do{bu()}while(null!==Kl);if(0!==(6&Pl))throw Error(i(327));n=e.finishedWork;var r=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-st(n),i=1<<r;t[r]=0,o[r]=-1,e[r]=-1,n&=~i}}(e,s),e===Al&&(Dl=Al=null,xl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Yl||(Yl=!0,Au(tt,(function(){return bu(),null}))),s=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||s){s=Tl.transition,Tl.transition=null;var a=Ct;Ct=1;var l=Pl;Pl|=4,Ol.current=null,function(e,t){if(tr=Ut,fo(e=ho())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(o&&0!==o.rangeCount){n=o.anchorNode;var r=o.anchorOffset,s=o.focusNode;o=o.focusOffset;try{n.nodeType,s.nodeType}catch(_){n=null;break e}var a=0,l=-1,u=-1,c=0,p=0,d=e,h=null;t:for(;;){for(var f;d!==n||0!==r&&3!==d.nodeType||(l=a+r),d!==s||0!==o&&3!==d.nodeType||(u=a+o),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)h=d,d=f;for(;;){if(d===e)break t;if(h===n&&++c===r&&(l=a),h===s&&++p===o&&(u=a),null!==(f=d.nextSibling))break;h=(d=h).parentNode}d=f}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(nr={focusedElem:e,selectionRange:n},Ut=!1,Ja=t;null!==Ja;)if(e=(t=Ja).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Ja=e;else for(;null!==Ja;){t=Ja;try{var g=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,v=g.memoizedState,y=t.stateNode,C=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:vi(t.type,m),v);y.__reactInternalSnapshotBeforeUpdate=C}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(_){Su(t,t.return,_)}if(null!==(e=t.sibling)){e.return=t.return,Ja=e;break}Ja=t.return}g=tl,tl=!1}(e,n),ml(n,e),go(nr),Ut=!!tr,nr=tr=null,e.current=n,yl(n,e,r),Xe(),Pl=l,Ct=a,Tl.transition=s}else e.current=n;if(Yl&&(Yl=!1,Kl=e,ql=r),0===(s=e.pendingLanes)&&(Zl=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(rt,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),ou(e,Qe()),null!==t)for(o=e.onRecoverableError,n=0;n<t.length;n++)o((r=t[n]).value,{componentStack:r.stack,digest:r.digest});if(Ul)throw Ul=!1,e=zl,zl=null,e;0!==(1&ql)&&0!==e.tag&&bu(),0!==(1&(s=e.pendingLanes))?e===Ql?Xl++:(Xl=0,Ql=e):Xl=0,jr()}(e,t,n,o)}finally{Tl.transition=r,Ct=o}return null}function bu(){if(null!==Kl){var e=wt(ql),t=Tl.transition,n=Ct;try{if(Tl.transition=null,Ct=16>e?16:e,null===Kl)var o=!1;else{if(e=Kl,Kl=null,ql=0,0!==(6&Pl))throw Error(i(331));var r=Pl;for(Pl|=4,Ja=e.current;null!==Ja;){var s=Ja,a=s.child;if(0!==(16&Ja.flags)){var l=s.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Ja=c;null!==Ja;){var p=Ja;switch(p.tag){case 0:case 11:case 15:nl(8,p,s)}var d=p.child;if(null!==d)d.return=p,Ja=d;else for(;null!==Ja;){var h=(p=Ja).sibling,f=p.return;if(il(p),p===c){Ja=null;break}if(null!==h){h.return=f,Ja=h;break}Ja=f}}}var g=s.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}Ja=s}}if(0!==(2064&s.subtreeFlags)&&null!==a)a.return=s,Ja=a;else e:for(;null!==Ja;){if(0!==(2048&(s=Ja).flags))switch(s.tag){case 0:case 11:case 15:nl(9,s,s.return)}var y=s.sibling;if(null!==y){y.return=s.return,Ja=y;break e}Ja=s.return}}var C=e.current;for(Ja=C;null!==Ja;){var w=(a=Ja).child;if(0!==(2064&a.subtreeFlags)&&null!==w)w.return=a,Ja=w;else e:for(a=C;null!==Ja;){if(0!==(2048&(l=Ja).flags))try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(b){Su(l,l.return,b)}if(l===a){Ja=null;break e}var _=l.sibling;if(null!==_){_.return=l.return,Ja=_;break e}Ja=l.return}}if(Pl=r,jr(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(rt,e)}catch(b){}o=!0}return o}finally{Ct=n,Tl.transition=t}}return!1}function Eu(e,t,n){e=Li(e,t=fa(0,t=ca(n,t),1),1),t=eu(),null!==e&&(vt(e,1,t),ou(e,t))}function Su(e,t,n){if(3===e.tag)Eu(e,e,n);else for(;null!==t;){if(3===t.tag){Eu(t,e,n);break}if(1===t.tag){var o=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof o.componentDidCatch&&(null===Zl||!Zl.has(o))){t=Li(t,e=ga(t,e=ca(n,e),1),1),e=eu(),null!==t&&(vt(t,1,e),ou(t,e));break}}t=t.return}}function Ru(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Al===e&&(xl&n)===n&&(4===Il||3===Il&&(130023424&xl)===xl&&500>Qe()-Vl?du(e,0):Gl|=n),ou(e,t)}function Ou(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=eu();null!==(e=Di(e,t))&&(vt(e,t,n),ou(e,n))}function Tu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ou(e,n)}function Pu(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,r=e.memoizedState;null!==r&&(n=r.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(i(314))}null!==o&&o.delete(t),Ou(e,n)}function Au(e,t){return Ye(e,t)}function Du(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.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xu(e,t,n,o){return new Du(e,t,n,o)}function Nu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mu(e,t){var n=e.alternate;return null===n?((n=xu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Iu(e,t,n,o,r,s){var a=2;if(o=e,"function"===typeof e)Nu(e)&&(a=1);else if("string"===typeof e)a=5;else e:switch(e){case E:return Lu(n.children,r,s,t);case S:a=8,r|=8;break;case R:return(e=xu(12,n,t,2|r)).elementType=R,e.lanes=s,e;case A:return(e=xu(13,n,t,r)).elementType=A,e.lanes=s,e;case D:return(e=xu(19,n,t,r)).elementType=D,e.lanes=s,e;case M:return Fu(n,r,s,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case O:a=10;break e;case T:a=9;break e;case P:a=11;break e;case x:a=14;break e;case N:a=16,o=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=xu(a,n,t,r)).elementType=e,t.type=o,t.lanes=s,t}function Lu(e,t,n,o){return(e=xu(7,e,o,t)).lanes=n,e}function Fu(e,t,n,o){return(e=xu(22,e,o,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function ku(e,t,n){return(e=xu(6,e,null,t)).lanes=n,e}function Gu(e,t,n){return(t=xu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hu(e,t,n,o,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=o,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Bu(e,t,n,o,r,i,s,a,l){return e=new Hu(e,t,n,a,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=xu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ni(i),e}function Vu(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:b,key:null==o?null:""+o,children:e,containerInfo:t,implementation:n}}function Wu(e){if(!e)return Pr;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Mr(n))return Fr(e,n,t)}return t}function ju(e,t,n,o,r,i,s,a,l){return(e=Bu(n,o,!0,e,0,i,0,a,l)).context=Wu(null),n=e.current,(i=Ii(o=eu(),r=tu(n))).callback=void 0!==t&&null!==t?t:null,Li(n,i,r),e.current.lanes=r,vt(e,r,o),ou(e,o),e}function Uu(e,t,n,o){var r=t.current,i=eu(),s=tu(r);return n=Wu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ii(i,s)).payload={element:e},null!==(o=void 0===o?null:o)&&(t.callback=o),null!==(e=Li(r,t,s))&&(nu(e,r,s,i),Fi(e,r,s)),s}function zu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Zu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Yu(e,t){Zu(e,t),(e=e.alternate)&&Zu(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Dr.current)wa=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return wa=!1,function(e,t,n){switch(t.tag){case 3:Da(t),fi();break;case 5:ss(t);break;case 1:Mr(t.type)&&kr(t);break;case 4:rs(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,r=t.memoizedProps.value;Tr(yi,o._currentValue),o._currentValue=r;break;case 13:if(null!==(o=t.memoizedState))return null!==o.dehydrated?(Tr(ls,1&ls.current),t.flags|=128,null):0!==(n&t.child.childLanes)?ka(e,t,n):(Tr(ls,1&ls.current),null!==(e=Ua(e,t,n))?e.sibling:null);Tr(ls,1&ls.current);break;case 19:if(o=0!==(n&t.childLanes),0!==(128&e.flags)){if(o)return Wa(e,t,n);t.flags|=128}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null,r.lastEffect=null),Tr(ls,ls.current),o)break;return null;case 22:case 23:return t.lanes=0,Ra(e,t,n)}return Ua(e,t,n)}(e,t,n);wa=0!==(131072&e.flags)}else wa=!1,ii&&0!==(1048576&t.flags)&&ei(t,Yr,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;ja(e,t),e=t.pendingProps;var r=Nr(t,Ar.current);Ri(t,n),r=Ss(null,t,o,e,r,n);var s=Rs();return t.flags|=1,"object"===typeof r&&null!==r&&"function"===typeof r.render&&void 0===r.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mr(o)?(s=!0,kr(t)):s=!1,t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,Ni(t),r.updater=Wi,t.stateNode=r,r._reactInternals=t,Zi(t,o,e,n),t=Aa(null,t,o,!0,s,n)):(t.tag=0,ii&&s&&ti(t),_a(null,t,r,n),t=t.child),t;case 16:o=t.elementType;e:{switch(ja(e,t),e=t.pendingProps,o=(r=o._init)(o._payload),t.type=o,r=t.tag=function(e){if("function"===typeof e)return Nu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===P)return 11;if(e===x)return 14}return 2}(o),e=vi(o,e),r){case 0:t=Ta(null,t,o,e,n);break e;case 1:t=Pa(null,t,o,e,n);break e;case 11:t=ba(null,t,o,e,n);break e;case 14:t=Ea(null,t,o,vi(o.type,e),n);break e}throw Error(i(306,o,""))}return t;case 0:return o=t.type,r=t.pendingProps,Ta(e,t,o,r=t.elementType===o?r:vi(o,r),n);case 1:return o=t.type,r=t.pendingProps,Pa(e,t,o,r=t.elementType===o?r:vi(o,r),n);case 3:e:{if(Da(t),null===e)throw Error(i(387));o=t.pendingProps,r=(s=t.memoizedState).element,Mi(e,t),Gi(t,o,null,n);var a=t.memoizedState;if(o=a.element,s.isDehydrated){if(s={element:o,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=xa(e,t,o,n,r=ca(Error(i(423)),t));break e}if(o!==r){t=xa(e,t,o,n,r=ca(Error(i(424)),t));break e}for(ri=cr(t.stateNode.containerInfo.firstChild),oi=t,ii=!0,si=null,n=Ji(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fi(),o===r){t=Ua(e,t,n);break e}_a(e,t,o,n)}t=t.child}return t;case 5:return ss(t),null===e&&ci(t),o=t.type,r=t.pendingProps,s=null!==e?e.memoizedProps:null,a=r.children,or(o,r)?a=null:null!==s&&or(o,s)&&(t.flags|=32),Oa(e,t),_a(e,t,a,n),t.child;case 6:return null===e&&ci(t),null;case 13:return ka(e,t,n);case 4:return rs(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Qi(t,null,o,n):_a(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,ba(e,t,o,r=t.elementType===o?r:vi(o,r),n);case 7:return _a(e,t,t.pendingProps,n),t.child;case 8:case 12:return _a(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,r=t.pendingProps,s=t.memoizedProps,a=r.value,Tr(yi,o._currentValue),o._currentValue=a,null!==s)if(ao(s.value,a)){if(s.children===r.children&&!Dr.current){t=Ua(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){a=s.child;for(var u=l.firstContext;null!==u;){if(u.context===o){if(1===s.tag){(u=Ii(-1,n&-n)).tag=2;var c=s.updateQueue;if(null!==c){var p=(c=c.shared).pending;null===p?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),Si(s.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===s.tag)a=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(a=s.return))throw Error(i(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Si(a,n,t),a=s.sibling}else a=s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}_a(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=t.pendingProps.children,Ri(t,n),o=o(r=Oi(r)),t.flags|=1,_a(e,t,o,n),t.child;case 14:return r=vi(o=t.type,t.pendingProps),Ea(e,t,o,r=vi(o.type,r),n);case 15:return Sa(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:vi(o,r),ja(e,t),t.tag=1,Mr(o)?(e=!0,kr(t)):e=!1,Ri(t,n),Ui(t,o,r),Zi(t,o,r,n),Aa(null,t,o,!0,e,n);case 19:return Wa(e,t,n);case 22:return Ra(e,t,n)}throw Error(i(156,t.tag))};var Ku="function"===typeof reportError?reportError:function(e){console.error(e)};function qu(e){this._internalRoot=e}function Xu(e){this._internalRoot=e}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function $u(){}function ec(e,t,n,o,r){var i=n._reactRootContainer;if(i){var s=i;if("function"===typeof r){var a=r;r=function(){var e=zu(s);a.call(e)}}Uu(t,s,e,r)}else s=function(e,t,n,o,r){if(r){if("function"===typeof o){var i=o;o=function(){var e=zu(s);i.call(e)}}var s=ju(t,o,e,0,null,!1,0,"",$u);return e._reactRootContainer=s,e[gr]=s.current,jo(8===e.nodeType?e.parentNode:e),cu(),s}for(;r=e.lastChild;)e.removeChild(r);if("function"===typeof o){var a=o;o=function(){var e=zu(l);a.call(e)}}var l=Bu(e,0,!1,null,0,!1,0,"",$u);return e._reactRootContainer=l,e[gr]=l.current,jo(8===e.nodeType?e.parentNode:e),cu((function(){Uu(t,l,n,o)})),l}(n,t,e,r,o);return zu(s)}Xu.prototype.render=qu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Uu(e,t,null,null)},Xu.prototype.unmount=qu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){Uu(null,e,null,null)})),t[gr]=null}},Xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&kt(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pt(t.pendingLanes);0!==n&&(yt(t,1|n),ou(t,Qe()),0===(6&Pl)&&(Wl=Qe()+500,jr()))}break;case 13:cu((function(){var t=Di(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),Yu(e,1)}},bt=function(e){if(13===e.tag){var t=Di(e,134217728);if(null!==t)nu(t,e,134217728,eu());Yu(e,134217728)}},Et=function(e){if(13===e.tag){var t=tu(e),n=Di(e,t);if(null!==n)nu(n,e,t,eu());Yu(e,t)}},St=function(){return Ct},Rt=function(e,t){var n=Ct;try{return Ct=e,t()}finally{Ct=n}},be=function(e,t,n){switch(t){case"input":if(J(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=br(o);if(!r)throw Error(i(90));Y(o),J(o,r)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Pe=uu,Ae=cu;var tc={usingClientEntryPoint:!1,Events:[wr,_r,br,Oe,Te,uu]},nc={findFiberByHostInstance:Cr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},oc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=ze(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{rt=rc.inject(oc),it=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qu(t))throw Error(i(200));return Vu(e,t,null,n)},t.createRoot=function(e,t){if(!Qu(e))throw Error(i(299));var n=!1,o="",r=Ku;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(r=t.onRecoverableError)),t=Bu(e,1,!1,null,0,n,0,o,r),e[gr]=t.current,jo(8===e.nodeType?e.parentNode:e),new qu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=ze(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Ju(t))throw Error(i(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qu(e))throw Error(i(405));var o=null!=n&&n.hydratedSources||null,r=!1,s="",a=Ku;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=ju(t,null,e,1,null!=n?n:null,r,0,s,a),e[gr]=t.current,jo(e),o)for(e=0;e<o.length;e++)r=(r=(n=o[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new Xu(t)},t.render=function(e,t,n){if(!Ju(t))throw Error(i(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(i(40));return!!e._reactRootContainer&&(cu((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[gr]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!Ju(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(e,t,n,!1,o)},t.version="18.2.0-next-9e3b772b8-20220608"},1250:function(e,t,n){"use strict";var o=n(4164);t.createRoot=o.createRoot,t.hydrateRoot=o.hydrateRoot},4164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4463)},8340:function(e,t,n){"use strict";var o,r;o=n(1071),r=n(4424),t.version=o.version,t.renderToString=o.renderToString,t.renderToStaticMarkup=o.renderToStaticMarkup,t.renderToNodeStream=o.renderToNodeStream,t.renderToStaticNodeStream=o.renderToStaticNodeStream,t.renderToReadableStream=r.renderToReadableStream},1372:function(e,t){"use strict";var n,o=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case i:case a:case s:case d:case h:return e;default:switch(e=e&&e.$$typeof){case c:case u:case p:case g:case f:case l:return e;default:return t}}case r:return t}}}n=Symbol.for("react.module.reference"),t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===a||e===s||e===d||e===h||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=v},7441:function(e,t,n){"use strict";e.exports=n(1372)},3688:function(e,t,n){"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function i(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function s(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,s=null,a=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?a="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==s||null!==a){var l=e.displayName||e.name,u="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==s?"\n  "+s:"")+(null!==a?"\n  "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=r),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,o)}}return e}n.r(t),n.d(t,{polyfill:function(){return s}}),o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},2240:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=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},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(2791),s=f(i),a=f(n(4164)),l=f(n(2007)),u=f(n(4334)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5858)),p=n(3663),d=f(p),h=n(3688);function f(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var v=t.portalClassName="ReactModalPortal",y=t.bodyOpenClassName="ReactModal__Body--open",C=p.canUseDOM&&void 0!==a.default.createPortal,w=function(e){return document.createElement(e)},_=function(){return C?a.default.createPortal:a.default.unstable_renderSubtreeIntoContainer};function b(e){return e()}var E=function(e){function t(){var e,n,r;g(this,t);for(var i=arguments.length,l=Array(i),c=0;c<i;c++)l[c]=arguments[c];return n=r=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.removePortal=function(){!C&&a.default.unmountComponentAtNode(r.node);var e=b(r.props.parentSelector);e&&e.contains(r.node)?e.removeChild(r.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},r.portalRef=function(e){r.portal=e},r.renderPortal=function(e){var n=_()(r,s.default.createElement(u.default,o({defaultStyles:t.defaultStyles},e)),r.node);r.portalRef(n)},m(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){p.canUseDOM&&(C||(this.node=w("div")),this.node.className=this.props.portalClassName,b(this.props.parentSelector).appendChild(this.node),!C&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:b(e.parentSelector),nextParent:b(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(p.canUseDOM){var o=this.props,r=o.isOpen,i=o.portalClassName;e.portalClassName!==i&&(this.node.className=i);var s=n.prevParent,a=n.nextParent;a!==s&&(s.removeChild(this.node),a.appendChild(this.node)),(e.isOpen||r)&&!C&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(p.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return p.canUseDOM&&C?(!this.node&&C&&(this.node=w("div")),_()(s.default.createElement(u.default,o({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){c.setElement(e)}}]),t}(i.Component);E.propTypes={isOpen:l.default.bool.isRequired,style:l.default.shape({content:l.default.object,overlay:l.default.object}),portalClassName:l.default.string,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,className:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),overlayClassName:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),appElement:l.default.oneOfType([l.default.instanceOf(d.default),l.default.instanceOf(p.SafeHTMLCollection),l.default.instanceOf(p.SafeNodeList),l.default.arrayOf(l.default.instanceOf(d.default))]),onAfterOpen:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,ariaHideApp:l.default.bool,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,parentSelector:l.default.func,aria:l.default.object,data:l.default.object,role:l.default.string,contentLabel:l.default.string,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func},E.defaultProps={isOpen:!1,portalClassName:v,bodyOpenClassName:y,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return s.default.createElement("div",e,t)},contentElement:function(e,t){return s.default.createElement("div",e,t)}},E.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,h.polyfill)(E),t.default=E},4334:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=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},r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(2791),a=m(n(2007)),l=g(n(8844)),u=m(n(870)),c=g(n(5858)),p=g(n(6554)),d=n(3663),h=m(d),f=m(n(8484));function g(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function m(e){return e&&e.__esModule?e:{default:e}}n(5670);var v={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},y=0,C=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,o=e.ariaHideApp,r=e.htmlOpenClassName,i=e.bodyOpenClassName;i&&p.remove(document.body,i),r&&p.remove(document.getElementsByTagName("html")[0],r),o&&y>0&&0===(y-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),f.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){9===e.keyCode&&(0,u.default)(n.content,e),n.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===("undefined"===typeof t?"undefined":r(t))?t:{base:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[e]+"--before-close"},i=o.base;return n.state.afterOpen&&(i=i+" "+o.afterOpen),n.state.beforeClose&&(i=i+" "+o.beforeClose),"string"===typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,o){return n[e+"-"+o]=t[o],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,r=e.bodyOpenClassName;r&&p.add(document.body,r),o&&p.add(document.getElementsByTagName("html")[0],o),n&&(y+=1,c.hide(t)),f.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.overlayClassName,i=e.defaultStyles,s=e.children,a=n?{}:i.content,l=r?{}:i.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:o({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=o({id:t,ref:this.setContentRef,style:o({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),p=this.props.contentElement(c,s);return this.props.overlayElement(u,p)}}]),t}(s.Component);C.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},C.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(h.default),a.default.instanceOf(d.SafeHTMLCollection),a.default.instanceOf(d.SafeNodeList),a.default.arrayOf(a.default.instanceOf(h.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},t.default=C,e.exports=t.default},5858:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a&&(a.removeAttribute?a.removeAttribute("aria-hidden"):null!=a.length?a.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(a).forEach((function(e){return e.removeAttribute("aria-hidden")})));a=null},t.log=function(){0},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"===typeof t&&s.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t=n}return a=t||a},t.validateElement=u,t.hide=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=u(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0){r.value.setAttribute("aria-hidden","true")}}catch(s){n=!0,o=s}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.show=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=u(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0){r.value.removeAttribute("aria-hidden")}}catch(s){n=!0,o=s}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.documentNotReadyOrSSRTesting=function(){a=null};var o,r=n(2391),i=(o=r)&&o.__esModule?o:{default:o},s=n(3663);var a=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function u(e){var t=e||a;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,i.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},5670:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[s,a],t=0;t<e.length;t++){var n=e[t];n&&(n.parentNode&&n.parentNode.removeChild(n))}s=a=null,l=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(l.length);for(var e=[s,a],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var o,r=n(8484),i=(o=r)&&o.__esModule?o:{default:o};var s=void 0,a=void 0,l=[];function u(){0!==l.length&&l[l.length-1].focusContent()}i.default.subscribe((function(e,t){s||a||((s=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),s.style.position="absolute",s.style.opacity="0",s.setAttribute("tabindex","0"),s.addEventListener("focus",u),(a=s.cloneNode()).addEventListener("focus",u)),(l=t).length>0?(document.body.firstChild!==s&&document.body.insertBefore(s,document.body.firstChild),document.body.lastChild!==a&&document.body.appendChild(a)):(s.parentElement&&s.parentElement.removeChild(s),a.parentElement&&a.parentElement.removeChild(a))}))},6554:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)r(e,n[t]);var i=document.body;for(var s in o)r(i,o[s]);n={},o={}},t.log=function(){0};var n={},o={};function r(e,t){e.classList.remove(t)}t.add=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),r.add(e)}));var r,i},t.remove=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&r.remove(e)}));var r,i}},8844:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s=[]},t.log=function(){0},t.handleBlur=u,t.handleFocus=c,t.markForFocusLater=function(){s.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==s.length&&(t=s.pop()).focus({preventScroll:e}))}catch(n){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){s.length>0&&s.pop()},t.setupScopedFocus=function(e){a=e,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",c))};var o,r=n(9750),i=(o=r)&&o.__esModule?o:{default:o};var s=[],a=null,l=!1;function u(){l=!0}function c(){if(l){if(l=!1,!a)return;setTimeout((function(){a.contains(document.activeElement)||((0,i.default)(a)[0]||a).focus()}),0)}}},8484:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},o=new n;t.default=o},3663:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var o,r=n(2618);var i=((o=r)&&o.__esModule?o:{default:o}).default,s=i.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=i.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=i.canUseDOM?window.NodeList:{},t.canUseDOM=i.canUseDOM;t.default=s},870:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);if(!n.length)return void t.preventDefault();var o=void 0,r=t.shiftKey,a=n[0],l=n[n.length-1],u=s();if(e===u){if(!r)return;o=l}l!==u||r||(o=a);a===u&&r&&(o=l);if(o)return t.preventDefault(),void o.focus();var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==c||"Chrome"==c[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var p=n.indexOf(u);p>-1&&(p+=r?-1:1);if("undefined"===typeof(o=n[p]))return t.preventDefault(),void(o=r?l:a).focus();t.preventDefault(),o.focus()};var o,r=n(9750),i=(o=r)&&o.__esModule?o:{default:o};function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?s(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},9750:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]);return n.filter(i)};var n=/input|select|textarea|button|object|iframe/;function o(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}catch(o){return console.warn("Failed to inspect element style"),!1}}function r(e,t){var r=e.nodeName.toLowerCase();return(n.test(r)&&!e.disabled||"a"===r&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),o(t))return!1;t=t.parentNode}return!0}(e)}function i(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&r(e,!n)}e.exports=t.default},7948:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(2240),i=(o=r)&&o.__esModule?o:{default:o};t.default=i.default,e.exports=t.default},1016:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(l){r=!0,i=l}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i,s=n(6722),a=(i=s)&&i.__esModule?i:{default:i},l=function(e){return e};t.default=function(e){var t=Array.isArray(e)&&2===e.length?e:[e,null],n=o(t,2),i=n[0],s=n[1];return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var u=n.map((function(e){return i[e]})).filter(l);return"string"===typeof u[0]||"function"===typeof s?{key:e,className:s?s.apply(void 0,r(u)):u.join(" ")}:{key:e,style:a.default.apply(void 0,[{}].concat(r(u)))}}},e.exports=t.default},6722:function(e){"use strict";var t=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(e){var n=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(e))),n.filter((function(n){return t.call(e,n)}))}e.exports=Object.assign||function(e,t){for(var r,i,s=n(e),a=1;a<arguments.length;a++){r=arguments[a],i=o(Object(r));for(var l=0;l<i.length;l++)s[i[l]]=r[i[l]]}return s}},6374:function(e,t,n){"use strict";var o=n(2791),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var o,i={},u=null,c=null;for(o in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,o)&&!l.hasOwnProperty(o)&&(i[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===i[o]&&(i[o]=t[o]);return{$$typeof:r,type:e,key:u,ref:c,props:i,_owner:a.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},9117:function(e,t){"use strict";var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function y(){}function C(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=C.prototype=new y;w.constructor=C,g(w,v.prototype),w.isPureReactComponent=!0;var _=Array.isArray,b=Object.prototype.hasOwnProperty,E={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,o){var r,i={},s=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)b.call(t,r)&&!S.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=o;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:n,type:e,key:s,ref:a,props:i,_owner:E.current}}function O(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function P(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 A(e,t,r,i,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case o:l=!0}}if(l)return s=s(l=e),e=""===i?"."+P(l,0):i,_(s)?(r="",null!=e&&(r=e.replace(T,"$&/")+"/"),A(s,t,r,"",(function(e){return e}))):null!=s&&(O(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,r+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(T,"$&/")+"/")+e)),t.push(s)),1;if(l=0,i=""===i?".":i+":",_(e))for(var u=0;u<e.length;u++){var c=i+P(a=e[u],u);l+=A(a,t,r,c,s)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),u=0;!(a=e.next()).done;)l+=A(a=a.value,t,r,c=i+P(a,u++),s);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function D(e,t,n){if(null==e)return e;var o=[],r=0;return A(e,o,"","",(function(e){return t.call(n,e,r++)})),o}function x(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var N={current:null},M={transition:null},I={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:M,ReactCurrentOwner:E};t.Children={map:D,forEach:function(e,t,n){D(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return D(e,(function(){t++})),t},toArray:function(e){return D(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=r,t.Profiler=s,t.PureComponent=C,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,o){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=g({},e.props),i=e.key,s=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,a=E.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)b.call(t,u)&&!S.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=o;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:n,type:e.type,key:i,ref:s,props:r,_owner:a}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=R,t.createFactory=function(e){var t=R.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:x}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return N.current.useCallback(e,t)},t.useContext=function(e){return N.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return N.current.useDeferredValue(e)},t.useEffect=function(e,t){return N.current.useEffect(e,t)},t.useId=function(){return N.current.useId()},t.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.current.useMemo(e,t)},t.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},t.useRef=function(e){return N.current.useRef(e)},t.useState=function(e){return N.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return N.current.useTransition()},t.version="18.2.0"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},6813:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var o=n-1>>>1,r=e[o];if(!(0<i(r,t)))break e;e[o]=t,e[n]=r,n=o}}function o(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var o=0,r=e.length,s=r>>>1;o<s;){var a=2*(o+1)-1,l=e[a],u=a+1,c=e[u];if(0>i(l,n))u<r&&0>i(c,l)?(e[o]=c,e[u]=n,o=u):(e[o]=l,e[a]=n,o=a);else{if(!(u<r&&0>i(c,n)))break e;e[o]=c,e[u]=n,o=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var u=[],c=[],p=1,d=null,h=3,f=!1,g=!1,m=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,C="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=o(c);null!==t;){if(null===t.callback)r(c);else{if(!(t.startTime<=e))break;r(c),t.sortIndex=t.expirationTime,n(u,t)}t=o(c)}}function _(e){if(m=!1,w(e),!g)if(null!==o(u))g=!0,M(b);else{var t=o(c);null!==t&&I(_,t.startTime-e)}}function b(e,n){g=!1,m&&(m=!1,y(O),O=-1),f=!0;var i=h;try{for(w(n),d=o(u);null!==d&&(!(d.expirationTime>n)||e&&!A());){var s=d.callback;if("function"===typeof s){d.callback=null,h=d.priorityLevel;var a=s(d.expirationTime<=n);n=t.unstable_now(),"function"===typeof a?d.callback=a:d===o(u)&&r(u),w(n)}else r(u);d=o(u)}if(null!==d)var l=!0;else{var p=o(c);null!==p&&I(_,p.startTime-n),l=!1}return l}finally{d=null,h=i,f=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,S=!1,R=null,O=-1,T=5,P=-1;function A(){return!(t.unstable_now()-P<T)}function D(){if(null!==R){var e=t.unstable_now();P=e;var n=!0;try{n=R(!0,e)}finally{n?E():(S=!1,R=null)}}else S=!1}if("function"===typeof C)E=function(){C(D)};else if("undefined"!==typeof MessageChannel){var x=new MessageChannel,N=x.port2;x.port1.onmessage=D,E=function(){N.postMessage(null)}}else E=function(){v(D,0)};function M(e){R=e,S||(S=!0,E())}function I(e,n){O=v((function(){e(t.unstable_now())}),n)}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(){g||f||(g=!0,M(b))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return o(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,r,i){var s=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?s+i:s:i=s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:p++,callback:r,priorityLevel:e,startTime:i,expirationTime:a=i+a,sortIndex:-1},i>s?(e.sortIndex=i,n(c,e),null===o(u)&&e===o(c)&&(m?(y(O),O=-1):m=!0,I(_,i-s))):(e.sortIndex=a,n(u,e),g||f||(g=!0,M(b))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},5201:function(e){"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(l){r=!0,i=l}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var n=e.data,o=e.multiSection;function r(e){var r=t(e,2),i=r[0],s=r[1];return o?null===s||s===n[i]-1?null===(i=function(e){for(null===e?e=0:e++;e<n.length&&0===n[e];)e++;return e===n.length?null:e}(i))?[null,null]:[i,0]:[i,s+1]:0===n||s===n-1?[null,null]:null===s?[null,0]:[null,s+1]}return{next:r,prev:function(e){var r=t(e,2),i=r[0],s=r[1];return o?null===s||0===s?null===(i=function(e){for(null===e?e=n.length-1:e--;e>=0&&0===n[e];)e--;return-1===e?null:e}(i))?[null,null]:[i,n[i]-1]:[i,s-1]:0===n||0===s?[null,null]:null===s?[null,n-1]:[null,s-1]},isLast:function(e){return null===r(e)[1]}}}},1511:function(e){"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var o=0;o<n;o++)if(e[o]!==t[o])return!1;return!0}},9613:function(e){e.exports=function(e,t,n,o){var r=n?n.call(o,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!a(u))return!1;var c=e[u],p=t[u];if(!1===(r=n?n.call(o,c,p,u):void 0)||void 0===r&&c!==p)return!1}return!0}},2391:function(e){"use strict";var t=function(){};e.exports=t},907:function(e,t,n){"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}n.d(t,{Z:function(){return o}})},7326:function(e,t,n){"use strict";function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return o}})},5671:function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return o}})},3144:function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:function(){return r}})},7762:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(181);function r(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,o.Z)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw s}}}}},7277:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(1120),r=n(8814),i=n(1002),s=n(7326);function a(e,t){if(t&&("object"===(0,i.Z)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,s.Z)(e)}function l(e){var t=(0,r.Z)();return function(){var n,r=(0,o.Z)(e);if(t){var i=(0,o.Z)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return a(this,n)}}},4942:function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return o}})},1752:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(1120);function r(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,o.Z)(e)););return e}function i(){return i="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},i.apply(this,arguments)}},1120:function(e,t,n){"use strict";function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}n.d(t,{Z:function(){return o}})},136:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(9611);function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,o.Z)(e,t)}},8814:function(e,t,n){"use strict";function o(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return o}})},1413:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(4942);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},9611:function(e,t,n){"use strict";function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}n.d(t,{Z:function(){return o}})},885:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(181);function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);s=!0);}catch(l){a=!0,r=l}finally{try{s||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,t)||(0,o.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2982:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(907);var r=n(181);function i(e){return function(e){if(Array.isArray(e))return(0,o.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,r.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},1002:function(e,t,n){"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(t,{Z:function(){return o}})},181:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(907);function r(e,t){if(e){if("string"===typeof e)return(0,o.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,o.Z)(e,t):void 0}}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={id:o,loaded:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,o){return n.f[o](e,t),t}),[]))},n.u=function(e){return"files/static/js/"+e+".9d42efaa.chunk.js"},n.miniCssF=function(e){},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="server-admin:";n.l=function(o,r,i,s){if(e[o])e[o].push(r);else{var a,l;if(void 0!==i)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var p=u[c];if(p.getAttribute("src")==o||p.getAttribute("data-webpack")==t+i){a=p;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,n.nc&&a.setAttribute("nonce",n.nc),a.setAttribute("data-webpack",t+i),a.src=o),e[o]=[r];var d=function(t,n){a.onerror=a.onload=null,clearTimeout(h);var r=e[o];if(delete e[o],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((function(e){return e(n)})),t)return t(n)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),l&&document.head.appendChild(a)}}}(),n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",function(){var e={179:0};n.f.j=function(t,o){var r=n.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else{var i=new Promise((function(n,o){r=e[t]=[n,o]}));o.push(r[2]=i);var s=n.p+n.u(t),a=new Error;n.l(s,(function(o){if(n.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+s+")",a.name="ChunkLoadError",a.type=i,a.request=s,r[1](a)}}),"chunk-"+t,t)}};var t=function(t,o){var r,i,s=o[0],a=o[1],l=o[2],u=0;if(s.some((function(t){return 0!==e[t]}))){for(r in a)n.o(a,r)&&(n.m[r]=a[r]);if(l)l(n)}for(t&&t(o);u<s.length;u++)i=s[u],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},o=self.webpackChunkserver_admin=self.webpackChunkserver_admin||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))}(),function(){"use strict";var e,t=n(885),o=n(2791);function r(){return r=Object.assign?Object.assign.bind():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},r.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(e||(e={}));var i=function(e){return e};var s="beforeunload",a="popstate";function l(e){e.preventDefault(),e.returnValue=""}function u(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function c(){return Math.random().toString(36).substr(2,8)}function p(e){var t=e.pathname,n=void 0===t?"/":t,o=e.search,r=void 0===o?"":o,i=e.hash,s=void 0===i?"":i;return r&&"?"!==r&&(n+="?"===r.charAt(0)?r:"?"+r),s&&"#"!==s&&(n+="#"===s.charAt(0)?s:"#"+s),n}function d(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var o=e.indexOf("?");o>=0&&(t.search=e.substr(o),e=e.substr(0,o)),e&&(t.pathname=e)}return t}var h=(0,o.createContext)(null);var f=(0,o.createContext)(null);var g=(0,o.createContext)({outlet:null,matches:[]});function m(e,t){if(!e)throw new Error(t)}function v(e,t,n){void 0===n&&(n="/");var o=R(("string"===typeof t?d(t):t).pathname||"/",n);if(null==o)return null;var r=y(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(r);for(var i=null,s=0;null==i&&s<r.length;++s)i=b(r[s],o);return i}function y(e,t,n,o){return void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===o&&(o=""),e.forEach((function(e,r){var i={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};i.relativePath.startsWith("/")&&(i.relativePath.startsWith(o)||m(!1),i.relativePath=i.relativePath.slice(o.length));var s=O([o,i.relativePath]),a=n.concat(i);e.children&&e.children.length>0&&(!0===e.index&&m(!1),y(e.children,t,a,s)),(null!=e.path||e.index)&&t.push({path:s,score:_(s,e.index),routesMeta:a})})),t}var C=/^:\w+$/,w=function(e){return"*"===e};function _(e,t){var n=e.split("/"),o=n.length;return n.some(w)&&(o+=-2),t&&(o+=2),n.filter((function(e){return!w(e)})).reduce((function(e,t){return e+(C.test(t)?3:""===t?1:10)}),o)}function b(e,t){for(var n=e.routesMeta,o={},r="/",i=[],s=0;s<n.length;++s){var a=n[s],l=s===n.length-1,u="/"===r?t:t.slice(r.length)||"/",c=E({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},u);if(!c)return null;Object.assign(o,c.params);var p=a.route;i.push({params:o,pathname:O([r,c.pathname]),pathnameBase:T(O([r,c.pathnameBase])),route:p}),"/"!==c.pathnameBase&&(r=O([r,c.pathnameBase]))}return i}function E(e,n){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});var o=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);var o=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(function(e,t){return o.push(t),"([^\\/]+)"}));e.endsWith("*")?(o.push("*"),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)";return[new RegExp(r,t?void 0:"i"),o]}(e.path,e.caseSensitive,e.end),r=(0,t.Z)(o,2),i=r[0],s=r[1],a=n.match(i);if(!a)return null;var l=a[0],u=l.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:s.reduce((function(e,t,n){if("*"===t){var o=c[n]||"";u=l.slice(0,l.length-o.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return e}}(c[n]||""),e}),{}),pathname:l,pathnameBase:u,pattern:e}}function S(e,t,n){var o,r="string"===typeof e?d(e):e,i=""===e||""===r.pathname?"/":r.pathname;if(null==i)o=n;else{var s=t.length-1;if(i.startsWith("..")){for(var a=i.split("/");".."===a[0];)a.shift(),s-=1;r.pathname=a.join("/")}o=s>=0?t[s]:"/"}var l=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?d(e):e,o=n.pathname,r=n.search,i=void 0===r?"":r,s=n.hash,a=void 0===s?"":s,l=o?o.startsWith("/")?o:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(o,t):t;return{pathname:l,search:P(i),hash:A(a)}}(r,o);return i&&"/"!==i&&i.endsWith("/")&&!l.pathname.endsWith("/")&&(l.pathname+="/"),l}function R(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var n=e.charAt(t.length);return n&&"/"!==n?null:e.slice(t.length)||"/"}var O=function(e){return e.join("/").replace(/\/\/+/g,"/")},T=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},P=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},A=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""};function D(e){x()||m(!1);var t=(0,o.useContext)(h),n=t.basename,r=t.navigator,i=I(e),s=i.hash,a=i.pathname,l=i.search,u=a;if("/"!==n){var c=function(e){return""===e||""===e.pathname?"/":"string"===typeof e?d(e).pathname:e.pathname}(e),p=null!=c&&c.endsWith("/");u="/"===a?n+(p?"/":""):O([n,a])}return r.createHref({pathname:u,search:l,hash:s})}function x(){return null!=(0,o.useContext)(f)}function N(){return x()||m(!1),(0,o.useContext)(f).location}function M(){x()||m(!1);var e=(0,o.useContext)(h),t=e.basename,n=e.navigator,r=(0,o.useContext)(g).matches,i=N().pathname,s=JSON.stringify(r.map((function(e){return e.pathnameBase}))),a=(0,o.useRef)(!1);(0,o.useEffect)((function(){a.current=!0}));var l=(0,o.useCallback)((function(e,o){if(void 0===o&&(o={}),a.current)if("number"!==typeof e){var r=S(e,JSON.parse(s),i);"/"!==t&&(r.pathname=O([t,r.pathname])),(o.replace?n.replace:n.push)(r,o.state)}else n.go(e)}),[t,n,s,i]);return l}function I(e){var t=(0,o.useContext)(g).matches,n=N().pathname,r=JSON.stringify(t.map((function(e){return e.pathnameBase})));return(0,o.useMemo)((function(){return S(e,JSON.parse(r),n)}),[e,r,n])}function L(e,t){return void 0===t&&(t=[]),null==e?null:e.reduceRight((function(n,r,i){return(0,o.createElement)(g.Provider,{children:void 0!==r.route.element?r.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,i+1))}})}),null)}function F(e){m(!1)}function k(t){var n=t.basename,r=void 0===n?"/":n,i=t.children,s=void 0===i?null:i,a=t.location,l=t.navigationType,u=void 0===l?e.Pop:l,c=t.navigator,p=t.static,g=void 0!==p&&p;x()&&m(!1);var v=T(r),y=(0,o.useMemo)((function(){return{basename:v,navigator:c,static:g}}),[v,c,g]);"string"===typeof a&&(a=d(a));var C=a,w=C.pathname,_=void 0===w?"/":w,b=C.search,E=void 0===b?"":b,S=C.hash,O=void 0===S?"":S,P=C.state,A=void 0===P?null:P,D=C.key,N=void 0===D?"default":D,M=(0,o.useMemo)((function(){var e=R(_,v);return null==e?null:{pathname:e,search:E,hash:O,state:A,key:N}}),[v,_,E,O,A,N]);return null==M?null:(0,o.createElement)(h.Provider,{value:y},(0,o.createElement)(f.Provider,{children:s,value:{location:M,navigationType:u}}))}function G(e){var t=e.children,n=e.location;return function(e,t){x()||m(!1);var n,r=(0,o.useContext)(g).matches,i=r[r.length-1],s=i?i.params:{},a=(i&&i.pathname,i?i.pathnameBase:"/"),l=(i&&i.route,N());if(t){var u,c="string"===typeof t?d(t):t;"/"===a||(null==(u=c.pathname)?void 0:u.startsWith(a))||m(!1),n=c}else n=l;var p=n.pathname||"/",h=v(e,{pathname:"/"===a?p:p.slice(a.length)||"/"});return L(h&&h.map((function(e){return Object.assign({},e,{params:Object.assign({},s,e.params),pathname:O([a,e.pathname]),pathnameBase:"/"===e.pathnameBase?a:O([a,e.pathnameBase])})})),r)}(H(t),n)}function H(e){var t=[];return o.Children.forEach(e,(function(e){if((0,o.isValidElement)(e))if(e.type!==o.Fragment){e.type!==F&&m(!1);var n={caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path};e.props.children&&(n.children=H(e.props.children)),t.push(n)}else t.push.apply(t,H(e.props.children))})),t}function B(){return B=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},B.apply(this,arguments)}function V(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}var W=["onClick","reloadDocument","replace","state","target","to"];function j(n){var h=n.basename,f=n.children,g=n.window,m=(0,o.useRef)();null==m.current&&(m.current=function(t){void 0===t&&(t={});var n=t.window,o=void 0===n?document.defaultView:n,h=o.history;function f(){var e=o.location,t=e.pathname,n=e.search,r=e.hash,s=h.state||{};return[s.idx,i({pathname:t,search:n,hash:r,state:s.usr||null,key:s.key||"default"})]}var g=null;o.addEventListener(a,(function(){if(g)_.call(g),g=null;else{var t=e.Pop,n=f(),o=n[0],r=n[1];if(_.length){if(null!=o){var i=y-o;i&&(g={action:t,location:r,retry:function(){T(-1*i)}},T(i))}}else O(t)}}));var m=e.Pop,v=f(),y=v[0],C=v[1],w=u(),_=u();function b(e){return"string"===typeof e?e:p(e)}function E(e,t){return void 0===t&&(t=null),i(r({pathname:C.pathname,hash:"",search:""},"string"===typeof e?d(e):e,{state:t,key:c()}))}function S(e,t){return[{usr:e.state,key:e.key,idx:t},b(e)]}function R(e,t,n){return!_.length||(_.call({action:e,location:t,retry:n}),!1)}function O(e){m=e;var t=f();y=t[0],C=t[1],w.call({action:m,location:C})}function T(e){h.go(e)}null==y&&(y=0,h.replaceState(r({},h.state,{idx:y}),""));var P={get action(){return m},get location(){return C},createHref:b,push:function t(n,r){var i=e.Push,s=E(n,r);if(R(i,s,(function(){t(n,r)}))){var a=S(s,y+1),l=a[0],u=a[1];try{h.pushState(l,"",u)}catch(c){o.location.assign(u)}O(i)}},replace:function t(n,o){var r=e.Replace,i=E(n,o);if(R(r,i,(function(){t(n,o)}))){var s=S(i,y),a=s[0],l=s[1];h.replaceState(a,"",l),O(r)}},go:T,back:function(){T(-1)},forward:function(){T(1)},listen:function(e){return w.push(e)},block:function(e){var t=_.push(e);return 1===_.length&&o.addEventListener(s,l),function(){t(),_.length||o.removeEventListener(s,l)}}};return P}({window:g}));var v=m.current,y=(0,o.useState)({action:v.action,location:v.location}),C=(0,t.Z)(y,2),w=C[0],_=C[1];return(0,o.useLayoutEffect)((function(){return v.listen(_)}),[v]),(0,o.createElement)(k,{basename:h,children:f,location:w.location,navigationType:w.action,navigator:v})}var U=(0,o.forwardRef)((function(e,t){var n=e.onClick,r=e.reloadDocument,i=e.replace,s=void 0!==i&&i,a=e.state,l=e.target,u=e.to,c=V(e,W),d=D(u),h=function(e,t){var n=void 0===t?{}:t,r=n.target,i=n.replace,s=n.state,a=M(),l=N(),u=I(e);return(0,o.useCallback)((function(t){if(0===t.button&&(!r||"_self"===r)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t)){t.preventDefault();var n=!!i||p(l)===p(u);a(e,{replace:n,state:s})}}),[l,a,u,i,s,r,e])}(u,{replace:s,state:a,target:l});return(0,o.createElement)("a",B({},c,{href:d,onClick:function(e){n&&n(e),e.defaultPrevented||r||h(e)},ref:t,target:l}))}));var z=n(1250),Z=n(7441),Y=n(9613),K=n.n(Y);var q=function(e){function t(e,o,l,u,d){for(var h,f,g,m,w,b=0,E=0,S=0,R=0,O=0,N=0,I=g=h=0,F=0,k=0,G=0,H=0,B=l.length,V=B-1,W="",j="",U="",z="";F<B;){if(f=l.charCodeAt(F),F===V&&0!==E+R+S+b&&(0!==E&&(f=47===E?10:47),R=S=b=0,B++,V++),0===E+R+S+b){if(F===V&&(0<k&&(W=W.replace(p,"")),0<W.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:W+=l.charAt(F)}f=59}switch(f){case 123:for(h=(W=W.trim()).charCodeAt(0),g=1,H=++F;F<B;){switch(f=l.charCodeAt(F)){case 123:g++;break;case 125:g--;break;case 47:switch(f=l.charCodeAt(F+1)){case 42:case 47:e:{for(I=F+1;I<V;++I)switch(l.charCodeAt(I)){case 47:if(42===f&&42===l.charCodeAt(I-1)&&F+2!==I){F=I+1;break e}break;case 10:if(47===f){F=I+1;break e}}F=I}}break;case 91:f++;case 40:f++;case 34:case 39:for(;F++<V&&l.charCodeAt(F)!==f;);}if(0===g)break;F++}if(g=l.substring(H,F),0===h&&(h=(W=W.replace(c,"").trim()).charCodeAt(0)),64===h){switch(0<k&&(W=W.replace(p,"")),f=W.charCodeAt(1)){case 100:case 109:case 115:case 45:k=o;break;default:k=x}if(H=(g=t(o,k,g,f,d+1)).length,0<M&&(w=a(3,g,k=n(x,W,G),o,P,T,H,f,d,u),W=k.join(""),void 0!==w&&0===(H=(g=w.trim()).length)&&(f=0,g="")),0<H)switch(f){case 115:W=W.replace(_,s);case 100:case 109:case 45:g=W+"{"+g+"}";break;case 107:g=(W=W.replace(v,"$1 $2"))+"{"+g+"}",g=1===D||2===D&&i("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=W+g,112===u&&(j+=g,g="")}else g=""}else g=t(o,n(o,W,G),g,u,d+1);U+=g,g=G=k=I=h=0,W="",f=l.charCodeAt(++F);break;case 125:case 59:if(1<(H=(W=(0<k?W.replace(p,""):W).trim()).length))switch(0===I&&(h=W.charCodeAt(0),45===h||96<h&&123>h)&&(H=(W=W.replace(" ",":")).length),0<M&&void 0!==(w=a(1,W,o,e,P,T,j.length,u,d,u))&&0===(H=(W=w.trim()).length)&&(W="\0\0"),h=W.charCodeAt(0),f=W.charCodeAt(1),h){case 0:break;case 64:if(105===f||99===f){z+=W+l.charAt(F);break}default:58!==W.charCodeAt(H-1)&&(j+=r(W,h,f,W.charCodeAt(2)))}G=k=I=h=0,W="",f=l.charCodeAt(++F)}}switch(f){case 13:case 10:47===E?E=0:0===1+h&&107!==u&&0<W.length&&(k=1,W+="\0"),0<M*L&&a(0,W,o,e,P,T,j.length,u,d,u),T=1,P++;break;case 59:case 125:if(0===E+R+S+b){T++;break}default:switch(T++,m=l.charAt(F),f){case 9:case 32:if(0===R+b+E)switch(O){case 44:case 58:case 9:case 32:m="";break;default:32!==f&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===R+E+b&&(k=G=1,m="\f"+m);break;case 108:if(0===R+E+b+A&&0<I)switch(F-I){case 2:112===O&&58===l.charCodeAt(F-3)&&(A=O);case 8:111===N&&(A=N)}break;case 58:0===R+E+b&&(I=F);break;case 44:0===E+S+R+b&&(k=1,m+="\r");break;case 34:case 39:0===E&&(R=R===f?0:0===R?f:R);break;case 91:0===R+E+S&&b++;break;case 93:0===R+E+S&&b--;break;case 41:0===R+E+b&&S--;break;case 40:if(0===R+E+b){if(0===h)if(2*O+3*N===533);else h=1;S++}break;case 64:0===E+S+R+b+I+g&&(g=1);break;case 42:case 47:if(!(0<R+b+S))switch(E){case 0:switch(2*f+3*l.charCodeAt(F+1)){case 235:E=47;break;case 220:H=F,E=42}break;case 42:47===f&&42===O&&H+2!==F&&(33===l.charCodeAt(H+2)&&(j+=l.substring(H,F+1)),m="",E=0)}}0===E&&(W+=m)}N=O,O=f,F++}if(0<(H=j.length)){if(k=o,0<M&&(void 0!==(w=a(2,j,k,e,P,T,H,u,d,u))&&0===(j=w).length))return z+j+U;if(j=k.join(",")+"{"+j+"}",0!==D*A){switch(2!==D||i(j,2)||(A=0),A){case 111:j=j.replace(C,":-moz-$1")+j;break;case 112:j=j.replace(y,"::-webkit-input-$1")+j.replace(y,"::-moz-$1")+j.replace(y,":-ms-input-$1")+j}A=0}}return z+j+U}function n(e,t,n){var r=t.trim().split(g);t=r;var i=r.length,s=e.length;switch(s){case 0:case 1:var a=0;for(e=0===s?"":e[0]+" ";a<i;++a)t[a]=o(e,t[a],n).trim();break;default:var l=a=0;for(t=[];a<i;++a)for(var u=0;u<s;++u)t[l++]=o(e[u]+" ",r[a],n).trim()}return t}function o(e,t,n){var o=t.charCodeAt(0);switch(33>o&&(o=(t=t.trim()).charCodeAt(0)),o){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,o){var s=e+";",a=2*t+3*n+4*o;if(944===a){e=s.indexOf(":",9)+1;var l=s.substring(e,s.length-1).trim();return l=s.substring(0,e).trim()+l+";",1===D||2===D&&i(l,1)?"-webkit-"+l+l:l}if(0===D||2===D&&!i(s,1))return s;switch(a){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace(O,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(l=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+l+s;case 1005:return h.test(s)?s.replace(d,":-webkit-")+s.replace(d,":-moz-")+s:s;case 1e3:switch(t=(l=s.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=s.replace(w,"tb");break;case 232:l=s.replace(w,"tb-rl");break;case 220:l=s.replace(w,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+l+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,a=(l=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:s=s.replace(l,"-webkit-"+l)+";"+s;break;case 207:case 102:s=s.replace(l,"-webkit-"+(102<a?"inline-":"")+"box")+";"+s.replace(l,"-webkit-"+l)+";"+s.replace(l,"-ms-"+l+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return l=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+l+"-ms-flex-"+l+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(E,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(E,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===R.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,o).replace(":fill-available",":stretch"):s.replace(l,"-webkit-"+l)+s.replace(l,"-moz-"+l.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===n+o&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+s}return s}function i(e,t){var n=e.indexOf(1===t?":":"{"),o=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),I(2!==t?o:o.replace(S,"$1"),n,t)}function s(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(b," or ($1)").substring(4):"("+t+")"}function a(e,t,n,o,r,i,s,a,l,c){for(var p,d=0,h=t;d<M;++d)switch(p=N[d].call(u,e,h,n,o,r,i,s,a,l,c)){case void 0:case!1:case!0:case null:break;default:h=p}if(h!==t)return h}function l(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!==typeof e?D=1:(D=2,I=e):D=0),l}function u(e,n){var o=e;if(33>o.charCodeAt(0)&&(o=o.trim()),o=[o],0<M){var r=a(-1,n,o,o,P,T,0,0,0,0);void 0!==r&&"string"===typeof r&&(n=r)}var i=t(x,o,n,0,0);return 0<M&&(void 0!==(r=a(-2,i,o,o,P,T,i.length,0,0,0))&&(i=r)),"",A=0,T=P=1,i}var c=/^\0+/g,p=/[\0\r\f]/g,d=/: */g,h=/zoo|gra/,f=/([,: ])(transform)/g,g=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,C=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,b=/([\s\S]*?);/g,E=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,R=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,T=1,P=1,A=0,D=1,x=[],N=[],M=0,I=null,L=0;return u.use=function e(t){switch(t){case void 0:case null:M=N.length=0;break;default:if("function"===typeof t)N[M++]=t;else if("object"===typeof t)for(var n=0,o=t.length;n<o;++n)e(t[n]);else L=0|!!t}return e},u.set=l,void 0!==e&&l(e),u},X={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Q=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,J=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return Q.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),$=n(2110),ee=n.n($);function te(){return(te=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 ne=function(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n},oe=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,Z.typeOf)(e)},re=Object.freeze([]),ie=Object.freeze({});function se(e){return"function"==typeof e}function ae(e){return e.displayName||e.name||"Component"}function le(e){return e&&"string"==typeof e.styledComponentId}var ue="undefined"!=typeof process&&({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_ATTR||{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_ATTR)||"data-styled",ce="undefined"!=typeof window&&"HTMLElement"in window,pe=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&("false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY));function de(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var he=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)(r<<=1)<0&&de(16,""+e);this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var i=o;i<r;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),a=0,l=t.length;a<l;a++)this.tag.insertRule(s,t[a])&&(this.groupSizes[e]++,s++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,i=o;i<r;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),fe=new Map,ge=new Map,me=1,ve=function(e){if(fe.has(e))return fe.get(e);for(;ge.has(me);)me++;var t=me++;return fe.set(e,t),ge.set(t,e),t},ye=function(e){return ge.get(e)},Ce=function(e,t){t>=me&&(me=t+1),fe.set(e,t),ge.set(t,e)},we="style["+ue+'][data-styled-version="5.3.5"]',_e=new RegExp("^"+ue+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),be=function(e,t,n){for(var o,r=n.split(","),i=0,s=r.length;i<s;i++)(o=r[i])&&e.registerName(t,o)},Ee=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),o=[],r=0,i=n.length;r<i;r++){var s=n[r].trim();if(s){var a=s.match(_e);if(a){var l=0|parseInt(a[1],10),u=a[2];0!==l&&(Ce(u,l),be(e,u,a[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(s)}}},Se=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},Re=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var o=t[n];if(o&&1===o.nodeType&&o.hasAttribute(ue))return o}}(n),i=void 0!==r?r.nextSibling:null;o.setAttribute(ue,"active"),o.setAttribute("data-styled-version","5.3.5");var s=Se();return s&&o.setAttribute("nonce",s),n.insertBefore(o,i),o},Oe=function(){function e(e){var t=this.element=Re(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}de(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Te=function(){function e(e){var t=this.element=Re(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),o=this.nodes[e];return this.element.insertBefore(n,o||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Pe=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Ae=ce,De={isServer:!ce,useCSSOMInjection:!pe},xe=function(){function e(e,t,n){void 0===e&&(e=ie),void 0===t&&(t={}),this.options=te({},De,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&ce&&Ae&&(Ae=!1,function(e){for(var t=document.querySelectorAll(we),n=0,o=t.length;n<o;n++){var r=t[n];r&&"active"!==r.getAttribute(ue)&&(Ee(e,r),r.parentNode&&r.parentNode.removeChild(r))}}(this))}e.registerId=function(e){return ve(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(te({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,o=t.useCSSOMInjection,r=t.target,e=n?new Pe(r):o?new Oe(r):new Te(r),new he(e)));var e,t,n,o,r},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(ve(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(ve(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(ve(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=0;r<n;r++){var i=ye(r);if(void 0!==i){var s=e.names.get(i),a=t.getGroup(r);if(s&&a&&s.size){var l=ue+".g"+r+'[id="'+i+'"]',u="";void 0!==s&&s.forEach((function(e){e.length>0&&(u+=e+",")})),o+=""+a+l+'{content:"'+u+'"}/*!sc*/\n'}}}return o}(this)},e}(),Ne=/(a)(d)/gi,Me=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ie(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Me(t%52)+n;return(Me(t%52)+n).replace(Ne,"$1-$2")}var Le=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Fe=function(e){return Le(5381,e)};function ke(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(se(n)&&!le(n))return!1}return!0}var Ge=Fe("5.3.5"),He=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&ke(e),this.componentId=t,this.baseHash=Le(Ge,t),this.baseStyle=n,xe.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.componentId,r=[];if(this.baseStyle&&r.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(o,this.staticRulesId))r.push(this.staticRulesId);else{var i=ot(this.rules,e,t,n).join(""),s=Ie(Le(this.baseHash,i)>>>0);if(!t.hasNameForId(o,s)){var a=n(i,"."+s,void 0,o);t.insertRules(o,s,a)}r.push(s),this.staticRulesId=s}else{for(var l=this.rules.length,u=Le(this.baseHash,n.hash),c="",p=0;p<l;p++){var d=this.rules[p];if("string"==typeof d)c+=d;else if(d){var h=ot(d,e,t,n),f=Array.isArray(h)?h.join(""):h;u=Le(u,f+p),c+=f}}if(c){var g=Ie(u>>>0);if(!t.hasNameForId(o,g)){var m=n(c,"."+g,void 0,o);t.insertRules(o,g,m)}r.push(g)}}return r.join(" ")},e}(),Be=/^\s*\/\/.*$/gm,Ve=[":","[",".","#"];function We(e){var t,n,o,r,i=void 0===e?ie:e,s=i.options,a=void 0===s?ie:s,l=i.plugins,u=void 0===l?re:l,c=new q(a),p=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,o,r,i,s,a,l,u,c,p){switch(n){case 1:if(0===c&&64===o.charCodeAt(0))return e(o+";"),"";break;case 2:if(0===u)return o+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(r[0]+o),"";default:return o+(0===p?"/*|*/":"")}case-2:o.split("/*|*/}").forEach(t)}}}((function(e){p.push(e)})),h=function(e,o,i){return 0===o&&-1!==Ve.indexOf(i[n.length])||i.match(r)?e:"."+t};function f(e,i,s,a){void 0===a&&(a="&");var l=e.replace(Be,""),u=i&&s?s+" "+i+" { "+l+" }":l;return t=a,n=i,o=new RegExp("\\"+n+"\\b","g"),r=new RegExp("(\\"+n+"\\b){2,}"),c(s||!i?"":i,u)}return c.use([].concat(u,[function(e,t,r){2===e&&r.length&&r[0].lastIndexOf(n)>0&&(r[0]=r[0].replace(o,h))},d,function(e){if(-2===e){var t=p;return p=[],t}}])),f.hash=u.length?u.reduce((function(e,t){return t.name||de(15),Le(e,t.name)}),5381).toString():"",f}var je=o.createContext(),Ue=(je.Consumer,o.createContext()),ze=(Ue.Consumer,new xe),Ze=We();function Ye(){return(0,o.useContext)(je)||ze}function Ke(){return(0,o.useContext)(Ue)||Ze}function qe(e){var t=(0,o.useState)(e.stylisPlugins),n=t[0],r=t[1],i=Ye(),s=(0,o.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=(0,o.useMemo)((function(){return We({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,o.useEffect)((function(){K()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),o.createElement(je.Provider,{value:s},o.createElement(Ue.Provider,{value:a},e.children))}var Xe=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ze);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"))},this.toString=function(){return de(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Ze),this.name+e.hash},e}(),Qe=/([A-Z])/,Je=/([A-Z])/g,$e=/^ms-/,et=function(e){return"-"+e.toLowerCase()};function tt(e){return Qe.test(e)?e.replace(Je,et).replace($e,"-ms-"):e}var nt=function(e){return null==e||!1===e||""===e};function ot(e,t,n,o){if(Array.isArray(e)){for(var r,i=[],s=0,a=e.length;s<a;s+=1)""!==(r=ot(e[s],t,n,o))&&(Array.isArray(r)?i.push.apply(i,r):i.push(r));return i}return nt(e)?"":le(e)?"."+e.styledComponentId:se(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:ot(e(t),t,n,o):e instanceof Xe?n?(e.inject(n,o),e.getName(o)):e:oe(e)?function e(t,n){var o,r,i=[];for(var s in t)t.hasOwnProperty(s)&&!nt(t[s])&&(Array.isArray(t[s])&&t[s].isCss||se(t[s])?i.push(tt(s)+":",t[s],";"):oe(t[s])?i.push.apply(i,e(t[s],s)):i.push(tt(s)+": "+(o=s,(null==(r=t[s])||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||o in X?String(r).trim():r+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var l}var rt=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function it(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return se(e)||oe(e)?rt(ot(ne(re,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:rt(ot(ne(e,n)))}new Set;var st=function(e,t,n){return void 0===n&&(n=ie),e.theme!==n.theme&&e.theme||t||n.theme},at=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,lt=/(^-|-$)/g;function ut(e){return e.replace(at,"-").replace(lt,"")}var ct=function(e){return Ie(Fe(e)>>>0)};function pt(e){return"string"==typeof e&&!0}var dt=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ht=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ft(e,t,n){var o=e[n];dt(t)&&dt(o)?gt(o,t):e[n]=t}function gt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];for(var r=0,i=n;r<i.length;r++){var s=i[r];if(dt(s))for(var a in s)ht(a)&&ft(e,s[a],a)}return e}var mt=o.createContext();mt.Consumer;function vt(e){var t=(0,o.useContext)(mt),n=(0,o.useMemo)((function(){return function(e,t){return e?se(e)?e(t):Array.isArray(e)||"object"!=typeof e?de(8):t?te({},t,{},e):e:de(14)}(e.theme,t)}),[e.theme,t]);return e.children?o.createElement(mt.Provider,{value:n},e.children):null}var yt={};function Ct(e,t,n){var r=le(e),i=!pt(e),s=t.attrs,a=void 0===s?re:s,l=t.componentId,u=void 0===l?function(e,t){var n="string"!=typeof e?"sc":ut(e);yt[n]=(yt[n]||0)+1;var o=n+"-"+ct("5.3.5"+n+yt[n]);return t?t+"-"+o:o}(t.displayName,t.parentComponentId):l,c=t.displayName,p=void 0===c?function(e){return pt(e)?"styled."+e:"Styled("+ae(e)+")"}(e):c,d=t.displayName&&t.componentId?ut(t.displayName)+"-"+t.componentId:t.componentId||u,h=r&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,f=t.shouldForwardProp;r&&e.shouldForwardProp&&(f=t.shouldForwardProp?function(n,o,r){return e.shouldForwardProp(n,o,r)&&t.shouldForwardProp(n,o,r)}:e.shouldForwardProp);var g,m=new He(n,d,r?e.componentStyle:void 0),v=m.isStatic&&0===a.length,y=function(e,t){return function(e,t,n,r){var i=e.attrs,s=e.componentStyle,a=e.defaultProps,l=e.foldedComponentIds,u=e.shouldForwardProp,c=e.styledComponentId,p=e.target,d=function(e,t,n){void 0===e&&(e=ie);var o=te({},t,{theme:e}),r={};return n.forEach((function(e){var t,n,i,s=e;for(t in se(s)&&(s=s(o)),s)o[t]=r[t]="className"===t?(n=r[t],i=s[t],n&&i?n+" "+i:n||i):s[t]})),[o,r]}(st(t,(0,o.useContext)(mt),a)||ie,t,i),h=d[0],f=d[1],g=function(e,t,n,o){var r=Ye(),i=Ke();return t?e.generateAndInjectStyles(ie,r,i):e.generateAndInjectStyles(n,r,i)}(s,r,h),m=n,v=f.$as||t.$as||f.as||t.as||p,y=pt(v),C=f!==t?te({},t,{},f):t,w={};for(var _ in C)"$"!==_[0]&&"as"!==_&&("forwardedAs"===_?w.as=C[_]:(u?u(_,J,v):!y||J(_))&&(w[_]=C[_]));return t.style&&f.style!==t.style&&(w.style=te({},t.style,{},f.style)),w.className=Array.prototype.concat(l,c,g!==c?g:null,t.className,f.className).filter(Boolean).join(" "),w.ref=m,(0,o.createElement)(v,w)}(g,e,t,v)};return y.displayName=p,(g=o.forwardRef(y)).attrs=h,g.componentStyle=m,g.displayName=p,g.shouldForwardProp=f,g.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):re,g.styledComponentId=d,g.target=r?e.target:e,g.withComponent=function(e){var o=t.componentId,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(t,["componentId"]),i=o&&o+"-"+(pt(e)?e:ut(ae(e)));return Ct(e,te({},r,{attrs:h,componentId:i}),n)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?gt({},e.defaultProps,t):t}}),g.toString=function(){return"."+g.styledComponentId},i&&ee()(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var wt=function(e){return function e(t,n,o){if(void 0===o&&(o=ie),!(0,Z.isValidElementType)(n))return de(1,String(n));var r=function(){return t(n,o,it.apply(void 0,arguments))};return r.withConfig=function(r){return e(t,n,te({},o,{},r))},r.attrs=function(r){return e(t,n,te({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},r}(Ct,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){wt[e]=wt(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ke(e),xe.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,o){var r=o(ot(this.rules,t,n,o).join(""),""),i=this.componentId+e;n.insertRules(i,i,r)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,o){e>2&&xe.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,o)}}();!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=Se();return"<style "+[n&&'nonce="'+n+'"',ue+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?de(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return de(2);var n=((t={})[ue]="",t["data-styled-version"]="5.3.5",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=Se();return r&&(n.nonce=r),[o.createElement("style",te({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new xe({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?de(2):o.createElement(qe,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return de(3)}}();var _t=function(){return(0,o.useContext)(mt)},bt=wt,Et=n(1413),St=n(1002);function Rt(){Rt=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function a(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{a({},"")}catch(O){a=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var r=t&&t.prototype instanceof p?t:p,i=Object.create(r.prototype),s=new E(o||[]);return i._invoke=function(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return R()}for(n.method=r,n.arg=i;;){var s=n.delegate;if(s){var a=w(s,n);if(a){if(a===c)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var l=u(e,t,n);if("normal"===l.type){if(o=n.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o="completed",n.method="throw",n.arg=l.arg)}}}(e,n,s),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(O){return{type:"throw",arg:O}}}e.wrap=l;var c={};function p(){}function d(){}function h(){}var f={};a(f,r,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(S([])));m&&m!==t&&n.call(m,r)&&(f=m);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){a(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function o(r,i,s,a){var l=u(e[r],e,i);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"==(0,St.Z)(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){o("next",e,s,a)}),(function(e){o("throw",e,s,a)})):t.resolve(p).then((function(e){c.value=e,s(c)}),(function(e){return o("throw",e,s,a)}))}a(l.arg)}var r;this._invoke=function(e,n){function i(){return new t((function(t,r){o(e,n,t,r)}))}return r=r?r.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var o=u(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,c;var r=o.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function b(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function S(e){if(e){var t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:R}}function R(){return{value:void 0,done:!0}}return d.prototype=h,a(v,"constructor",h),a(h,"constructor",d),d.displayName=a(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,a(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(C.prototype),a(C.prototype,i,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var s=new C(l(t,n,o,r),i);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},y(v),a(v,s,"Generator"),a(v,r,(function(){return this})),a(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var o=t.pop();if(o in e)return n.value=o,n.done=!1,n}return n.done=!0,n}},e.values=S,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return s.type="throw",s.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(a&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),b(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;b(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}function Ot(e,t,n,o,r,i,s){try{var a=e[i](s),l=a.value}catch(u){return void n(u)}a.done?t(l):Promise.resolve(l).then(o,r)}function Tt(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function s(e){Ot(i,o,r,s,a,"next",e)}function a(e){Ot(i,o,r,s,a,"throw",e)}s(void 0)}))}}var Pt=n(9611),At=n(136);function Dt(){Dt=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,o,r){var i=new RegExp(e,o);return t.set(i,r||t.get(e)),(0,Pt.Z)(i,n.prototype)}function o(e,n){var o=t.get(n);return Object.keys(o).reduce((function(t,n){return t[n]=e[o[n]],t}),Object.create(null))}return(0,At.Z)(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=o(n,this)),n},n.prototype[Symbol.replace]=function(n,r){if("string"==typeof r){var i=t.get(this);return e[Symbol.replace].call(this,n,r.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+i[t]})))}if("function"==typeof r){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=(0,St.Z)(e[e.length-1])&&(e=[].slice.call(e)).push(o(e,s)),r.apply(this,e)}))}return e[Symbol.replace].call(this,n,r)},Dt.apply(this,arguments)}var xt=n(5671),Nt=n(3144),Mt=n(4569),It=n.n(Mt);function Lt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Ft=n(2982),kt=n(4942),Gt={data:""},Ht=function(e){return"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Gt},Bt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Vt=/\/\*[^]*?\*\/|  +/g,Wt=/\n+/g,jt=function e(t,n){var o="",r="",i="",s=function(s){var l=t[s];"@"==s[0]?"i"==s[1]?o=s+" "+l+";":r+="f"==s[1]?e(l,s):s+"{"+e(l,"k"==s[1]?"":n)+"}":"object"==typeof l?r+=e(l,n?n.replace(/([^,])+/g,(function(e){return s.replace(/(^:.*)|([^,])+/g,(function(t){return/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t}))})):s):null!=l&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=e.p?e.p(s,l):s+":"+l+";"),a=s};for(var a in t)s(a);return o+(n&&i?n+"{"+i+"}":i)+r},Ut={},zt=function e(t){if("object"==typeof t){var n="";for(var o in t)n+=o+e(t[o]);return n}return t},Zt=function(e,t,n,o,r){var i=zt(e),s=Ut[i]||(Ut[i]=function(e){for(var t=0,n=11;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n}(i));if(!Ut[s]){var a=i!==e?e:function(e){for(var t,n,o=[{}];t=Bt.exec(e.replace(Vt,""));)t[4]?o.shift():t[3]?(n=t[3].replace(Wt," ").trim(),o.unshift(o[0][n]=o[0][n]||{})):o[0][t[1]]=t[2].replace(Wt," ").trim();return o[0]}(e);Ut[s]=jt(r?(0,kt.Z)({},"@keyframes "+s,a):a,n?"":"."+s)}return function(e,t,n){-1==t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)}(Ut[s],t,o),s},Yt=function(e,t,n){return e.reduce((function(e,o,r){var i=t[r];if(i&&i.call){var s=i(n),a=s&&s.props&&s.props.className||/^go/.test(s)&&s;i=a?"."+a:s&&"object"==typeof s?s.props?"":jt(s,""):!1===s?"":s}return e+o+(null==i?"":i)}),"")};function Kt(e){var t=this||{},n=e.call?e(t.p):e;return Zt(n.unshift?n.raw?Yt(n,[].slice.call(arguments,1),t.p):n.reduce((function(e,n){return Object.assign(e,n&&n.call?n(t.p):n)}),{}):n,Ht(t.target),t.g,t.o,t.k)}Kt.bind({g:1});var qt,Xt,Qt,Jt,$t,en,tn,nn,on,rn,sn,an,ln,un,cn,pn,dn,hn,fn,gn=Kt.bind({k:1});function mn(e,t){var n=this||{};return function(){var o=arguments;function r(i,s){var a=Object.assign({},i),l=a.className||r.className;n.p=Object.assign({theme:Xt&&Xt()},a),n.o=/ *go\d+/.test(l),a.className=Kt.apply(n,o)+(l?" "+l:""),t&&(a.ref=s);var u=e;return e[0]&&(u=a.as||e,delete a.as),Qt&&u[0]&&Qt(a),qt(u,a)}return t?t(r):r}}var vn=function(e,t){return function(e){return"function"==typeof e}(e)?e(t):e},yn=function(){var e=0;return function(){return(++e).toString()}}(),Cn=function(){var e;return function(){if(void 0===e&&typeof window<"u"){var t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}}(),wn=new Map,_n=function(e){if(!wn.has(e)){var t=setTimeout((function(){wn.delete(e),Rn({type:4,toastId:e})}),1e3);wn.set(e,t)}},bn=function e(t,n){switch(n.type){case 0:return(0,Et.Z)((0,Et.Z)({},t),{},{toasts:[n.toast].concat((0,Ft.Z)(t.toasts)).slice(0,20)});case 1:return n.toast.id&&function(e){var t=wn.get(e);t&&clearTimeout(t)}(n.toast.id),(0,Et.Z)((0,Et.Z)({},t),{},{toasts:t.toasts.map((function(e){return e.id===n.toast.id?(0,Et.Z)((0,Et.Z)({},e),n.toast):e}))});case 2:var o=n.toast;return t.toasts.find((function(e){return e.id===o.id}))?e(t,{type:1,toast:o}):e(t,{type:0,toast:o});case 3:var r=n.toastId;return r?_n(r):t.toasts.forEach((function(e){_n(e.id)})),(0,Et.Z)((0,Et.Z)({},t),{},{toasts:t.toasts.map((function(e){return e.id===r||void 0===r?(0,Et.Z)((0,Et.Z)({},e),{},{visible:!1}):e}))});case 4:return void 0===n.toastId?(0,Et.Z)((0,Et.Z)({},t),{},{toasts:[]}):(0,Et.Z)((0,Et.Z)({},t),{},{toasts:t.toasts.filter((function(e){return e.id!==n.toastId}))});case 5:return(0,Et.Z)((0,Et.Z)({},t),{},{pausedAt:n.time});case 6:var i=n.time-(t.pausedAt||0);return(0,Et.Z)((0,Et.Z)({},t),{},{pausedAt:void 0,toasts:t.toasts.map((function(e){return(0,Et.Z)((0,Et.Z)({},e),{},{pauseDuration:e.pauseDuration+i})}))})}},En=[],Sn={toasts:[],pausedAt:void 0},Rn=function(e){Sn=bn(Sn,e),En.forEach((function(e){e(Sn)}))},On={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Tn=function(e){return function(t,n){var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",n=arguments.length>2?arguments[2]:void 0;return(0,Et.Z)((0,Et.Z)({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0},n),{},{id:(null==n?void 0:n.id)||yn()})}(t,e,n);return Rn({type:2,toast:o}),o.id}},Pn=function(e,t){return Tn("blank")(e,t)};Pn.error=Tn("error"),Pn.success=Tn("success"),Pn.loading=Tn("loading"),Pn.custom=Tn("custom"),Pn.dismiss=function(e){Rn({type:3,toastId:e})},Pn.remove=function(e){return Rn({type:4,toastId:e})},Pn.promise=function(e,t,n){var o=Pn.loading(t.loading,(0,Et.Z)((0,Et.Z)({},n),null==n?void 0:n.loading));return e.then((function(e){return Pn.success(vn(t.success,e),(0,Et.Z)((0,Et.Z)({id:o},n),null==n?void 0:n.success)),e})).catch((function(e){Pn.error(vn(t.error,e),(0,Et.Z)((0,Et.Z)({id:o},n),null==n?void 0:n.error))})),e};var An=function(e){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,o.useState)(Sn),r=(0,t.Z)(n,2),i=r[0],s=r[1];(0,o.useEffect)((function(){return En.push(s),function(){var e=En.indexOf(s);e>-1&&En.splice(e,1)}}),[i]);var a=i.toasts.map((function(t){var n,o;return(0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)({},e),e[t.type]),t),{},{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||On[t.type],style:(0,Et.Z)((0,Et.Z)((0,Et.Z)({},e.style),null==(o=e[t.type])?void 0:o.style),t.style)})}));return(0,Et.Z)((0,Et.Z)({},i),{},{toasts:a})}(e),r=n.toasts,i=n.pausedAt;(0,o.useEffect)((function(){if(!i){var e=Date.now(),t=r.map((function(t){if(t.duration!==1/0){var n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((function(){return Pn.dismiss(t.id)}),n);t.visible&&Pn.dismiss(t.id)}}));return function(){t.forEach((function(e){return e&&clearTimeout(e)}))}}}),[r,i]);var s=(0,o.useMemo)((function(){return{startPause:function(){Rn({type:5,time:Date.now()})},endPause:function(){i&&Rn({type:6,time:Date.now()})},updateHeight:function(e,t){return Rn({type:1,toast:{id:e,height:t}})},calculateOffset:function(e,t){var n,o=t||{},i=o.reverseOrder,s=void 0!==i&&i,a=o.gutter,l=void 0===a?8:a,u=o.defaultPosition,c=r.filter((function(t){return(t.position||u)===(e.position||u)&&t.height})),p=c.findIndex((function(t){return t.id===e.id})),d=c.filter((function(e,t){return t<p&&e.visible})).length;return(n=c.filter((function(e){return e.visible}))).slice.apply(n,(0,Ft.Z)(s?[d+1]:[0,d])).reduce((function(e,t){return e+(t.height||0)+l}),0)}}}),[r,i]);return{toasts:r,handlers:s}},Dn=gn(Jt||(Jt=Lt(["\nfrom {\n  transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n  opacity: 1;\n}"]))),xn=gn($t||($t=Lt(["\nfrom {\n  transform: scale(0);\n  opacity: 0;\n}\nto {\n  transform: scale(1);\n  opacity: 1;\n}"]))),Nn=gn(en||(en=Lt(["\nfrom {\n  transform: scale(0) rotate(90deg);\n\topacity: 0;\n}\nto {\n  transform: scale(1) rotate(90deg);\n\topacity: 1;\n}"]))),Mn=mn("div")(tn||(tn=Lt(["\n  width: 20px;\n  opacity: 0;\n  height: 20px;\n  border-radius: 10px;\n  background: ",";\n  position: relative;\n  transform: rotate(45deg);\n\n  animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n    forwards;\n  animation-delay: 100ms;\n\n  &:after,\n  &:before {\n    content: '';\n    animation: "," 0.15s ease-out forwards;\n    animation-delay: 150ms;\n    position: absolute;\n    border-radius: 3px;\n    opacity: 0;\n    background: ",";\n    bottom: 9px;\n    left: 4px;\n    height: 2px;\n    width: 12px;\n  }\n\n  &:before {\n    animation: "," 0.15s ease-out forwards;\n    animation-delay: 180ms;\n    transform: rotate(90deg);\n  }\n"])),(function(e){return e.primary||"#ff4b4b"}),Dn,xn,(function(e){return e.secondary||"#fff"}),Nn),In=gn(nn||(nn=Lt(["\n  from {\n    transform: rotate(0deg);\n  }\n  to {\n    transform: rotate(360deg);\n  }\n"]))),Ln=mn("div")(on||(on=Lt(["\n  width: 12px;\n  height: 12px;\n  box-sizing: border-box;\n  border: 2px solid;\n  border-radius: 100%;\n  border-color: ",";\n  border-right-color: ",";\n  animation: "," 1s linear infinite;\n"])),(function(e){return e.secondary||"#e0e0e0"}),(function(e){return e.primary||"#616161"}),In),Fn=gn(rn||(rn=Lt(["\nfrom {\n  transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n  transform: scale(1) rotate(45deg);\n\topacity: 1;\n}"]))),kn=gn(sn||(sn=Lt(["\n0% {\n\theight: 0;\n\twidth: 0;\n\topacity: 0;\n}\n40% {\n  height: 0;\n\twidth: 6px;\n\topacity: 1;\n}\n100% {\n  opacity: 1;\n  height: 10px;\n}"]))),Gn=mn("div")(an||(an=Lt(["\n  width: 20px;\n  opacity: 0;\n  height: 20px;\n  border-radius: 10px;\n  background: ",";\n  position: relative;\n  transform: rotate(45deg);\n\n  animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n    forwards;\n  animation-delay: 100ms;\n  &:after {\n    content: '';\n    box-sizing: border-box;\n    animation: "," 0.2s ease-out forwards;\n    opacity: 0;\n    animation-delay: 200ms;\n    position: absolute;\n    border-right: 2px solid;\n    border-bottom: 2px solid;\n    border-color: ",";\n    bottom: 6px;\n    left: 6px;\n    height: 10px;\n    width: 6px;\n  }\n"])),(function(e){return e.primary||"#61d345"}),Fn,kn,(function(e){return e.secondary||"#fff"})),Hn=mn("div")(ln||(ln=Lt(["\n  position: absolute;\n"]))),Bn=mn("div")(un||(un=Lt(["\n  position: relative;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  min-width: 20px;\n  min-height: 20px;\n"]))),Vn=gn(cn||(cn=Lt(["\nfrom {\n  transform: scale(0.6);\n  opacity: 0.4;\n}\nto {\n  transform: scale(1);\n  opacity: 1;\n}"]))),Wn=mn("div")(pn||(pn=Lt(["\n  position: relative;\n  transform: scale(0.6);\n  opacity: 0.4;\n  min-width: 20px;\n  animation: "," 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n    forwards;\n"])),Vn),jn=function(e){var t=e.toast,n=t.icon,r=t.type,i=t.iconTheme;return void 0!==n?"string"==typeof n?o.createElement(Wn,null,n):n:"blank"===r?null:o.createElement(Bn,null,o.createElement(Ln,(0,Et.Z)({},i)),"loading"!==r&&o.createElement(Hn,null,"error"===r?o.createElement(Mn,(0,Et.Z)({},i)):o.createElement(Gn,(0,Et.Z)({},i))))},Un=function(e){return"\n0% {transform: translate3d(0,".concat(-200*e,"%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n")},zn=function(e){return"\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,".concat(-150*e,"%,-1px) scale(.6); opacity:0;}\n")},Zn=mn("div",o.forwardRef)(dn||(dn=Lt(["\n  display: flex;\n  align-items: center;\n  background: #fff;\n  color: #363636;\n  line-height: 1.3;\n  will-change: transform;\n  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);\n  max-width: 350px;\n  pointer-events: auto;\n  padding: 8px 10px;\n  border-radius: 8px;\n"]))),Yn=mn("div")(hn||(hn=Lt(["\n  display: flex;\n  justify-content: center;\n  margin: 4px 10px;\n  color: inherit;\n  flex: 1 1 auto;\n  white-space: pre-line;\n"]))),Kn=o.memo((function(e){var n=e.toast,r=e.position,i=e.style,s=e.children,a=null!=n&&n.height?function(e,n){var o=e.includes("top")?1:-1,r=Cn()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[Un(o),zn(o)],i=(0,t.Z)(r,2),s=i[0],a=i[1];return{animation:n?"".concat(gn(s)," 0.35s cubic-bezier(.21,1.02,.73,1) forwards"):"".concat(gn(a)," 0.4s forwards cubic-bezier(.06,.71,.55,1)")}}(n.position||r||"top-center",n.visible):{opacity:0},l=o.createElement(jn,{toast:n}),u=o.createElement(Yn,(0,Et.Z)({},n.ariaProps),vn(n.message,n));return o.createElement(Zn,{className:n.className,style:(0,Et.Z)((0,Et.Z)((0,Et.Z)({},a),i),n.style)},"function"==typeof s?s({icon:l,message:u}):o.createElement(o.Fragment,null,l,u))}));!function(e,t,n,o){jt.p=t,qt=e,Xt=n,Qt=o}(o.createElement);var qn=Kt(fn||(fn=Lt(["\n  z-index: 9999;\n  > * {\n    pointer-events: auto;\n  }\n"]))),Xn=function(e){var t=e.reverseOrder,n=e.position,r=void 0===n?"top-center":n,i=e.toastOptions,s=e.gutter,a=e.children,l=e.containerStyle,u=e.containerClassName,c=An(i),p=c.toasts,d=c.handlers;return o.createElement("div",{style:(0,Et.Z)({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},l),className:u,onMouseEnter:d.startPause,onMouseLeave:d.endPause},p.map((function(e){var n=e.position||r,i=function(e,t){var n=e.includes("top"),o=n?{top:0}:{bottom:0},r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return(0,Et.Z)((0,Et.Z)({left:0,right:0,display:"flex",position:"absolute",transition:Cn()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY(".concat(t*(n?1:-1),"px)")},o),r)}(n,d.calculateOffset(e,{reverseOrder:t,gutter:s,defaultPosition:r})),l=e.height?void 0:function(e){return function(t){t&&setTimeout((function(){var n=t.getBoundingClientRect();e(n)}))}}((function(t){d.updateHeight(e.id,t.height)}));return o.createElement("div",{ref:l,className:e.visible?qn:"",key:e.id,style:i},"custom"===e.type?vn(e.message,e):a?a(e):o.createElement(Kn,{toast:e,position:n}))})))},Qn=Pn;function Jn(e){Qn.success(e)}function $n(e){Qn.error(e)}var eo=It().create({withCredentials:!0,headers:{"Content-Type":"application/json"}});eo.interceptors.response.use((function(e){return e}),(function(e){return console.error(e),403===e.response.status?$n("Authentication error"):e.response.data&&e.response.data.meta&&e.response.data.meta.errorCode?$n(e.response.data.meta.errorCode):$n("Unknown HTTP error"),Promise.reject(e)}));var to=function(){function e(){(0,xt.Z)(this,e)}return(0,Nt.Z)(e,null,[{key:"get",value:function(){var e=Tt(Rt().mark((function e(t){var n;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eo.get(t);case 2:return n=e.sent,e.abrupt("return",n.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"post",value:function(){var e=Tt(Rt().mark((function e(t,n){var o;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eo.post(t,n);case 2:return o=e.sent,e.abrupt("return",o.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"delete",value:function(){var e=Tt(Rt().mark((function e(t,n){var o;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eo.delete(t,n);case 2:return o=e.sent,e.abrupt("return",o.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"put",value:function(){var e=Tt(Rt().mark((function e(t,n){var o;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eo.put(t,n);case 2:return o=e.sent,e.abrupt("return",o.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"executeCommand",value:function(){var e=Tt(Rt().mark((function e(t){var n;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eo.post("/api/command",{command:t});case 2:return n=e.sent,e.abrupt("return",n.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"getMods",value:function(){var e=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=3;break;case 3:return e.next=5,eo.get("/api/mods");case 5:return t=e.sent,e.abrupt("return",t.data.data);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"getAnimals",value:function(){var e=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eo.get("/api/animal");case 2:return t=e.sent,e.abrupt("return",t.data.data);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"getHostiles",value:function(){var e=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eo.get("/api/hostile");case 2:return t=e.sent,e.abrupt("return",t.data.data);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"getAdminList",value:function(){var e=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.executeCommand("admin list");case 2:return t=e.sent,e.abrupt("return",t.result.split("\n").slice(2,-3).map((function(e){var t=e.trim(),n=Dt(/(\d+): (\w+) \(.*stored name: ((\w+)|)\)/g,{level:1,ID:2,name:3}).exec(t).groups;return{level:n.level,ID:n.ID,name:n.name}})));case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getCommandPermissions",value:function(){var e=Tt(Rt().mark((function e(){var t,n;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.executeCommand("commandpermission list");case 2:return t=e.sent,n=t.result.split("\n").slice(2).map((function(e){return e.trim()})).filter(Boolean).map((function(e){var t=Dt(/(\d+): (.+)/g,{level:1,command:2}).exec(e).groups;return{level:t.level,command:t.command}})),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getWebPermissions",value:function(){var e=Tt(Rt().mark((function e(){var t,n;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.executeCommand("webpermission list");case 2:return t=e.sent,n=t.result.split("\n").slice(2).map((function(e){return e.trim()})).filter(Boolean).map((function(e){var t=Dt(/(\d+): (.+)/g,{level:1,permission:2}).exec(e).groups;return{level:t.level,permission:t.permission}})),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getWebTokens",value:function(){var e=Tt(Rt().mark((function e(){var t,n;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.executeCommand("webtokens list");case 2:return t=e.sent,n=t.result.split("\n").slice(2).map((function(e){return e.trim()})).filter(Boolean).map((function(e){var t=Dt(/(\d+): (.+) \/ (.+)/g,{level:1,name:2,token:3}).exec(e).groups,n=t.level,o=t.name;return{level:n,token:t.token,name:o}})),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getBans",value:function(){var e=Tt(Rt().mark((function e(){var t,n;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.executeCommand("ban list");case 2:return t=e.sent,n=t.result.split("\n").slice(2).map((function(e){return e.trim()})).filter(Boolean).map((function(e){var t=Dt(/(.+) \x2D (.+) (.+) \x2D(.*)/g,{date:1,ID:2,name:3,reason:4}).exec(e).groups,n=t.date,o=t.ID,r=t.name,i=t.reason;return{date:new Date(n),ID:o,name:r,reason:i}})),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getLatestLogLines",value:function(){var e=Tt(Rt().mark((function e(t){var n;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eo.get("/api/log?count=".concat(t));case 2:return n=e.sent,e.abrupt("return",n.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"login",value:function(){var e=Tt(Rt().mark((function e(t,n){var o;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eo.post("/session/login",{username:t,password:n});case 2:return o=e.sent,e.abrupt("return",o.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"registerUser",value:function(){var e=Tt(Rt().mark((function e(t,n,o){return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,eo.post("/api/registeruser",{username:t,password:n,token:o});case 3:e.next=11;break;case 5:if(e.prev=5,e.t0=e.catch(0),!(e.t0 instanceof Mt.AxiosError)){e.next=10;break}if(!(e.t0.response.status>400&&e.t0.response.status<500)){e.next=10;break}throw new Error(e.t0.response.data.meta.errorCode);case 10:throw new Error("Internal server error");case 11:return e.abrupt("return");case 12:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t,n,o){return e.apply(this,arguments)}}()},{key:"getPlayers",value:function(){var e=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eo.get("/api/player");case 2:return t=e.sent,e.abrupt("return",t.data.data.players);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"getMapConfig",value:function(){var e=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eo.get("/api/map/config");case 2:return t=e.sent,e.abrupt("return",t.data.data);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}]),e}(),no=n(2953),oo=(0,o.createContext)({command:"help",setCommand:function(){}}),ro={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},io=o.createContext&&o.createContext(ro),so=function(){return so=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},so.apply(this,arguments)},ao=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};function lo(e){return e&&e.map((function(e,t){return o.createElement(e.tag,so({key:t},e.attr),lo(e.child))}))}function uo(e){return function(t){return o.createElement(co,so({attr:so({},e.attr)},t),lo(e.child))}}function co(e){var t=function(t){var n,r=e.attr,i=e.size,s=e.title,a=ao(e,["attr","size","title"]),l=i||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),o.createElement("svg",so({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,a,{className:n,style:so(so({color:e.color||t.color},t.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),s&&o.createElement("title",null,s),e.children)};return void 0!==io?o.createElement(io.Consumer,null,(function(e){return t(e)})):t(ro)}function po(e){return uo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"}}]})(e)}function ho(e){return uo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"}}]})(e)}function fo(e){return uo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"}}]})(e)}function go(e){return uo({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M511.988 288.9c-.478 17.43-15.217 31.1-32.653 31.1H424v16c0 21.864-4.882 42.584-13.6 61.145l60.228 60.228c12.496 12.497 12.496 32.758 0 45.255-12.498 12.497-32.759 12.496-45.256 0l-54.736-54.736C345.886 467.965 314.351 480 280 480V236c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v244c-34.351 0-65.886-12.035-90.636-32.108l-54.736 54.736c-12.498 12.497-32.759 12.496-45.256 0-12.496-12.497-12.496-32.758 0-45.255l60.228-60.228C92.882 378.584 88 357.864 88 336v-16H32.666C15.23 320 .491 306.33.013 288.9-.484 270.816 14.028 256 32 256h56v-58.745l-46.628-46.628c-12.496-12.497-12.496-32.758 0-45.255 12.498-12.497 32.758-12.497 45.256 0L141.255 160h229.489l54.627-54.627c12.498-12.497 32.758-12.497 45.256 0 12.496 12.497 12.496 32.758 0 45.255L424 197.255V256h56c17.972 0 32.484 14.816 31.988 32.9zM257 0c-61.856 0-112 50.144-112 112h224C369 50.144 318.856 0 257 0z"}}]})(e)}function mo(e){return uo({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M512.1 191l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0L552 6.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zm-10.5-58.8c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.7-82.4 14.3-52.8 52.8zM386.3 286.1l33.7 16.8c10.1 5.8 14.5 18.1 10.5 29.1-8.9 24.2-26.4 46.4-42.6 65.8-7.4 8.9-20.2 11.1-30.3 5.3l-29.1-16.8c-16 13.7-34.6 24.6-54.9 31.7v33.6c0 11.6-8.3 21.6-19.7 23.6-24.6 4.2-50.4 4.4-75.9 0-11.5-2-20-11.9-20-23.6V418c-20.3-7.2-38.9-18-54.9-31.7L74 403c-10 5.8-22.9 3.6-30.3-5.3-16.2-19.4-33.3-41.6-42.2-65.7-4-10.9.4-23.2 10.5-29.1l33.3-16.8c-3.9-20.9-3.9-42.4 0-63.4L12 205.8c-10.1-5.8-14.6-18.1-10.5-29 8.9-24.2 26-46.4 42.2-65.8 7.4-8.9 20.2-11.1 30.3-5.3l29.1 16.8c16-13.7 34.6-24.6 54.9-31.7V57.1c0-11.5 8.2-21.5 19.6-23.5 24.6-4.2 50.5-4.4 76-.1 11.5 2 20 11.9 20 23.6v33.6c20.3 7.2 38.9 18 54.9 31.7l29.1-16.8c10-5.8 22.9-3.6 30.3 5.3 16.2 19.4 33.2 41.6 42.1 65.8 4 10.9.1 23.2-10 29.1l-33.7 16.8c3.9 21 3.9 42.5 0 63.5zm-117.6 21.1c59.2-77-28.7-164.9-105.7-105.7-59.2 77 28.7 164.9 105.7 105.7zm243.4 182.7l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0l8.2-14.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zM501.6 431c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.6-82.4 14.3-52.8 52.8z"}}]})(e)}function vo(e){return uo({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32z"}}]})(e)}function yo(e){return uo({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"}}]})(e)}function Co(e){return uo({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"}}]})(e)}function wo(e){return uo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M437.2 403.5L320 215V64h8c13.3 0 24-10.7 24-24V24c0-13.3-10.7-24-24-24H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h8v151L10.8 403.5C-18.5 450.6 15.3 512 70.9 512h306.2c55.7 0 89.4-61.5 60.1-108.5zM137.9 320l48.2-77.6c3.7-5.2 5.8-11.6 5.8-18.4V64h64v160c0 6.9 2.2 13.2 5.8 18.4l48.2 77.6h-172z"}}]})(e)}function _o(e){return uo({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"}}]})(e)}function bo(e){return uo({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"}}]})(e)}function Eo(e){return uo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"}}]})(e)}function So(e){return uo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"}}]})(e)}function Ro(e){return uo({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"}}]})(e)}function Oo(e){return uo({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M257.981 272.971L63.638 467.314c-9.373 9.373-24.569 9.373-33.941 0L7.029 444.647c-9.357-9.357-9.375-24.522-.04-33.901L161.011 256 6.99 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L257.981 239.03c9.373 9.372 9.373 24.568 0 33.941zM640 456v-32c0-13.255-10.745-24-24-24H312c-13.255 0-24 10.745-24 24v32c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24z"}}]})(e)}var To=n(184),Po=bt.div.withConfig({displayName:"collapseIndicator__CollapseIconContainer",componentId:"sc-jxuh5c-0"})(["float:left;margin-left:auto;margin-right:1rem;line-height:",";"],(function(e){return e.collapsed?"1.1rem":"0.5rem"}));function Ao(e){var t=e.collapsed,n=e.canCollapse,o=_t();return n?(0,To.jsx)(Po,{children:t?(0,To.jsx)(po,{"data-tip":"React-tooltip","data-for":"tooltip-collapse"}):(0,To.jsx)(fo,{color:o.colors.tfpRed,"data-tip":"React-tooltip","data-for":"tooltip-collapse"})}):null}var Do=bt.div.withConfig({displayName:"Cell__StyledTableCellContainer",componentId:"sc-ubq4vg-0"})(["cursor:",";"],(function(e){return e.canCollapse?"pointer":"default"})),xo=bt.div.withConfig({displayName:"Cell__StyledTableCellLine",componentId:"sc-ubq4vg-1"})(["line-height:1.1rem;white-space:pre;"]);function No(e){var n=e.text,r=function(e){return!!e&&e.length>150}(n),i=(0,o.useState)(r),s=(0,t.Z)(i,2),a=s[0],l=s[1],u=(0,o.useContext)(oo),c=u.command,p=u.setCommand;if(!n)return"";var d=n.toString().split("\n");function h(e){switch(e.detail){case 1:"Range"!==window.getSelection().type&&l(!a);break;case 2:r||(" "===c[c.length-1]?p("".concat(c).concat(e.target.textContent)):c.length?p("".concat(c," ").concat(e.target.textContent)):p(e.target.textContent))}}return a?(0,To.jsxs)(Do,{onClick:h,canCollapse:r,children:[(0,To.jsx)(Ao,{canCollapse:r,collapsed:a}),(0,To.jsx)(xo,{children:d.join(" ").slice(0,150)})]}):(0,To.jsxs)(Do,{onClick:h,canCollapse:r,children:[(0,To.jsx)(Ao,{canCollapse:r,collapsed:a}),d.map((function(e,t){return(0,To.jsx)(xo,{children:e},t)}))]})}var Mo=bt.span.withConfig({displayName:"types__RedText",componentId:"sc-18lssv1-0"})(["color:",";"],(function(e){return e.theme.colors.tfpRed})),Io={date:{filter:"agDateColumnFilter",cellRenderer:function(e){return e.value?e.value.toLocaleString():""}},command:{filter:"agTextColumnFilter",cellRenderer:function(e){return e.value?e.data.allowed?e.value:(0,To.jsx)(Mo,{children:e.value}):""}}},Lo={flex:1,wrapText:!0,autoHeight:!0,resizable:!0,sortable:!0,cellStyle:{textAlign:"left"},cellRenderer:function(e){return(0,To.jsx)(No,{text:e.value})},comparator:function(e,t){return e&&t?e.toLowerCase().localeCompare(t.toLowerCase()):0}};function Fo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n={theme:"ag-theme-balham-dark",enableCellTextSelection:!0,suppressCellFocus:!0,enableRangeSelection:!1},r=(0,Et.Z)((0,Et.Z)({},n),e),i=(0,o.useState)(null),s=(0,t.Z)(i,2),a=s[1],l=(0,o.useState)(null),u=(0,t.Z)(l,2),c=u[1],p=function(t){a(t.api),c(t.columnApi),e.onGridReady&&e.onGridReady(t)};return(0,To.jsx)("div",{className:r.theme,style:{height:"100%",width:"100%"},children:(0,To.jsx)(no.AgGridReact,(0,Et.Z)({rowData:r.rowData,columnDefs:r.columnDef,defaultColDef:Lo,columnTypes:Io,alwaysShowHorizontalScroll:!0,onGridReady:p},r))})}function ko(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={theme:"ag-theme-balham-dark"},n=(0,Et.Z)((0,Et.Z)({},t),e),o=function(e){if(!e.editing){var t=8===e.event.keyCode,o=46===e.event.keyCode;if(t||o){var r=e.api.getSelectedRows();return n.deleteRowFn?r.forEach((function(e){n.deleteRowFn(e)})):console.warn("No deleteRowFn provided in table options, rows will not actually get deleted"),n.reloadFn(),!0}return!1}};return(0,To.jsx)(Fo,(0,Et.Z)({rowData:n.rowData,columnDef:n.columnDef,defaultColDef:(0,Et.Z)((0,Et.Z)({},Lo),{},{suppressKeyboardEvent:o}),onCellValueChanged:n.editRowFn,editType:"fullRow",rowSelection:"multiple"},n))}var Go=n(7762),Ho=(0,o.createContext)({});function Bo(e){var n=e.children,r=(0,o.useState)(null),i=(0,t.Z)(r,2),s=i[0],a=i[1];(0,o.useEffect)((function(){function e(){return(e=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,to.getMods();case 2:t=e.sent,a(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]);var l=function(e){var n=(0,o.useState)(!0),r=(0,t.Z)(n,2),i=r[0],s=r[1],a=(0,o.useState)(0),l=(0,t.Z)(a,2),u=l[0],c=l[1],p=(0,o.useState)([]),d=(0,t.Z)(p,2),h=d[0],f=d[1];return(0,o.useEffect)((function(){var t=function(e){"load"===e.type&&c((function(e){return e+1})),"error"===e.type&&(console.error("Failed to load ".concat(e.target.src)),c((function(e){return e+1})))};if(e){var n,o=e.filter((function(e){return e.web})),r=(0,Go.Z)(o.map((function(e){return e.web.bundle})));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!document.querySelector('script[src="'.concat(i,'"]'))){var s=document.createElement("script");s.type="text/javascript",s.src=i,s.async=!0,document.body.appendChild(s),s.addEventListener("load",t),s.addEventListener("error",t)}}}catch(a){r.e(a)}finally{r.f()}}}),[e]),(0,o.useEffect)((function(){if(e){var t=e.filter((function(e){return e.web}));if(u===t.length){var n=t.filter((function(e){return window[e.name]})).map((function(e){return(0,Et.Z)((0,Et.Z)({},e),{},{external:window[e.name]})}));f(n),s(!1)}}}),[e,u]),i?{loading:i,loadedScripts:u}:{loading:i,webMods:h}}(s),u=l.webMods,c=l.loading;u&&!c&&u.length!==s.filter((function(e){return e.web})).length&&console.error("Mods length mismatch, are all IDs mapped correctly between js mods and backend response?",u,s);var p=[];return u&&u.forEach((function(e){for(var t in e.external.routes)if(Object.hasOwnProperty.call(e.external.routes,t)){var n=e.external.routes[t],r=e.name.toLowerCase().split(" ").join("");p.push({path:"mods/".concat(r,"/").concat(t),name:t,element:Wo(n,{React:o})})}})),(0,To.jsx)(Ho.Provider,{value:{mods:s,webMods:u,modRoutes:p},children:n})}function Vo(){return(0,o.useContext)(Ho)}function Wo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.createElement)(e,(0,Et.Z)({React:o,styled:bt,HTTP:to,Table:Fo,EditableTable:ko},t))}var jo=n.p+"files/static/media/7d2d-logo.fb3c6004228951242783.png",Uo=n.p+"files/static/media/7d2d-square.8d1f92bcf774cf9ed887.webp",zo="webevent.log",Zo="webapi.Animal",Yo="webapi.Command",Ko="webapi.Hostile",qo="webapi.Log",Xo="webapi.Player",Qo="webapi.ServerStats",Jo="webapi.Mods",$o="web.map";function er(){return tr.apply(this,arguments)}function tr(){return(tr=Tt(Rt().mark((function e(){return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",to.get("/userstatus"));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var nr=(0,o.createContext)({status:{loggedin:!1}});function or(e){var n=e.children,r=(0,o.useState)({}),i=(0,t.Z)(r,2),s=i[0],a=i[1],l=(0,o.useState)(!0),u=(0,t.Z)(l,2),c=u[0],p=u[1],d=(0,o.useState)([]),h=(0,t.Z)(d,2),f=h[0],g=h[1];function m(){return v.apply(this,arguments)}function v(){return v=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,er();case 2:t=e.sent,a(t),g(t.permissions),p(!1);case 6:case"end":return e.stop()}}),e)}))),v.apply(this,arguments)}return(0,o.useEffect)((function(){m()}),[]),c?null:(0,To.jsx)(nr.Provider,{value:{status:s,loading:c,permissions:f,checkPermission:function(e){for(var t=Array.isArray(e)?e:[e],n=function(e){var n=s.permissions.find((function(n){return n.module.toLowerCase()===t[e].module.toLowerCase()}));if(!n||!n.allowed[t[e].method])return{v:!1}},o=0;o<t.length;o++){var r=n(o);if("object"===typeof r)return r.v}return!0},refreshStatus:m},children:n})}function rr(){return(0,o.useContext)(nr)}var ir=n(7948),sr=n.n(ir),ar=bt.div.withConfig({displayName:"button__ButtonContainer",componentId:"sc-13s7063-0"})(["background-color:",";color:",";border-radius:5px;padding:0.5rem;width:fit-content;cursor:pointer;margin:0.25rem;"],(function(e){return e.theme.colors.tfpDarkGrey}),(function(e){return e.theme.colors.tfpWhite}));function lr(e){return(0,To.jsx)(ar,{onClick:e.onClick,children:e.text})}var ur=bt.form.withConfig({displayName:"loginForm__FormContainer",componentId:"sc-gwxwcm-0"})(["margin:1rem;display:flex;flex-direction:column;align-items:center;justify-content:center;"]),cr=bt.input.withConfig({displayName:"loginForm__StyledInput",componentId:"sc-gwxwcm-1"})(["margin-top:1rem;margin-bottom:1rem;border-radius:5px;outline:none;"]);function pr(e){var n=e.onSubmit,r=(0,o.useState)(""),i=(0,t.Z)(r,2),s=i[0],a=i[1],l=(0,o.useState)(""),u=(0,t.Z)(l,2),c=u[0],p=u[1];return(0,To.jsxs)(ur,{onSubmit:function(e){return n(e,s,c)},children:[(0,To.jsx)("label",{htmlFor:"username",children:"Username"}),(0,To.jsx)(cr,{id:"username",type:"text",value:s,onChange:function(e){a(e.target.value)}}),(0,To.jsx)("label",{htmlFor:"password",children:"Password"}),(0,To.jsx)(cr,{id:"password",type:"password",value:c,onChange:function(e){p(e.target.value)}}),(0,To.jsx)(lr,{text:"Submit",onClick:function(e){return n(e,s,c)}}),(0,To.jsx)("input",{type:"submit",hidden:!0})]})}sr().setAppElement("#root");var dr=bt.div.withConfig({displayName:"loginModal__Container",componentId:"sc-1yk7ggv-0"})(["margin:1rem;display:flex;flex-direction:column;align-items:center;justify-content:center;"]),hr=bt.p.withConfig({displayName:"loginModal__ErrorMessage",componentId:"sc-1yk7ggv-1"})(["color:",";font-size:14px;margin-top:10px;"],(function(e){return e.theme.colors.tfpRed}));function fr(e){var n=e.OpenComponent,r=e.modalIsOpen,i=e.setIsModalOpen,s=_t(),a=(0,o.useState)(null),l=(0,t.Z)(a,2),u=l[0],c=l[1],p={content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",backgroundColor:s.colors.tfpDarkGrey80,color:s.colors.tfpWhite},overlay:{zIndex:1e3,backgroundColor:s.colors.tfpDarkGrey60}};return(0,To.jsxs)(To.Fragment,{children:[(0,To.jsx)("div",{onClick:function(){i(!0)},children:n}),(0,To.jsxs)(sr(),{isOpen:r,onRequestClose:function(){i(!1)},style:p,contentLabel:"Example Modal",children:[(0,To.jsx)(dr,{children:(0,To.jsx)("p",{children:'If you do not have an account yet, you can create one by executing the "createwebuser" command ingame'})}),(0,To.jsx)("hr",{}),(0,To.jsx)(pr,{onSubmit:function(e,t,n){e.preventDefault(),to.login(t,n).then((function(e){location.reload()})).catch((function(e){console.error(e),c(e.response.data)}))}}),u&&(0,To.jsx)(hr,{children:u})]})]})}function gr(e){return uo({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"}},{tag:"polyline",attr:{points:"10 17 15 12 10 7"}},{tag:"line",attr:{x1:"15",y1:"12",x2:"3",y2:"12"}}]})(e)}function mr(e){return uo({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}},{tag:"polyline",attr:{points:"16 17 21 12 16 7"}},{tag:"line",attr:{x1:"21",y1:"12",x2:"9",y2:"12"}}]})(e)}var vr=bt.div.withConfig({displayName:"authLink__LogoutContent",componentId:"sc-hqd4re-0"})(["display:flex;flex-direction:column;align-items:center;"]);function yr(e){var n=e.collapsed,r=rr().status,i=(0,o.useState)(!1),s=(0,t.Z)(i,2),a=s[0],l=s[1],u=(0,To.jsx)(xr,{collapsed:n,icon:(0,To.jsx)(gr,{}),title:"Log in",to:"#"});return r.loggedIn?(0,To.jsx)(xr,{collapsed:n,icon:(0,To.jsx)(mr,{}),title:(0,To.jsxs)(vr,{children:[(0,To.jsx)("div",{children:"Log out"}),(0,To.jsxs)("div",{children:[r.username," - ",r.permissionLevel]})]}),to:"../session/logout",external:!0}):(0,To.jsx)(fr,{modalIsOpen:a,setIsModalOpen:l,OpenComponent:u})}var Cr=bt(U).withConfig({displayName:"NavLink",componentId:"sc-pj17un-0"})(["color:",";text-decoration:none;"],(function(e){return e.theme.colors.tfpWhite})),wr=n(2007),_r=n.n(wr),br=function(e){var t=e.requiredPermission,n=e.children,o=rr().checkPermission;if(!t)throw new Error("requiredPermission is required");return o(t)?n:null};br.propTypes={requiredPermission:_r().shape({module:_r().string.isRequired,method:_r().string.isRequired}).isRequired,children:_r().node.isRequired};var Er=bt.div.withConfig({displayName:"sidebar__Container",componentId:"sc-152a2hf-0"})(["height:100vh;width:",";position:relative;"],(function(e){return e.collapsed?"100px":"250px"})),Sr=bt.ul.withConfig({displayName:"sidebar__StyledUl",componentId:"sc-152a2hf-1"})(["list-style-type:none;font-size:2rem;text-align:left;padding-left:1rem;padding-top:1rem;position:relative;top:5vh;height:50vh;display:flex;flex-direction:column;justify-content:space-between;li{height:42px;display:flex;align-items:center;justify-content:flex-start;}"]),Rr=bt(Cr).withConfig({displayName:"sidebar__StyledNavLink",componentId:"sc-152a2hf-2"})(["text-decoration:none;color:",";display:flex;align-items:center;justify-content:flex-start;> *{margin:0 0.5rem;}"],(function(e){return e.isActive?"red":"white"})),Or=bt.div.withConfig({displayName:"sidebar__ImageContainer",componentId:"sc-152a2hf-3"})(["width:",";height:200px;top:0;"],(function(e){return e.collapsed?"100px":"250px"})),Tr=bt.img.withConfig({displayName:"sidebar__SdtdLogoContainer",componentId:"sc-152a2hf-4"})(["width:100%;height:",";"],(function(e){return e.collapsed?"50%":"100%"})),Pr=bt.div.withConfig({displayName:"sidebar__StyledCollapse",componentId:"sc-152a2hf-5"})(["width:100%;height:50px;cursor:pointer;position:absolute;bottom:0;"]),Ar=bt.a.withConfig({displayName:"sidebar__ExternalLink",componentId:"sc-152a2hf-6"})(["text-decoration:none;color:",";display:flex;align-items:center;justify-content:flex-start;> *{margin:0 0.5rem;}"],(function(e){return e.isActive?"red":"white"}));function Dr(e){return(0,To.jsx)(Or,{collapsed:e.collapsed,children:(0,To.jsx)(Tr,{collapsed:e.collapsed,src:e.collapsed?Uo:jo,alt:"Image"})})}function xr(e){var t=e.icon,n=e.title,o=e.component,r=e.to,i=e.collapsed,s=e.external,a=void 0!==s&&s,l=N(),u=l.pathname===r||l.pathname.startsWith("/mods/")&&l.pathname.endsWith(r),c=n||o;return a?(0,To.jsx)("li",{children:(0,To.jsx)("nav",{children:(0,To.jsxs)(Ar,{isActive:u,href:r,children:[t,i?"":c]})})}):(0,To.jsx)("li",{children:(0,To.jsx)("nav",{children:(0,To.jsxs)(Rr,{to:r,isActive:u,children:[t,i?"":c]})})})}function Nr(e){var t=e.collapsed,n=e.setCollapsed;var o=Vo().modRoutes;return(0,To.jsxs)(Er,{collapsed:t,children:[(0,To.jsx)(Dr,{collapsed:t}),(0,To.jsxs)(Sr,{children:[(0,To.jsx)(br,{requiredPermission:{module:$o,method:"GET"},children:(0,To.jsx)(xr,{collapsed:t,icon:(0,To.jsx)(bo,{}),title:"Map",to:"/"})}),(0,To.jsx)(br,{requiredPermission:{module:Yo,method:"GET"},children:(0,To.jsx)(xr,{collapsed:t,icon:(0,To.jsx)(Oo,{}),title:"Console",to:"/console"})}),(0,To.jsx)(br,{requiredPermission:{module:Yo,method:"GET"},children:(0,To.jsx)(xr,{collapsed:t,icon:(0,To.jsx)(mo,{}),title:"Settings",to:"/settings"})}),(0,To.jsx)(br,{requiredPermission:{module:Jo,method:"GET"},children:(0,To.jsx)(xr,{collapsed:t,icon:(0,To.jsx)(wo,{}),title:"Mods",to:"/mods"})}),o.map((function(e){return(0,To.jsx)(xr,{collapsed:t,icon:(0,To.jsx)(wo,{}),title:e.name,to:e.path},e.path)})),(0,To.jsx)(yr,{collapsed:t})]}),(0,To.jsx)(Pr,{onClick:function(){n(!t)},children:t?(0,To.jsx)(fo,{}):(0,To.jsx)(ho,{})})]})}var Mr=n.p+"files/static/media/bg-forest.a0037883583931c1c7e3.jpg",Ir=bt.div.withConfig({displayName:"sc-404__CenterContainer",componentId:"sc-13rbdbz-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;"]);function Lr(){return(0,To.jsxs)(Ir,{children:[(0,To.jsx)("h1",{children:"404"}),(0,To.jsx)("p",{children:"You have gotten lost in the wilderness, there's nothing here!"}),(0,To.jsx)("br",{}),(0,To.jsxs)(Cr,{to:"/",children:[" ",(0,To.jsx)(_o,{})," Go home"]})]})}var Fr=bt.div.withConfig({displayName:"accordion__AccordionTitle",componentId:"sc-8ip8u1-0"})(["font-size:1,5rem;width:100%;height:2.5rem;margin-bottom:1rem;background-color:",";color:",";border-radius:5px;padding:0% 5%;cursor:pointer;display:flex;justify-content:space-between;align-items:center;"],(function(e){return e.theme.colors.tfpDarkGrey40}),(function(e){return e.open?e.theme.colors.tfpRed:e.theme.colors.tfpWhite})),kr=bt.div.withConfig({displayName:"accordion__AccordionItemContainer",componentId:"sc-8ip8u1-1"})(["width:100%;height:",";margin-top:1rem;"],(function(e){return e.open?"80%":"5%"})),Gr=bt.div.withConfig({displayName:"accordion__AccordionChildrenContainer",componentId:"sc-8ip8u1-2"})(["display:flex;flex-grow:1;flex-direction:column;margin-right:3rem;"]),Hr=bt.div.withConfig({displayName:"accordion__AccordionItemComponentContainer",componentId:"sc-8ip8u1-3"})(["width:100%;height:90%;"]);function Br(e){var n=e.items,r=(0,o.useState)(),i=(0,t.Z)(r,2),s=i[0],a=i[1],l=function(e){a(s!==e?e:null)};return(0,To.jsx)(Gr,{children:n.map((function(e){var t=e.title,n=e.component;return(0,To.jsx)(Vr,{title:t,component:n,toggle:l,open:s===t},t)}))})}function Vr(e){var t=e.component,n=e.title,o=e.open,r=e.toggle;return(0,To.jsxs)(kr,{open:o,children:[(0,To.jsx)(Fr,{open:o,onClick:function(){return r(n)},children:(0,To.jsx)("h3",{children:n})}),o&&(0,To.jsx)(Hr,{children:t})]})}function Wr(){var e=(0,o.useState)([]),n=(0,t.Z)(e,2),r=n[0],i=n[1];function s(){return a.apply(this,arguments)}function a(){return(a=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,to.getAdminList();case 2:t=e.sent,i(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,o.useEffect)((function(){s()}),[]),(0,To.jsx)(To.Fragment,{children:(0,To.jsx)(ko,{columnDef:[{field:"level",filter:"agNumberColumnFilter",checkboxSelection:!0},{field:"ID",filter:"agTextColumnFilter"},{field:"name",filter:"agTextColumnFilter"}],deleteRowFn:function(e){to.executeCommand("admin remove ".concat(e.ID))},reloadFn:s,rowData:r,onGridReady:function(e){e.columnApi.applyColumnState({state:[{colId:"name",sort:"asc"}]})}})})}function jr(){var e=(0,o.useState)([]),n=(0,t.Z)(e,2),r=n[0],i=n[1];function s(){return a.apply(this,arguments)}function a(){return a=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,to.getCommandPermissions();case 2:t=e.sent,i(t);case 4:case"end":return e.stop()}}),e)}))),a.apply(this,arguments)}return(0,o.useEffect)((function(){s()}),[]),(0,To.jsx)(To.Fragment,{children:(0,To.jsx)(ko,{columnDef:[{field:"level",filter:"agNumberColumnFilter",checkboxSelection:!0},{field:"command",filter:"agTextColumnFilter"}],deleteRowFn:function(e){to.executeCommand("commandpermission remove ".concat(e.command))},reloadFn:s,rowData:r,onGridReady:function(e){e.columnApi.applyColumnState({state:[{colId:"command",sort:"asc"}]})}})})}function Ur(){var e=(0,o.useState)([]),n=(0,t.Z)(e,2),r=n[0],i=n[1];function s(){return a.apply(this,arguments)}function a(){return a=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,to.getWebPermissions();case 2:t=e.sent,i(t);case 4:case"end":return e.stop()}}),e)}))),a.apply(this,arguments)}return(0,o.useEffect)((function(){s()}),[]),(0,To.jsx)(To.Fragment,{children:(0,To.jsx)(ko,{columnDef:[{field:"level",filter:"agNumberColumnFilter",checkboxSelection:!0},{field:"permission",filter:"agTextColumnFilter"}],deleteRowFn:function(e){to.executeCommand("webpermission remove ".concat(e.permission))},reloadFn:s,rowData:r,onGridReady:function(e){e.columnApi.applyColumnState({state:[{colId:"permission",sort:"asc"}]})}})})}function zr(){var e=(0,o.useState)([]),n=(0,t.Z)(e,2),r=n[0],i=n[1];function s(){return a.apply(this,arguments)}function a(){return a=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,to.getWebTokens();case 2:t=e.sent,i(t);case 4:case"end":return e.stop()}}),e)}))),a.apply(this,arguments)}return(0,o.useEffect)((function(){s()}),[]),(0,To.jsx)(ko,{columnDef:[{field:"level",filter:"agNumberColumnFilter",checkboxSelection:!0},{field:"name",filter:"agTextColumnFilter"},{field:"token",filter:"agTextColumnFilter"}],deleteRowFn:function(e){to.executeCommand("webtokens remove ".concat(e.name))},reloadFn:s,rowData:r,onGridReady:function(e){e.columnApi.applyColumnState({state:[{colId:"level",sort:"desc"}]})}})}function Zr(){var e=(0,o.useState)([]),n=(0,t.Z)(e,2),r=n[0],i=n[1];function s(){return a.apply(this,arguments)}function a(){return a=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,to.getBans();case 2:t=e.sent,i(t);case 4:case"end":return e.stop()}}),e)}))),a.apply(this,arguments)}return(0,o.useEffect)((function(){s()}),[]),(0,To.jsx)(To.Fragment,{children:(0,To.jsx)(ko,{columnDef:[{field:"date",type:["date"],checkboxSelection:!0},{field:"ID",filter:"agTextColumnFilter"},{field:"name",filter:"agTextColumnFilter"},{field:"reason",filter:"agTextColumnFilter"}],deleteRowFn:function(e){to.executeCommand("ban remove ".concat(e.ID))},reloadFn:s,rowData:r,onGridReady:function(e){e.columnApi.applyColumnState({state:[{colId:"date",sort:"asc"}]})}})})}var Yr=bt.div.withConfig({displayName:"Settings__SettingsContainer",componentId:"sc-mzo7ay-0"})(["height:100vh;width:100%;display:flex;flex-direction:column;text-align:left;overflow-y:scroll;"]);function Kr(){var e=Vo().webMods,t=rr().checkPermission,n=[];e&&e.forEach((function(e){for(var o in e.external.settings)if(Object.hasOwnProperty.call(e.external.settings,o)){var r=e.external.settings[o];n.push({title:o,component:Wo(r,{checkPermission:t})})}}));var o=[];return t({module:Yo,method:"POST"})&&(o.push({title:"User permissions",component:(0,To.jsx)(Wr,{})}),o.push({title:"Command permissions",component:(0,To.jsx)(jr,{})}),o.push({title:"Web permissions",component:(0,To.jsx)(Ur,{})}),o.push({title:"Web tokens",component:(0,To.jsx)(zr,{})}),o.push({title:"Bans",component:(0,To.jsx)(Zr,{})})),o.push.apply(o,n),(0,To.jsxs)(Yr,{children:[(0,To.jsx)("h1",{children:"Settings "}),(0,To.jsx)(Br,{items:o})]})}var qr=bt.div.withConfig({displayName:"Error__CenterContainer",componentId:"sc-mbd7nn-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;width:100%;"]);function Xr(){var e=function(){var e=(0,o.useContext)(g).matches,t=e[e.length-1];return t?t.params:{}}().code;return(0,To.jsxs)(qr,{children:[(0,To.jsx)("h1",{children:"Error!"}),(0,To.jsxs)("p",{children:[e," happened \ud83d\ude22"]}),(0,To.jsx)("br",{}),(0,To.jsxs)(Cr,{to:"/",children:[" ",(0,To.jsx)(_o,{})," Go home"]})]})}function Qr(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];clearTimeout(t),t=setTimeout((function(){return e.apply(void 0,r)}),n)}}var Jr=bt.div.withConfig({displayName:"Register__Container",componentId:"sc-1vk5lyq-0"})(["display:flex;justify-content:center;align-items:center;height:100%;width:100%;"]),$r=bt.form.withConfig({displayName:"Register__Form",componentId:"sc-1vk5lyq-1"})(["display:flex;flex-direction:column;align-items:center;padding:20px;width:75%;"]),ei=bt.h1.withConfig({displayName:"Register__Heading",componentId:"sc-1vk5lyq-2"})(["font-size:24px;margin-bottom:20px;"]),ti=bt.label.withConfig({displayName:"Register__Label",componentId:"sc-1vk5lyq-3"})(["display:flex;flex-direction:column;margin-bottom:10px;text-align:center;width:100%;"]),ni=bt.input.withConfig({displayName:"Register__Input",componentId:"sc-1vk5lyq-4"})(["border:1px solid #ccc;border-radius:5px;font-size:16px;padding:5px;width:100%;"]),oi=bt.p.withConfig({displayName:"Register__ExtraText",componentId:"sc-1vk5lyq-5"})(["font-size:14px;margin-top:20px;text-align:center;a{color:'#4CAF50';text-decoration:none;}a:hover{text-decoration:underline;}"]),ri=bt.p.withConfig({displayName:"Register__ErrorMessage",componentId:"sc-1vk5lyq-6"})(["color:",";font-size:14px;margin-top:10px;min-height:20px;max-width:75%;"],(function(e){return e.theme.colors.tfpRed}));function ii(){var e=(0,o.useState)(""),n=(0,t.Z)(e,2),r=n[0],i=n[1],s=(0,o.useState)(""),a=(0,t.Z)(s,2),l=a[0],u=a[1],c=(0,o.useState)(null),p=(0,t.Z)(c,2),d=p[0],h=p[1],f=M(),g=rr().refreshStatus,m=function(e){return h(null),/^\w{4,16}$/.test(e.username)?!!/^\w{4,16}$/.test(e.password)||(h("Your password must be between 4 and 16 characters long and may only contain letters, numbers, and underscores."),!1):(h("Your username must be between 4 and 16 characters long and may only contain letters, numbers, and underscores."),!1)},v=Qr(m,500),y=function(e){if(e.preventDefault(),m({username:r,password:l})){var t=new URLSearchParams(window.location.search).get("token");to.registerUser(r,l,t).then((function(){return g()})).then((function(e){f("/")})).catch((function(e){var t;console.error(e),h(null!==(t=e.message)&&void 0!==t?t:"Something went wrong")}))}};return(0,To.jsx)(Jr,{children:(0,To.jsxs)($r,{onSubmit:y,children:[(0,To.jsx)(ei,{children:"Register"}),(0,To.jsxs)(ti,{children:["Username",(0,To.jsx)(ni,{type:"text",value:r,onChange:function(e){i(e.target.value),v({username:e.target.value,password:l})}})]}),(0,To.jsxs)(ti,{children:["Password",(0,To.jsx)(ni,{type:"password",value:l,onChange:function(e){u(e.target.value),v({username:r,password:e.target.value})}})]}),(0,To.jsx)(lr,{type:"submit",text:"Submit",onClick:y}),(0,To.jsx)("input",{type:"submit",hidden:!0}),(0,To.jsx)(ri,{children:null!==d&&void 0!==d?d:""}),(0,To.jsxs)(oi,{children:["This is a place to put some extra text, read our privacy policy or check out how we ",(0,To.jsx)("s",{children:"ab"}),"use cookies to track you."]})]})})}var si="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),ai=new Uint8Array(16);function li(){if(!si)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return si(ai)}for(var ui=[],ci=0;ci<256;++ci)ui[ci]=(ci+256).toString(16).substr(1);var pi=function(e,t){var n=t||0,o=ui;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 di=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||li)();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||pi(r)};function hi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function fi(e,t,n){return t&&hi(e.prototype,t),n&&hi(e,n),e}function gi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mi(){return mi=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},mi.apply(this,arguments)}function vi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vi(Object(n),!0).forEach((function(t){gi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ci(e){return Ci=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ci(e)}function wi(e,t){return wi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wi(e,t)}function _i(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var bi={HIDE:"__react_tooltip_hide_event",REBUILD:"__react_tooltip_rebuild_event",SHOW:"__react_tooltip_show_event"},Ei=function(e,t){var n;"function"===typeof window.CustomEvent?n=new window.CustomEvent(e,{detail:t}):(n=document.createEvent("Event")).initEvent(e,!1,!0,t),window.dispatchEvent(n)};var Si=function(e,t){var n=this.state.show,o=this.props.id,r=this.isCapture(t.currentTarget),i=t.currentTarget.getAttribute("currentItem");r||t.stopPropagation(),n&&"true"===i?e||this.hideTooltip(t):(t.currentTarget.setAttribute("currentItem","true"),Ri(t.currentTarget,this.getTargetArray(o)),this.showTooltip(t))},Ri=function(e,t){for(var n=0;n<t.length;n++)e!==t[n]?t[n].setAttribute("currentItem","false"):t[n].setAttribute("currentItem","true")},Oi={id:"9b69f92e-d3fe-498b-b1b4-c5e63a51b0cf",set:function(e,t,n){this.id in e?e[this.id][t]=n:Object.defineProperty(e,this.id,{configurable:!0,value:gi({},t,n)})},get:function(e,t){var n=e[this.id];if(void 0!==n)return n[t]}};var Ti=function(e,t,n){var o=t.respectEffect,r=void 0!==o&&o,i=t.customEvent,s=void 0!==i&&i,a=this.props.id,l=n.target.getAttribute("data-tip")||null,u=n.target.getAttribute("data-for")||null,c=n.target;if(!this.isCustomEvent(c)||s){var p=null==a&&null==u||u===a;if(null!=l&&(!r||"float"===this.getEffect(c))&&p){var d=function(e){var t={};for(var n in e)"function"===typeof e[n]?t[n]=e[n].bind(e):t[n]=e[n];return t}(n);d.currentTarget=c,e(d)}}},Pi=function(e,t){var n={};return e.forEach((function(e){var o=e.getAttribute(t);o&&o.split(" ").forEach((function(e){return n[e]=!0}))})),n},Ai=function(){return document.getElementsByTagName("body")[0]};function Di(e,t,n,o,r,i,s){for(var a=xi(n),l=a.width,u=a.height,c=xi(t),p=c.width,d=c.height,h=Ni(e,t,i),f=h.mouseX,g=h.mouseY,m=Mi(i,p,d,l,u),v=Ii(s),y=v.extraOffsetX,C=v.extraOffsetY,w=window.innerWidth,_=window.innerHeight,b=Li(n),E=b.parentTop,S=b.parentLeft,R=function(e){var t=m[e].l;return f+t+y},O=function(e){var t=m[e].t;return g+t+C},T=function(e){return function(e){var t=m[e].r;return f+t+y}(e)>w},P=function(e){return function(e){var t=m[e].b;return g+t+C}(e)>_},A=function(e){return function(e){return R(e)<0}(e)||T(e)||function(e){return O(e)<0}(e)||P(e)},D=function(e){return!A(e)},x=["top","bottom","left","right"],N=[],M=0;M<4;M++){var I=x[M];D(I)&&N.push(I)}var L,F=!1,k=r!==o;return D(r)&&k?(F=!0,L=r):N.length>0&&A(r)&&A(o)&&(F=!0,L=N[0]),F?{isNewState:!0,newState:{place:L}}:{isNewState:!1,position:{left:parseInt(R(o)-S,10),top:parseInt(O(o)-E,10)}}}var xi=function(e){var t=e.getBoundingClientRect(),n=t.height,o=t.width;return{height:parseInt(n,10),width:parseInt(o,10)}},Ni=function(e,t,n){var o=t.getBoundingClientRect(),r=o.top,i=o.left,s=xi(t),a=s.width,l=s.height;return"float"===n?{mouseX:e.clientX,mouseY:e.clientY}:{mouseX:i+a/2,mouseY:r+l/2}},Mi=function(e,t,n,o,r){var i,s,a,l;return"float"===e?(i={l:-o/2,r:o/2,t:-(r+3+2),b:-3},a={l:-o/2,r:o/2,t:15,b:r+3+2+12},l={l:-(o+3+2),r:-3,t:-r/2,b:r/2},s={l:3,r:o+3+2,t:-r/2,b:r/2}):"solid"===e&&(i={l:-o/2,r:o/2,t:-(n/2+r+2),b:-n/2},a={l:-o/2,r:o/2,t:n/2,b:n/2+r+2},l={l:-(o+t/2+2),r:-t/2,t:-r/2,b:r/2},s={l:t/2,r:o+t/2+2,t:-r/2,b:r/2}),{top:i,bottom:a,left:l,right:s}},Ii=function(e){var t=0,n=0;for(var o in"[object String]"===Object.prototype.toString.apply(e)&&(e=JSON.parse(e.toString().replace(/'/g,'"'))),e)"top"===o?n-=parseInt(e[o],10):"bottom"===o?n+=parseInt(e[o],10):"left"===o?t-=parseInt(e[o],10):"right"===o&&(t+=parseInt(e[o],10));return{extraOffsetX:t,extraOffsetY:n}},Li=function(e){for(var t=e;t;){var n=window.getComputedStyle(t);if("none"!==n.getPropertyValue("transform")||"transform"===n.getPropertyValue("will-change"))break;t=t.parentElement}return{parentTop:t&&t.getBoundingClientRect().top||0,parentLeft:t&&t.getBoundingClientRect().left||0}};function Fi(e,t,n,r){if(t)return t;if(void 0!==n&&null!==n)return n;if(null===n)return null;var i=/<br\s*\/?>/;return r&&"false"!==r&&i.test(e)?e.split(i).map((function(e,t){return o.createElement("span",{key:t,className:"multi-line"},e)})):e}function ki(e){var t={};return Object.keys(e).filter((function(e){return/(^aria-\w+$|^role$)/.test(e)})).forEach((function(n){t[n]=e[n]})),t}function Gi(e){var t=e.length;return e.hasOwnProperty?Array.prototype.slice.call(e):new Array(t).fill().map((function(t){return e[t]}))}var Hi={dark:{text:"#fff",background:"#222",border:"transparent",arrow:"#222"},success:{text:"#fff",background:"#8DC572",border:"transparent",arrow:"#8DC572"},warning:{text:"#fff",background:"#F0AD4E",border:"transparent",arrow:"#F0AD4E"},error:{text:"#fff",background:"#BE6464",border:"transparent",arrow:"#BE6464"},info:{text:"#fff",background:"#337AB7",border:"transparent",arrow:"#337AB7"},light:{text:"#222",background:"#fff",border:"transparent",arrow:"#fff"}};function Bi(e,t,n,o){return function(e,t){var n=t.text,o=t.background,r=t.border,i=t.arrow;return"\n  \t.".concat(e," {\n\t    color: ").concat(n,";\n\t    background: ").concat(o,";\n\t    border: 1px solid ").concat(r,";\n  \t}\n\n  \t.").concat(e,".place-top {\n        margin-top: -10px;\n    }\n    .").concat(e,".place-top::before {\n        border-top: 8px solid ").concat(r,";\n    }\n    .").concat(e,".place-top::after {\n        border-left: 8px solid transparent;\n        border-right: 8px solid transparent;\n        bottom: -6px;\n        left: 50%;\n        margin-left: -8px;\n        border-top-color: ").concat(i,";\n        border-top-style: solid;\n        border-top-width: 6px;\n    }\n\n    .").concat(e,".place-bottom {\n        margin-top: 10px;\n    }\n    .").concat(e,".place-bottom::before {\n        border-bottom: 8px solid ").concat(r,";\n    }\n    .").concat(e,".place-bottom::after {\n        border-left: 8px solid transparent;\n        border-right: 8px solid transparent;\n        top: -6px;\n        left: 50%;\n        margin-left: -8px;\n        border-bottom-color: ").concat(i,";\n        border-bottom-style: solid;\n        border-bottom-width: 6px;\n    }\n\n    .").concat(e,".place-left {\n        margin-left: -10px;\n    }\n    .").concat(e,".place-left::before {\n        border-left: 8px solid ").concat(r,";\n    }\n    .").concat(e,".place-left::after {\n        border-top: 5px solid transparent;\n        border-bottom: 5px solid transparent;\n        right: -6px;\n        top: 50%;\n        margin-top: -4px;\n        border-left-color: ").concat(i,";\n        border-left-style: solid;\n        border-left-width: 6px;\n    }\n\n    .").concat(e,".place-right {\n        margin-left: 10px;\n    }\n    .").concat(e,".place-right::before {\n        border-right: 8px solid ").concat(r,";\n    }\n    .").concat(e,".place-right::after {\n        border-top: 5px solid transparent;\n        border-bottom: 5px solid transparent;\n        left: -6px;\n        top: 50%;\n        margin-top: -4px;\n        border-right-color: ").concat(i,";\n        border-right-style: solid;\n        border-right-width: 6px;\n    }\n  ")}(e,function(e,t,n){var o=e.text,r=e.background,i=e.border,s=e.arrow?e.arrow:e.background,a=function(e){return Hi[e]?yi({},Hi[e]):void 0}(t);o&&(a.text=o);r&&(a.background=r);n&&(a.border=i||("light"===t?"black":"white"));s&&(a.arrow=s);return a}(t,n,o))}var Vi="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};function Wi(e,t){return e(t={exports:{}},t.exports),t.exports}var ji=function(e){return e&&e.Math==Math&&e},Ui=ji("object"==typeof globalThis&&globalThis)||ji("object"==typeof window&&window)||ji("object"==typeof self&&self)||ji("object"==typeof Vi&&Vi)||function(){return this}()||Function("return this")(),zi=function(e){try{return!!e()}catch(t){return!0}},Zi=!zi((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Yi={}.propertyIsEnumerable,Ki=Object.getOwnPropertyDescriptor,qi=Ki&&!Yi.call({1:2},1)?function(e){var t=Ki(this,e);return!!t&&t.enumerable}:Yi,Xi={f:qi},Qi=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ji={}.toString,$i=function(e){return Ji.call(e).slice(8,-1)},es="".split,ts=zi((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==$i(e)?es.call(e,""):Object(e)}:Object,ns=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e},os=function(e){return ts(ns(e))},rs=function(e){return"object"===typeof e?null!==e:"function"===typeof e},is=function(e,t){if(!rs(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!rs(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!rs(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!rs(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")},ss=function(e){return Object(ns(e))},as={}.hasOwnProperty,ls=function(e,t){return as.call(ss(e),t)},us=Ui.document,cs=rs(us)&&rs(us.createElement),ps=function(e){return cs?us.createElement(e):{}},ds=!Zi&&!zi((function(){return 7!=Object.defineProperty(ps("div"),"a",{get:function(){return 7}}).a})),hs=Object.getOwnPropertyDescriptor,fs=Zi?hs:function(e,t){if(e=os(e),t=is(t,!0),ds)try{return hs(e,t)}catch(n){}if(ls(e,t))return Qi(!Xi.f.call(e,t),e[t])},gs={f:fs},ms=function(e){if(!rs(e))throw TypeError(String(e)+" is not an object");return e},vs=Object.defineProperty,ys=Zi?vs:function(e,t,n){if(ms(e),t=is(t,!0),ms(n),ds)try{return vs(e,t,n)}catch(o){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Cs={f:ys},ws=Zi?function(e,t,n){return Cs.f(e,t,Qi(1,n))}:function(e,t,n){return e[t]=n,e},_s=function(e,t){try{ws(Ui,e,t)}catch(n){Ui[e]=t}return t},bs="__core-js_shared__",Es=Ui[bs]||_s(bs,{}),Ss=Function.toString;"function"!=typeof Es.inspectSource&&(Es.inspectSource=function(e){return Ss.call(e)});var Rs,Os,Ts,Ps=Es.inspectSource,As=Ui.WeakMap,Ds="function"===typeof As&&/native code/.test(Ps(As)),xs=Wi((function(e){(e.exports=function(e,t){return Es[e]||(Es[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.12.1",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})})),Ns=0,Ms=Math.random(),Is=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Ns+Ms).toString(36)},Ls=xs("keys"),Fs=function(e){return Ls[e]||(Ls[e]=Is(e))},ks={},Gs="Object already initialized",Hs=Ui.WeakMap;if(Ds||Es.state){var Bs=Es.state||(Es.state=new Hs),Vs=Bs.get,Ws=Bs.has,js=Bs.set;Rs=function(e,t){if(Ws.call(Bs,e))throw new TypeError(Gs);return t.facade=e,js.call(Bs,e,t),t},Os=function(e){return Vs.call(Bs,e)||{}},Ts=function(e){return Ws.call(Bs,e)}}else{var Us=Fs("state");ks[Us]=!0,Rs=function(e,t){if(ls(e,Us))throw new TypeError(Gs);return t.facade=e,ws(e,Us,t),t},Os=function(e){return ls(e,Us)?e[Us]:{}},Ts=function(e){return ls(e,Us)}}var zs,Zs,Ys={set:Rs,get:Os,has:Ts,enforce:function(e){return Ts(e)?Os(e):Rs(e,{})},getterFor:function(e){return function(t){var n;if(!rs(t)||(n=Os(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Ks=Wi((function(e){var t=Ys.get,n=Ys.enforce,o=String(String).split("String");(e.exports=function(e,t,r,i){var s,a=!!i&&!!i.unsafe,l=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof r&&("string"!=typeof t||ls(r,"name")||ws(r,"name",t),(s=n(r)).source||(s.source=o.join("string"==typeof t?t:""))),e!==Ui?(a?!u&&e[t]&&(l=!0):delete e[t],l?e[t]=r:ws(e,t,r)):l?e[t]=r:_s(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||Ps(this)}))})),qs=Ui,Xs=function(e){return"function"==typeof e?e:void 0},Qs=function(e,t){return arguments.length<2?Xs(qs[e])||Xs(Ui[e]):qs[e]&&qs[e][t]||Ui[e]&&Ui[e][t]},Js=Math.ceil,$s=Math.floor,ea=function(e){return isNaN(e=+e)?0:(e>0?$s:Js)(e)},ta=Math.min,na=function(e){return e>0?ta(ea(e),9007199254740991):0},oa=Math.max,ra=Math.min,ia=function(e){return function(t,n,o){var r,i=os(t),s=na(i.length),a=function(e,t){var n=ea(e);return n<0?oa(n+t,0):ra(n,t)}(o,s);if(e&&n!=n){for(;s>a;)if((r=i[a++])!=r)return!0}else for(;s>a;a++)if((e||a in i)&&i[a]===n)return e||a||0;return!e&&-1}},sa={includes:ia(!0),indexOf:ia(!1)}.indexOf,aa=function(e,t){var n,o=os(e),r=0,i=[];for(n in o)!ls(ks,n)&&ls(o,n)&&i.push(n);for(;t.length>r;)ls(o,n=t[r++])&&(~sa(i,n)||i.push(n));return i},la=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ua=la.concat("length","prototype"),ca=Object.getOwnPropertyNames||function(e){return aa(e,ua)},pa={f:ca},da={f:Object.getOwnPropertySymbols},ha=Qs("Reflect","ownKeys")||function(e){var t=pa.f(ms(e)),n=da.f;return n?t.concat(n(e)):t},fa=function(e,t){for(var n=ha(t),o=Cs.f,r=gs.f,i=0;i<n.length;i++){var s=n[i];ls(e,s)||o(e,s,r(t,s))}},ga=/#|\.prototype\./,ma=function(e,t){var n=ya[va(e)];return n==wa||n!=Ca&&("function"==typeof t?zi(t):!!t)},va=ma.normalize=function(e){return String(e).replace(ga,".").toLowerCase()},ya=ma.data={},Ca=ma.NATIVE="N",wa=ma.POLYFILL="P",_a=ma,ba=gs.f,Ea=function(e,t,n){if(function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function")}(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}},Sa=Array.isArray||function(e){return"Array"==$i(e)},Ra=Qs("navigator","userAgent")||"",Oa=Ui.process,Ta=Oa&&Oa.versions,Pa=Ta&&Ta.v8;Pa?Zs=(zs=Pa.split("."))[0]<4?1:zs[0]+zs[1]:Ra&&(!(zs=Ra.match(/Edge\/(\d+)/))||zs[1]>=74)&&(zs=Ra.match(/Chrome\/(\d+)/))&&(Zs=zs[1]);var Aa,Da=Zs&&+Zs,xa=!!Object.getOwnPropertySymbols&&!zi((function(){return!String(Symbol())||!Symbol.sham&&Da&&Da<41})),Na=xa&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ma=xs("wks"),Ia=Ui.Symbol,La=Na?Ia:Ia&&Ia.withoutSetter||Is,Fa=function(e){return ls(Ma,e)&&(xa||"string"==typeof Ma[e])||(xa&&ls(Ia,e)?Ma[e]=Ia[e]:Ma[e]=La("Symbol."+e)),Ma[e]},ka=Fa("species"),Ga=function(e,t){var n;return Sa(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Sa(n.prototype)?rs(n)&&null===(n=n[ka])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},Ha=[].push,Ba=function(e){var t=1==e,n=2==e,o=3==e,r=4==e,i=6==e,s=7==e,a=5==e||i;return function(l,u,c,p){for(var d,h,f=ss(l),g=ts(f),m=Ea(u,c,3),v=na(g.length),y=0,C=p||Ga,w=t?C(l,v):n||s?C(l,0):void 0;v>y;y++)if((a||y in g)&&(h=m(d=g[y],y,f),e))if(t)w[y]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:Ha.call(w,d)}else switch(e){case 4:return!1;case 7:Ha.call(w,d)}return i?-1:o||r?r:w}},Va={forEach:Ba(0),map:Ba(1),filter:Ba(2),some:Ba(3),every:Ba(4),find:Ba(5),findIndex:Ba(6),filterOut:Ba(7)},Wa=Object.keys||function(e){return aa(e,la)},ja=Zi?Object.defineProperties:function(e,t){ms(e);for(var n,o=Wa(t),r=o.length,i=0;r>i;)Cs.f(e,n=o[i++],t[n]);return e},Ua=Qs("document","documentElement"),za=Fs("IE_PROTO"),Za=function(){},Ya=function(e){return"<script>"+e+"</"+"script>"},Ka=function(){try{Aa=document.domain&&new ActiveXObject("htmlfile")}catch(t){}Ka=Aa?function(e){e.write(Ya("")),e.close();var t=e.parentWindow.Object;return e=null,t}(Aa):function(){var e,t=ps("iframe");return t.style.display="none",Ua.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ya("document.F=Object")),e.close(),e.F}();for(var e=la.length;e--;)delete Ka.prototype[la[e]];return Ka()};ks[za]=!0;var qa=Object.create||function(e,t){var n;return null!==e?(Za.prototype=ms(e),n=new Za,Za.prototype=null,n[za]=e):n=Ka(),void 0===t?n:ja(n,t)},Xa=Fa("unscopables"),Qa=Array.prototype;void 0==Qa[Xa]&&Cs.f(Qa,Xa,{configurable:!0,value:qa(null)});var Ja,$a,el,tl,nl=Va.find,ol="find",rl=!0;ol in[]&&Array(1).find((function(){rl=!1})),function(e,t){var n,o,r,i,s,a=e.target,l=e.global,u=e.stat;if(n=l?Ui:u?Ui[a]||_s(a,{}):(Ui[a]||{}).prototype)for(o in t){if(i=t[o],r=e.noTargetGet?(s=ba(n,o))&&s.value:n[o],!_a(l?o:a+(u?".":"#")+o,e.forced)&&void 0!==r){if(typeof i===typeof r)continue;fa(i,r)}(e.sham||r&&r.sham)&&ws(i,"sham",!0),Ks(n,o,i,e)}}({target:"Array",proto:!0,forced:rl},{find:function(e){return nl(this,e,arguments.length>1?arguments[1]:void 0)}}),Ja=ol,Qa[Xa][Ja]=!0;var il,sl=function(e){e.hide=function(e){Ei(bi.HIDE,{target:e})},e.rebuild=function(){Ei(bi.REBUILD)},e.show=function(e){Ei(bi.SHOW,{target:e})},e.prototype.globalRebuild=function(){this.mount&&(this.unbindListener(),this.bindListener())},e.prototype.globalShow=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.showTooltip({currentTarget:t&&e.detail.target},!0)}},e.prototype.globalHide=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.hideTooltip({currentTarget:t&&e.detail.target},t)}}}($a=function(e){e.prototype.bindWindowEvents=function(e){window.removeEventListener(bi.HIDE,this.globalHide),window.addEventListener(bi.HIDE,this.globalHide,!1),window.removeEventListener(bi.REBUILD,this.globalRebuild),window.addEventListener(bi.REBUILD,this.globalRebuild,!1),window.removeEventListener(bi.SHOW,this.globalShow),window.addEventListener(bi.SHOW,this.globalShow,!1),e&&(window.removeEventListener("resize",this.onWindowResize),window.addEventListener("resize",this.onWindowResize,!1))},e.prototype.unbindWindowEvents=function(){window.removeEventListener(bi.HIDE,this.globalHide),window.removeEventListener(bi.REBUILD,this.globalRebuild),window.removeEventListener(bi.SHOW,this.globalShow),window.removeEventListener("resize",this.onWindowResize)},e.prototype.onWindowResize=function(){this.mount&&this.hideTooltip()}}($a=function(e){e.prototype.isCustomEvent=function(e){return this.state.event||!!e.getAttribute("data-event")},e.prototype.customBindListener=function(e){var t=this,n=this.state,o=n.event,r=n.eventOff,i=e.getAttribute("data-event")||o,s=e.getAttribute("data-event-off")||r;i.split(" ").forEach((function(n){e.removeEventListener(n,Oi.get(e,n));var o=Si.bind(t,s);Oi.set(e,n,o),e.addEventListener(n,o,!1)})),s&&s.split(" ").forEach((function(n){e.removeEventListener(n,t.hideTooltip),e.addEventListener(n,t.hideTooltip,!1)}))},e.prototype.customUnbindListener=function(e){var t=this.state,n=t.event,o=t.eventOff,r=n||e.getAttribute("data-event"),i=o||e.getAttribute("data-event-off");e.removeEventListener(r,Oi.get(e,n)),i&&e.removeEventListener(i,this.hideTooltip)}}($a=function(e){e.prototype.isCapture=function(e){return e&&"true"===e.getAttribute("data-iscapture")||this.props.isCapture||!1}}($a=function(e){e.prototype.getEffect=function(e){return e.getAttribute("data-effect")||this.props.effect||"float"}}($a=function(e){e.prototype.isBodyMode=function(){return!!this.props.bodyMode},e.prototype.bindBodyListener=function(e){var t=this,n=this.state,o=n.event,r=n.eventOff,i=n.possibleCustomEvents,s=n.possibleCustomEventsOff,a=Ai(),l=Pi(e,"data-event"),u=Pi(e,"data-event-off");null!=o&&(l[o]=!0),null!=r&&(u[r]=!0),i.split(" ").forEach((function(e){return l[e]=!0})),s.split(" ").forEach((function(e){return u[e]=!0})),this.unbindBodyListener(a);var c=this.bodyModeListeners={};for(var p in null==o&&(c.mouseover=Ti.bind(this,this.showTooltip,{}),c.mousemove=Ti.bind(this,this.updateTooltip,{respectEffect:!0}),c.mouseout=Ti.bind(this,this.hideTooltip,{})),l)c[p]=Ti.bind(this,(function(e){var n=e.currentTarget.getAttribute("data-event-off")||r;Si.call(t,n,e)}),{customEvent:!0});for(var d in u)c[d]=Ti.bind(this,this.hideTooltip,{customEvent:!0});for(var h in c)a.addEventListener(h,c[h])},e.prototype.unbindBodyListener=function(e){e=e||Ai();var t=this.bodyModeListeners;for(var n in t)e.removeEventListener(n,t[n])}}((tl=el=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=_i(this,Ci(t).call(this,e))).state={uuid:e.uuid||"t"+di(),place:e.place||"top",desiredPlace:e.place||"top",type:"dark",effect:"float",show:!1,border:!1,customColors:{},offset:{},extraClass:"",html:!1,delayHide:0,delayShow:0,event:e.event||null,eventOff:e.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:ki(e),isEmptyTip:!1,disable:!1,possibleCustomEvents:e.possibleCustomEvents||"",possibleCustomEventsOff:e.possibleCustomEventsOff||"",originTooltip:null,isMultiline:!1},n.bind(["showTooltip","updateTooltip","hideTooltip","hideTooltipOnScroll","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),n.mount=!0,n.delayShowLoop=null,n.delayHideLoop=null,n.delayReshow=null,n.intervalUpdateContent=null,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wi(e,t)}(t,e),fi(t,null,[{key:"propTypes",get:function(){return{uuid:_r().string,children:_r().any,place:_r().string,type:_r().string,effect:_r().string,offset:_r().object,multiline:_r().bool,border:_r().bool,textColor:_r().string,backgroundColor:_r().string,borderColor:_r().string,arrowColor:_r().string,insecure:_r().bool,class:_r().string,className:_r().string,id:_r().string,html:_r().bool,delayHide:_r().number,delayUpdate:_r().number,delayShow:_r().number,event:_r().string,eventOff:_r().string,isCapture:_r().bool,globalEventOff:_r().string,getContent:_r().any,afterShow:_r().func,afterHide:_r().func,overridePosition:_r().func,disable:_r().bool,scrollHide:_r().bool,resizeHide:_r().bool,wrapper:_r().string,bodyMode:_r().bool,possibleCustomEvents:_r().string,possibleCustomEventsOff:_r().string,clickable:_r().bool}}}]),fi(t,[{key:"bind",value:function(e){var t=this;e.forEach((function(e){t[e]=t[e].bind(t)}))}},{key:"componentDidMount",value:function(){var e=this.props,t=(e.insecure,e.resizeHide);this.bindListener(),this.bindWindowEvents(t),this.injectStyles()}},{key:"componentWillUnmount",value:function(){this.mount=!1,this.clearTimer(),this.unbindListener(),this.removeScrollListener(this.state.currentTarget),this.unbindWindowEvents()}},{key:"injectStyles",value:function(){var e=this.tooltipRef;if(e){for(var t,n=e.parentNode;n.parentNode;)n=n.parentNode;switch(n.constructor.name){case"Document":case"HTMLDocument":case void 0:t=n.head;break;default:t=n}if(!t.querySelector("style[data-react-tooltip]")){var o=document.createElement("style");o.textContent='.__react_component_tooltip {\n  border-radius: 3px;\n  display: inline-block;\n  font-size: 13px;\n  left: -999em;\n  opacity: 0;\n  padding: 8px 21px;\n  position: fixed;\n  pointer-events: none;\n  transition: opacity 0.3s ease-out;\n  top: -999em;\n  visibility: hidden;\n  z-index: 999;\n}\n.__react_component_tooltip.allow_hover, .__react_component_tooltip.allow_click {\n  pointer-events: auto;\n}\n.__react_component_tooltip::before, .__react_component_tooltip::after {\n  content: "";\n  width: 0;\n  height: 0;\n  position: absolute;\n}\n.__react_component_tooltip.show {\n  opacity: 0.9;\n  margin-top: 0;\n  margin-left: 0;\n  visibility: visible;\n}\n.__react_component_tooltip.place-top::before {\n  border-left: 10px solid transparent;\n  border-right: 10px solid transparent;\n  bottom: -8px;\n  left: 50%;\n  margin-left: -10px;\n}\n.__react_component_tooltip.place-bottom::before {\n  border-left: 10px solid transparent;\n  border-right: 10px solid transparent;\n  top: -8px;\n  left: 50%;\n  margin-left: -10px;\n}\n.__react_component_tooltip.place-left::before {\n  border-top: 6px solid transparent;\n  border-bottom: 6px solid transparent;\n  right: -8px;\n  top: 50%;\n  margin-top: -5px;\n}\n.__react_component_tooltip.place-right::before {\n  border-top: 6px solid transparent;\n  border-bottom: 6px solid transparent;\n  left: -8px;\n  top: 50%;\n  margin-top: -5px;\n}\n.__react_component_tooltip .multi-line {\n  display: block;\n  padding: 2px 0;\n  text-align: center;\n}',o.setAttribute("data-react-tooltip","true"),t.appendChild(o)}}}},{key:"mouseOnToolTip",value:function(){return!(!this.state.show||!this.tooltipRef)&&(this.tooltipRef.matches||(this.tooltipRef.msMatchesSelector?this.tooltipRef.matches=this.tooltipRef.msMatchesSelector:this.tooltipRef.matches=this.tooltipRef.mozMatchesSelector),this.tooltipRef.matches(":hover"))}},{key:"getTargetArray",value:function(e){var t,n=[];if(e){var o=e.replace(/\\/g,"\\\\").replace(/"/g,'\\"');t='[data-tip][data-for="'.concat(o,'"]')}else t="[data-tip]:not([data-for])";return Gi(document.getElementsByTagName("*")).filter((function(e){return e.shadowRoot})).forEach((function(e){n=n.concat(Gi(e.shadowRoot.querySelectorAll(t)))})),n.concat(Gi(document.querySelectorAll(t)))}},{key:"bindListener",value:function(){var e=this,t=this.props,n=t.id,o=t.globalEventOff,r=t.isCapture,i=this.getTargetArray(n);i.forEach((function(t){null===t.getAttribute("currentItem")&&t.setAttribute("currentItem","false"),e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),this.isBodyMode()?this.bindBodyListener(i):i.forEach((function(t){var n=e.isCapture(t),o=e.getEffect(t);e.isCustomEvent(t)?e.customBindListener(t):(t.addEventListener("mouseenter",e.showTooltip,n),t.addEventListener("focus",e.showTooltip,n),"float"===o&&t.addEventListener("mousemove",e.updateTooltip,n),t.addEventListener("mouseleave",e.hideTooltip,n),t.addEventListener("blur",e.hideTooltip,n))})),o&&(window.removeEventListener(o,this.hideTooltip),window.addEventListener(o,this.hideTooltip,r)),this.bindRemovalTracker()}},{key:"unbindListener",value:function(){var e=this,t=this.props,n=t.id,o=t.globalEventOff;this.isBodyMode()?this.unbindBodyListener():this.getTargetArray(n).forEach((function(t){e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),o&&window.removeEventListener(o,this.hideTooltip),this.unbindRemovalTracker()}},{key:"unbindBasicListener",value:function(e){var t=this.isCapture(e);e.removeEventListener("mouseenter",this.showTooltip,t),e.removeEventListener("mousemove",this.updateTooltip,t),e.removeEventListener("mouseleave",this.hideTooltip,t)}},{key:"getTooltipContent",value:function(){var e,t=this.props,n=t.getContent,o=t.children;return n&&(e=Array.isArray(n)?n[0]&&n[0](this.state.originTooltip):n(this.state.originTooltip)),Fi(this.state.originTooltip,o,e,this.state.isMultiline)}},{key:"isEmptyTip",value:function(e){return"string"===typeof e&&""===e||null===e}},{key:"showTooltip",value:function(e,t){if(this.tooltipRef){if(t&&!this.getTargetArray(this.props.id).some((function(t){return t===e.currentTarget})))return;var n=this.props,o=n.multiline,r=n.getContent,i=e.currentTarget.getAttribute("data-tip"),s=e.currentTarget.getAttribute("data-multiline")||o||!1,a=e instanceof window.FocusEvent||t,l=!0;e.currentTarget.getAttribute("data-scroll-hide")?l="true"===e.currentTarget.getAttribute("data-scroll-hide"):null!=this.props.scrollHide&&(l=this.props.scrollHide),e&&e.currentTarget&&e.currentTarget.setAttribute&&e.currentTarget.setAttribute("aria-describedby",this.state.uuid);var u=e.currentTarget.getAttribute("data-place")||this.props.place||"top",c=a?"solid":this.getEffect(e.currentTarget),p=e.currentTarget.getAttribute("data-offset")||this.props.offset||{},d=Di(e,e.currentTarget,this.tooltipRef,u,u,c,p);d.position&&this.props.overridePosition&&(d.position=this.props.overridePosition(d.position,e,e.currentTarget,this.tooltipRef,u,u,c,p));var h=d.isNewState?d.newState.place:u;this.clearTimer();var f=e.currentTarget,g=this.state.show?f.getAttribute("data-delay-update")||this.props.delayUpdate:0,m=this,v=function(){m.setState({originTooltip:i,isMultiline:s,desiredPlace:u,place:h,type:f.getAttribute("data-type")||m.props.type||"dark",customColors:{text:f.getAttribute("data-text-color")||m.props.textColor||null,background:f.getAttribute("data-background-color")||m.props.backgroundColor||null,border:f.getAttribute("data-border-color")||m.props.borderColor||null,arrow:f.getAttribute("data-arrow-color")||m.props.arrowColor||null},effect:c,offset:p,html:(f.getAttribute("data-html")?"true"===f.getAttribute("data-html"):m.props.html)||!1,delayShow:f.getAttribute("data-delay-show")||m.props.delayShow||0,delayHide:f.getAttribute("data-delay-hide")||m.props.delayHide||0,delayUpdate:f.getAttribute("data-delay-update")||m.props.delayUpdate||0,border:(f.getAttribute("data-border")?"true"===f.getAttribute("data-border"):m.props.border)||!1,extraClass:f.getAttribute("data-class")||m.props.class||m.props.className||"",disable:(f.getAttribute("data-tip-disable")?"true"===f.getAttribute("data-tip-disable"):m.props.disable)||!1,currentTarget:f},(function(){l&&m.addScrollListener(m.state.currentTarget),m.updateTooltip(e),r&&Array.isArray(r)&&(m.intervalUpdateContent=setInterval((function(){if(m.mount){var e=m.props.getContent,t=Fi(i,"",e[0](),s),n=m.isEmptyTip(t);m.setState({isEmptyTip:n}),m.updatePosition()}}),r[1]))}))};g?this.delayReshow=setTimeout(v,g):v()}}},{key:"updateTooltip",value:function(e){var t=this,n=this.state,o=n.delayShow,r=n.disable,i=this.props.afterShow,s=this.getTooltipContent(),a=e.currentTarget||e.target;if(!this.mouseOnToolTip()&&!this.isEmptyTip(s)&&!r){var l=this.state.show?0:parseInt(o,10),u=function(){if(Array.isArray(s)&&s.length>0||s){var n=!t.state.show;t.setState({currentEvent:e,currentTarget:a,show:!0},(function(){t.updatePosition(),n&&i&&i(e)}))}};clearTimeout(this.delayShowLoop),l?this.delayShowLoop=setTimeout(u,l):u()}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isScroll:!1},r=this.state.disable,i=o.isScroll,s=i?0:this.state.delayHide,a=this.props.afterHide,l=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(l)&&!r){if(t){var u=this.getTargetArray(this.props.id),c=u.some((function(t){return t===e.currentTarget}));if(!c||!this.state.show)return}e&&e.currentTarget&&e.currentTarget.removeAttribute&&e.currentTarget.removeAttribute("aria-describedby");var p=function(){var t=n.state.show;n.mouseOnToolTip()?n.listenForTooltipExit():(n.removeListenerForTooltipExit(),n.setState({show:!1},(function(){n.removeScrollListener(n.state.currentTarget),t&&a&&a(e)})))};this.clearTimer(),s?this.delayHideLoop=setTimeout(p,parseInt(s,10)):p()}}},{key:"hideTooltipOnScroll",value:function(e,t){this.hideTooltip(e,t,{isScroll:!0})}},{key:"addScrollListener",value:function(e){var t=this.isCapture(e);window.addEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"removeScrollListener",value:function(e){var t=this.isCapture(e);window.removeEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"updatePosition",value:function(){var e=this,t=this.state,n=t.currentEvent,o=t.currentTarget,r=t.place,i=t.desiredPlace,s=t.effect,a=t.offset,l=this.tooltipRef,u=Di(n,o,l,r,i,s,a);if(u.position&&this.props.overridePosition&&(u.position=this.props.overridePosition(u.position,n,o,l,r,i,s,a)),u.isNewState)return this.setState(u.newState,(function(){e.updatePosition()}));l.style.left=u.position.left+"px",l.style.top=u.position.top+"px"}},{key:"clearTimer",value:function(){clearTimeout(this.delayShowLoop),clearTimeout(this.delayHideLoop),clearTimeout(this.delayReshow),clearInterval(this.intervalUpdateContent)}},{key:"hasCustomColors",value:function(){var e=this;return Boolean(Object.keys(this.state.customColors).find((function(t){return"border"!==t&&e.state.customColors[t]}))||this.state.border&&this.state.customColors.border)}},{key:"render",value:function(){var e=this,n=this.state,r=n.extraClass,i=n.html,s=n.ariaProps,a=n.disable,l=n.uuid,u=this.getTooltipContent(),c=this.isEmptyTip(u),p=Bi(this.state.uuid,this.state.customColors,this.state.type,this.state.border),d="__react_component_tooltip"+" ".concat(this.state.uuid)+(!this.state.show||a||c?"":" show")+(this.state.border?" border":"")+" place-".concat(this.state.place)+" type-".concat(this.hasCustomColors()?"custom":this.state.type)+(this.props.delayUpdate?" allow_hover":"")+(this.props.clickable?" allow_click":""),h=this.props.wrapper;t.supportedWrappers.indexOf(h)<0&&(h=t.defaultProps.wrapper);var f=[d,r].filter(Boolean).join(" ");if(i){var g="".concat(u,'\n<style aria-hidden="true">').concat(p,"</style>");return o.createElement(h,mi({className:"".concat(f),id:this.props.id||l,ref:function(t){return e.tooltipRef=t}},s,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:g}}))}return o.createElement(h,mi({className:"".concat(f),id:this.props.id||l},s,{ref:function(t){return e.tooltipRef=t},"data-id":"tooltip"}),o.createElement("style",{dangerouslySetInnerHTML:{__html:p},"aria-hidden":"true"}),u)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.ariaProps,o=ki(e);return Object.keys(o).some((function(e){return o[e]!==n[e]}))?yi({},t,{ariaProps:o}):null}}]),t}(o.Component),gi(el,"defaultProps",{insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1}),gi(el,"supportedWrappers",["div","span"]),gi(el,"displayName","ReactTooltip"),(il=$a=tl).prototype.bindRemovalTracker=function(){var e=this,t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(null!=t){var n=new t((function(t){for(var n=0;n<t.length;n++)for(var o=t[n],r=0;r<o.removedNodes.length;r++)if(o.removedNodes[r]===e.state.currentTarget)return void e.hideTooltip()}));n.observe(window.document,{childList:!0,subtree:!0}),this.removalTracker=n}},$a=void(il.prototype.unbindRemovalTracker=function(){this.removalTracker&&(this.removalTracker.disconnect(),this.removalTracker=null)})||$a))||$a)||$a)||$a)||$a)||$a)||$a,al=sl,ll=bt.div.withConfig({displayName:"consoleLine__StyledConsoleLineContainer",componentId:"sc-5hqen8-0"})(["cursor:",";"],(function(e){return e.canCollapse?"pointer":"default"})),ul=bt.div.withConfig({displayName:"consoleLine__StyledTimestamp",componentId:"sc-5hqen8-1"})(["margin-left:1rem;margin-right:1rem;white-space:pre;"]),cl=bt.div.withConfig({displayName:"consoleLine__StyledConsoleLine",componentId:"sc-5hqen8-2"})(["max-width:100%;vertical-align:top;display:flex;white-space:",";text-align:left;margin:0;text-overflow:",";overflow:hidden;"],(function(e){return e.collapsed?"pre":"pre-wrap"}),(function(e){return e.collapsed?"ellipsis":""})),pl=bt.div.withConfig({displayName:"consoleLine__StyledConsoleLineBody",componentId:"sc-5hqen8-3"})(["text-overflow:inherit;overflow:inherit;"]),dl=bt.div.withConfig({displayName:"consoleLine__StyledConsoleLineHeader",componentId:"sc-5hqen8-4"})(["text-overflow:inherit;overflow:inherit;"]),hl=bt.strong.withConfig({displayName:"consoleLine__StyledConsoleLineCommandInput",componentId:"sc-5hqen8-5"})(["text-overflow:inherit;overflow:inherit;color:",";"],(function(e){return e.theme.colors.tfpBlue}));function fl(e){var t=ml(e.message).header;return(0,To.jsx)(dl,{children:t})}function gl(e){var t=ml(e.message),n=t.header,o=t.body;return(0,To.jsxs)(pl,{children:[(0,To.jsx)(dl,{children:n}),(0,To.jsx)("p",{children:o})]})}function ml(e){return"executedCommand"===e.type?{header:(0,To.jsx)(hl,{children:e.input}),body:e.output}:e.trace?{header:e.msg,body:e.trace}:{header:e.msg.split("\n")[0],body:(e.msg+"\n"+e.trace).split("\n").slice(1).join("\n")}}function vl(e,t,n){switch(e){case"Log":return(0,To.jsxs)(To.Fragment,{children:[(0,To.jsx)(vo,{style:{maxWidth:"14px",minWidth:"14px"},"data-tip":"React-tooltip","data-for":"tooltip-log"},"console-type-icon-".concat(t)),(0,To.jsx)(al,{id:"tooltip-log",children:"Log"},"console-type-tooltip-".concat(t))]});case"Warning":return(0,To.jsxs)(To.Fragment,{children:[(0,To.jsx)(Co,{style:{maxWidth:"14px",minWidth:"14px"},color:"yellow","data-tip":"React-tooltip","data-for":"tooltip-warning"},"console-type-icon-".concat(t)),(0,To.jsx)(al,{id:"tooltip-warning",children:"Warning"},"console-type-tooltip-".concat(t))]});case"Exception":return(0,To.jsxs)(To.Fragment,{children:[(0,To.jsx)(go,{style:{maxWidth:"14px",minWidth:"14px"},color:"red","data-tip":"React-tooltip","data-for":"tooltip-exception"},"console-type-icon-".concat(t)),(0,To.jsx)(al,{id:"tooltip-exception",children:"Exception"},"console-type-tooltip-".concat(t))]});case"Error":return(0,To.jsxs)(To.Fragment,{children:[(0,To.jsx)(yo,{style:{maxWidth:"14px",minWidth:"14px"},color:"red","data-tip":"React-tooltip","data-for":"tooltip-error"},"console-type-icon-".concat(t)),(0,To.jsx)(al,{id:"tooltip-error",children:"Error"},"console-type-tooltip-".concat(t))]});case"Assert":return(0,To.jsxs)(To.Fragment,{children:[(0,To.jsx)(yo,{style:{maxWidth:"14px",minWidth:"14px"},color:"red","data-tip":"React-tooltip","data-for":"tooltip-assert"},"console-type-icon-".concat(t)),(0,To.jsx)(al,{id:"tooltip-assert",children:"Assert"},"console-type-tooltip-".concat(t))]});case"executedCommand":return(0,To.jsxs)(To.Fragment,{children:[(0,To.jsx)(Oo,{style:{maxWidth:"14px",minWidth:"14px"},color:n.colors.tfpBlue,"data-tip":"React-tooltip","data-for":"tooltip-input"},"console-type-icon-".concat(t)),(0,To.jsx)(al,{id:"tooltip-input",children:"Executed command"},"console-type-tooltip-".concat(t))]});default:return(0,To.jsx)(vo,{})}}function yl(e){var n,r,i=e.message,s=(0,o.useRef)(null),a=!!(r=i)&&("executedCommand"===r.type||!!r.trace||r.msg.length>125),l=(0,o.useState)(null===(n=i.startCollapsed)||void 0===n||n),u=(0,t.Z)(l,2),c=u[0],p=u[1],d=_t();return(0,o.useEffect)((function(){var e;null===(e=s.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})}),[c]),(0,To.jsx)(ll,{onClick:function(e){a&&"Range"!==window.getSelection().type&&p(!c)},canCollapse:a,children:(0,To.jsxs)(cl,{ref:s,collapsed:c,children:[vl(i.type,"".concat(i.timestamp,"-").concat(i.msg),d),(0,To.jsx)(ul,{children:i.timestamp.toLocaleString()}),c?(0,To.jsx)(fl,{message:i}):(0,To.jsx)(gl,{message:i}),(0,To.jsx)(Ao,{canCollapse:a,collapsed:c})]})})}var Cl=bt.div.withConfig({displayName:"consoleWindow__StyledConsoleWindow",componentId:"sc-3ztljt-0"})(["background-color:",";height:100%;min-width:100%;border-radius:5px;text-align:left;padding-left:1rem;overflow-y:scroll;flex-grow:1;font-family:monospace;"],(function(e){return e.theme.colors.tfpDarkGrey40}));function wl(e){var t=e.messages,n=(0,o.useRef)(null);return(0,o.useEffect)((function(){var e;null===(e=n.current)||void 0===e||e.scrollIntoView()}),[t]),(0,To.jsxs)(Cl,{children:[t.map((function(e,t){return(0,To.jsx)(yl,{message:e},"console-line-".concat(t))})),(0,To.jsx)("div",{ref:n})]})}var _l=bt.div.withConfig({displayName:"helpWindow__HelpWindow",componentId:"sc-19frvue-0"})(["color:",";border-radius:5px;flex-grow:1;margin-bottom:3%;"],(function(e){return e.theme.colors.tfpBlack})),bl=bt.div.withConfig({displayName:"helpWindow__FlexRow",componentId:"sc-19frvue-1"})(["background-color:",";height:3rem;border-radius:5px 5px 0 0;display:flex;width:100%;flex-direction:row;justify-content:space-between;align-items:center;margin-right:5%;> *{margin-left:2rem;margin-right:2rem;}"],(function(e){return e.theme.colors.tfpDarkGrey})),El=bt.div.withConfig({displayName:"helpWindow__HelpHeader",componentId:"sc-19frvue-2"})(["color:",";font-size:150%;font-weight:bold;cursor:pointer;"],(function(e){return e.highlighted?e.theme.colors.tfpRed:e.theme.colors.tfpWhite})),Sl=[{field:"allowed",flex:.2,sort:"desc",cellRenderer:function(e){return e.value?"\ud83d\udfe2":"\ud83d\udd34"},comparator:function(e,t){return e-t},cellStyle:{textAlign:"center"}},{field:"command",filter:"agTextColumnFilter"},{field:"description",filter:"agTextColumnFilter"},{field:"help",filter:"agTextColumnFilter",flex:2}],Rl=[{field:"name",filter:"agTextColumnFilter"},{field:"platformId.combinedString",filter:"agTextColumnFilter",headerName:"Platform ID"},{field:"crossplatformId.combinedString",filter:"agTextColumnFilter",headerName:"Crossplatform ID"},{field:"ip",filter:"agTextColumnFilter"},{field:"entityId",filter:"agTextColumnFilter"},{field:"ping"},{field:"lastOnline",type:["date"]},{field:"totalPlayTimeSeconds",filter:"agNumberColumnFilter",headerName:"Total play time"},{field:"position.x",filter:"agNumberColumnFilter",headerName:"X"},{field:"position.y",filter:"agNumberColumnFilter",headerName:"Y"},{field:"position.z",filter:"agNumberColumnFilter",headerName:"Z"}],Ol=[{field:"id",filter:"agNumberColumnFilter"},{field:"name",filter:"agTextColumnFilter",flex:4}],Tl=[{field:"name",filter:"agTextColumnFilter"}],Pl=[{field:"timestamp",type:["date"]},{field:"input",filter:"agTextColumnFilter"},{field:"output",filter:"agTextColumnFilter"}];function Al(e){var n=e.executedCommands,r=(0,o.useState)([]),i=(0,t.Z)(r,2),s=i[0],a=i[1],l=(0,o.useState)(Sl),u=(0,t.Z)(l,2),c=u[0],p=u[1],d=(0,o.useState)("Commands"),h=(0,t.Z)(d,2),f=h[0],g=h[1];function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"name",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"asc";e.applyColumnState({state:[{colId:t,sort:n}]})}(0,o.useEffect)((function(){function e(){return(e=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,to.get("/api/command");case 3:t=e.sent,p(Sl),a(t.commands),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),p(Sl),a([]);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)}function t(){return t=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,to.getPlayers();case 3:t=e.sent,p(Rl),a(t.map((function(e){return(0,Et.Z)((0,Et.Z)({},e),{},{lastonline:new Date(e.lastonline)})}))),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),p(Rl),a([]);case 12:case"end":return e.stop()}}),e,null,[[0,8]])}))),t.apply(this,arguments)}function o(){return o=Tt(Rt().mark((function e(){var t,n;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,to.executeCommand("spawnentity");case 3:t=e.sent,n=t.result.split("\n").slice(3,-1).map((function(e){var t=e.split("-").map((function(e){return e.trim()}));return{id:t[0],name:t[1]}})),p(Ol),a(n),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),p(Ol),a([]);case 13:case"end":return e.stop()}}),e,null,[[0,9]])}))),o.apply(this,arguments)}function r(){return r=Tt(Rt().mark((function e(){var t,n;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,to.executeCommand("listitems *");case 3:t=e.sent,n=t.result.split("\n").slice(0,-1).map((function(e){return{name:e.trim()}})),p(Tl),a(n),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),p(Tl),a([]);case 13:case"end":return e.stop()}}),e,null,[[0,9]])}))),r.apply(this,arguments)}switch(f){case"Commands":!function(){e.apply(this,arguments)}();break;case"Command history":a(n),p(Pl);break;case"Players":!function(){t.apply(this,arguments)}();break;case"Entities":!function(){o.apply(this,arguments)}();break;case"Items":!function(){r.apply(this,arguments)}()}}),[f,n]);var v=function(e){g(e.target.innerText)};return(0,To.jsxs)(_l,{children:[(0,To.jsxs)(bl,{children:[(0,To.jsx)(El,{onClick:v,highlighted:"Commands"===f,children:"Commands"}),(0,To.jsx)(El,{onClick:v,highlighted:"Command history"===f,children:"Command history"}),(0,To.jsx)(El,{onClick:v,highlighted:"Players"===f,children:"Players"}),(0,To.jsx)(El,{onClick:v,highlighted:"Items"===f,children:"Items"}),(0,To.jsx)(El,{onClick:v,highlighted:"Entities"===f,children:"Entities"})]}),(0,To.jsx)(Fo,{rowData:s,columnDef:c,alwaysShowHorizontalScroll:!0,onComponentStateChanged:Qr((function(e){var t=e.columnApi;switch(f){case"Commands":m(t,"command","asc");break;case"Command history":m(t,"timestamp","desc");break;case"Players":case"Entities":case"Items":m(t,"name")}}),100)})]})}var Dl=n(9986),xl=n.n(Dl),Nl=bt.div.withConfig({displayName:"autosuggest__SuggestionTitle",componentId:"sc-1bxvksr-0"})(["color:",";border-radius:5px;min-width:40%;cursor:pointer;"],(function(e){return e.selected?e.theme.colors.tfpRed:e.theme.colors.tfpBlack})),Ml=bt.div.withConfig({displayName:"autosuggest__SuggestionContainer",componentId:"sc-1bxvksr-1"})(["display:flex;max-height:60%;"]),Il=bt.div.withConfig({displayName:"autosuggest__SuggestionHelp",componentId:"sc-1bxvksr-2"})(["color:",";white-space:pre-wrap;padding-top:1rem;padding-bottom:1rem;text-align:left;"],(function(e){return e.theme.colors.tfpBlack}));function Ll(e){var n=e.command,r=e.setCommand,i=e.sendCommand,s=e.shouldRenderSuggestions,a=(0,o.useState)([]),l=(0,t.Z)(a,2),u=l[0],c=l[1],p=(0,o.useState)([]),d=(0,t.Z)(p,2),h=d[0],f=d[1],g=(0,o.useState)(0),m=(0,t.Z)(g,2),v=m[0],y=m[1],C=_t();(0,o.useEffect)((function(){y(0)}),[n]);var w={suggestionsContainerOpen:{backgroundColor:C.colors.tfpLightGrey,position:"absolute",bottom:"10%",width:"80%",height:"auto",borderRadius:"5px",overflowY:"scroll",overflowX:"wrap"},input:{width:"100%",padding:"1rem",borderRadius:"5px",backgroundColor:C.colors.tfpLightGrey,color:C.colors.tfpBlack,border:"none",lineHeight:"1rem",outline:"none"},suggestionsList:{listStyle:"none",textAlign:"left"}};function _(e){r(e.command),y(0),b({value:e.command})}function b(e){var t=e.value;f(function(e){if(!u)return[];if(!e)return[];e.includes(" ")&&(e=e.split(" ")[0]);var t=u.filter((function(t){return t.command.includes(e)||t.overloads.join(" ").includes(e)})),n=t.slice(0,20);return t.length>20?(n.push({command:"...",help:"More suggestions are available, narrow your search to see them",overloads:[]}),n):n}(t))}return(0,o.useEffect)((function(){function e(){return(e=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,to.get("/api/command");case 3:t=e.sent,c(t.commands),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0),$n("Error loading command suggestions");case 11:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]),(0,To.jsx)(xl(),{suggestions:h,onSuggestionsFetchRequested:function(e){return b(e)},onSuggestionsClearRequested:function(){f([])},getSuggestionValue:function(e){return e.command},renderSuggestion:function(e){if(!e)return null;var t=h.indexOf(e),n=e.overloads.filter((function(t){return t!==e.command})).join(" ");return t===v?(0,To.jsx)(To.Fragment,{children:(0,To.jsxs)(Nl,{selected:!0,onClick:function(){_(e)},onMouseEnter:function(){y(t)},children:[e.command," ",n.length?n:""]})}):(0,To.jsxs)(Nl,{onClick:function(){_(e)},onMouseEnter:function(){y(t)},children:[e.command," ",n.length?n:""]})},theme:w,shouldRenderSuggestions:s,inputProps:{onChange:function(e){(e.target.value||""===e.target.value)&&r(e.target.value)},onKeyDown:function(e){if("Enter"===e.key&&(i(),e.preventDefault()),"ArrowDown"===e.key){var t=v+1;t<h.length?y(t):y(0),e.preventDefault()}if("ArrowUp"===e.key){var n=v-1;y(n>=0?n:h.length-1),e.preventDefault()}if("Tab"===e.key){if(e.preventDefault(),"..."===h[v].command)return;_(h[v])}},value:n},containerProps:{style:{width:"80%",flexGrow:1}},renderSuggestionsContainer:function(e){var t,n=e.containerProps,o=e.children;return e.query,o?(0,To.jsxs)(Ml,(0,Et.Z)((0,Et.Z)({},n),{},{children:[(0,To.jsx)(Nl,{children:o}),(0,To.jsx)(Il,{children:null===(t=h[v])||void 0===t?void 0:t.help})]})):null}})}bt.div.withConfig({displayName:"input__ConsoleInputField",componentId:"sc-sci9ws-0"})(["flex-grow:1;padding:1rem;border-radius:5px;background-color:",";color:",";border:none;line-height:1rem;"],(function(e){return e.theme.colors.tfpLightGrey}),(function(e){return e.theme.colors.tfpBlack}));var Fl=bt.div.withConfig({displayName:"input__SendButton",componentId:"sc-sci9ws-1"})(["background-color:",";color:",";width:10%;height:3rem;display:flex;justify-content:center;align-items:center;border-radius:5px;font-size:150%;"],(function(e){return e.theme.colors.tfpLightGrey}),(function(e){return e.theme.colors.tfpBlack})),kl=bt.div.withConfig({displayName:"input__RoundButtonContainer",componentId:"sc-sci9ws-2"})(["border-radius:100%;background-color:",";color:",";min-width:4rem;min-height:4rem;font-size:1.75rem;display:flex;justify-content:center;align-items:center;cursor:pointer;"],(function(e){return e.theme.colors.tfpLightGrey}),(function(e){return e.theme.colors.tfpRed})),Gl=bt.div.withConfig({displayName:"input__FlexRow",componentId:"sc-sci9ws-3"})(["display:flex;min-width:100%;flex-direction:row;justify-content:flex-end;align-items:center;margin-top:2%;margin-right:5%;> *{margin-left:1rem;margin-right:1rem;}"]);function Hl(e){var n=e.addMessage,r=e.helpActiveState,i=e.sseActive,s=e.setSseActive,a=(0,o.useContext)(oo),l=a.command,u=a.setCommand,c=(0,t.Z)(r,2),p=c[0],d=c[1];function h(){return f.apply(this,arguments)}function f(){return(f=Tt(Rt().mark((function e(){var t,o,r;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={type:"executedCommand",timestamp:new Date,input:l,output:""},e.prev=1,e.next=4,to.executeCommand(l);case 4:o=e.sent,t.output=o.result,Jn("Command executed"),e.next=15;break;case 9:e.prev=9,e.t0=e.catch(1),console.error(e.t0),r="Unknown error",e.t0&&e.t0.response&&e.t0.response.data&&(r=e.t0.response.data.meta&&"NO_PERMISSION"===e.t0.response.data.meta.errorCode?"You do not have permission to execute this command":JSON.stringify(e.t0.response.data,null,2)),t.output=r;case 15:return e.prev=15,n(t,!1),u(""),d(!1),e.finish(15);case 20:case"end":return e.stop()}}),e,null,[[1,9,15,20]])})))).apply(this,arguments)}function g(){return g=Tt(Rt().mark((function e(t){return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.preventDefault(),h();case 2:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}return(0,To.jsxs)(Gl,{children:[(0,To.jsxs)(br,{requiredPermission:{module:Yo,method:"POST"},children:[(0,To.jsx)(Ll,{command:l,setCommand:u,sendCommand:h,shouldRenderSuggestions:function(){return!p}}),(0,To.jsx)(Fl,{onClick:function(e){return g.apply(this,arguments)},children:"Send"})]}),(0,To.jsx)(kl,{"data-tip":"React-tooltip","data-for":i?"tooltip-pause":"tooltip-start",onClick:function(e){e.preventDefault(),s(!i)},children:i?(0,To.jsxs)(To.Fragment,{children:[(0,To.jsx)(Eo,{}),(0,To.jsx)(al,{id:"tooltip-pause",children:"Pause log stream"})]}):(0,To.jsxs)(To.Fragment,{children:[(0,To.jsx)(So,{}),(0,To.jsx)(al,{id:"tooltip-start",children:"Start log stream"})]})}),(0,To.jsxs)(kl,{"data-for":"tooltip-help","data-tip":"React-tooltip",onClick:function(e){e.preventDefault(),d(!p)},children:[(0,To.jsx)(Ro,{}),(0,To.jsx)(al,{id:"tooltip-help",children:"Help"})]})]})}function Bl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return e.length>t?e.slice(e.length-t):e}var Vl=bt.div.withConfig({displayName:"Console__ConsoleContainer",componentId:"sc-1w2ewjb-0"})(["width:100%;height:100%;display:flex;flex-direction:column;"]);function Wl(){var e=function(e,n){var r=(0,o.useState)((function(){try{var t=window.localStorage.getItem(e);return t?JSON.parse(t):n}catch(o){return console.error(o),n}})),i=(0,t.Z)(r,2),s=i[0],a=i[1];return(0,o.useEffect)((function(){try{window.localStorage.setItem(e,JSON.stringify(s))}catch(t){$n("Error saving data"),console.error(t)}}),[e,s]),[s,a]}("executedCommands",[]),n=(0,t.Z)(e,2),r=n[0],i=n[1],s=(0,o.useState)([]),a=(0,t.Z)(s,2),l=a[0],u=a[1],c=(0,o.useState)(!0),p=(0,t.Z)(c,2),d=p[0],h=p[1],f=(0,o.useState)(!1),g=(0,t.Z)(f,1)[0],m=rr().checkPermission;function v(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.type,o=e.msg;e.timestamp=e.isotime?new Date(e.isotime):new Date,(""!==o||o.input)&&("executedCommand"===n&&i((function(t){return Bl([].concat((0,Ft.Z)(t),[e]),100)})),u((function(n){return Bl([].concat((0,Ft.Z)(n),[(0,Et.Z)((0,Et.Z)({},e),{},{startCollapsed:t})]),100)})))}return(0,o.useEffect)((function(){function e(){return e=Tt(Rt().mark((function e(){var t,n;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(m({module:qo,method:"GET"})){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,to.getLatestLogLines(-50);case 4:t=e.sent,n=t.entries.map((function(e){return(0,Et.Z)({timestamp:new Date(e.isotime)},e)})),u((function(e){return[].concat((0,Ft.Z)(r.map((function(e){return(0,Et.Z)((0,Et.Z)({},e),{},{timestamp:new Date(e.timestamp)})}))),(0,Ft.Z)(n)).sort((function(e,t){return new Date(e.timestamp)-new Date(t.timestamp)}))}));case 7:case"end":return e.stop()}}),e)}))),e.apply(this,arguments)}d&&function(){e.apply(this,arguments)}()}),[d]),(0,o.useEffect)((function(){if(d&&m({module:zo,method:"GET"})){var e=new EventSource("/sse/log",{withCredentials:!0});return e.addEventListener("logLine",(function(e){v(JSON.parse(e.data))})),e.addEventListener("error",(function(e){e.readyState===EventSource.CLOSED&&console.log("Connection was closed")})),e.addEventListener("open",(function(e){console.log("Console: SSE opened")})),function(){e.close()}}}),[d]),(0,To.jsxs)(Vl,{children:[g?(0,To.jsx)(Al,{executedCommands:r}):(0,To.jsx)(wl,{messages:l}),(0,To.jsx)(Hl,{linkToHelp:!0,addMessage:v,helpActiveState:f,sseActive:d,setSseActive:h})]})}var jl=bt.div.withConfig({displayName:"Mods__ModsContainer",componentId:"sc-x6jqah-0"})(["flex:1;flex-direction:column;text-align:left;"]),Ul=bt((function(e){return uo({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"}}]})(e)})).withConfig({displayName:"Mods__StyledLinkIcon",componentId:"sc-x6jqah-1"})(["cursor:pointer;margin:0 1rem;&:hover{color:",";}"],(function(e){return e.theme.colors.tfpRed}));function zl(e){var t=e.url;return t?(0,To.jsx)(Ul,{onClick:function(){return window.open(t,"_blank")}}):null}function Zl(){var e=Vo().mods;if(!e)return(0,To.jsx)("p",{children:"Mods still loading..."});var t=e.filter((function(e){return e.displayName})).map((function(e){return(0,To.jsxs)("div",{children:[(0,To.jsxs)("h2",{children:[e.displayName,(0,To.jsx)(zl,{url:e.website})]}),(0,To.jsxs)("small",{children:["Author: ",e.author,", version: v",e.version]}),(0,To.jsx)("p",{children:e.description})]},e.name)}));return(0,To.jsxs)(jl,{children:[(0,To.jsx)("h1",{children:"Mods"}),t]})}function Yl(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Kl(e,t){return Object.freeze((0,Et.Z)((0,Et.Z)({},e),t))}var ql=(0,o.createContext)(null),Xl=ql.Provider;function Ql(){var e=(0,o.useContext)(ql);if(null==e)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}var Jl=n(8559),$l=n.n(Jl),eu=["bounds","boundsOptions","center","children","className","id","placeholder","style","whenReady","zoom"];function tu(){return tu=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},tu.apply(this,arguments)}function nu(e,n){var r=e.bounds,i=e.boundsOptions,s=e.center,a=e.children,l=e.className,u=e.id,c=e.placeholder,p=e.style,d=e.whenReady,h=e.zoom,f=Yl(e,eu),g=(0,o.useState)({className:l,id:u,style:p}),m=(0,t.Z)(g,1)[0],v=(0,o.useState)(null),y=(0,t.Z)(v,2),C=y[0],w=y[1];(0,o.useImperativeHandle)(n,(function(){var e;return null!==(e=null===C||void 0===C?void 0:C.map)&&void 0!==e?e:null}),[C]);var _=(0,o.useCallback)((function(e){if(null!==e&&null===C){var t=new Jl.Map(e,f);null!=s&&null!=h?t.setView(s,h):null!=r&&t.fitBounds(r,i),null!=d&&t.whenReady(d),w(function(e){return Object.freeze({__version:1,map:e})}(t))}}),[]);(0,o.useEffect)((function(){return function(){null===C||void 0===C||C.map.remove()}}),[C]);var b=C?o.createElement(Xl,{value:C},a):null!==c&&void 0!==c?c:null;return o.createElement("div",tu({},m,{ref:_}),b)}var ou=(0,o.forwardRef)(nu);function ru(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function iu(e,t){return null==t?function(t,n){return(0,o.useRef)(e(t,n))}:function(n,r){var i=(0,o.useRef)(e(n,r)),s=(0,o.useRef)(n),a=i.current.instance;return(0,o.useEffect)((function(){s.current!==n&&(t(a,n,s.current),s.current=n)}),[a,n,r]),i}}var su=n(4164);function au(e){function t(t,n){var r=e(t).current,i=r.instance,s=r.context;return(0,o.useImperativeHandle)(n,(function(){return i})),null==t.children?null:o.createElement(Xl,{value:s},t.children)}return(0,o.forwardRef)(t)}var lu,uu=["children"],cu=iu((function(e,t){e.children;var n=Yl(e,uu),o=new Jl.Control.Layers(void 0,void 0,n);return ru(o,Kl(t,{layersControl:o}))}),(function(e,t,n){t.collapsed!==n.collapsed&&(!0===t.collapsed?e.collapse():e.expand())})),pu=au((lu=cu,function(e){var t=Ql(),n=lu(e,t),r=n.current.instance,i=(0,o.useRef)(e.position),s=e.position;return(0,o.useEffect)((function(){return r.addTo(t.map),function(){r.remove()}}),[t.map,r]),(0,o.useEffect)((function(){null!=s&&s!==i.current&&(r.setPosition(s),i.current=s)}),[r,s]),n}));function du(e){return function(n){var r=Ql(),i=(0,o.useRef)(n),s=(0,o.useState)(null),a=(0,t.Z)(s,2),l=a[0],u=a[1],c=r.layersControl,p=r.map,d=(0,o.useCallback)((function(t){null!=c&&(i.current.checked&&p.addLayer(t),e(c,t,i.current.name),u(t))}),[c,p]),h=(0,o.useCallback)((function(e){null===c||void 0===c||c.removeLayer(e),u(null)}),[c]),f=(0,o.useMemo)((function(){return Kl(r,{layerContainer:{addLayer:d,removeLayer:h}})}),[r,d,h]);return(0,o.useEffect)((function(){null!==l&&i.current!==n&&(!0!==n.checked||null!=i.current.checked&&!1!==i.current.checked?!0!==i.current.checked||null!=n.checked&&!1!==n.checked||p.removeLayer(l):p.addLayer(l),i.current=n)})),n.children?o.createElement(Xl,{value:f},n.children):null}}function hu(){return Ql().map}function fu(){var e=Vo().webMods,n=(0,o.useState)([]),r=(0,t.Z)(n,2),i=r[0],s=r[1],a=rr().checkPermission;return(0,o.useEffect)((function(){if(e){var t=e.filter((function(e){return e.external.mapComponents.length})).map((function(e){return(0,To.jsx)(gu,{modComponent:e.external.mapComponents[0],checkPermission:a},e.name)}));s(t)}}),[JSON.stringify(e)]),i}function gu(e){var t=e.modComponent,n=e.checkPermission;return Wo(t,{map:hu(),checkPermission:n})}function mu(e){var t=e.mapInfo,n=hu(),o=$l().tileLayer("../../map/{z}/{x}/{y}.png?t={time}",{maxZoom:t.maxZoom+1,minZoom:Math.max(0,t.maxZoom-5),maxNativeZoom:t.maxZoom,minNativeZoom:0,tileSize:t.tileSize,time:(new Date).getTime()});return o.getTileUrl=function(e){return e.y=-e.y-1,$l().TileLayer.prototype.getTileUrl.bind(o)(e)},o.addTo(n),null}function vu(){var e=hu(),t=$l().Control.extend({options:{position:"bottomleft"},onAdd:function(e){var t=$l().DomUtil.create("div","control-coordinates webmap-control");return t.innerHTML="Mouse pos: - E / - N<br/>Last click: - E / - N",$l().DomEvent.on(t,"mousemove",$l().DomEvent.stopPropagation),this._map=e,this._div=t,e.on("mousemove",this._onMouseMove,this),e.on("mouseout",this._onMouseOut,this),e.on("click",this._onClick,this),t},onRemove:function(e){},_onMouseMove:function(e){this.lastPos=e.latlng,this._updateText()},_onMouseOut:function(e){this.lastPos=!1,this._updateText()},_onClick:function(e){this.lastClick=e.latlng,this._updateText()},_updateText:function(e){this._div.innerHTML="Mouse pos: ".concat(this._formatCoord(this.lastPos),"<br/>Last click: ").concat(this._formatCoord(this.lastClick))},_formatCoord:function(e){return e?Math.abs(e.lat).toFixed(0)+(e.lat>=0?" E":" W")+" / "+Math.abs(e.lng).toFixed(0)+(e.lng>=0?" N":" S"):"- E / - N"},lastPos:!1,lastClick:!1}),n=new t({});return(0,o.useEffect)((function(){return n.addTo(e),function(){e.removeLayer(n)}}),[]),null}function yu(){var e=hu();function t(e){return n.apply(this,arguments)}function n(){return n=Tt(Rt().mark((function e(t){var n,o;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,to.get("/api/serverstats");case 2:n=e.sent,o="Day "+n.gameTime.days+", ",n.gameTime.hours<10&&(o+="0"),o+=n.gameTime.hours,o+=":",n.gameTime.minutes<10&&(o+="0"),o+=n.gameTime.minutes,t.innerHTML=o;case 10:case"end":return e.stop()}}),e)}))),n.apply(this,arguments)}var r=$l().Control.extend({options:{position:"bottomright"},onAdd:function(e){var n=this,o=$l().DomUtil.create("div","control-gametime webmap-control");return o.innerHTML="",$l().DomEvent.on(o,"mousemove",$l().DomEvent.stopPropagation),this._map=e,this._div=o,this.interval=setInterval((function(){return t(n._div)}),1e4),t(this._div),o},onRemove:function(e){clearInterval(this.interval)}}),i=new r({});return(0,o.useEffect)((function(){return i.addTo(e),function(){e.removeLayer(i)}}),[]),null}function Cu(e,t){var n=(0,o.useRef)(t);(0,o.useEffect)((function(){t!==n.current&&null!=e.attributionControl&&(null!=n.current&&e.attributionControl.removeAttribution(n.current),null!=t&&e.attributionControl.addAttribution(t)),n.current=t}),[e,t])}function wu(e,t){var n=(0,o.useRef)();(0,o.useEffect)((function(){return null!=t&&e.instance.on(t),n.current=t,function(){null!=n.current&&e.instance.off(n.current),n.current=null}}),[e,t])}function _u(e,t){var n,o=null!==(n=e.pane)&&void 0!==n?n:t.pane;return o?(0,Et.Z)((0,Et.Z)({},e),{},{pane:o}):e}function bu(e){return function(t){var n=Ql(),r=e(_u(t,n),n);return Cu(n.map,t.attribution),wu(r.current,t.eventHandlers),function(e,t){(0,o.useEffect)((function(){var n;return(null!==(n=t.layerContainer)&&void 0!==n?n:t.map).addLayer(e.instance),function(){var n;null===(n=t.layerContainer)||void 0===n||n.removeLayer(e.instance),t.map.removeLayer(e.instance)}}),[t,e])}(r.current,n),r}}function Eu(e,t){return au(bu(iu(e,t)))}pu.BaseLayer=du((function(e,t,n){e.addBaseLayer(t,n)})),pu.Overlay=du((function(e,t,n){e.addOverlay(t,n)})),gu.propTypes={modComponent:_r().func.isRequired},mu.propTypes={mapInfo:_r().object.isRequired};var Su=["position"],Ru=Eu((function(e,t){var n=e.position,o=Yl(e,Su),r=new Jl.Marker(n,o);return ru(r,Kl(t,{overlayContainer:r}))}),(function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),null!=t.icon&&t.icon!==n.icon&&e.setIcon(t.icon),null!=t.zIndexOffset&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),null!=t.opacity&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),null!=e.dragging&&t.draggable!==n.draggable&&(!0===t.draggable?e.dragging.enable():e.dragging.disable())})),Ou=function(e,n){var r=function(e,t){return function(n,o){var r=Ql(),i=e(_u(n,r),r);return Cu(r.map,n.attribution),wu(i.current,n.eventHandlers),t(i.current,r,n,o),i}}(iu(e),n);return function(e){function n(n,r){var i=(0,o.useState)(!1),s=(0,t.Z)(i,2),a=s[0],l=s[1],u=e(n,l).current.instance;(0,o.useImperativeHandle)(r,(function(){return u})),(0,o.useEffect)((function(){a&&u.update()}),[u,a,n.children]);var c=u._contentNode;return c?(0,su.createPortal)(n.children,c):null}return(0,o.forwardRef)(n)}(r)}((function(e,t){return ru(new Jl.Popup(e,t.overlayContainer),t)}),(function(e,t,n,r){var i=n.position;(0,o.useEffect)((function(){var n=e.instance;function o(e){e.popup===n&&(n.update(),r(!0))}function s(e){e.popup===n&&r(!1)}return t.map.on({popupopen:o,popupclose:s}),null==t.overlayContainer?(null!=i&&n.setLatLng(i),n.openOn(t.map)):t.overlayContainer.bindPopup(n),function(){var e;t.map.off({popupopen:o,popupclose:s}),null===(e=t.overlayContainer)||void 0===e||e.unbindPopup(),t.map.removeLayer(n)}}),[e,t,r,i])})),Tu=["children"],Pu=Eu((function(e,t){e.children;var n=Yl(e,Tu),o=new Jl.LayerGroup([],n);return ru(o,Kl(t,{layerContainer:o}))})),Au=n.p+"files/static/media/ui_game_symbol_tracking_bear.f093e312239e9b55cf62.png",Du=n.p+"files/static/media/ui_game_symbol_tracking_pig.b7563c410d208abd634c.png",xu=n.p+"files/static/media/ui_game_symbol_tracking_snake.5d39ffcdaa456ce6ce0f.png";function Nu(e){function t(e){return $l().icon({iconUrl:e,iconSize:[32,32]})}switch(e){case"animalRabbit":return t("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAQAAAAhxq+mAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AACX/SURBVHja7Z15cBbnnec/fbyX9EpIQgIBAnFjgsE2NtiAsfEJzmFn4tjOHLm2pjKZTLKZzexkN7W1Ozu1k62d1GazM5Xs1GY2LueYZNaJkzieZOxkjAm+wBjMYTDmEJJASKADdL13d+8f79vvc3TLtPwqO7tVeijet9/up5/j+/zu39MtYw+zpZZi/nMP4P/3MgtgjWUWwBrLLIA1llkAayyzANZYZgGsscwCWGOZBbDGMgtgjWUWwBrLLIA1llkAayyzANZYZgGssVwTQK/yXxx5ld/iSP5EquVp7bzTWaRW1f96LU+5Nzje4L1eaP3gfPRZhfegFjsKygYeYFSOjGpHBh4eBkb1l18frZY49gftt+lV7/BryH0Y1U9P+hT1qP5GGZ1R6UG0po5PvuKPSb1bbW/qck0K9Ds3AitW7tyo/Pan40/Ik84biEHJ91KFwL9mBD5VujYk+D3lvBFYNhV4pFqg07a86D68cntTl2tSoCd1qq63PHx9ZUVNQxmaTmt6C+r9ngSYSic6ZXjV83KNMDqVaVqncL1leWRTlUgUKNY0KOkEbcm15W5FPVXOBeFXpyvqCSpXaUsepYehUFL4xEU9fYziPrnGDFCgTAdiCPKRuvLq0OTpyPSgsq9MH4ZEm4KKg6JAZky5J1kEyFJOHY2Yi06xwd/vXCJoYTElAZesNSEIRPlb1XH61HU602lUFfny9AVAan/qosjgBHW7uqQCfJnDrg1fRC0sT0RmRllnGYGuVcDU1ddlD9oVlBbV/vQR6IupjyZInbraUrWuroDeuUSQgSoLq/TiD8KvJdhQ14T66uurLIMtaMcIgSrMkDGkMcgqTbXkBL3JFoOhHPvz8BTDZ+oSQQsjDUyWL/r6iQHo1pkRoDNVjqqSR+0n2KPeq6f1JgMWXHKZXzxleeQrhtJyTQD6K2loAw2avDrFqYwSNFX16yp1eICJAZiV/s3KMbiV6btKX2LJDaUHA1XIBHW5Dld0FRIBQCNADTrtqMLaIIxeVfjC2tcNaBsbl4JVSmXnuvHUoFm6uP3KmsmOUl3dQPrC3CMtJxLZJA4FpSWdRlV9rn7L9oBMgdPTwhEpUDaHVbsdbYi6yxdmt8nGebhoSOLSv+7cA/13XV09scAwrFxyZGyZY7l4mJhY+ebTHb9c8/35hxq8LKXAqFRIVDdQFSBhYwoTB1OisydCJdWgUKdMyLfOKjqNymCqUHsYuNQzsmDfn538xEQiJhkrOaAOMChhACWS3rKf3PA/Op+3yCmABFnTC+kn6M3IJBCVAiMA6GmUF+wwaMLKqxgMA+gBBAElQIpL65958sJ1STyKlXMuNuswOImLxTwmGcMCisRZ/ZNt/3b+qTyuIldVOat7IKoRHwxoyItdM4A6GGGSThfFQXYRS6D7vqqsTJBtfGr3mZvrKLCe21lEHJMMNiuBQZ7mRUxWsJlTvM4EJtB8act/uuEbFvkpep3KjjQ04lCpLhoNToOFw7ziIJDGlJQXXAACLRrUc+SRnz4JNr/NB4mHjOY1nuAUq3iYJfyEF3GIY3L94zu+0DiaURZU/VSpUZ3dVNeuXaxPRKgkm6myE+TDqlpTqlUnWpDbmypGZ5G393350hqD+/kkVuhoFrEZh1d5gzQfYy1vMUSSizedv6t9/9zLJW0supUnm9NGdWy6JxKdhSMAqHse8prqbpo8NDE8sQiGBHDQyQebidY3vjg5t47fpX3KEdWzmcWc5B85yYM8wBhdxLjScfqR1kPzzrnK9NWQghysUD0p3dv2iBKLiQSgP20PQ1vTsEiuoUGmGw1BNhbfBjaZphOfzsxJci+t7ziqZaxliIO8xCoeI84xPEp1Zx61xzv3ezgVI1wdq8pBYn6qd66zfY0AqkQtr1N4AF4PIcnDMgJrrEsnk5J1+iOj8y02sfAaI2vlbkocZC/DfJzr2E8G7J4H7LFl+8DR+tEdAFV8IC28OtKaASQwEF1OqDptKk8yqAGNAKuBQTx3cfuF9dDOhmsPnk3M4y2OcYGH2MJrjGPRtdMsrHjJq5o1KlgqhEGjfyo6fdcABl05Ah3L4josKiJAls1oGTZxrY5M3ekPOYxzK3URKGAVSzjGG7zFfbyXIwwR59w9RqbzFdUuFBJY7j040iCf1QigDJC+NrKqEOrCCz1Wg0bGlGttEhvufXSycZgmro80tg5up4+XOMhtPMYperHpuc/ML3vJwAmwo64ygsZ2MMxQE4BeACY1YKW760i/gmFK1fbXnXkwKNI8Ppk+d5fFOTYwNxKEabaR43V+zUYe4Ti92PTeaxWXvQglZAGkmye6J6IrtWuXCCys2+26UgnmUPUMgx4TlDU7yj1g4NJ4vu+hbNMkZ9hBLBKEMbZgcphfcCOPcYwLxOm+xx5f9qob8MwN5beHalyFjakmANEACNJjmPEcFqkJ1pX1n7jXpelq+viZ34sbfZxlS0QI4QZSHOApbuQxTjJAnJ6d6dOLjjkBKa5GCHUTXx91zQCGqX412xuM+wn4VM2mTkQOdsrsU2JeF/nT99ZxinPcQjIihGu5mdf5PrfxMd7iPCa9D6XPLjpWksYjj0T1VdQEfVRTOrIr52mgiWs6O+gWnwB8ql/qhMql42UvfnZ7HV2c4noaI0I4j80c5wfczm/xCsN4Zu/O+Qfau0oB09kgaMrI8SHdznjXAKpeRtBnVCEmcMWHKBgDUdsT3wZlM3jZbq/u3LZ6+tlPxzXNar80s4XTfJs72MUeJvDi53Z1PNt6uaiZWWroP0y1zRALy8Qtr58eOgCVRcQ1nerCDOwgBboYLP8ny+65I84EexlmLYlIEKbZzlm+zf3s5HlKFOt7Ptj5D3OG9TGE+/aG9vtaJZISkYl8qoiF6gjJw1JXUY3OBRdDLJaLwbIXWs72b82nXY7wJkmWRjItEtxJDz/gt9jOHlyyDYNbF/0qNulieBZxbPxEWZCN5fFEsQSvGQ/UNz8EfZPwiHVw04RqfwWVT9jdNil6bvrlE+c3WLjY3Mr7Irh4AEW+wgX+K4f4SyxitB5LjiSupPuaTjWebD47pyvlGeRwqr2GW4fXXq6IAVXdxw3mGNAg0a9MHXDVh6l7Jwkm04f+9aE/GU2nyGKznV2sjzDqEl+jxJd4mq9Tj4W/4a5I8+ii5+cfWvLL9gNJsjiBuQQXdOoSmYVV6SZAUaWFTpmq9KysGbIJHTSFVJPWoES8sHrPgl8Vm0fWmcQ4yj56SL9DvLBcTDbRyjyuw+MgBdwKgDb5ZP/arru7frt/m1tqOR6vRG6mSt2+c4mUVJIpwgvQThhrh9VTKVMsTjCzZ2jXPAzqKHLy4cOf79vuUGKSZm7mQ6yNQCMApxmkQIYrXKSLYYpkAYM6Fr685d+vfKFEQVu2GWNh3Yc10A0SLxQ6Pe4SvlFIhVPtRzd5YphkY2cfOfap3jsLuJikuI33RQbRbz9LL0fZTx/DxDFI5zf9+eavxJy8MpKouZFI4Szd6ddDkYTAGmZ6qxvTVCb2tP6CqSAXB8tddGzVE3PPlOZNLAGT07zAVebSHBlAgxitrGMnK7HoxcWyT98ztqHzmXixJC1xNPgiGtJ6YEANZoXDqrvlqrUoS9ZgcEzcpdOrRxGLxcdWfXf+odzCq502Bod5jQLt1EcGsVza2cpaznORNOevu7Jx+U+TRQedkWsGMDwGKLOuHNiSLSvVt1SzJeq+Ld2TEfER3YMuU2KRmNv+9qofth3OdIwvtshwkEM00hmZbgSI27jKUVL0rxq9fsVP4o4jjXbGciJoFBJ04ATc6i4n+TvcG1ZTUup9qnmu+ilF4sV5J1Z9t3Eg2zHebnOVvcxnxTQBhARbyXGANP1raFzzbHnPlyqBawJQ9YRVeaZmOFT3O0wLy+B5qAwqKFGPyKk2gICxhIPlLDmw8jsJJz/PaxtnLrdNG0CAWxjjOA0MbGo5MO+Mq43/nUuER7301Izuvuk7V/VjWaGIJ5UMPHQDx8DfGRq+HJ7URvmMS4ZUZvufzbmYx4gYvw4rn2EzORzzhcevtFpMR4lE2mTuA6FC5W8ilynKCxyrSkANtpbrmpjY2NjEiBHDxgqRtGosW4BqYHDhpv5teTrYNm3gJpgAIMYf0YrLSPuRL9ghQqUGAPXAVDDb5hG069StPDLsop5FnDoaqMPGo2gWzUx9rq5oFW2qV+JYmi7XA5+QZGDbZLLACpZPCzyHvXydb7AXF1jI3WSBE78/vDBW6SUKHUZ6UinodYgJ6dEV3TlXmdzAq9CbRYahpbm2iUVX1uTnZucWWjzyLYabGHXN5EjqUmy04cLc43X9TRfT5ClonOD3ESOJR88DeTzapgUfHOJb9GNwghSbgId4kfMMt731L+76i1FMjVzeNYC6tabTmg6irDw87b7y5g2Hy9cNbLl4x+TC0VXZtsl0FgNTMX7KSfEYc8bSA+lTbSeWPjP/tVTBqbr95WUwMLnaduTDZ3f170hgTlsDv8UQjXgM8RabgCbu5jsU6fnA+FdjWUcy0WoCUN0lovu94lyQPmTKtLDwKMYu3dj9gf47htZm5mXwDQYTGwsTsAAXcHAoUmKwcajRWG29/8hn0n2dz6380aJXcDxcw7Ozcyc6B2/s396/bWRpBpscS7lumgC2kWACqKvS7jZ+zjADG/s3rNw/yQyxsC5OVX83GMZXdbGBh0WSAoMrz36od9fAlmwSCuQokqKdFDFaWEQDDUAjHhOYjDPEebLkGKUfk0J6Ys3gmuN/sPj5+h43kWvJtV55Tz7txEvkKWDRwE18mM5pAngr3bwCbOHWyplOljDCqN2/Y+V+MfcaAdS3lAsQdTYVJo5sENeT59S9b3/kzMPjTRYuecZZyC00sISbaKIpdBMlQIlhejnEIBc4jQmJM+8VHkyRIlmaWcU6tkXcw6CWFj7JvcBiKet3G2+TZ+C2CTtWKs0UBcqWm1AJgurUaKBfE0xieJz8wNFPdb0/QxyLHK2sZQXv4T1TbJ5Uhzaf+WwC+jnCQY4ySqxqSS6kg+VsYHnkjF2wJFmlnVlJnBJDGwvp1NVSpDYia2HV9w3fmyArjBgWPVte/+K592fs8rVF3MNttE3n8bxKWcAC7qeXY0xgUU8DTSygMWKSaTplMSZwZcmhf7P9SyZuhDsi5USYAio98OTXsahnuPnQnxz9/FgacjRyC9vYSFpr8//F8gRPEaNu9JFb5p4pzZQSkV8uoRosfh2ZoeNYnLxn71cubEzi4HIn97O5Cl3Y3rvojtNvvvwuRzmFN+fMY21fjlI/4gPXMnw+rLoXW/6fIm++8N9f/5xLgnHW8CF24D/dVr5ThKVUty9qBO43W2Js4iBNDN5sK+Z7DQDqaSU9sCpr6hQji//pf554wKJImod4iDlAUYLNU76p3u8hq6t/zrKeZor07bhw44LDhWvWjhRMEJEQPUTvlzI89XRvf+ofTz0QI8cavsTHmEOJIr5vUW7PQ47KiGOXa70T5v9OWcp15Blr7r0ryr6wiIZ0MAodTJzXc3LXM9/PNZuU+CAfpZFSRY/JlKumnFQGDqPxaB7pTJY0y3kZm9FVUdgzMgt7gcnJEJvUcfzBH//Ys1xifIoHgawWt0EyC3SL0g2J+/k19SzKb76Uymn4+Ix4IrKaCOZt/YhekjcfefoHWEXm8hm24pCvXFFbClsY+ZohgSr7NbK0/U3LyAGOkiRG45kovsg0lIhOT2KaCc7e9ewTWAXm8zluJld9SsNT4Jaza/LQ3MqT6KqJXvZmXIk+Xfxn1n+T9HiMN2mleWDlT3MzYQeirb2+I9olzaUlz/5drq5IC3/KOjKaBS9rW7f6AL8aV/TvcEOEhRqPdhR9Hm0j+PTKSVLA0p+1n8zMDIB6HFD+5ZFivOW5Hw0vgHo+zzom8ZMy4Xe4kvTzWw9GcAiFUb7PxdDYXO7r3ZcD7KUBg47dxZkJqKoesCoLIYbL7q+e2RTD4JNsZkLaMOZPKLj3xW+5bEWpTmEYcwaDZroWFxvha5GSPfyKPeQwWHJg2c+cSO1M07MXkq18nODow8c+kSLHh7ibCYqK2aOKfvWcD41OWQJyPz+rLpzfs4us20U9WTxMD8aj/DcGiOPQOHHHF+qyeaJI2ohv7fC0Y6Ny88Dil75mkWMDD1GgGKpV9aiNp9BdMKao58LcyqeugNxKOzKTGxJl6sCrUIzSWD1T4iL7+TmDJMmx+PD9/7LzpVwk+CKzsJpg94cW48CfDy62aOEjNDAZMHiMqiHtKjrYPxtUTeKq37e47qEuixm6WOWjsFyiWMjD/IgJmqirnJugny4aiJO6cudfbvhmw5WMNoIaANS9YNFsilP3nfi4QZaPsJ7RisFhVhnQlGhF332lwuNOMcypcoEiNiQbR6qgkMeqvqp0jG+xjxYK0lLHSAPNPXd/et2zeSan8WrZiK8AVfdkAVgUzUNfGjcN1nEH2ar0E2A4CKZTU+E+zKoKUNlXzezpsE59Rk1+yVEf/1o3PXRg4pHFxsOlnth4w4VlP1v3N/N6xqvmf7To0DSycqqwT3FyR/cOmxjvZS5XJNPXU+6SQ1dCVgk2FZLMN030zZm6kRM2wqA0lFsRYscEXmecZtoP3vRX/bckRqHQMP9A47m2g/WFErLkM5gxJaJqSgOwmYy9+Yd5w+B61nNFAs+V7pT30Pi60qzSqD9An9l9elG9bX1Tk74LogydbLoHjSGZCic5Rj2w7pubv+t8t7xkJRwK5AJiKkpMKLIngsKQMYYXdb8vjs1tJJmogCV7CUZFzOu7nBx05SCY3VCsyGBIwZUUh19cxU9R6U6Gz6e//ZwhTnPvih+NVvoNs1Oj7g6chiGthhKKnPtwJmWwnOvJSGsuGydCn+pqwq/jKjCr667KML+W7scEVYYa/PDb9FP4WZ7HoETH8+mRUoiCUkklSonkyslhpjIb5u23P2qRYzVJigSzw+pLGH1oHXTfVcAc5tLJsMvQ6Sytplpl2OWl8IBnOUYMz137TYsiupQMqrBrgzmN19+JVTYZumVwg0cz6zGrb/ETAzClfIenUKY83eBrJ8RdAh5DOlLZyj9W1ZYPXzB8a9PPcziUuPXxzn0lzcgX89V5qWYKlA0Mr0KB3Q+45NjAPIoVySd0qVndBKQnnLwK3ELKydTqVKfkBhbBd97CJibezuHLyDJNO6gsanGMfjzaLmz8spww0h0FfZ9ZjQCqISMfkO73F3BYTB0ZfEb0u5Q9CbkVT7mm92FWgUCjV5k2VSHhahB5Fcadyna8ShGXtuMt3TlNu+s7yfx7ZmhrR/nbX32bsbn5Noc5dOK/y8/3TWW/d2o/Qw2ylifukiYvWZsiCuRKYMlTLauVsukkvOtgcKJcTKCfSZLEJuNkq+SAdKTuPZsxFpanXTZhBm/JtDu00UJOkTNuFWhfBQjLKhhTlM0Vk4vYLCerqR1ZKsr9mPisG4xWy1lDtUYWE5umk1ZAPMjCRlYrMwKgbtDajFyfjbk00URxiqGAnnxSqU41jjxs2niBLDcwrjFmUB8KfS6Uh1MVHrK16CJcS5srDGNR7847IIdKjcBcp5csiEyBsloY2pDDI06CTJVxPA0qmRkEE8rySq5fZA7reIYEq5jQqEIWAfJd4lPv1a3266s2D5vz9BAjMTr3DUeZWfhGFbSzU5VIjznIQzfJk28BmyYsHDyciiHj4eJUvstSzT9C+uVUE+h+nfK/Cd7DKp6gn1j1vF/TrXw6lXvK5x3klLxb0eR+i6LHsox0OMwgMVqPtPaUCIaGQaT4jerRtUsEAFWLzqRoFhs86mijWJmOW4UM6diTrlKdChJ4fv1y7RF2YvE4hUqMRAbCq4KI0qaAE61/cTe4xBjmCGlsOn9uSaOQUwNl+S07DFGYOWLgS8RjoBRzEuVt4Y5ES2LDhietvA+Uo5xzqhN3pDtcDB7mMD8kXtGtKnz+vSh96BSuj4KKvHyVs8RIFJf/WDyTqb+cRfepo8jCiCwshyXBc8sMJcOkTlilNp89VMYUfxPCvyfLanbxNC9TjyFRnYdg3WBL3hTnBY3GuMpeoMTq77V0OdKs9HkKaNVzNQAoexSy3vJJX5Y+YqriipBbrnSHq8HiVaQa3EM736eLeGVBHAUqrwqjTpnh58vWqcWTnMQm4W74aqyqYoLWn2q+RzOkIz+p5D8eY/sxUHxJJqSPoCX1SExOlZjBfxkWsIteniYXYGNPA0uXu+IqUi8mdezlV5gU2PyfO477G9ZUqILQ6Vp+qhL5VfDF2Pn78TpeyMbrRpNDHi75KlN7kvngIhswsgaXnScPedOcH0Q3KFFkE6/wIjewhSyyANENY/+88KFF1EdML80Bvo2Dy5LDm/6jHHvUjXv1LIFr7xpAD4ti/BdPn7vf9NpfH1u68aumE2OSS5Xn2IIeqxrMEhAaIedEZLB8ZpI2NvE2u9mARUlxD+XFQjuP1Lbfe4I0r/E4Y0DT5D2fTTlZRQCpCypoTt9/ViOAYDK2vHeXC/TdarD7Kzb1lMhWMghi+GIavm8qVjIsBIBCN/7EJriFlzjBK+ziKm4IzekxaFdKA4k69bj8mGfIYBPP73q08+VMiHMpyzqxrUnOydQIYHnS4x1GybLLg41VnK8rDNNEHtlL8devrDBMaaKmRJN+/kQOGghYc7RyA90cYBOpyuvdRYTPqAS6VNjF1XIrNiku8jQvkMAinn3vo+/5xaRCXzr9qsstqLRmCiw3NrHctQsswyPBWUpYlBgjS7MieGUqkZ0wo6Jhhbzzqhvggl6vQZ6N7OM0J9hGDt/3lWWenOVTKdMDLEo8xa8ZIkmJuRd2fnz17oyy0GJuegRGP1szgOXuMm0uJeawkxhHOMgQSTpppCCxjR7+8YOg+go7qEErUd+nwhJtLGU/3WysxglFINbAlXpUmc8PHDzFLwALj9W7d/zxomOZimIxAnMzlCM5nDpDAdVyc1a2LL1imNzMKnqx6cCmoPiRcmjez/0Km17PeOi6WTCyQ4w1vEE3IzSTq7brVBlYDdhTuerr8gJHKDGHhlM3fOOmv7Yqaa+wNGl4DjionmqkwBIDW0uYFMkTo0iS9XgUqvCJUL0Pl0958n5SlXXU3K68W6YcRVlEil6u0iIZRn4GWE4elXtxJXo3sGmlj0m2feuuvx6vhmn95VQtAjXbqKqnGXHlDOL0be3+ALgkKDviJSbJVP4Qj+7T6u6c6tSHGcSect43ixuZR4aRastlRraJU0cS9Q9TOajGtcFi4nhc3jiGV3mY2w8ZCOEh+1dCfqpG0gwACDEGb8rGIcYykpSkyfpTVr/FxAQ06rGr3BEGbJEEc4ExipTfrpCmEZsclzjM+corFGX30LdIPTxKLMYgTs99I8ttTa4JwtDNmOgRGLlEYOECnc+1XBjqiFUycH5iyKyyW3lAQsyXbTcxFD+wKRKQcn1PquEzTgmTBC4udcAoVxmhjzFGuEw38/g4yyt/z0uXbgAlltLKIKMtxz/d+kVTsQZAZl/ZlPZh1a+8c4nw4h2H5pHhFQOb4SJLmIN4jlbfSBGW0fJCP2VJ4wXaKKuKE/SzlFFe5FVe51Ve4xyXyNHAGAZrAJGRVinaI0WB4yS5sm7JTxuGnWpf6jtS9WSmDmwUCCO++qn5ze5Hc415iiypyEE9ix80O4N+sGzhe1PWBJc4g7yAwRBHeJvLjAP12CSwPc+wmGA9KVyE7FKLTRMnGSOfNJOrn3EwQmlNhVLV6VHzwhHf4ts4WjR77o8xQIHlBHMK8rcqfFVbX91DED558IjTx69Jk8MjRZIYJq677gdb/8PSpy7dPtmQo5HVlYd5grETD5cWJjhKguENbfsWdBUC1p0awlJthOlIwQjxwHJU7savLn2hiEN3xXjxJDtPzSXIgl3WsChXCdHWIornkCLBIFlyZCrJ05hrjyz/xaYfrf47F4+DDFZjhnqAy6NEnq2so0DW3v/lXKxOERyq26duMTFQFeOMUCBYFOre/r2RpRYLuQ5574lY9bKfamJrBqmuONQzYjOHaAcckixlEUtZzCLqGcbBNLs2n3/f6h+27D/5h/n4KHnWIeSg7OUCFGgixZvAlUWlhvb9qZwwVOSsoeoBi1EZESkx4t9UsvCMsx8cWJ0gj8UC4opDVdawCSyucpZ+YiSJUc6ZyOlq3ViVd2b51Cwii4tYxVKWs4rVdFLgEgkuL5hccut3Cs65+ywuMIcVFBQIZarJ084Y54hz+ba3Hp2Yn+5quirv8tJfue2DpprZ1wIx4t9Uckk6897oe+BKi0cvV2imjiRWJUodIwWMcYLnOUE3b3KZPPUkCG4yC4tx6Bs9fAAKFUsvRjtrKXCOOIPrm05s+ttzD11ZYHORDuZRUFqSgxomC+ljAIdc84XtXb+T7lr4lr+jQaUyXfPqcrEGAP0OHJqHFu3ufWisMc4lurhMjgJZMkwywhlO8CrHKlM2GOQoLmsrNKju5FN1uBwGFWfEwpX/FbBZwTADZEmYNz05Z1/375QSOS6ylIbKfnuxxcmnQ4c0qzDJMoFFsf7UY57bsdcLjEkPjk0nqBrxHaoABZovL3lm/LqhFTYF+jhDD2c4xSlOcJReCti4NA2kRicbk3hAJ3UVq1FmLRU8FLYOz0yUw19tjHAKl7nnl3+v9VLD0bOPeNYIl1lFCqc6Vn+XRLnHIvWsZwV1jJDDpOeu5NVl+4uKApGlov7+/xlgYZmoizSPrH5yTs/ITflGy3DIMMkEE+SwiGPS3L3h8R1/sPlvh1ddXA3zWIspmTxq8F39LcvCMB80jsNh9pEB1j65aneehafNyTM7LS4xwjIaKvsjglZmkSLNrGEZFxkG+u5ve639TFGjNZVt5UBFzRFpeUeVR4ZE/sb/tfLJ3vt639e3pdRcqvMMPDuTuNq+f8FLnf/Q1G8TIzFRApppYkyTLKohLXsyPpBhMtJimF/ShYFD2ln+8/J7GDZ9bWzJS3+c4C2yPEgnGQqVXVtqDNJlEoulPMLf08eoeez3Vz+rbnQKI5jgor9rAGUlYFDAIDm29ql1T2XtsRW5Ftc03NRwQ3d9wcWhRAmDUsrDqu6Z8f+7UnBL7GfVZaM6IT+Iv4eTpMiRLNzzyc5XshiU8Njxr1x732eT9PL3bOVG0kwgiwNZ/4+zkp18jwKja4ab5lzNS4pkqlB/FCkY+Ukl2Y9wcTCwSq1vmxW6cclVa1jM35d4yKCXXhaTrQSe5Cih7DLJW37Vl6P4U7cwGMHAYfmvt/+7pdXUUAmbez8XH3/1SzZDPM1JNrAWq/pSd0GFJnEyHOEoAGYhXtSTr7pcRhvn1CXiXzaUj4TyL9NcORon1tOlofvsJ7KpEn0kaMImXnldovpmc/+MWf6j35hYlV+GdD5GgpO8SQGbnR+9/uUxhSdMVjxff6H/zkzSZIDTlOgkiW9zlseToMRunuMQPbi43Pz163ZnqyORzSwxMn2vYw0Ays0KatSjuHJ3Dg1jZM691yPHOQbIVFPwFhZ25YWLFjHK2TkHB5cCxepSlF+/aeJRZIKj7GWSEove3PRf3Lz/Zknf4HZZ8kb78/mFE0uxDC4wSpoUSVIkiJPAZIJfs5dRsjjA+qdv/1OvKJ53NwJzUPc3XpO89kQCMBjkCWveZwqTOAc+s+frGaOe8t6sVppIlFOMEj0XKWGQp4RJDheLBGCRqLTkkGGIIRIUsHn4rtV7MqHjszHo2fXyn3dtriNHPatoIYWfJO3iPCbQ0N9wZvVTN/yVRbGarvdHoubmvGnQYOQ/h6Gq96D6V8WvRZK37zv02bMPOtgVKtPdcz877AdkRRpKdrBsLAo09+34wtonC5reFqMyqedK63PfOvmgjUG+asCDQQybIqufv/uz6dNpJ1tVbfrWIjmgHz0eGPlvrAeJXL2ms4FFkqx1cXPfnRfvvnxLvtGzRKxF0KAA0EQk5N0qfAZGqaF/5f/e8DftXVnUiKLODykK1ht/9NYnhtc7dqm6B8bEJpFZ/d3bv9g0llOe1FM3A7zbEhFAAZXu+utX5VoWMUqU7In5I9dPdGTm5VpL6XyTh+mBZ3hmctjOurHEYCwPySGrUEjnW8xiMZ1vxsXDsifr+5pPtr3eMGJWt7Mj9a0zXRzIpvq3DmwdWT/ZbgCeke6b/3LHnnnHzIp2VoWSKut0D3jGKFBl4iBosuWuS8uykPZf+Gkqd8r5Y6pUpfsoYgOlbv6G5TisigaXd7qUd3KDbJiokh3CFEkUACO/N0boJlUHB70JAYXIVrhKPV3ChDFVcLr6lHRh7wcQQJfLepRZ3YMQzI2I1q4NYeT9gUGwdItdxNjUgGqwpjo0VT3JuQj5riAMOrvpFqsMjGyOqXFJuU1PgzNIFsESKaSv7x+RiV6GLSxlJJul8mSMaut+LRkqdd+MboF6qBJMtgzVvlVwPQ2yqcIb0wlnRXrMQU5aEwBEBlOflCdNVoVCwItCf2ERGS9AG/IY9F0FhjZu+V0y+iiD+xDU2V27RNojreZNdcYUubUgY+gR32AIQY3QeEprYnKGVEOtF7b1ndBPle6C6VZdJc0QC+tyJDxjKqhHlpOCPtRa6nQ8DW55d4AuIeVPQ2slmIeWRxuMtaiCQk6OIV2fAQBVUg82rl6R1zmoW72QO9RBy4GA4EjUqatLqEZy1B0LupfraePU5S2hv94lgEFAdDNDvaaG59U9AcHUth/dkXOx+h26VNTNeXmZPdSYjw6p32PQANMVU7S9MRGf1gzGztQBynZh0JILj+OohoweCfa0/nR61kOfYV5s0NbT/V19iaKaz9MEUG9Yt+RUKekpU5FXN7iNVlZOunGuU7cMdLh0UmWmavDrv4Peu7xJObohM+0X77xzvsAI1DAC542QtoMqIqz9qdsK60m/ZrxjT8F7ooUYor+mbLaEllkAayyzANZYZgGsscwCWGOZBbDGMgtgjWUWwBrLLIA1llkAayyzANZYZgGsscwCWGOZBbDGMgtgjeX/AMGFUOXDjiN4AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIzLTAzLTAzVDExOjE1OjQ5KzAxOjAwcSr50gAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMy0wMy0wM1QxMToxNTo0OSswMTowMAB3QW4AAAAASUVORK5CYII=");case"animalBear":return t(Au);case"animalChicken":return t("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAQAAAAhxq+mAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AACUWSURBVHja7Z15lFzVnd8/79Ve1Zu6tXZLau1CEiCEsUFYgFjEYhACGzMePPE2jj2exOOZjB07y0kmmYljx+OceAEfO7bHjMEegzcwYCyDEQGzWwiEFrRvLbW61epWL7V0Vb2XP6pevd+995X6iWomJ+f01VF11Vvu8r2/9Xvvq7K2MFUaKfb/6w78/16mAGywTAHYYJkCsMEyBWCDZQrABssUgA2WKQAbLFMANlimAGywTAHYYJkCsMEyBWCDZQrABssUgA2WCQF0q//9d271s/9OviKucrV6znYUUav6X7/KVe41+2ve6wZeb45HH1VwC2qJhkHZwgWs6jur1pCFi4uFVfvkXY92lf/e67RXp1u7w7tCtmHVXl3x6l9H7TNK76xqC35tav/kGa9P6t1qfQ0AqHbemzVL/K989ocjpckSQ5Fy4E2GW/urg+SKunVwJRjUplCfCNl3GxsbKNfacmoTqY6IgAk8Wwmlwn41luiseV5KlaWA6kuSd795jX/UNeTNmwoXKVuWcp+vjupUu0QYm/HEt36w9ekvjrVhQylejNsCIEtcrxqYiZXY2jLhJXJOqXVfVUM5XP2dK+ZUhQTjTlP+UGREl0j1DnWy/TNJfnv3c3+eo5XZu1v2t+zrv8SJXPFXS14YNfqljjBMCQGgqjCWAZQOZP16osRxKNQ+EyBnGLXISfD7olpcc6r91zgnVj34opPp4Ch5oiSBEst/veFfpnsco/agaT9bCaHCnsIg4NKFXQei8tdXKpsYGfLx129+c32EuCYrrlKLvFtOmf/fa01vT50Eb1LjHLy1LzOHL/Ae1rCKApBk302/eHR0ZkZzY1Jpw0lhKC8sB2Iqk+pP/ab9riUosveqPR/veefQIqvYte2i/7HiIQdH8466CloGsLqkmk7LPy91Zrx9HJv5fIIch9nCGxwkyqHVW76z7rNt+xwQPVB988QQhvDCut/znb387IPrf6p0JMXp6c/83ZsfG4jZTKMQ23V534Otl85/NY9pN1Wv7kuF7kJkq76TClZyC1xwKBGliZWs4mXuJsIAuza17r36c0XFF5vhztlL5CMTXCDnRn01Jc1vMkGaJFFc4vQu+vlje24uRpZyFetYzjD9kYjb/ZitmQfpXdV4Tj2ut6r7ar8vlX9JSrn9fzQeX8lMirjYTGcVl9PHfjKRBQ+kCyVRoxpDTIIEosy9D6kZ8nrXRIETSw7cMbaoZdeK71nxhzf3LE6ynvW045Amyz6ObxhPJnOyLjVSND2qlFIpo6axd8WERLE4suTIjQmO8DTnY+EyTpQVwC28yK5LI7+88f2ZgZKiDeFdSGgVVpVSyoYq+hYpBpuf/eqejadmF2hm90fadvUuTrGRqylzBosyeWziZyxHrd/0nq72yUJKnQmwf4cXPMcZa976b179s77ZEWawWPS1iM07+Tj/wNarM197z5/YOBNOTEMSqFoaNVmTFjHBqY7Hfrp3PSykiT6OX9h3YYRruZpxxoEoo5wgSuaAXfClT7doqgxIOynDbALO+X2MkuLgu373zQPvzLGQd7OKS6puywM5wp3kuI+df3TB1xa9PIpMEdQEs0EAZYW6h1I9YpSRzOM/239Viiu5muls5qeM0M0luIwDECHPEDYdb0RxhexKOVPjTh+oYDj1bLvSzwgJXr9t8729LQnuYhOzAaeavnlAlYnwfraxLXpo48KXbRwhMgj5bxhA1RuqwYscCMR4/l/tuyrBzdxAjhEu4BhHOJ9ULXiOkKMfm/lb4uQVKHRn5B+RqqnC6aLD7gEa5ZWPbv7+KAv5EOuBcrU+HZAUc9hObpaDrcWT5iS+ZQBlUqVmHaq9ijLUtuPP81zKdeTIAxluo0AKm2Kt61myJEn3q6xKPRLBUvoQnG7pg7VJsvWjm78/xMX8JfNq8AWXDC4739d64JIvW1U7GEwr1CuhCFVTMnx58Q18hn23neiezmWUyWNhUSZOKzbl2n0lTuGS7o2OOLWa/ImS2YfMSnReUJVPPZFMs+/6J+8+xWo+xzyoWT5TMFwsruci+ju2fGnnh2IBgjMJqZw3HE9hdNvnKW+GOP2XZZlLN7law0UKYv5tyvQDyYFI3gNEEqA612OJFn24fSqs8iojSZcUfZ2//oe+1Co+x2zcKnxqzfLTUv6eGxjmlX+bS0WEYZhEQtVM2nX/mWJgxq4P963qva6ZOUSqDsOcBoBIZUCuCowqW3KSZMBuxoiqKYEYxchT3+vt7OTTdOGTW7J2fxLgNDkGaCPB4LK+i7qfL4seheNjQtpArwO6fXKxSPPGLVu+cWJBnhQpWoU3qzcdjuVY0qebaZxJaEkW2kz5vMgvwouf2XVjhD9hlXKn6UAsjvNtjmAzRA6LluPNxxwxVh3ytwyg6eVUb5ji4MW/+UFfRyfLyDGblZTOOg0RwHZsFw0+dVpMgl0aDDUX96+Mc3zVi/91jI3cjLSgKmvjHXmVh+ksO5FUbvahuS9ecE/b0ZJ2x6SyMcFsWZSc9cLfnu7o5n2swMGhGOjz/PC2HZdSphz3ZcfschBNoXIsJnVasbAvfbEns4CPCODNKfTep2mnJX/xl+c+N3tLulymqIRHk8zG6DytJztRDq47eH2GGzmfkbpG1++GTQKLQns5KeuXkKgSr5IKUq11gC0yvPLh125NcBft2rSZxcViFm0UYsvv7zyQJa+MSl/qOlsJHcaoQ6o0EKHAmx/MRhewnEIIn+USIQ3kW8ppW6tPV13VGumrJr7f9Yad5FTni/95lKu5oe70eZ8rdxfIY9mlVB5vsdV3OZ7/nwQAdTFWqcpi4sT6EotpoRiisUq0mGDcyk/zAxcUyCQjLTnn4AjRt6wRtn36yML53FmnXUl0FYFRHiPPrO1t+0ygXNHSRCXUsqbOxvjvczNGu6NMJ3YW3yu74ZCigx6GFpSfUQl8WbuETjcaao2+Le5ZsuNjZW5k8QRjcfglW+nkCNtIsebLqUIR1R350zVJmYirqLAcgM1IZ9FuJnMW+fM7V+l+glYcTq0uYddgsbTa1fVnGdSq1/rDc9j+mRMzl3DTxMPhKE/wS14mw3Wfv+AnZc07yxgzTAm9M8EyIIyQoJRw7NhZZsHSaijTwhxepf9dZTvm+JGdKVNuQE2uANS/2iLG8Yve+HiJjUyfcCw2K4gzPbv03vN+vOiZcjXoUmNQv7VJYWMkAD43EifCGxte+xRRh1KdhizjvUOG6ZQZOY8YBT3O864LlgA3YCIrx222f7YneQHrQ45lHLt85edaxvJU9ECnruQCVsMqrIaznipFiPLiJ3++ecftZ7BJTpB9SHAc2mllZNqxtZ6nkzmtuV1J9cl6CG3hkubwpW/ckeRmWkIB2EIzY+lDGyPViZcBkppbhykTAug7dNntGHsufeqeEqu4hrXMrsZRwbD5d1lYjDOXeYxEj1wfUWI/XWnUIaiLmvJTBIdXP9+XuMgIX+qVS7megciT39y/Ll2Dj1rrVm0ag1Zl3gKA+s4BCxebcbZ/ZtRewPv5ANcRrZO+BYFaZBYzyTJ0gS3m3oNYuiyvbX21WM1U0hy8fNftrWwKnVTtYg6LON7x7N8VE9EA4+S3EiYSDLW5SH6qNJdvPX69xcXMpUikxvepUMm/lpjdOJ0k6F99eloUGaDL6EtP5l2jJ5VrY+TY+p+GWc3lIeEb5js8RIEEJ9cOzI0K8XDrSn1DAAaFGBEOXTPcMZ15FCmeVfrMbkGBpcykf97hG9PIoNVS7gleDdT3UEXYt3HvDU3cHnqr7TBHKOEWMuNrvjJzf1EERHIlxA0J3zmpsBTpgQvHSZGoS5b7cud9srCxsLApsIx5jHL8arfavA+J6v9cpIXyZdSDNsJg+/NfPcNaLgkJH8xmLcPMfukD11z+H0uUFTOiL90yGSrsD0vKhRM/W6qjMojSMVTeR1lBkj137rwuQaJ2Ts2LpQRaWk0V7i9Bmu2f3r90GneEhg+iXEiOkflzfx+lpEi6pDDCszGhwhh1yccFYkMWTsjgxYeuIoU2Jd7BTPpaH/31s18oWU2KvJq0gjqR4BIjQ5SR2dtv2faXOa5m2TkACAvo4lT3vpscVM3ypS98GB3KBuozYuEw+6W4O0rurJ7PRVdkr3tluvhT5tMX/d1/f/invavSREQMpr7qBFaMJnKZN6976isPPvPgrw63Leeuc4IPuljECAc32kJx/dw7PBddKaEYaX1XisOM15tP9c7oZUWdpMuD3kYqsmcHocha5vIjXuDV9x65Yt1/WX13GpcS5apUB21ss4gS4cyMvX+844Mn3jUCTONq3kvHOQKYYT5PMrgqglPNx1USNSh4agBAy5A/gKbBeY+c/OguLiZRZwlJUvSWIoWV7d5nmMdfs5mfcHLGY9/c+8fp06Xo6v+58IkkRUpa7OkSIYpL35LdH91919EFZdpZw6W8i05inHuZTzODC4c60gNlje9Rd9eEkcMQ29t8GHwPmWR42uHbBljILC2Mkd2xQZE+G4sINjYRLErEWcEqoId98w8tP7n0yF2F6akDyYFmEkSrO+ttLJJE6Vv8yl8//e1Xrx9o6+QaPskdXEgbkbcAHxTYymhm7nOz9xTx3ZJv/3QC72wlFB8I6rwkeXPdq1+wGCMbyJyAqxhXS/yTn8ZxWMkqruR3WJzm5eiWv9jxiQWPdD3VcjTZl+pN9cezEGGoa+tndnyivzXHYi7nJua+Jdj8sozp7I6eWWYr8PlkhTreBgFUwwoXiwi55O+/eXj5DG5iJSWNT/P+uhpYdu0f4jNkiXAplwJZHudJ9iX773jxjjSZbKY31R8btdxobnD5kWVFlrKBdcxpEDyAJClyjMyPVMen9jksdCEBNJe/k7yy6ejqVjaxljHGA929TkjJSNCuuRJPZcaJAWney7Vs5TV2cppcemRReVEJF4cYM7iJ65k1CeBVyhwijMwd16DSN4lMkgrrK/pRejcMs5iLGaUsQtEg0slXXFvkIpYCZCWwqVC0rVzN1eToZS9ZCgwDRZpYy9JJAw+gizQj84bT6WzJkDt1z89EJXQY4xnWCAVyrRFasKuJXLDTl6D7/JoPpqWc89qq2M4UC1k4qYDpJUmU4e6R7pZdRSXH0iOOSXMiai5iO+DiKDs+wZs7uXlc/pNW0PewCBkNz8I1WrpIkJ823u7FqarqSn5wohIilVPXIFzipAYczlDApxccdELAJyal2ur/ZAARNnmajDKbOOOx8VYb82k9lURrGEBJNlYqLTPrqWZOcpg05jawSgec2r3emoNqF2XNfkvh9oRORkkQpUixSZJnquubNDpLJToB8ix7pHPHILuwalB5Tcq1DFUe5auXjagBuu6K3s4SB0qUE14qp+92VYWmIQD9xRbPKpRoyi3/QZzfs41mPDbZxUVdEkJRVd/3SrZDVeV/LvggRgKHYkbVCX0DS5gSms6SXmqc1fcsfCnHr9hHvHadaQOZ8N25PFQ1uQCmcRlvLovARY7Y69UkACipRu9TmbbsJX+T4RTPMk6k5jAsQwnlJlyvq55V9K6Uq7L/XCC6OIDtyCVbv8/qAlODAKqLPJ70FMlPi7pFsjjVgEYFWyqBjPo88DwL6D86oyr/2w+gC+DKZQK1F2FdWsg1EdVP2Qy3vvTfhq0VbCRWY2PUB2e8CMvWsmIvcKg4ILkLRl1af3tLpX/eHKuOThLBk7gmAv482Zy47NSCZjbQTREvCqxc6dQcjpoCyjhL3e3gg+/dLX3521PcShZVkoCZOyMmZVnTi5JUXjDXBikS5JUQQN/V7MmrTAZlZOmK++QKnJyStwfEIlksEiPy+SQzOp2Uxxx0B18ZZDxnUVIWNf3oSScX5OMw0qaaIbT6PKZ/b/gNt+EBdLCJeE+gadHAJNtAfcuZhcPsPzSdGeR47XbdGaghi5+TSGicWgLoqbUjznl1OeKoq1zfSBmjRJL4sIOcdr9/anTYIIDqglJlAK098zaX2MYQyZrqyg54Fs3MQVQJswRA3nKS+uVOlgBNbnPy99G8lTJMkZgTH9ZtntSWcDb4nJ6V8y1cjJXfSnGALbjEaxLkD6iSItmCIpDPwaHNtv5tXJYGmDzrasfgrVjJoxTI9Cf7yoZ9l1M0KQvrcteUNySHEkufWvP1Is/yGyKkqsPw9m65wgl4XbGrxytXOlCNIFWf6yigSY+stu+/6l9GFk4qBynQerBlfwk1XHEV+Zs0FZZAUs2HbW74/PmPF/gdD9JHVMlCbHRPqy6Oe131g263BrqrHdH/SeWV6aPcHDmxjTzKGE3HmscdpX8mlTAp29tU6+eJfI5IftOmd9yXzD7HY+SJIelIdc3fD7BtpRa526riMFQllbycb2kd7ahTvU/uoZU7uYLKSaD1cBxfhS0NyrCe/xy/gFFSTzni4xs+1vW6xUnGidS8rLoWou451VXO1VyH+qoCinZFkOr6vluKgF4GGCZD05FSrWf+NSqRMLEEhv7iHfV9pXqHPe87dlmGq2inWE3NVEJBbqx0sIVMeakc6EqubiD3GUeLctUtOVo9Uu58oCXktpBLi5300jY669miaE/dlzWJTsSHTBLv3jdi7f/AICu4otZNS/z1gZPZiictUsocxSH47z0346mqJWJHp+Zy/PpVmymZIFVq9zHA9N1dW8fRyTdJK4SzgaEXlaRN8OEozCjRRLL6jHrlv63MjC+B+hY5F3/7kZR3XQp1Oyz3TzuiT/rikIMaMll4PNBhbGZtjdUez1BXHs+Nmwz5yL++O8ZrNnMozhmyxIWyqjZQLy5+sKLnFa52FCFxoIbaZnwoTb9aY+WdB+ibvEEHS35SFOOQjk9OySQAqG75lx2yKNP9WBN72EGT2LShAietFQpvqA5aHilrLUn1xgBHpoQe4esSNB2Vsp3jdByb+ZIMYaTsyrBtEsIYuSKsZiQuDkt/tvD3OR5iN03VfVfqjizZHWmXzEjPEeGxpflf/xyKvawXM1ak1WR2KrHDH8iw/AepUX0DqMqNTxojrQbQMpsFh+b8lZ9qyx/nh7xM5VFW7xFCdVezmluoausTB/WBUTMTGXY7SuisKrfMc7x3r7GNNnfpj2LKOUnB+Z/D0Amh9geaRtyzhg7tfemDx2/oje/hNGnStJAQ8EkY1b+64zi76Z6I8JePKcha1YwigsN97GH5ljVft5wyvnaZu3rk34YA9DsE5gKgQ5nO7V3P5Bf3LzjEGxxmCItm0pTx0zpEHOZ7RrkTz2xJ/xRmUG7dqytyFeUV/omoe8Xn52/PaVMmV4KtgJreMoCSLZMJml91mRlHlv3j9P12YmDpEd7gTXaToVNc5z8ZbJJH8p25JiKvqCeF5hl1qcCTwChFvsMeVrx45ecdxxHTaWnv5SpkwwCqFGPwRrYSUXfe64sf7Ho2VXI6zzQdpofVZGp8oB4AmcuI9ZgU1+hHcMZSf/L99zGe5AGa3Ws/NWd3Qdg4lUJVc5GJlTjU9jZT0NXQE0qUiBWXbV6wudCyb9PT9/Q0vcSt+DuQvaF7ZIJ6VE39rRrw0hNagfephIO+r8AV/U1zkp9RZOWjyx7NaVZXf8hH1jhRCfmciOSGdQLcG9g4eSA1fMkPl99f4nn6SSF5ERlsgOQDnWr0Rg1eV0va5L1lwb6YQYysxffrCVy+yx7mjb3zC34ura8aqixRuGzkHNgY/VEoL2qSTHWZIiXWfGVW9jBPEMXWojZHUKkSGKeW1zpKpKe/Q4BqQqwGQ/7ZCBF+znM0seaLc3cUa7Knkg4y0w/PcoeygaZh9RfL1eMVsrVtMN9yaF0vS5hHQfHcwdOCpohqQoXyF6Qzk3SBpV3p0QsRkjzB98lx4S+u+QvXdXCVEcg6ZQRbr8dvUQLVaFCvWA1gy1z01e7DwzzCEMnqMCwhHypvIlXZz5XVFM1XbDXcRqtH9sathi4pnuM7DLBwx3X/OuEU0cMmn4bwR6q/q19CSKBqXq3Az+p+U4embPLQoQ8cw+V8Sor/lFPg4rkMM3QxnYd+LnjtWWYVlW9K+j3foJ/u3ts2Td+frd2jxn0on+TxSQljdMZCZabN610sZu0eWdhz0TGmsaT6DaoeV2g6JhU8086asKpH3DrXREnzW+5mkHk9m27oeiMrgrHgEfmBTFgVDpmJyOVJNXryP8tUrUyUzs3Hb+zpPEQX3RRrkKiDNgcuWT4TXN3OeXfIo5WeRclwhh9zP2dY/ObGTfPfGFNgk+vVOs/pa9XEJaQKy4b1J3rdgC5AmXRx5h967jiROko3cymItF8FwbQ0PqBWwBnpK4PPQpw0u/g2v6HAij/cfOfcnWNiJGrPQRoUVXEnplZDkwl+rAS6Z1ZXTbwulWg/0fHKifefjB1gFvNqT3WqQUJw4qZSqJYSuekhiHlfBJef8j0OkOCSB26+c9qxMUVzzEl3MWONSWJjJA8jGRWUVzUR8rpSYs7BaVt7bj8Z30WGBbiUxfB9a+e9eotMcilJt2yudq86JZX2W3iE71Ng3oGb/vTyv43kCzXgUPqtPsYmbWIYhigkgLqZ9edOzxr1jZiVwLprX/uLvRt6mndSYhFpStW1WGoSFrTTX/WlEiBLkzudtIrQyvP8gDFWbnnfzYteLlCsLXK52uSrDJOZAU+KBMpQV3X/+hH9aEWOisw+OPv/nL6qr2Mvp+mkA2pfuSTlQJd0aXstozc+dGpPk7TwEt+lh+7jG98/49Ao5eoe2eCA2Xy8wVX6MnEJ5YXV3Nc34io7YxnzWzk7TvvxRb/MrTy95Bg7KDCPNEXDfknVVv+q+/X05QXElWksHuMf6aPzzM23z301i3zwTNYie6oqri+VegtvEUAZNqvxuh7MyJRKneEizcMr7m/qP3nNidhODpGgkyheFuvDpCqvbt/UnEFd67WIkeAo9/IQWboO33LroheyqEppmiLdBurQTkogHaRMKsElpc2t05USUbpfnrOZ9tHz9lu7OYpNsrqG4q+0eerkh9P+FPq98aEEiwhxEjgMsJn7eI0oK57aeNu8nTmlN+oGNjkKNatXJz+MGk/4s2iqpVCVJui9GiVKaG0SFK39G1/93IF1wzTRxSUsZjrTiJGtcoeqd/dtl+oAAGI0EcUhyxC97GArRxmnq/cdX1/9vzK5QsA36EvbWm9carAexgqG+mE+dVFJlQRTRoOPVe6wiVNiz53bP3Jkw2A0SpoFdLOY5fg5sbdfQbaj29bKDwuNUuAkBzjCGDDzxMqfXHjPzL1FbceBDpFlSKarSZ3puhoAUJJDrgaMJxsmxWBKo5TKJgocveLQhqM3H724QJ4WruR2nOpz677M+XvoVbuU4Dg/ZzfDONjESTB7+6KHV943Z3ep+nXMsi9mCihlzLw6eCwNSKBena4C5u4tdYU/yEJGSFJmeNqJSw/f1HvFoTUWd7GObO23F9Sp8QKRyv1JHO7mZdpID8fH2vZ0Pt39WPv+5lM2Oa2Xbh2ozEAl6Hw4KQz525p6paa4BymArsDqtTYxbByyrQ89vP3K2fwLVjNS/VZTW5EVn8RwSZPgQR4mwvWfvfB/l51IIV6M4VCqso6qLMm/ukaoAqJCGR7A0LmwWq3OSeuqrHo+3bN5V5Up4ZApzHz56Ad7k/vpYAEuJWRG4hGplRrSOPyEJyhxwSPXfDpWiI7bjkux+vUDwZZXZdLV3qiOBGOcE5dQubAan+uJjko2WNrdaMfMzGOc6f0znzqxqT/zJuPMogm5+uGvmEVI0sO9vIDL+b+98a5Yvoi/E1D2VWfOVerNzDbkyN4WCZRxksx0dVJVjfVlnKWy1npyWGROT+cTp6/snbGTA5SpfPVTHEs8CxVhlCf4BW8SZ82P3vOBprFxBTJ9z4SuEUGypqdvkksKE0RDaBsYDKtuBVUZC7JFumn3um+TYmDGlm/tfs9wKsVMFjCPGcwnWvXMCXr5Iccp0Hns4q9d/Pcxxgl2Z35L9SMEVQLVa8LmwKEBVKWqXkhdL/xU4y8zpJBDjOBy7Nptnz68frC14mLWcgtRitgkeIl7mZ698J41X2s/VqgyOkGTJ6dYz37NUKV+WB0uEw6ZyukCL7etWQpIOszSXur3qeRRJZCecXDpP3X/pmtbzI5lSk1HrcVMpwREybGbcvHaP5tzQAY78r9OFfipmW6ApAlSQ3V1fXhSnIieM+rqoC7EyGxSHYSq4KZxr8BaBtp757+y5MHuX558d29nkiVAGZsUxzgYs+YsfMDS5Fpn+nRuRY0eZO9UkXCNEYRxI6G+R1pn/3xKSe2MZIjldVBfTtSpAocso0SL3XuXPAD7yAIuBZo4jyh7bzt2aULpm86yqFxOkDhgSKM/FT4HFNYLh9riq4LpBjTuDyBo5dbSzluiNvOohUuBEp1b2opnOECF2S5wPgs5FXnhq/l4a/XXi+W3oHrUlumo1NhUAlT/HpW6O1sJFcbo5JWuQKrFM0MK1dPV5+LUcDY5eOyanvlNrKSIRYkmYD99809f4jq95w0usAqpM7Fa/uHXVS+iU5czLTE29RkYM8I9WzmHH6Uyswp5LohHM6M+MzfQOUTvXZGZ2XlPvvbukxSqLYzxDk7zDK/dtPemCHYx2TfzzYu/suxxGSO4lGt79IMJe7+/BB6VYXmYcg4/zBdMfsvEzgRdNetqKKuactmaS5Q0o9FyMkGOPPHqslOJ9XTwCqcoQex016muvsvyn8wcL8fdSCSfGLILicGm3mS5KH4M1e+PtM8qjRUkMOrYz4LOlgkvUWkrHwgzysKQSzW8Me+1tFb8Wd2/6fWPH7ylzAauYqQGc4Qo0M8QMMJTnCJRW9OLEKPlaNury3615rslikrrQWG/SXkF5ccTQXgOi0qm8nnngnJKCZkPsRoPyiHI71ZwIy/8za+/dWpZ5RvL22it/mZTZX/rKUaYywJW0sQpXJpJ00QSF4tc64nl+261Il1bIkIlvfrPzh0FBUITAxg6lTMzX3k8aD6DM5SgRF2tM8nOWx96qEgUsDnD5dxW/ZYNiFPg5+ynnTgJWiiQpcQoRSqL9pWdYEXuvPW8XxWMrEjPU4LCf/P17CX0l9DKuVHBDM59Ve/tGlerV6pTMd7qkKD9gBONjbjL9sWOsJACRV5hlG7OUGAoO5QukCBFArBIDkbzxRYnMu2EEx2YB72XL/6V6i50O6zrRHBKN3EJ/RvrpvUITqRU42ySRhI6nTGpfMqz8KFbPmKV5j/qprIdP31hKDaETZzDPMsY++hiiNTwO76V6s/OzLcPLS22DS9InI6fwVr248s/V+jY+eFoftl96gSZi+YycA5S6bAyGPqr4P0G6zEYrgFXEC+nB+amVLskhy+616JAcujxfz+Q6WI2eSySpClxhhxJsrPBdnzZOrXYJUbPuue/vPY/rP9KibzCT8te1Au8zF6FU+HQlH6QkMtzBFwRBG392VXX/Wya2HPFA78bjd7GOgaxyLCF35KoXpMH4tVt7FGWkOAg/Thc/+8u+1JRkz7L6AHKuXOlsGQJ/btyatItB6z7U+96cwJAT5H0RN+7O0GUniVPfWM4upy5DJMgT45LGGAPUeJ0VH/sPsM4A5Q4iEsWG4fj6+0v6esgOuml9kifQt1GTwKAup3wQdIVwuRHdIJJvc6Et9Kpwa7dH9r6V0Mz5tHB48S5hrnkiXILh4ARRjnNMfrppQgkiRWSp7t2FFpH56/8blmRMdm6NxbT0KimJuySZkgApcLJxnQ1VYuawtcLZ70r5XURyvbT39h2e5IUZfYyTIlR3k07ZfIspcwjvEiMFNMPz3h5xisth+Kj8cHU6Wm7C01j86ftLNVqDLLDoNrcoLURmbc07ERkkq3vTjA5XP2JDZPxM8MJV5PTOPuu3He7TYRxcljM3VXKHJp/iiYgRxdL6aOJOGWyrf0rI4WFjy3ZXmScEpnRlp3jyg5rNeP2eq16fT06VO+aEJ0tE8qfmcmeDZAgdTedi0mE+ecjjM7c+bHBVc2H8h25GTP+sOLevnc9+6VTi4pxsMmSZhpNnMImSpYiMeemD625fwxXqz2oj7qSmvbuXEKYkACaqw6mh/PBMPNjk8CqN0VeexaVXxyspG5lIuTiPdeOdFlWNHdg4+Hrh9psorSQYoQiJRIjd17WubNgDDpoqt2AUQSvkoTzzSG3dgQrb71UHGMYQXCbwbYZ6HpHI8Sq9Ok4fWt6Lt9/a//awWaLGDY2Odbcu+GjlusY7ZnTZwbK9cyKeqQBANVOmUd18TcZQ1X+6uWk5qSZwFeefIORRHbeyKxDmw7fPNaVbc2z5Nnb1kfLTqBE6XXWBziIN5wEAIPmygyX69mOejtodONgBdyhD9uvOUoUKFBOleK7P9S7dtn9Cx9FfJVUPaq3HtkRrM6TlImYEhOUdXgdC85ITApCDkTWLGvQ20a7s/Ily1EsylUK1ZQZMxLQ6wvO8yGcDQxNJgRbOZONcQ0o9LAgCHid1TZlVvfVlbpKWLU9CqbFC9qGgnKlH98G8ehhSshMRK04iBiSwOhxoj9sncdRl4Dqcd0m0MHxmWrbzNw3iCuylN6piw1hbOA5rYnIT8FVmxG/ZRy3AupWa7fq1F+/rqCW9HPWWVsy7wmnwuf4BYxTRS9TADZYpgBssEwB2GCZArDBMgVgg2UKwAbLFIANlikAGyxTADZYpgBssEwB2GCZArDBMgVgg2UKwAbL/wXNnlN3BjlPPgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMy0wMy0wM1QxMToxNTo0NyswMTowMCEVgo8AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjMtMDMtMDNUMTE6MTU6NDcrMDE6MDBQSDozAAAAAElFTkSuQmCC");case"animalDeer":return t("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAQAAAAhxq+mAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AABt/SURBVHja7d15fJ1Vnfjxd5JmX5o23dI2dKEbNKWFtoBQCkqlgqIgDqIOjsvob15VHMcZnUHHGRWd+Tmi/vghxR1lURgFREWWFmxLC1balNqFLnShzZ62SdPs250/7k1ykzS5N7lJm/Q13/yT57nnPOc8n+d7zvme79ni1vlfiUXiz3YGRrqMOtsZiCxFdimRa74pZyjFo44YL1dmFGHj1p1FND2l1AmTZYfd2e2PzLHMRvtWmDtk6SYZG/r/CSVkqEmy2CURYw4jDXxDgQokuMSloXs7bODdHjdKi3dtfW72ENQ57elOcbFpjirhCTfb3/SfrzxwnnERYg+jOrBAxTWedaR11avKwUEbuNVTs0etNmOUOyuVDHqqdV4KpvtY0ZINmh0hw823u2S2b8rcGzH+sAFYqoJ/mbry8jzfMG4PqjzPMo/N9w3NDvHDbLmDnm6JOv7/1JXjbnVvtUJlXMYstzDessgfbNgALIPLLvJesoMZ36Q13iO5voj/pt7G3CHI7j4WWPB+H+Nyl+80nm0cNls6K8vUjBSADYySnWk6LDpmn8P8yHmfkGi/TdzpyAVDkG4cbbTJh2UlsjjhZDkWslLESmPYAKwllzHIZBzrWOFjH5SPh6jw00VDUIDJYZfAUSnO55pmqVBWhTzmSTgxUgA2MpYMZDORZr4/zU1Ybw9/59TQmDDpUHQCF3I1tXDsFB1loW8ZNgCbySAFGYzFXc7/MCo9xLOeuDqiQTEwyYZ9JVhEhhWHoLkVk2DWyQjxhw3AVpKCZmkao13hX6+3AI+obvNP44N11BDIeNh2CAukcn0J5GQIlgY5DRHiDxuA8TTTKqSBD0/yQSFD+gt2XTFk6SbK5dkGe3AZt4DcMYKlQXpz5HwPD0niJHUYw+SrZ9whGQ+yx7cvMbUjXKXdjmoZxJRz2cReXMU0X5AqJwdt0BYXIfaw6cqlUkE1VpK8Ug52eJM7UizoCLVZgTZku8RgGTVjqHeocAYLXGPdNxUyT6g5qUyOEHvYaGAGpZqPIccH5YBXOW7t0mBthGJbtH1aoY1V7ywYNC3MhRd3asQqC3hkgbk4CrvGRog9bACOhjdKu9wr4vWgbRiU3cxw91umnH+lO6sGrV88Wh4/OW4P+LJ7fBm8SonNMyPEHjYAJ8Nz21WH3avnFEkd1yUsk/xBF3MFpf1NoleZziuObw1dtZvrR9lFVoS4wwZgupn8rM7msHvZTAo2LEGp5nwmyiROTn1Uz20I1mV9Si5s6u55uZwVst+MEHfYACSf7Z58OOTKgqlcKLM4dNUGCfFIg6ymiE8s9Zyf+Jk/KO4z3HiZ/OaQii5358GyvmMOK4B5cvl8fdO/d3hAlpLs9tcUdgaKixPqfo1pjPjE7d44371+eGjekxEKfEqHDdApCTAqMHIAcjkHvOW4b4euZ7uce134lGOIg9Y2oXppfKQiXOMNPpv66YxP2GLaq72EatYmvCPZKRXwZqRxkWEFcLIbKXDbLg+E7nxUZrx1Mp5UFgIYEAj2XyfVRXhaCay42DckpfvakaBZ0g3RC37ofutU8b68boNWhwjYNn4kAeQ8V/GYrz/jBTDGvzBeQdOEXzskjVKqgobN5EgAM+HIMbnez4dNfqNHiA325Pkvd+2aZJZ3L+n2awn7dBngGgEAuch8vuypH9gBZruL2fZ7yx9kcZhyidKY0KrvWjAJqmpxMXq6548q5d7Ez8f9q0/5fGriim6/H2BLyNkwkgByjUnc5PBdDoC5vmVilpfdUsoWDmIeyyJ5ixOhrglTjeaaSl119gC53vMRi3nnmE++uxuq3Ur5We7I00BYYRSLHP9KcKTENHe7gF972gzlRZjJYpMPRX615mCHbzzTOdXl9xKWMU8uc5aF3DCd8geKrJ8cMa/DEuBo7+WkpY0NdyoCyb5qlZwbbAn67q4gzk27Qzp6emmFpKC3JJVMwi3HZifIj5NnpRvTV3aLu82fuSu+ObIXfFgCZLz3csjFNXWfD9WFXONunzZ75UpMdTn3Wf6stb0ayfUwYTRooSlk2YXkMFx3ESa43YQuMYv8F1v9YGlYP7w3GTburO6S62ZP7jG3ZcNdMz7sXSDdcstDv3/GUUXr/cPe3+09kGqMTJlSpBkb8uQImuN5wauTlAsOGIFCz3Oty1eeJuVKd2mt9Z6MMDfaCATIZLf4bWHzTA89+Nfr3eG8bhn/ltU2ftc3PVG/oX6Pw94M9vbS5JonVwWJ5k3BccWszQjpU4P9NrDAk+dZ3CPVXb6rus1VilaK5Atk2E0u6i4nrXeUFR6XdbmP9WgTy71gc2chrlJit7U22pnpFDd74isutNU3WTpty7tQ7Hm13OrR0XFfN7HL01r91BqOut6uG7t9sBEKEPZZw0S3+J64y7zD/NNgLlKhQo1KhcEexxbfsdemuSl34RFPNUh9i0vs9zyz/LeL5/ts0AfZIa/4lUL+3TcSWt8VNogw4gFSZo+d5FvmS6ZOdKWF5ulttKLKHmvsQI67jBPwT47+2l+9V6U/8jbPpiZ+zsIucSo9b49d633FugUuimj9jTCAUGinw1pHucaHfcCoVAtNdUGvFX2xYvNkYJN7uHbyi7Ot5z1+k+dfevQvHvN46y0JL6r8kU++J2rtG1EAodI+RUpItswNVrpQ3PU+2mecYj/w+ouuzVLN+/xqjrs6dLfI864zRVADr/O8x9skXGrpuQqw/bWPKGnvxn094Uu/7DP0A56p9HMF4mT63gW+2vFLmT945sT1Yzs/wC/8plHK5adpm3uXYWzG9CZTTEGdYs9FEXolY9Z/NtgLfot/CPvlec/UXD/2urA723hJP6cwjUCAQUkzS4GKza0O6mvkbLKP+qgypHYbILqOjOvCDJmd3uSbOSL3f8NlxAKEsSp2UyjS0KNu9l77vdu7XD/HES/O6GcehmlfODqZzAFFrw/Ks3bYzP9NaOvvJLoRDTAXfrZOpDl8kSXg5+xz/+J+WIBBGdEAx5jNg60ta2N+0o8dYVVycCizXzKiATKffb7/hEjD333LY9bw7164Oqq1SV1lhAOcYhZfc/KeoPt0QLLa49zrawvMHkDsEQ6Qi6lwU6EvRDGFo6u02uHnPmId/+wzszs8jf2TEdgT6S5veI63ejHHey2PyocHrf5JEdV+6mlrF7lygKmfAwAFnVSLfcnNicZZ6YYo4uzyVa6xnlz55gw47XMCIG/aqoS3eLdpuR+4J4oYT/olyYubZpzWyI5eRnwdGJRp3usGea+40/7o5g2mQEZJzIsnzhGAMCPoJL1+UVSh58H3iz0WQ/vNOQWQEhItOT+qsDN8nL+yvtL2mNI8pwAWs1xctEtyVvocy32koNuMhf7JOQSwXAl/l9eP5Q+Xu5g7G2Oarn4OATxEghULRFoaEy4rmOPiN/oRo7ucMwDbHORa2f0Zz2CeND58SOTpwr3JOQPwgBPcOf00o8Z9SaE6fp8bdf+lp5wzAHfyVtfc3M9Yj1JiYywLuc8RgPsV86k8l/Ur1g6v85m4xliWco/oMZFO2cpb3bIySn04KlW1Vz3JAb9eLtJ6uL7knAC4z3G+mGdFFGEr3Gd38N9WP/K1xCgnEfUmIw5gmwqV6rVo1qxVs8bg/K0VN0elf8/ZXecjMlXYqHKmpRFXw/UtIwZgmxIlSsOd9+nSpMowxnQ/mGZZVM8pYZ9fZUiVa+YgbGc2AgCeUOKIkuCU3SXeY7ELjJMebjFf5JNRPu0YR7kh4vKFaGXIAFYqcUy1ZnHiJUqUKEmSREkSjTLKKAnixXcUvDZtWkJFs0mTJvVqnAiuYLvIMre6QmK8mabIkixFsiQp0o3vx3SMOqrCl9AOO4DNiu1VEpyhnGOGDAFN6tSoVt0vkz/OeHkudK3r5DLfHHPMCy41jCF/GrtONx9GAI/aGSxqcyzzdlfK6xGkUY1TatSqV69Bs2YtocI4SpIUadJlGi2rfYxxvIUWmtdtPulwkUEDuM9OJcGi9mGXkWuuaSZIRqtGDerVq09uSK7PadQQKqatWrWG+CVIkCRJihRp0qTKMs7UGF3u3SWBUURaxHqGAe6zzTFWuNkqFlpmrhy6+UV6ekmiuTPYMopkMXqhuz0vVtloOyt83nVZVlghqwND+3eOO81VtHdOf2/gkjicAJ60Q4ly7vQfed7pytBrdhaQ06E7uyATSAxtH3C2Ae6xXkuWZW5329U+HgWs01/pRWOHBmQcccOiDnxFATe4z/Rc17puQOh6AzeUIAMEBrOuHSDAXQr4R3fPcLvzu73M8AbZMhzswFNe5iZ3X+GTfcAbniDrOHnWeyI7NKX51iyfiAre2QJ5epRVlIZ2njlbANsc5l1m3RrKarTwzjTI093dq5X1kwbRET8AgCUqWTXX+QIDgtdVQ/rTTvcGsq87XeOVwhuD2SkcEEBcMUtAXJcMx6aF/dHBgVuShTQ4FIsLfxAA1jJBYnavAAYH5OnCxQ5yf1RbmQwxwBzKlRVOjIRsMItzdH2bSLVkod3cm93PtUh9ywBq01xYvd49oWwGQn/h/0W+2/X/aH/p+yrS9cu02Th5EK3AAQHMsYCv+chOpR0Z7Aqqb5C9/T/UIOus4wHFA5mL37sMyA5crtXuF9gf8tX1VnT7Vxv2XpwHxwB62Al+dF6/llMPEUCyKNRUkRQQTR0YS1s9WCD3eJF/tTmarUzOAMBUqDg1JRAFqMFpq2MF+QuO+NZFwR3yzz7AFDhWMyUykuEB8hlvcEdC02Dr34ABJkNVfT8K7JkA2RvW/R7iF367vN9rMYcMYCKcaujoDQ8EX98hB88kb3Q/RT6Z58JBxxcbwNrGsNftLtHii0YPYwN5j3LeF1971RDgGzDAUVDXpHsrHMt/gwuy/epeO7jdn94RxU5sZxBgAjS2CAwavoGA7Atq8Oo+r/IpD1+pv3shnCGAkdrbgf/XX5P8dPHu92fusHqpRUOEb8AA2/d0Hip8g2GS77GZz/jeko5zEocdwPDeZs8QZ7tm/BX73Lekn/OmzxDA9lz2ZcYMJsj+433QQf4xuW0oTJfBAkg3XH2B7JRDNlhuZr9A9rdv84J1/JvfXzmAbSTOHMCAbmZMXyA7/9tgy/4ts7MttTjkGYlVD7uD3OgXPOauBYN2bNDQAIwjMIDie5ISn6q6dc1fr0kZa6H55vThlhxI3+aP/N5tUwa4jcQZARiA+MjdsZ6/NSjiNWuscadlJ276401/HJ1svjmmyeuzCoi+wJezX1Q7J5xdgAnxRKV14XJAHb84zxL7j5X85thvcE3jjQU3FMwj1SQTjZMtQ4oE8QKhOdOTTYga3zH1/CVzEGcfDBnA6BqNrqG2U2Tz+XLlCq7xPbiueJ1/lOvS+msOzT807zQTg3GBT0eFLxDlcWZnGWBwm/WEfulfnIA6r/Grzk0OJ5hgoRolikrKnjr2FEg0xXiZksRr1aReg/zXHyo3PqpiXA0Vqc6MDBDgSTg/p4cdGAnkBg08NL1bxz7DbLPR6IRK1c21h+sPN2sVECfBKE1KJ3DK+KiK8UkoHbzZL0MCsByWTu3VDuwpcQIabOI+Bb35hZNDBbu7/IFyTkVZC1ZDSWyLIYYYYMDrrJA1px92IGxQy4PT+r28L40yqvvo93Qzk06qH9YauMYJvjgpNL0oWjuw1svc78/9P+g2eO7mqdPo9/NecpWVXdI5SclgTmDrW/o9sF5ljf38P2+9WuC0f3q5s1YNP5g5gHGxVFqcqNF9IP64tap+stbxLqkFAZ6pItxPgPs8at8Y3/X3V8vv9jp9gzxqE1+3fSAHLafA8Zoe6a1TX++b9YFXuqR4ZjWwH0V4v4Lgcpqfylvu2i4FKnJBXsub7p5/eiMvgnQfA2wvqhu5x35vnpgeXhfXdDs7ZFgA3G+HEt7mn1030U0m99J8nA4pvG4PXxt1ctGAMpkI1Q269nte08JDKKqa3lkXH1PP1tEx7MMxBAD3B89/+Vu3TXClhbp7YSLr3xr+5KdLBzgumwg1jd1S2cgv7UZluG6egvIzpX9RAtzBtdbmWGqp+D7a2mJ/dqkpPUCuV8qXs6I6YqfXTNY3d3nmIRU8MEkptY06dXMYAixVwt/mWKUvXdvvVaWq3zTtpm6hqm3ix9ZeFtSkAUjnGGBnyodg42SlHX7J4G8nOYNmdFQAi+Hdc/Q+hNnkt3ax1WtZH1/Sw8W1Tl2z78yIYZvN4AlxbV0+2X5eVj9VAcnhffIaqEjpXwJDC/AYc6VN7LXBeNWfVHKHRN9ZajLditqr3OX1RTFkMp6OMcD2T1dIQUg3s1PDdLOKYm0ZA0toaACeZFbwpPOe+lfqd8r4b9/VYNsCV/YI9SK7/MeCmOYldw6itqdcpI4144P6NmV0GNrqM2pGRwGwVTlXJsg9Db7H7eGoj1mLu5Nc16P4HnSEf0ttXRIpmcgSCNfsCtibrYo4c8aF/VLL8e4nBQ+lROyJNEJ28mn6F4/YwyoLE9a+3QwebrJf9/7IFnZ44tJB6xe0P/cYvDFaOUuZGpaveiqdMSswCoDNkJnUA982h/mA+y+qvM0cC3jNM3/qgbmRUwZnu4i48G5cFUVaM0MnDp8K+2QNVA/mYsKYAbZAamKPjvwWnvToVa6SjTzj+U65gh694MFYHN4+AtP51GqKSTebI17eHpZiEzUGbDANAcBWSEnohm+vCu7LdVFHuEWs9dSWbu6EuEHZYC8VympUdnyeGspIDa452loYlmIz9YO5HjhmgO3DR139IAW87IXwnsUck/heuT8J179E0kPVQAwSZw4PBxzueG4tFaRKkcMf6xWH7p/Qyr7M4QSwDUbFd8FX6jCrR3ebc7eAtR4q0BQWMonRXc/1HZhMYb/Cgx3loJ6qYFORyRGqQik2QcOZ3BAsOg2Mj+vSOOylxbPndbOB5sjj+1Vd6sE0xodO+o1JJsCWYu3a3UJDsKCmURJ09wcEghVO85ncljO6tAJd29aDPO14zx3D83nZQwWaO0JmkC67vyd99JTRcOBERzlooyWY+RSOUxfK3XAFGFrwE8x8hXIeHnuavfdmyuMHVTZ3vOhomF4dczYTjeWVptDqvEoBDmaKQzKN6us7cnemJcpGJLwOLEJvO9/ms8n3t6kPhc2G808OQkbTKaWmE1OgHS1qmsLyN8wAtmPsLMRvslPp6V3zM03nx7UKQmHHSeNtJwahFuwsqoHgZ5kZHKULrhdoDscXfyYxRl1dBDpAlvKqbse6d0o+W/1wm5bQK+UwnxMxZzSRGhpDHyZoX3YAbGgHOAqSB29nrEEA2EYXO7DcKX47rteZn9Pk8WCtbaHwuVxKWcwZTaBBR/OUQFIwb/HQ1BpKLX74AeychxUsIsXw8qQ+YuSzyUPbQubzFFItKY6UTESJC33LDk0L7cEWdLa2hnI3Rjzzqgdxd7aYAbYS5vMNKONN5RP6iBFsi0/aLSBgimQ+9KZYG5K2UP8sCDCJrKDZHA8tbR1GVhLpoR788ALYnvXj7BJh7+98NnnytdALzeImMZ3ZEcpHCqNCuUhlTNDV1g6wPX8pZIvhdIZBB9gC6YkdRfgkByM5qGbKZXVFaM/nC5ju2t0xZrSFtHaApDCWhvYf29o67ISUDrTDBGATZCWGivAJDbycHdHjm89aO/8iICBPFreXxHj+ZROZJIaKaio5QYAJhAacOvo+k/X7lMMhBFhPvLGptHtBKInsX54qldX7Q9N+FvI3lmyKSS+ayQo6SkNFeFwQYOd4SVA3xzJLzDXuIAKsI5e0UPbqiWr6bJoZPMVRkC+Tb1d6NAaEjYwmubMODAEMN2MEjexs44YRwGpmCFl9gWCBronG3zuLYr/+S6ghuYrlttQY+OlFTYymfWghnQTja/VshcfA7NgN90ECWK+Qd8TLDTdUk6Lx0o+HktqQZsz2Hha7aecAs9niFBeMkhV6XhpMrNe+dr7T/zPVGP6+yObhAbAEbpzWESwLZkTjXamFycHx2YCAaXJZdWyA5kwzZCR1FNR0mFwrZF0ndjo7Ei3h/e7YGRwzPtsA97LQRXO1f9+J4rm6NApLP9jJb+l4MRo7vMj9l+DQVtCBG2gHOKlOaLr74olhzo5LXMCqhpgtz0EBWMwywqd1pDIhGh/zaLk8eNKGUMMRkMZE/qxuANkMDizEdXyO0VJYUu1EaPZqfQe+gIAspovpvMJBAziK+mBvpH3UtYmT0elRPmv953aPahQQkM9y9x2Ieyw4r6Bfcgqmjw7TszncYtxOuTJZfdAanU63NlrM3Cz2HnjMAHPZqGFthwYe1cwvpkc17jrHhXzRZdWhF5nlUlbZXjdlfb+zWQpXtE8vCdmWky0rkSyfB3zlNQ/YE8K7SFKGl9oueDLo/D2bABewz4dKPR36tjt5QUG09dhbvZM/27IjFHupm8QvcH9Zv82ZBrIlpOjUsnQJXHpMq0vk81Urjq3bFtLO0W6TOtl28zedbYC5ruYJtxeGbPv5XOvbe70U5ePHwq4THRo8xdXc6Or+mjPZVCmvDGuSCrXyy4nqcLXreMErJR1u3PH+Rlqib1WETPmzBpB82bS1f/lZFvE5X/pLlBnLksvDp+zoePV50vlQUT97q7nw/b840FGIJ0vjG2VpjzqF2fJ4ulVhh2M/3XKuN+f1sw2wRhVvSw/5XwIuNY+vWxitDuWz1mMv2RoaXj8aNqYbveTIZ7VXfueRjs7cldxoe1PalvZ0Ntm+IawtzoMP7R/igaaIAMvg0vB9by+VyO0Hg1PMIsocU7jNTzb7sZ97xB80brV6dr9n8OUbXeYKbz+mKITkQrcyy5d2K0euND5f4ZHQLIVKWyWSNtTO1bh1EQIc9AyvTV/49s4oNtl1zJTFTZdHmcjTDnOpZeZJc9jqjOK3D2DGarOX7Zyg7JqwKU0bvFZl1oLjy7HPGlZ6XHqCZG0aTvqR1XMPRXPe4cAl4SMRAqTYq7mt6saJYScAjrIvzUuBg9HuyTLHBE1Fda+0/c4TXrzw1LIBnZOUIMHeWotr5waXi8Uhzc4UL7ftzUeO0Q4e8JiCwJ7mnS2v+D9+ObdqgaGdLx1RA9liM9viFr0jbPvWJxz/jZvfb1y/EqvVLCum+W6/VvYOz1wcdorhQ6p+6YMfCi3hKbVTcagPMlv+oO4YfXqJYiJTvp1qbwg8/czFE5xvklpvqB/QerTYp34vUPas/9r2BebKUqdMQpczkiaZJHiKWPwZmicdBcAU7/L7ktpL3Fi+qvwdYLeNVs88g3Ph22WuQnv+mW2rtrWXzOeszpXTJVTCGVurGVURhgYH7VTBWMsUKmCm/AGtvIxdXrCHcZaZqcyfHBjvYoO7uXZ/JEqAQTnqsBLp5so9C9rXKWX2KnFSmknmnqXP2C79Avi/0lPOkTPWz578D1S7roqTTuNVAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIzLTAzLTAzVDExOjE1OjQ3KzAxOjAwIRWCjwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMy0wMy0wM1QxMToxNTo0NyswMTowMFBIOjMAAAAASUVORK5CYII=");case"animalMountainLion":return t("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAQAAAAhxq+mAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AABkjSURBVHja7Z15fFTluce/M9kmG9lXEgiENQQDgiCLuIBLFVr01kq91rba2l602lpt6+39qLftbW1vvdbee3GvXpcKaN3ABaGsURZBCGExJAhJgOyTbbJn5tw/3nNmzjkzk0zmnDBQ8stHOfOe854573fe8y7P+7zva9nKiIzIGuoHON81AtCgRgAa1AhAgxoBaFAjAA1qBKBBjQA0qBGABjUCcEhyRulDRgAGrMYZW55/uvvt7eUr1KGWraF+rvNErvA1JfYCcbyiKOWgEj6SAwPUm3vsBRAGwOHve8JHAAag2nlv7WiYCXAvAFXXec6Fh/rhQqG+2PpLohuTDwVybcPFR+8ovVsc38MEAFyRnvMXHMDqJUfvFNVA6oHpqwqeG+javrgDP93zqDi2cieLEEVf4jHPNRcYwP0PfvoH5bhxxpZnS+++8nvpe8Xnujll37I6Mz+pne+MLL81ui7v/YpvOHLEuau5jlzgcwDS9nrueEHVwmW3bXoFIIp82qmWQ7+2uHxFw6yOrM4s37HmciPjAajmQVzAzZekuxFeQDmwsUjgm8ldpAA7eIp+4N2/+49TxLXMdn86hAsoeD5dlQMvIIBH7wDI4yH582WM51Fa3edTmQs0kUQkC+llO4uYqLnDBgAmrFGHXTAAa+cfvBfgW6qw0TzGBj6niAUkkaSLMVH3WeIMALmb1KEXDMDjNwEsZromNIVbuTXAO1hIxg44cuJOeUIvmIZ03aUAlxu6Rz8AYb3qsAsGoK0JoN3AHSppA8J6o+vVoRcMwM50gISg4zfwCABTn9eGXzAAWycAZAYbm6foBCyu6U9pz1wgADszu1MhklFBxt+A6Dh/9Wp9D/qCAOiM3P8gwEyD9wnrVte/Qv/wADuyj9y5puTA/QDXBH2Xa8kCnLZ9D+nPhH3nLCfIFeHIdcaEd/UmYLH2D/e31c5/e1vFiu5UgCu5Iej72MhhO9A4I7U06aj6zFkxJnRmnVlYcUvDxUlHHLlNF3nCIzpiz4R1xZ6Jrg/rtdm/vDH2VEydM6p5akd2QkViWeyZce/FV8WfDP57G2au3YcFYCLLuNRgKl5hHRB7ekWRaBKdBYDtYw+tLL/FFd4xOvh7jDqRWtKdlLFn0l9TDwwt5qnF724CiOYBXf8jOPXxADXA9cvHvesJHTaAfXF1cz/5Y+MMfXgYSfTTSjR99A3pjramjF0T18aeTt1vsw98pSOnfnb11YdWiu/7PWNMStPrvA0Urrr8bk/YsPSFG2cc+EnZ7Z7PsUxnPuM4RSpjVdd100wvdtqowcFl9NFKODkkUcsZKjhBIw2eq1Mqb6i8ASChIn1fQsXkV8puc9omvZpUFtYN0B9Tf0nZbb2jmqY3T1XiJPAwuaalS/ThrE51mOk5sHpJ6Y9OfNWD7g4KSDFwvzoqiWUXB6nxe01MTVRr6wSXV2aYx+2Gvluv/6AEuORXcx7xhJkKsHbe3l9Wuqu6yUxnsYkJaOcYO7Fzgo5Brkwmn2wWanK7GfoebcB3M2PqPGGmvcLV15SuPPE1cTyKeVwuj2CZp3hmMQuAGr7kINsoIp2j1MhlaST5TGEsY8gx+ZsVCVNEdKM6zBSArROKnzi5VBxHcxOLvIyT5iqLLBbwL+7PzXSSKQ96D58OIwFxpyyaMtAUgKUrBb4wruV60oc5Id5KGuYfTEi0XSa/og01AeDnPxfG8ltZTPxZSEhodJIDgK2xcJU23DDAHU8KfDNYHuo0Dqt2AzBxjd6cYBDgwR8JfBfzzVCncJi1DYD8v+nDDVljqpfs+DPAYn5hepPhXJPwrDz8g45sbbgBa0zrhHe2uiJhGj8NderOivYD9sLw7pzN6tCgc6Bk/eDtvliIZmWoU3ZWdB3/BEBPojY8aIC7fmcvBPg30kKdtrOkVMDbSzpIgNVLPv8ZwH1e4/f/uNoFQIyuSx5kLXzmCoBFLAh1qkxUHR/j4hr0TlqNbGA7hZQAkLdeezYogJ0ZpSvB6Dj/uaU6fk4nsIs/Eqs58wTlwA4AFjyQsUcbTwewJ7Fm4RfftjVNei17h/8vq1nYkwRzTbHznivaQCcATTzARbRzLUXAYd6h3H3NxY/NeFwfTwOw/pKP3mwfA3D4B2PfX7rU35fVzwFIDnWaTdVJ91ETW4C9RNOLYje48nstUya95mtQQQWw6aI3VNmz8oaNr139z76/rOw2gPmhTrOpms8hoOC5lkln5JKpSz4T4ZjzSMEL/uKpAO77BUAkd3OCd4Bjt4Z3XHmXd5SWSR3ZkMXkUKfZRDXxGgBW541X2KcdvSO8q+LmlkkQU1PwwtQXR33pP6bbIt2T9Lwd4DHygNW8A0DREwvv9470rKMvFl7GFup0m6Y1/A0I6755TkqpEtY7Kqxb68rmS+52oBjktsl92hWIuSQlPyn5sT5KZ4YYq20Y7N7njTr4GIAblnnwQWTb4PhUANtzlY8SEhLf5koAip+oXqKNcmilfRqMMXG0K9T6Le1A3nqt825gcgOsWQhwqYwP4C65mfLexvpL1FF6EwDmyFdKoU69YZXKDRW9qTQwuQE6cgHi5E8CzfeJAWDdRw7VOE1rPsA49+fzHeSbACy6Z+yHwcR2A+xKBwh345CAVH5FONCd/Ml/eaKI8dcwL3DnJ8j9CF+hrOLg4uuMCS4VBAmJLB4EoOLm8luUaxpmAYxzozq/QQoT8+UrU0uCi+8GKFynu1XwBIRCbgJg5+9F2dc8tSsNshklX9V9XoMs5RgQXzXx9WDv4AaYtw6ghH5NwiUklpMDtI8V1YzwNc6Qr+nhO/ToUPkDee6hbOBJAGb/JqrFMMCMPRm7oIbN7sQqybZSBEDdHICeBIAYGUc3+M2D3tjONZAf0wbY7GOCqj50AGHm4wDv0KzBB5LcnDmzCEA4LFrkK5qB5kHQnbsgxZzB677u7fkcFMD8N0dvgXb+rsMnyb3e05d3jIa+OIAo+bySA9Wv/GAgz51S8jQAo7cauYemFp79G4DPdfgkrMwFsBy4HyqvByiSz7cALT7gBVYqhhZkMwAxNca+WAMwZ3PmTjhFsa4UVGzPB+6vXtI2HpAHkiTagLYB4EkDYA01SAEwtsbYXXTtQNGd+RAn2te4gMsAOH6zmGhySj7XBrR75djBcqF5IO0BXONPwt4XYWT6nDfAya+m7YPTfOEF5SoADt8l/JMd7maMUgZqEy75OR4ofw4dpJ0fGkAoWs7x1UHfwBdAyHsfYIcqceIvT7bOqCsR4TXcO2DeC+R4qGWmov3yf8GokvcBKHjWZIBTXwjvhN2c9Mo/YqKUmPVYI59rBVrxlfeGH6TEM8AAxuIB9SF9QMbugQbPggIYXyXs/9s1+Q8k2dQqesJKuSfagb7wSUFCbQgYZA/ipwxGp9kMWJyL7jGGz6dnwqRXAbZRpXuJYykCulMAyuRk9ICqKzcYvsFBNnAv9QHmyCiSgNMBVjdaCQt03nr1+humAczYM/1/AfZoQEhIsou3tR9q5D6zUgbqsQ2Mzz/II8CRQdEpn/qBZuwMpd4WEias6UGZUAcFCBNXg7pBrfzlA8IeOBorEhKdQGdAqAIDWQ484zZoDAZStEZV6zAFCLJPnjITXYdh+QSYVZz1CTRQpktqqnvGd4qMrxVPDgwenye2cH06TmCVjRiVOaz59kBAlnIGyPokWBvgoACV/uEmrxfS49vleUCnn9c3mHwo1jQ4wuDlpQRMAuBjXH7B+QJZxX8CUPSEcXx+Aea9B3CQozoYnfL5UUhI8oP3DoJtKCDFlPwTAZSXIKFMiasYFJz681qcQHxlMGNwAQPM2HPpvwIc0UGIls/HIyG5nR+6AsIWCEgxVF/nA5kvkJmyK9p2P4h9fT7MHgDp+uWRrZggvw6W4iXeTocm8Yvk+UAuzYN1DgnbQCAjAGgdIO9p488FYBO78f+iaz+/CMCs3w119rE/+fUPzNyZt+7ksl4qNE5s8xjHTsJYhIRsWwUcfmcKWZCGEGKRy9heUIV5jtShjVSwCcV14A2mEu91DV6ftlAFRLZNG3DhRVMAQtr+k8tgN4XuEAkLGSx3J0tZCdOBxFBlGSCOxSc+z/WrVeiEzrCJG3W4vEEe5RkArvihkYUEAgY49YWD9/YkllBBvjuvaaU8YuugANvZyhU+V23RIhJYIuQwPb4qtlCDizJV/Pgq4dGY7Bee5/gz+cg+FdM0AMD4qsKn9j0EO+X1G/1HbhkEYDdbWQ8sGzDfiTsBJHGEWOJIoYto2tjAZmIJR93uja+KcBSuSj6cVfzq8fYxUMZlA8IDiQMAzP61GT2QAADC5Ff2P+CK+IwF5Pk8H4YVF9A0IJaX2A3kk666yl9JKEwDSkstDgf51NKBGP9TlHC8cNUMt6/ENSv+9ilsYxGTBsyFp6kBko5OXxVTax7AAWcqRTf2JtbOgzi/kxm20QdEybWhL61nKwDNVDF/UJ/2N1C3LXqBZtXSFKNOTHx93i8K/jL/waxPPVfFnepNrLsUupijQqY/giZK6aQ7LbwrZ4t5AAdJ0ZiPDtwPVbj8lIIxdCLabb5VxQcAJB+yFzZR7uWWrs+JRVQBMHpLT3J3iiMnor0vHsa/NX1VQoUzMrHc97cUvHDwXsn6GS0k4K/iaeO9YfFoHARgVrG13xV+jAb3MJJF82+M/HDNJPqMfxyACWuF71e0X9BKUmexDrA1Lb8KoDvV1lg7L7FssGVOkg8lHG+ZCJ2M8lODw0b2AGE9M/9gZgk46Eyl8K5Jr4G6c6X9UyZYH/F5tleeJFrwXFw1qE2v/v7E2oYZYlIQtkbI3DkYPoDeUQA2/PdyRNEw/X/mPmxmCRjAVK+cTQDH/CRYMS7s8Xn2OA1A+me5m4Tr0olBAW4VyQw6j/jv5QiAwTqxGQCYXQyw32fiu/hCvipeDnFp/hXrfk97DiLbwJftWv8nfAWG3s3qzFA/hS+QYvZR3dyh3tkwwPiTE9cAPCN38V2q5L7sts7M9IlDlJOOHJCsgC62918frUBYb+yZoSVC+Mymoe9vq0EKs+vUv5x1gDDnkbAecPIS5aqHc7HebQuOpHCAEk0Kg6xPQPRYfOVU5V8B3DXk+XuuCPD4zOLnxwEI6wkBwMSypdcDNPE8u6ihiWoOslauIADSfeatMo4DNvu0pyGrOO4UHBmkGhE9DfVeCYFJ5G+L3/uCJDc31BtZmKOAfu2czdcv3/JsVzry9BuPJr9cdjuMR21xUxo6OwGY83DcKYhqSf/MkQOVfpo7QsJU1jvktVOSj1j7XeE19GsW31G3AlupByIcCRVmAwxwwvW4d1cUeddg055pnQgw2cev3s5BwNaU/5aSSEBTCHj/iTHutCCcDYTHzmm/+U90PcZ8ZDa+IcwXjqm96bLqJUfvaJreFxfdGF+Ztz6ruDd+7eeQJedASdNbEX2t7O3KDO/8N/f+Ek747dMA8hCBen3IQCVeTSuSH3NFJQBTXg4hQIDcTdpxhN2/BrWLr5AAKQrt5MNKaOqBtH0Ns85QLY+l6fs0AAvYhnbHooABRigAFWlBil9Ru/qpOTK0box47G6fL45o0WVv91ydWAHQ4Of1dSHJLreB7XWklRjhbfNz72oagJRS80tAgwBFo6BL5SGo/LVQAcSeVpebwvCZOEAZKMypcUE4nAkXjaP4LgHFD6OeSHiOACx4LqoZ8GrVKTtvpO0P7/JcnVgGYlcY/dXKn2iWh3cO9TmUSRoVfn6YNgBGm2jEMgngoZU9SQC7vV5HYZSKq1JfLdZ99B5F9oAU/dVg5mxk77D2Q7lqlos3wBgTHDlMBuhZhEb/yCLjadd6bM8DMcPEXykoWtDBmBKsff7sPS4k+b7mGxIMAxQTpLKY7VWBiMUXxr+lvlos25WPvx7xSSQgc2fs6WCeRfSfW3wWECKRTtN7IYYBtkwCSCFW99jCZ2fSa1rnndp5ADk+X14JSfaaj68M7lnEugaNPn8a4VV2aFgW+TIA0F4othmL83pgsUS+tjbtSXSFg012i/N+zexsBJScNHSJfHvCJ0DhMCJZgrvzsAEsv0WyQhyzvB5YtM7FFgCKRAnovxGziyYgpTS4eeMwbh3Apzh93Hs4t6wwcO/2sQBX+YAiBm+0JaBYXTzVTxOmHWFnn/NIwvHgnibzU2EyO+mjhBXPYxmWGTwGAArvJl+NV5EDnZpVUcRqW3rDq8ud/8qBmFojLmdiNmmujxJWdOSCzdsDy8AaqtY+gFi8f1gHoJ1EVT+7ZiGkk4fvbCDsnOPeC37ekNPmioBwTX9YqIJuIKV0eNqBBgD2xYNn5rA3QLUH8rFbAfLAD0ARw3sL+MAlJoLH+7i/WH9X9FXMlwGAEQ6Afq9HFp7TtsZRJzxhtQsApuGvGBIjl7ZGgpbYM1g4d6gtPJXsAyD/zWGgh6EyMHsb+Gr7i4acMKAqkuTv8a4+XKpSUwr653TkiDJ2ute9RVN0xuPBmGmHG2CxzQ7lXv6p4hfP3KW5WBL/892IdsjQgzEjCIkVDSeQ7/Vzimbl2A+GB58hgLbGzE/B25AuGg3aOk80qv3Z6xS/vaGPxynKKrbZoYIDXvcWtZK53ggmAYS2PBAe++rcJSho9zwQLrUbfXhTS0jMkD0QpaA3ZIg7JWbbvy8PnXrytyhW/bklhRigWEkmUoUCJHnc7bBm5cGs4lFfQjvVPgHu5UsgrNdIS+2iJ5MPgUNnWmvHBUQ3WIe2fdPZAhjdANCBtnQTPtUOzU5QEY5F9wIcwPewN8Co48H2QgAsrst+DPqGvfAe60rrjw7+zsMGsDNL7NmVpsl/buORrk2XVWxrgi/dtbYapHBZDmS1voEkmk16g62wxFRdu/WZp7ue7ir+U4PR/SHNA1i6UrJCvpdHgGg/C2O/R5GtY98HfL7EotVmLzCWFPGTKQ4eSikolp378O3DdzltTlvJfWs/3/2bbhN3qjIA0OIC9ZickqdETdDn5V8g7CXlXi+v4sVldNBHWBJbdPfP87pu7y9Xl5iH0ADACWvBM83L80qKLYH6YvXXZxVH10OFvJiAd1vNaGc/vDOlFPrdK4qIv3HczhSmsIh7+IHsYtwxesPacwBg8uHwLrDTh9aRTIyHeHfLYmov+m8QzpraqkRs0bHl+dNXGktM7kbwtg+NZwUruIo0svk63wLg1FV7Hg05QGWkvwmtQ6OYAHjk+3v/TX+92JPyIDW6136GvKh3qUGju+hc1vvo66grla8A8Nkj+rVhQwBQbn/ocCTJteruX6/TOfOklE59EbzzSDJi0fTmKcYSI0yqp3Q1sX6YaS6itjqxPOQAUw6BMpytBrlE7llUXVusm9Q89QVQprOqX+RUsgB74fGvG3keW1Pux9DltVyG3nwhr8Jk6LtMASh6uC5dmQYS18sbZRxa2aXZryXrk+h6qKHSqyYuAmDnY96Vz1BU8DzA1gEBKoNe+oZWCACKRmk26pdYORb9W2ekWPfSIzFsftCrIplIMtCaf2qxkSfKLo5uEMtI1vnxUpDoRrSXzLHQGDCo1s+uvAEiyESZW6mdnyayUu288W+rY+Wt3/MoHHe7uSmOaFYWsA746M0VRcG7ocXUzPv55r/ALnYBVixEEoUEdNNDGBE43VPHJv3VDIAGcqAoQ6a4Zw3rc6GYfa7vhabtE5vL/l2e9OCJl0sC4Ip4b0PLRABHTvmKXb+1FwbwKCpNfVH0eABcOOmihVZa6QGcdLvxTVibti/EAEXXKR5t+ef5JAaKvF2FprwU1QJtskOvJ2Y4ol3hyH1jb/U1H7z7f9Ufv77voddL3900tNd66dKbFhY+lfSFPwtMRHtqycV/mP8zM/AZ2l94z79/9jCkk+HOR9CPk3566aJD/q2XXTdmgz7myaXvrwO41j0LVBnDqOQ9n981/8GZjzPkcV1nJNbe+L54i0uy2OyRbc6o/mhrnxjLMUsGAHZmri7pGmQr14TjtxRF+NhPufhPJfcB3ESWxmfaQg1vyb7SsYwmki9lr8GU0kU/yt7GOSdDO1wfuXPb0/7N8NH1Yz6avipjt69zknV1iSjdvuHel04BaecQTVzEaKIBB5tR/I1uvFztMnxuyOAW4faC8m/2R1tcWKx9FhdSYrm1J6IzsjW6Ifa0mB/nTy2TV5c4oyCGW4jG3yRpcXyMbXQDyUduKRL7npw7Mn2T+sBln7ZmvysC0rhZ/UA+jqCF13ECy74yHHM9jGg4HZcGUfLhpTcANLgny4K/tYoSuRowbm4wXyEECLkbF38XYK9sxZYGADmaWODkMsdw7UAfpEIKEKa8NOEN8NhnhHyBtMnrdmm9DkOvEANUVtE9iljOXhoApFj4xBwTgHkyYZN6Y8rdVPRkyX2wkSisRBBGOGGIlbmcOHEB/VhRZvwG7/4xPAo5QBj/Vsl90EMgc6EnvBF9ju3GZmCLcLMUX5lY0ZnpCGCXtfFvXfTn+KrBrzubCmE7UKvulJ5EV2RfrDOqP8YZZXGBZA3rCeu19iGFd7kiLP2xNcPnIhS8zoFXWMjWFMw84dAr5LXw+a4RgAY1AtCgRgAa1AhAgxoBaFAjAA1qBKBBjQA0qBGABjUC0KBGABrUCECDGgFoUP8P1krjZSV1me4AAAAldEVYdGRhdGU6Y3JlYXRlADIwMjMtMDMtMDNUMTE6MTU6NDgrMDE6MDDXXfJmAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIzLTAzLTAzVDExOjE1OjQ4KzAxOjAwpgBK2gAAAABJRU5ErkJggg==");case"animalPig":return t(Du);case"animalSnake":return t(xu);case"animalWolf":return t("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAQAAAAhxq+mAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AABvsSURBVHja7Z13fBTXtce/q7LqqCChgkECIzCwgDDI3cgYjFtw3BLHiRPH7ZMIf/KJX9oniZNPkpcXv+Z8kpcXe5OXxIlL4hrHce8GDJhiTFsQIEBCHfXeV/v+ODO7M7szu7NaCWGhoz80M3vPnbm/Ofecc889945tI1MUCUVN9AN82mkKwAhpCsAIaQrACGkKwAhpCsAI6WwD0DbWFZ5FAB758t+3PTKy6dGWJWNZq23jRLfrtNDgtI/+w1Wqnn1+RdYn4XC3LHGVukodTodz+gH/384SADc9KvDZ8ADhQNg5d893VOgdzosejGvT/x791Ylu22mgEzdtexjgFr7GCMcBT3TOjtie0JztC/Z+yye5jcX2zrwP9SXOCh0oENzMbeRyL1cBh+7d+dPQfO3z931TeK/nPzU1aeksALDu8uqrYCFfUM7XKVA0rQjO17Zw3wMC2AbuZA5xQPc5Q0n6UmcBgEe+ArDKe57PZwFwlXbMM+eqXb3zZwLfN7gCADsA7nh9uZiJbt54U/XaQ/cCCghCX6KenRy6J2qwZIMRT+V6V+nJa+X4QZYB0EIXAHHt+rKTXgJFiu4kWndV7cbNRf7l+zM3PfraywLfJfxUgQ8aAcj70ObWl5/kALrjTtwMsMbv+lJuA+DZPf5u9Y5/VQ3F53mARd7rrQAk1fjfYZJ34bJ7ABzEB/yyjmcBcJW640/cNJCauX/Gzvl/G04U+G7hRuJ05Y8BkL3Tv55J7kg/faDVAd/iIoPfavkL+wy5buSLAdd+QhlwU0neZv31Sd2Fm5a3OmCOIXwwU9GE/rTOAL4hygDIcPn/Mqm6cFd+2d1V65qLxNVIqUw7BmAeOyjm67zNOi4kkSqO8Xvgam4wKFkLQObe+Fb/XyYFgIPTTl53/Jb2BXqD0FXQVQD46TI9XcmVylE++VxBDfmG5foBiO0O/OU0ADic0JM3lAwxfe54t90TFTUc253Q5D8oH23d1esqPyOenhmts1oZ0SbwBaNxBLAv68RN5be3Lu7LMnzYwewd5/258JmYvvBr7prdPh9by9KT19bo/JMsVrOMAmIBaKIBO+eOSROzAai/zBvO8dK4WOGhpIobXaX1l1op63Au+1VaebAS/dObi5qL6la1LWifbxZRvpQLyWP2OLRFpXvoAu7Jim/WXx9rCbQdu9VVWrtae8lOOvHAIHZisOGmn07UWJKr1FW68M8O54xd/lUNpNVf3rii6tpTFwS7YTHnc4XfOGM8KI0uoDfHH8AxlEBP1ObfasM907iAS5nFNMPSw5SzkQ+850m1aeVRw3Lsju3NbS80n7/IJBcb+RQxj4Rxh07oq/QC96XZO8YFwP7pO37uAy+OBazjAgt8fbzLkyHKpFBAAQvJI3fs54Qs0+cBuD/gAcagC/dn+saPUMg6SizzJrCe69jI21QE/JbEecxlOfMs1zaelEQPMJDmH42JGMDaK1ylx+T1sJx1rAi7hmjWsIZW6hnxXkknZwKlzYhyOA50FPrr6ggBVCdr4HquUYz96CiDjInEJyRJNNDfhEQEYNvC/d8Q+C5kHWM62XoGkrh/No//9VHPym169L2/NBYDrOfrEcnep4MGcQExvee8r78+KgDd9g//V+2693DzRLfttJCND4D6y/uyC17TXd8YdlUd5+79tsB3NbeSOtEtO03kUWLYsCFGG9YPWwe2Lj5wv8C3ni9PdKtOIw0o/x1O/axImAHV4UQVvrvPKvggnm8D4Cod0QldmABufVjge4BrJrpFp5k8/FI5qlulvR4WgAPp6iThJRPdntNO9cp/h1Nvh8MCcPsvAC7k+oluzQRQHrcAgXPJYQDYcLHIn/UI72SiNv6uHHWcq70eBoAC3zWTfsxhTP3Kf4fz3L9rr4cB4JEvA9w90S2ZIMpVvI6ePP11ywB6osMqPglJ5u8qPuu2a69aRqTpfIA5E92KCSM3m5Sj6CHtdcsjkfrLAM6b6HZMEFXyPeXI4dTPy1mXwOVw9krg28p/h/PSb+t/sSiBnigxIQsmuiUTQjuoBuD6Gwpe8f/NIoCV6wGWngVxPz21sIVpOJWzmR8ElrAI4NnpQregTcp3OEedG9M5t+pqyLY0UTmZqMl75HBe8j0j+CwC2LYAIM9K0UlFicr/z67xD+T7yJIVllSNxRPdntNOs5VsrYRm8zKTHsAORpH+5aW5ADQGmey2AOBQSuNKgHw8oQufcZRKLa5RcxcAELgYwkcWAKy9AmAF0YBH+YvkrZ5umoedp2gdFa/AMxITqkRQOn4z4GeBW7xQfhpoPut4nPdxh80pU0nB1nVaALCjECBHA5mbdu+vnw4gZ7CBRh7ikzCfVAYO+hCqniy4Ma2LAc7xnns4TDoe9BsQqA92ZqUE+SiOL3CI53mHKznfckJmAQAty8xLhASw/rKBNJhLogaiw9wIGIN2JgO5iO/zHn/nNVawnHPoYyeVtLOK5SYc4v4VPh0BgDKIW6u5MkwnNjwaiD49QMZxHavYxHbeJ5kjytWtXMtdBqX7+AcADqd5jSEBPHkdwAUa3XGMLBOIPh1AJnM913CY7V4A4Q16WMd8v5IfAzD3H0l15rWFMCLu+IE0iCVBA+BB8nVmI9CMGBmWM8vYRLPYO7sj8rWZH/EzPvI+YQfP84TmdzMKIYH9GQDJCgRCR5XFo/6yZU0ihxUFPvESaaOETUDO9sJnXKXlX4CDHATWsI79/NUL76x3IgAwoQmgU00vBFrpI0Vng8MDclDJqz8TurYMB2K78jZn7YlrUxP23uM9bwmHM7j8hezCUUOA1wH14KGcXM1ZsK5s3LV7z6CuLe5d40qI7SrZcH+UHiyH847Ckg2BW+3oyWpIX/lvo4I8P+kJJYHaczd9BDc2p1MmledXhchTsqHk/qGkI3e4SuPaHc7CZ6zUEQLAgTSARK/T4qGSNZozIyCDAXucORoHyBi0YJ27DUgfT0w9sd2O3zl+Z50hRBeuKwGZzJSO1k8z2fh3vOCdV3vWQgyjtdtDvMWJMYVPpGfEHnkdpiQrQFQv0EYDHjI1JiWczuyhk6gQDrh55z7ESzhGsQolGIn0BBvpWq3DlLpnAqQpjfBQTzJ275lPQjxBznznW1iINfkLvPI4bq4bU3PTzl+AUH5eKAohgb6MGHnwZqULaSUlmBRqz7qoI0njAAVqwGASmczlysOOlQPUAEDultlvjRuA3bP6pwNKswHaSNV04PCAfN27iU04dlu9koxD1/0jB1KCfJGunA/ahXf/oG0hFJHr7ToCoAezTut/7Dsr4zBLwzI++vNk0rFmbKyS7F+yINRi0dEDqK6Du0IDzABJQQEzO27gb5QQYwKdFSCTlNVq5qCFC6Qsk8/eERmApl3YEyXw3YYDX3fp14QV/Lut+XEFj5OsJKZb1Zj+50nUeZduW4v/BO/cL9MMnPtCStU4AXjiJoDzuUr3mAOKFFkFr49GdvIxUdxNtKn2tAJkPHXe5Dpr7k8wLenhKSBSCxwUwIobAIr8oOnHjkezdUVwINv5d8BGFLcxKwB46zYcbCRQaSqhwa4YAykbqBa8ap5xECGAmx6VbQtXeKVG/ttx6x5I+8CBQB7HTR/zuZF8xYKawxVKBuNpNhlCWr2ivSbxlkV/iBQ+EyPSmyv67wZi/GyunSGNsjY2Gb6jbTTTwx4lfhPaUmuP/csl0kwo42N1kPhPPgayd8x5eZwA3PVjgEu9nr/vIex0BoVMe9zLbqW+Z6kNYanl7CQjprDa6aUvhBW3FiWvU4Klkes/EwC7Zov8rQqAx0MKDZZkDzyaLU3e40FlqVQwKdzGj7iTV+k3hCcK6CaUDFoB8g0FvvMeHwsADXTgJ98HuIpZfubCA2RxCLd3VtVMB8rRJl2tz7MaR1A+0efP8RzLKGQ2i7B7y4AdDz1MJ3wHSH/eoOQ7F/2SMaEAAAdTRf4uN4APstnJB8qciJktlqPXaQIKXkmukfr2IPldwey2SvuUjRGXsJArlRlpG+rgywy6ETZxhONcylpSTIGUCQ6HM/X4OAF4+CsAJWRgZG3diio3kjgtIMPeGdX8N9S55T24vb6gEZAycVD4dPnt6rMc4ADPsZYrmUksMBzEk3wbtUc+D8rEv5EEil5e9quxgc9AB1beALJpYaBu6+MJ4EiAZvQ/8ij7kwp8JRvuVXY0ORrE8HQgIrHm7q/Hfeb6FQ8VvKo+0bv8kKfpAwZNtOd+foVWoT2vm8XR6sAaGoD0suDbnYVDARI4HC+XjeRLRj1dYPir7+hFRf8t+x+5EtfmcLpK4WEeIsuww4Ps7rroT9H9kP96/uvgttdeWXGDSO+b9OIhFqPuv4k/KdcW/THvw0P31l0O5d4FGXppzQSgbWH/9PiWsQHQNJjgMfg7BUCF4myYyWEFEmC7qSTNO/V/wU/EafgAM0ssNlvrWkQPzn6zZMN9qXJtm/JaAznFKZ717rW3rL5vwRPz/wqw1cRO25WYtqy7GkcAjTtor/Jrox+w+lKbFCi0+90mNKUeM6tZfLN6IL0sa7f/k9g7SzbEt8AwI94EJy0oPVQCcPXn5r4IsOiPAO/zjonDIztxNRjvSzsWALrjAKINJazTy+QPgVb7fQQsfOzi7+vrlTU++0x0oKwgMOtWIoNximHTS6EgPu85dVMwm1tKP8GQH9xyVgCoSyfHAcDhRNmNaKZhB61WSmWYdt8DbFSabO/U15xcA9CoZDn480omqNl2oLYRgJUkGHTh9zUQC5VskBndbQSaG4+Sd1+9zh1sb9rRAyjJlLOxGchWj2Ink03hO6REeR3OGR8HgKC04ru6kYZ61KYBOZAkQyfJsPNL7nP6EW15gfM9Q42ZomTetywdFwBlMXG0IUR7lTLTTeB7kUc4CDiclz0QeKOBVPVokwGvbHN9zrvGD5n/OsB+Aw2oqpX4Jm35vM15m6FCSV/z7/QyizlWWtAPwORqgDZDA6HGvkcIlE5409uZHM7owcAbJZ5Su1lzAHztihNz7gvGDykG6BQYPJfsOahuHqrSgicAthhafOnEzWZJqZEBmFIV3Q/tDAdAVMZJpYxRQKuM1xT4lv7GLB2nZMNVdwD0B8j3LoXXCHiA6AGARu+dIdBF1tP8pwE2BxgSUBPH2wvHBUBIrgVoD4Bom4YlUBdtUSAo2ZB+2Pxmg6kACfirAEHcTP4gpUpCn9sMLLis4GtdpOeI6ZWRzEECu7Cky0vu9zgAKNN8u/3kr5mD3hJFAdL5AgcAh/P8/wp+s8FpAPF+8JVzBMjbHCy8Pu8F9an8wZcFaNVX+3Ms/DPAhwYym0CRQHj5uAC4+P8A3qFa97DaXnmxnxxsYSsADmdKZfCbDaQDXmdE/RNucYDNKP0QwCHcAepD8pplNZWW8l8VyAcI9DoVqV04LgAm1ouy/0insH06ehXxukf6hBcBKCkNlYqoHWf7IGhTDMj8vwXjTK7J2QZQEaA+ZMxbs9qfI3pw3vMAbxDoM+QA0D4mO2gYDOWKfw7wsWYw5FHySECVP/Vvn6IbHU4rOXVd+QDpusaIalj0B1uIdVhzXgFxZfQSFUc8MJQyGLDftwjCyxwP6MSydcapMVk/bgCgKoPv0YOMP57zfvnlS2Ro4KvmIyoAh3PJI1Zu1jMTULJr1DqOAnDOe6F4Fz4G8BYD+EuUxMq6Z/lzzPxA2rHRwPDMAFoXR5bYZgoglGyQW2/HQz2PeCeH1rJEJwEfcQzx/DIOWrlZXCugvBafCgDI3RaKN6FRsuWPB3TImQA0LwvkWfkLgG28HMAjkwtV144TgLD8YYB3qOI3mquX6x6inF3ArHeNvnlqTCOx6i3VBskKlun7k6tDc4tjciBAC8pmaJWfCeRIqhVBeEVxqX08Mgw5cse4ATjthNxaq9iuI1YnO9sBWPw7q/CpXwWM0ciDjGRTTlrhzvkIVDOi7ZISWCm/XV6PntS+9LgfzxzygFMXtka8DN80oLriIfVIHuEcLvVT/i4gd4t+M7jgJDpnuuYlSPglrsMK94xd007ASZrQa0Gb8h0R4/DAZf8iwO/w68bSiU9G3IlNAUyuEeAkGA8r/by3HRpwrVLfDNBHVcT02oat8Ys7vTdAo8moLNAXBIgekGd8DLfOFovoVUW8FWyQ/MCSDXfl3LRKXb/j9tN/5cCsd4J7b8akbbzMMFvNk5dw/S6/V6n6gtVrjbkWPCmDg7fQSu55ZAE1ayK1xEEzVBNP5X2oylibTovsVR5tNLfUNl1u77YI4PT92duhLkAPSnyl6prhRGM+acM/6dC9PHPjM2YAApRsWPlzkMwA9W9QATD/jTBvNgTq7K7UJJ9sHEy1WsPstwEO+5mEBGVAZxbjy9yrTmlpgRcAT443gKr7m6J5ZPlMXd6m+ObQ3FqSpYvdmlcxTXMHKyRRmTc04Ta0ndh0cy+ZSH9TE4pTozLVa83kdswAHMgAfQxFRg8SJw6HJDCqTVOThbSti4YtfhopuUZc9iZjLWgKYFr53H8AuDT3TlJksObKkLeNDECZkdDGUGRuJPg6WsNmHNU3Hm+akvXlVrlbAE4EjEYygabl5t+slmjjHp3kFgBwKqLgvgUAJQSQ6r1xA/XA9P1Ze0YHYLPmVagAWpVAWPAUwMcB7rS4MubSNPtN4dN6ExLWao5oeikkgCMxAqBvLlhGXeKehkd5HwJU6pxgyV7tzbFah8z3VdDg14nFjNSsNeOLb531NugzewoAqFzvjg911wgAjBqWd+dLrJQpyGknwr+Z5B1UM6hpeEqYAEb3+1I9tN1RJiuPfc7cJRKdfVBz72R1DOMIddcIAITEU6C1nZJFkNQQmjPgZkOFz4JEedTmyw4g/nMaweiiHwJs9Zu3SVKTNkw/SFn4HEieYoDcrgl1z4gAlO0XfWkVAmDiKABUXdq3NKF5kZxwLGFc++LfAxwy7MRVppY4sT5rN3R6ZRDUOWL9By7GGEB3vFipdO+Dyq7y9vbR3C5vk8x9+CbXZZKxNawN+iVY7x+dlu546kJzPnl9WzV84oCevM4okjNGALadB5CtyUtRtoQb5S3VMUGn15WeDXTNbgjjEyW5WwGO0aWRP3WCs3b14DQzvoV/ATio2XsuRc1TuHjcABTPKl0j9rLcsG+UOyJnfaJudKNKQREAZV+1Xkd0v0xaHkarz+IUd9r8VaiZW1s1fKJ8T476EykhARQLlakRe0lrGv20tES7d3rDUmICD91n7gQHUsHLoNWC8mQyWVRbYs4nQ7oDGj4BsGL9uAGo5mn7tI0MHY2/W22F1Gj3S0qWTayyjnPvt6zXkVEGgYme4lMG27AzTRlM1nh5ZpADtC0cbWw6JIAyW9GJT+jF65S17KOji34oPtluRQpWAuAqPWH5G3/JVQJEj86QSFCnO9iHrj2qF+njk+nh0camQwIo+extGqGXvPRIYhhx7dKM1+gBPKQp2+u5Sq3KdUyfDAt7dHZYrEfroqFkc87inwHsYMjLJx1/tK5MSACzPgGoVtIiwWNhY9bQVPCqz5R48HAxRUD12p0/s1rDnH+CKkk+MyKdOJg2VdPsdnq5ZEK5cv3oclZDAhjblV4GMhJRfX6A3txQnMFp2a8BdnkVutqNa1db41dh0MZ2VC3YFDT3T6D3GaBkZf/K47eOC4DqmKMHfWZJxQ2RzWilHVVNiWxHlqOYkpfef3bPtv8++DWZgDKnaRWyWLUZrR2WIGlj0KQN+SbDUSW4Ch4FwNHNElv4umvZXV0FsFjRMDZiGaQeOPqlvuxpFQlNISswoYLX+2Y0FsOw4szOoZd6oDen4ZLKz+z5bs/MhGazrGmA1sV1qyBLmRERSmUr0Liy6NfRA2Z8Ue5WR9siyEV9R9Mpo4uOeXNeTaonTLIAoOv+njxYRhKqT5PJMKeAxmKiUqoSG0cL4bQK1/1QR7SihwqBFtRPFjWtKLunel30YOZ+Y+7h5PLbwc5M4r1r4mIZohoYTNV/xFZP8S1H7oRelmvW0h0G8PgWmI0hgI0XNp0POfj6lJ25jFALNBa7Ss99cbQQJjT1ZTcWQyWyMgDyuYj5ZJCurC/unnXiZv8v+qqUdrQvu7G4hWh8M5M2prMdaCwu/rfAr1Gr1J956D5IUvQuwAw2Ak0rlz4S00tYZAHAVkfNGshETX+StzaLHAZoByKBsOA1gbCKNpIUJZHMOczjAtLppQtoLE49biyFKVWuUuijWHMtnk7qgeRq8R+MAXSVQiK+uEM0fVQDSXU5Ye4jY8GISOptlaJytVl2VyubOblKQ9diRpd8V4zJQZ7UZF55sFPk/QiqWf3TD2Rvh2YO6wzJyqA8ALFdAAM6+y3hoGOfbw/zs1EWJDC5pvGCjsJuBpQQuJANiCGXWrppLJ79jpX8KsMHGCp4LeNQf2bXHDhIDDW00csgidiADHYBNo84PUbcJ26CfpbgWxucTB2t9OZmHGostnkkHOzHNbD7QXCjHTSnUk8z3bOO39q0wt6Zajnebukb6/bO8i9CA4N4aGSQHprpoIUyjtFPN5D3YeY+CxWZUMahnO2eaNGGlZTjYg9b2cbHlNEPDKYu/a3xMrC08t0PQhtF+KY1bMTjAo5/ruJGV2lfdqCZixquuq5n5gi5ZGqAT2AfMJTcuuTIlyvX29zWJs0sASjqGho4wjEOcpAjHOYodTTRDTicKx+yUE0Qim9JO+qJadQqMzwMez8JevEPjE1C1JA8WYyud2TQ4/0ecGOxEYhRwxU3Qh9LNVsNTKcQt5LM3JtXeYMR9KME0KfsjcjhdDhH78p4IWwteC33o8SGvC2pxxKaY7v7M3362eE0dy9G4o7dBkmoKfeqidsGLEMGAIG+Qube1iVti1qZgXbwPY2FFJPHAG1Y9TBsGy03sXWxq7Rjnr2jKx/iWzzR0f3ZO5Lq0w9nb48UPBNoYgZT+zNiexPrZbWmMfXNeOwUwDc1fqoPyD62s5t+ZBGQlq/8trefAQe36sqrR0fYpeRf3DkrmDMfFoBnKr3/WNldcL2uO2qPhniTffiyVYU65j1VDhl8wwA+gAHeZSeBwPvTJPjerUyYn8BsnX2MkgSsd2xkXruVcl08x8cZp+RRu0qD545NAgDnvgRQ5s17CQQylzSgZUmn5tuqthGRx491HFrODEtpwBaNyJlMUcNi4I7RTAJpPoiU/1t4iS5g9ltLf6vlm7m5J7e5qIVOUpQsMe3mP3t5RUmiuvDHwb4rF1FY9Eyhi34oHfQwh8liGjbiSMEOdFGppKIE5nPHdjmch78Ke5V0UTt2IIZ+r/MkXMHWn04KCYSY/vQjUcPNRSOx0EsbrTRRw0lO0qCAMfutS78jgVQtJdfmvzESq05CuRlkkH7NusDMvRf8pPhfg997ElhhlXpmukpdpf0Z/tcXPOlwmueSue2uUldp4Ag4pdLhXOKM7SIETSIAhVqWds3GNpDakzeUAkl1s95Rd6wJRUPJQ8nY3HH2jnD2lp50AJ5umgRuzMTSFIAR0hSAEdIUgBHSFIAR0hSAEdIUgBHSFIAR0hSAEdIUgBHSFIAR0hSAEdIUgBHS/wORiuzU9jpniQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMy0wMy0wM1QxMToxNTo0NSswMTowMLaKk6YAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjMtMDMtMDNUMTE6MTU6NDUrMDE6MDDH1ysaAAAAAElFTkSuQmCC");default:return t("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsSAAALEgHS3X78AAAGHklEQVR42u2bS2wbVRSGW4eK8ippoQio1LKhDyAUumiggQKbVgUWuAKVsqYrKlIJsSmVSEGVQOKxaFkV2NB2ASuyoAJEcBw7TpQ67yhPRUmUh5M4Ud6J8jL/L81IV1fX8dxxHOZOM1IWmWOP5/733nPOP5+9JRQKbbmb/7TfEA6H7+vp6Tk/MzMT6evr+zQSiTwkxmOx2O5EIvHt1NTUPx0dHe/iXJ6vBOjv77+UEo6xsbEb5eXl2xijGNPT0xEx3tXVddY3AmB2H1leXh5LSUdzc/MrjPf29n4sx7AS/oZA9/hCgMbGxqMpxTE4OPgl41gNN+XY0tLSaGVlZb4vBGhoaHhRJQD2/HeMT05O/qEQYCQajT7sCwEwk7s4o4oVcIXx8fHxX+UYRPkLsYCxAjQ1Nb3c2tr6ZlVV1eP8f2Bg4HN5kHjNMca6u7vPybHOzs73GaupqXmqra3t7bq6ugJjBEAZO20PZH5+vqW6uvoJZnpmfvs8SuEnQom8d2Rk5Ac7NjQ09BXP19bWHhKTJ0R41ggBZmdn74izOTo6+qOYD+Lx+NOq99XX1x/GoA9YpfHBubm5Ouk6PxshwMLCQod446urq4tYyvvE17S0tLyBbXGZzQ96hM8w+AIp/pq8LSBIgxECoKmpUOz3QsYw+/snJiZ+V1UFrhQmTL6uvb09qKga3xshAG7+HfnmkQf2YJafRzUYTq1xoFWuYv1nkyTHjMkBSGrbh4eHr9k3jqX+BWv64uLiQMrBwb6AOUBcKegWi73UGTp5UQD7+HWUwhPs+bnfUxoHDRFFQAl8C51kodGNEGY/H0s/oSMAV4HLmwtQPHiJMiZY+JBHxTjLMd0otloU7vQjutSNaIWPpDQP5goIt0P3xugixeswIdvWmysRvcgvYpwuNecCIPm9oCsAGyBdAThAukj5WnSbjKsSKz+HbjWnAnCZ4cb+VQ10ZWVlKo1R+kb3oQirB1ZOUr4WZv0W43Sfqs9yk2O0lwxVxnK7iC6xBo1SOzM8ZqQIXuEx9v1YqiG0za1csvAGH1ZUVNyv+xmsNHSRinxym3G6T5UA7E5zLsAG/QUw2D/lAcJt/matgCtpnjvsMlYANEfP0S3SNfJ/rKaz8iC5oiyHekyOoTyXMEbXSvdKF2uMAOwMxWQGI/UMz9NN2ufhMq/RbdrvoQsVcsNN9hp0q3StQg9y2ggB6A4ls1TLAVlW+iDdpep9dKPivqcHEa9DN2uEAHSH8pJG93lcKsEFdJtsirjc6ULFOLbOXrpV8RpM0kYIQHcoC0AjZj+Gw8z+pMr6rEB0pVZeKJTjrETG5QDhUfur7AfQ6sYydZp0p9j/TypEDBohAN0hurwL4swyB6ieMqsOulP6FLpV+xxc7FW62VyisWgGNFami8bIHegaOXi+V6flpkulkCiBJ638sNVoNOZ09oWtMOSGP7hBY0nFfi2y0FhxGjS2TbMV3pHpiVOaVvhIrtFYYQY0ditNi7pT1wuoGGSmg271/0Zjt1UCMEFp3lgeXaSO66RLdZL01gONJTcCjdFFsvdnLbfcZYhuk66TzwNQKUrR6LTRlbJBkp8YrTcaO7WJxrJHY0kT0VhcAh7XJTS2fw00dtAujTQ3fkJjexVorGQNNHbcz2is1O9oLJgFGoux/tPUmI7GrkpoLD9LNHbBNDS21UJjJy00VqKJxt7bRGN++Z5gFmjM7bfE8riCHPLB8274oCfRmMAHP8g1H9R9GLKds+ECjQVcPCVKxweL15MPZovG2tgLWGhsN/r+MwIaC7tFY5bx2umSDx71Axqz+eBouqS6XnzQy9/lz6OV1uSDSV0+6KlBO+SD5xzywVNO+KCXBi/zwUMWH/zaIR+8wQqh4INBIwTIwAcP0H845IPXJT4YN0IADLjRIR+8ZPHBywo+uE/BBzuMECANHwxq8sGXFHwwYlwOEH+Ko8kH9+jyQc8IoOCDpRvBBz1X/wU++ACNkCYfLLH44AlaeCctuKd/1KgCLRm2QkIXwni5Fd4QPuhpAVzywcN+8QIBF3ywTJcPejoHCHwwLPDBMxYfLGIPwC9CWXzwohs+eFf/cnxTAPz9B2KaIUnJkLawAAAAAElFTkSuQmCC")}}function Mu(e){var t=e.lat,n=e.lng,o=e.name;return(0,To.jsx)(Ru,{position:[t,n],icon:Nu(o),children:(0,To.jsx)(Ou,{children:o})})}function Iu(){var e=(0,o.useState)([]),n=(0,t.Z)(e,2),r=n[0],i=n[1];function s(){return a.apply(this,arguments)}function a(){return a=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,to.getAnimals();case 2:t=e.sent,i(t);case 4:case"end":return e.stop()}}),e)}))),a.apply(this,arguments)}(0,o.useEffect)((function(){var e=setInterval(Tt(Rt().mark((function e(){return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s();case 1:case"end":return e.stop()}}),e)}))),1e4);return s(),function(){return clearInterval(e)}}),[]);var l=r.map((function(e){return(0,To.jsx)(Mu,{lat:e.position.x,lng:e.position.z,name:e.name},e.id)}));return(0,To.jsx)(Pu,{children:l})}function Lu(e){var t=e.lat,n=e.lng,o=e.name,r=$l().icon({iconUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsSAAALEgHS3X78AAAG/klEQVR42u1bd2gkVRxObOd5etazHWdBsGA59RQbnB4qitiwomLvvaB/WEBFFOyFs/0hqIcFG2LBdkJ6TzZ9d7PZTbLZlE02m7bJJrtJ1u+THRiWmZ3ZmTdluXsQEibz3rz3vd/7/b5feSVlZWUlO/JPyU4A7P/oLo2NjUf5/f4rw+HwM7FY7ItEIlGbTCY70+l0dGVlJbW0tDS1uLjYPz8/3zYzM/PP2NjYJwMDA092d3dfVFtbu67oAKisrNyLk8dCPkylUuGMyQZgWgHI4/X19Ye5GgBOcGho6GXsaDxjTVsaHx//rKGhYYOrAODCsdtbIc7pjA2Nx6avr++B8vLy3R0FoKqqam/s+EucUMaBNjEx8RWO2xpHAOjs7DwPiiuUcbhNTU39VlFRsdo2AIj4yMjIGxkXtdHR0XdtAQBn/dC5ubmmjAtbT0/PdZYCAHt80MLCQiDj0gbLM63HTBoFoDQej3+fcXmbnJz8GXPdVTgAFK9MkbRQKHSPUACqq6vXiiA2GGOCbC4YDN6B309EIpHno9HoB6C+25eXlxMiaQLHB0fYQwgAGOwxEbPCImdaWlqOUzJZnGxbW9sm2PVtolAAsP+Cp6wxBQCJDndOMItbnJ6e/oPAYtGn5QLi8/muEMUoh4eHXzEFAM7+9TZo70n6Dzxq0ne9Xu9levrCJDfC6bq4vb39DDpfgUDgBnCCN6X/g6gNmAJgdna20i7lBa8x0traeqr0bS2yBSn6mxKqwFUOl0lb0jAATU1NR9utwTnhrq6uLVnlux/jBErvJRKJGvx/36z+2K2jo+McKNXn4JB9FIvFPpe9V2cYgP7+/oecMGM8/1jQuZwD7PpPCkdmqq6u7hAQswPhEd4PctajNhbW8LBhAIBetRULxISDvb29N9Onr6mp2d/j8ZzI3aMukFsMepkqzs/vjAkAqCUtw4NvrDcEANG1yH39Ws19JRg4969TCAR5ib8a5gHQwpdYsXg1ciL/gfifTVOppQAh3g/ClD6Kc/+pElGDNXjHMACwn6+KXDxEehYae63e45fv+/wfFZ/8fXCJPblp8mNERWkYAHYWHcJqbm4+Vi8AoMt3qo0l5wsKvOUama7xGQaABMOKOB64/1bY+lO0PE+I+F9KYzCMnq8vrMPBskiyRzcAucFF0RKgpMnB3jbluq6Yxyo6MvlwBIAb1QCg1pfrHF0A8KMQl14QkPOlZxQfO2w+qGoQSuxjcnbmEJgc0aNPYP/vxW6v49lnEIS8gd4lNb/0HhWkLgAokhInZwaHJEOUKXKywdE6XRcAICW3yMNKenbB7Y1sEdKxShcAYFwvunghk+Fw+Gnoi7PoI8A5q9DTj7lF3REh0kqZ4vgGFqDZDYuHJfiT5zzH3q/G/Oq1+vp8vst1AyCZHHJrupf0spyO/sKj+5IKTsvWqzUlH0AVAGZe2YnpannWx8HI7o/5KDNzE1pjkEvoBoDkIhtD2y4Lhe3jYJbn7VAodLff77+a5o1xRDpnEijkLFpjwJodqRsAyfGgJEjPMMARbtSJsFB9DHbybw2i9QsLM3QBkB3w/2iMZDoYoS12U0gJKpgHgBSdnPXND0ilUoPFDABNpi4AWM4iLZY1PNLzrBQUNSNUCpoqKgaIy1XZyGyYvoGkbGAO/U4uAPMZgkK8C4rwePoq8Xj8h0L6M7Cr1x0uZWKRnQKBwE18xoCjg2tfgYP0mpLvz9A5gPiWIo453gfl3ZGHD2zQHQ9g+jtbtpakLbZT/Mk+meDgjnk8npPokBVQqbI5zxFYW1BABGK22e5zz4QIcwBmSvKUapRA7LoNRYSCweDtdoKA791mtmxHqWolGo2+ZzgkxlwbnRE7ACDLMwsAnbjccXGkLjSdHqdeIBXF2TxG7jUKTJIERFSsgT6/lRM1SqjlH8x8qJS5N5EAQJt/p1GUtR7e37XgJ08xVUc3l5uS+97g4OCzOeL/viVVYkRVZLyQO6f0HQY+JbOsZCJZcE2vUC2PmS/ybFrcSEhEAcD8X+6R0ytlzAYxK8x+JEvSc7lXa1WlaKmougGGwKWSehCwGxmTLDDXkGZFCeuGpWdSet3SUlmv13upqCNAcWeewGTqbSbr0rdrFVALAYDBiXx5eacadv8C24qls7pg2S2L500TtSCIZeXyLKC0646AVpPXF9l6YQJE6QS1ZKZdjW6y41dmWPNHtgiFNOfA7m90zaUpkiXqh0gk8gLMZRkAmbc6geLqa3Os5mAGl7sEBrfNAs2/pZguTpaymlsrrF2AM+Uv9OKUK25vwt0+M51OxwTEEm4t2quzTL4kk8kuo4tnKq/QG2OuuzvMsDU8uUdoRlnYzJgkfoexuA4WapLc0GXmbRXSZb5DpcrkqdErtTsvT+/oAPwHyIWpftzH7b0AAAAASUVORK5CYII=",iconSize:[32,32]});return(0,To.jsx)(Ru,{position:[t,n],icon:r,children:(0,To.jsx)(Ou,{children:o})})}function Fu(){var e=(0,o.useState)([]),n=(0,t.Z)(e,2),r=n[0],i=n[1];function s(){return a.apply(this,arguments)}function a(){return a=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,to.getHostiles();case 2:t=e.sent,i(t);case 4:case"end":return e.stop()}}),e)}))),a.apply(this,arguments)}(0,o.useEffect)((function(){var e=setInterval(Tt(Rt().mark((function e(){return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s();case 1:case"end":return e.stop()}}),e)}))),1e4);return s(),function(){return clearInterval(e)}}),[]);var l=r.map((function(e){return(0,To.jsx)(Lu,{lat:e.position.x,lng:e.position.z,name:e.name},e.id)}));return(0,To.jsx)(Pu,{children:l})}function ku(e){var t=e.lat,n=e.lng,o=e.name,r=$l().icon({iconUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsSAAALEgHS3X78AAACfUlEQVR42u3ayUojQRgA4OhtFLw4ES/edJC5zAh68BkEL85RBgYfwEdQPPgAcx7MzYvPoMSEkMXprAeTniQSJRkyWWCymD3l/4MBEZdUUul0Vf4fCppeqqq/dNeWttjtdsskJwsBGFiYpmnL6XT6sFqtXnU6nWqr1cqVy2Un7DuAYyvKArjd7vlsNvuTMdZlb0QulzuBcz8qBeD3+1ebzeYd6zPg3Fu8RgmAYDD4BR71MuMMvAavlRoAH2X4NTNswMBrIQ+rtAD5fP6EDRmQh01KAGztmaDAvKQDwK5OFAB2kdIBQD+viQKAvH5LB4CDHFEAmJd0ADDCywsEuJcOAIe3Al8BbaIbwUwmcyRjN/hJFMCoh8WjHAjZhr15mBz9kn0o/HfQm4eG9J/H41lQYTLE3SV2u906XPtVpenwLccvnw2FQmuqLoi8GcVi8czr9S6qvCS28nRJDAc5EAHo6o4DgcBnWhQlABMCuFyuOV3XdwqFwmmj0biBFrrBTBr4WlUqFVcymfzhdDpnhwbAG8f+mEkY0LYEfT7f0sAAqVRqn0kegBB2OBwfuAEikcgmUyTgddjjBoDprEMVAHwKuAGYYkEABEAABEAABCAQoFQqneNyFSQrbF8YfUOP5VuxDrhtOEA4HF7vnYvbRgNAmRs85QsHgJnWTO9cnHUZDcBbvnCAcbcZw9aXAAiAAAiAAAiAAAiAAAiAAAiAAAiAAAiAAJ6ner3+57XM8JjZAGq12jVPfd8FiMfju69lmEgkvpsNQNf1bzz17ecDialYLLaNf5O32+3/mGD7EvfhMbMBYIpGo1tYxxfqOz3yj6TMADDWr8QmHoC+E5Q4PQDfbqj4Rq0JZQAAAABJRU5ErkJggg==",iconSize:[32,32]});return(0,To.jsx)(Ru,{position:[t,n],icon:r,children:(0,To.jsx)(Ou,{children:o})})}function Gu(){var e=(0,o.useState)([]),n=(0,t.Z)(e,2),r=n[0],i=n[1];function s(){return a.apply(this,arguments)}function a(){return a=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,to.getPlayers();case 2:t=e.sent,i(t);case 4:case"end":return e.stop()}}),e)}))),a.apply(this,arguments)}(0,o.useEffect)((function(){var e=setInterval(Tt(Rt().mark((function e(){return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s();case 1:case"end":return e.stop()}}),e)}))),1e4);return s(),function(){return clearInterval(e)}}),[]);var l=r.map((function(e){return(0,To.jsx)(ku,{lat:e.position.x,lng:e.position.z,name:e.name},e.id)}));return(0,To.jsx)(Pu,{children:l})}var Hu=bt.div.withConfig({displayName:"Map__Container",componentId:"sc-ytilka-0"})(["height:100%;width:100%;"]);function Bu(){var e=(0,o.useState)({enabled:!1}),n=(0,t.Z)(e,2),r=n[0],i=n[1],s={regionSize:512,chunkSize:16,tileSize:128,maxZoom:4};(0,o.useEffect)((function(){var e=function(){var e=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,to.getMapConfig();case 2:t=e.sent,i(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]);var a={project:function(e){return new Jl.Point(e.lat/Math.pow(2,s.maxZoom),e.lng/Math.pow(2,s.maxZoom))},unproject:function(e){return new Jl.LatLng(e.x*Math.pow(2,s.maxZoom),e.y*Math.pow(2,s.maxZoom))}},l=$l().extend({},$l().CRS.Simple,{projection:a,transformation:new Jl.Transformation(1,0,-1,0),scale:function(e){return Math.pow(2,e)}});return r.enabled?(0,To.jsx)(Hu,{children:(0,To.jsx)(br,{requiredPermission:{module:$o,method:"GET"},children:(0,To.jsxs)(ou,{style:{width:"100%",height:"100%"},center:[0,0],zoom:Math.max(0,s.maxZoom-3),scrollWheelZoom:!1,attributionControl:!1,crs:l,children:[(0,To.jsx)(mu,{mapInfo:s}),(0,To.jsx)(vu,{}),(0,To.jsx)(br,{requiredPermission:{module:Qo,method:"GET"},children:(0,To.jsx)(yu,{})}),(0,To.jsxs)(pu,{position:"topright",children:[(0,To.jsx)(br,{requiredPermission:{module:Xo,method:"GET"},children:(0,To.jsx)(pu.Overlay,{name:"Players",children:(0,To.jsx)(Gu,{})})}),(0,To.jsx)(br,{requiredPermission:{module:Zo,method:"GET"},children:(0,To.jsx)(pu.Overlay,{name:"Animals",children:(0,To.jsx)(Iu,{})})}),(0,To.jsx)(br,{requiredPermission:{module:Ko,method:"GET"},children:(0,To.jsx)(pu.Overlay,{name:"Hostiles",children:(0,To.jsx)(Fu,{})})})]}),(0,To.jsx)(fu,{})]})})}):(0,To.jsx)("p",{children:"Map is not enabled, you can enable it via the server settings config file."})}var Vu=bt.div.withConfig({displayName:"Router__ContentContainer",componentId:"sc-1psfph8-0"})(["min-width:",";padding:1%;"],(function(e){return e.collapsed?"calc(100% - 100px)":"calc(100% - 250px)"}));function Wu(e){var t=e.sidebarCollapsed,n=Vo().modRoutes;return(0,To.jsxs)(G,{children:[(0,To.jsx)(F,{path:"/",element:(0,To.jsx)(Vu,{collapsed:t,children:(0,To.jsx)(Bu,{})})}),(0,To.jsx)(F,{path:"mods",element:(0,To.jsx)(Vu,{collapsed:t,children:(0,To.jsx)(Zl,{})})}),(0,To.jsx)(F,{path:"console",element:(0,To.jsx)(Vu,{collapsed:t,children:(0,To.jsx)(Wl,{})})}),(0,To.jsx)(F,{path:"settings",element:(0,To.jsx)(Vu,{collapsed:t,children:(0,To.jsx)(Kr,{})})}),(0,To.jsx)(F,{path:"createuser",element:(0,To.jsx)(ii,{})}),n.map((function(e){return(0,To.jsx)(F,{path:e.path,element:(0,To.jsx)(Vu,{collapsed:t,children:e.element})},e.path)})),(0,To.jsx)(F,{path:"error/:code",element:(0,To.jsx)(Xr,{})}),(0,To.jsx)(F,{path:"*",element:(0,To.jsx)(Vu,{collapsed:t,children:(0,To.jsx)(Lr,{})})})]})}var ju={colors:{transparent:"transparent",tfpRed:"#ff0000",tfpBlue:"#00A3E0",tfpLightGrey:"#CCCCCC",tfpDarkGrey:"#828383",tfpDarkGrey20:"rgba(0,0,0, 0.2)",tfpDarkGrey40:"rgba(0,0,0, 0.4)",tfpDarkGrey60:"rgba(0,0,0, 0.6)",tfpDarkGrey80:"rgba(0,0,0, 0.8)",tfpMediumGrey:"#C4C4C4",tfpBlack:"#090C0C",tfpWhite:"#FFFFFF"}},Uu=bt.div.withConfig({displayName:"App__PageContainer",componentId:"sc-1jyt4iy-0"})(["display:flex;flex-direction:row;height:100vh;width:100vw;background-color:",";background-image:url(",");background-size:cover;color:",";"],(function(e){return e.theme.colors.tfpBlack}),Mr,(function(e){return e.theme.colors.tfpWhite}));var zu=function(){var e=(0,o.useState)(!1),n=(0,t.Z)(e,2),r=n[0],i=n[1],s=(0,o.useState)("help"),a=(0,t.Z)(s,2),l=a[0],u=a[1],c=(0,o.useMemo)((function(){return{command:l,setCommand:u}}),[l]);return(0,To.jsx)("div",{className:"App",children:(0,To.jsx)(or,{children:(0,To.jsx)(Bo,{children:(0,To.jsx)(oo.Provider,{value:c,children:(0,To.jsxs)(vt,{theme:ju,children:[(0,To.jsx)(Xn,{position:"bottom-left",reverseOrder:!0}),(0,To.jsxs)(Uu,{children:[(0,To.jsx)(Nr,{collapsed:r,setCollapsed:i}),(0,To.jsx)(Wu,{sidebarCollapsed:r})]})]})})})})})},Zu="7.8.0",Yu=n(1917),Ku=n(8539),qu=n(6017),Xu=[];function Qu(e){return e.reduce((function(e,t){return e.every((function(e){return t.name!==e.name}))&&e.push(t),e}),[])}function Ju(e){var t=e.defaultIntegrations&&(0,Ft.Z)(e.defaultIntegrations)||[],n=e.integrations,o=(0,Ft.Z)(Qu(t));Array.isArray(n)?o=[].concat((0,Ft.Z)(o.filter((function(e){return n.every((function(t){return t.name!==e.name}))}))),(0,Ft.Z)(Qu(n))):"function"===typeof n&&(o=n(o),o=Array.isArray(o)?o:[o]);var r,i=o.map((function(e){return e.name})),s="Debug";-1!==i.indexOf(s)&&(r=o).push.apply(r,(0,Ft.Z)(o.splice(i.indexOf(s),1)));return o}function $u(e,t){!0===t.debug&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?qu.kg.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=(0,Ku.Gd)(),o=n.getScope();o&&o.update(t.initialScope);var r=new e(t);n.bindClient(r)}var ec=n(6870),tc=n(7050),nc=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],oc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,xt.Z)(this,e),this._options=t,e.prototype.__init.call(this)}return(0,Nt.Z)(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(t,n){var o=function(t){var o=n();if(o){var r=o.getIntegration(e);if(r){var i=o.getClient(),s=i?i.getOptions():{},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:[].concat((0,Ft.Z)(e.allowUrls||[]),(0,Ft.Z)(t.allowUrls||[])),denyUrls:[].concat((0,Ft.Z)(e.denyUrls||[]),(0,Ft.Z)(t.denyUrls||[])),ignoreErrors:[].concat((0,Ft.Z)(e.ignoreErrors||[]),(0,Ft.Z)(t.ignoreErrors||[]),nc),ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(r._options,s);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(Gt){}return!1}(e))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.warn("Event dropped due to being internal Sentry Error.\nEvent: ".concat((0,ec.jH)(e))),!0;if(function(e,t){if(!t||!t.length)return!1;return 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["".concat(i),"".concat(o,": ").concat(i)]}catch(s){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.error("Cannot extract message for event ".concat((0,ec.jH)(e))),[]}return[]}(e).some((function(e){return t.some((function(t){return(0,tc.zC)(e,t)}))}))}(e,t.ignoreErrors))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat((0,ec.jH)(e))),!0;if(function(e,t){if(!t||!t.length)return!1;var n=rc(e);return!!n&&t.some((function(e){return(0,tc.zC)(n,e)}))}(e,t.denyUrls))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat((0,ec.jH)(e),".\nUrl: ").concat(rc(e))),!0;if(!function(e,t){if(!t||!t.length)return!0;var n=rc(e);return!n||t.some((function(e){return(0,tc.zC)(n,e)}))}(e,t.allowUrls))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat((0,ec.jH)(e),".\nUrl: ").concat(rc(e))),!0;return!1}(t,a)?null:t}}return t};o.id=this.name,t(o)}}],[{key:"__initStatic",value:function(){this.id="InboundFilters"}}]),e}();function rc(e){try{var t;try{t=e.exception.values[0].stacktrace.frames}catch(Gt){}return t?function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.length-1;t>=0;t--){var n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(n){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.error("Cannot extract url for event ".concat((0,ec.jH)(e))),null}}oc.__initStatic();var ic,sc=n(5256),ac=function(){function e(){(0,xt.Z)(this,e),e.prototype.__init.call(this)}return(0,Nt.Z)(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(){ic=Function.prototype.toString,Function.prototype.toString=function(){for(var e=(0,sc.HK)(this)||this,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return ic.apply(e,n)}}}],[{key:"__initStatic",value:function(){this.id="FunctionToString"}}]),e}();ac.__initStatic();var lc=n(2968),uc=n(8578),cc=n(4678),pc=n(2034),dc=n(1752),hc=n(1120),fc=n(7277);function gc(e){var t=e.protocol?"".concat(e.protocol,":"):"",n=e.port?":".concat(e.port):"";return"".concat(t,"//").concat(e.host).concat(n).concat(e.path?"/".concat(e.path):"","/api/")}function mc(e){return"".concat(gc(e)).concat(e.projectId,"/envelope/")}function vc(e,t){return(0,sc._j)((0,Et.Z)({sentry_key:e.publicKey,sentry_version:"7"},t&&{sentry_client:"".concat(t.name,"/").concat(t.version)}))}function yc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"===typeof t?t:t.tunnel,o="string"!==typeof t&&t._metadata?t._metadata.sdk:void 0;return n||"".concat(mc(e),"?").concat(vc(e,o))}var Cc=n(3082),wc=n(7326);var _c=n(8814);function bc(e,t,n){return bc=(0,_c.Z)()?Reflect.construct.bind():function(e,t,n){var o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&(0,Pt.Z)(r,n.prototype),r},bc.apply(null,arguments)}function Ec(e){var t="function"===typeof Map?new Map:void 0;return Ec=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return bc(e,arguments,(0,hc.Z)(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),(0,Pt.Z)(o,e)},Ec(e)}var Sc=function(e){(0,At.Z)(n,e);var t=(0,fc.Z)(n);function n(e){var o;return(0,xt.Z)(this,n),(o=t.call(this,e)).message=e,o.name=(this instanceof n?this.constructor:void 0).prototype.constructor.name,Object.setPrototypeOf((0,wc.Z)(o),(this instanceof n?this.constructor:void 0).prototype),o}return(0,Nt.Z)(n)}(Ec(Error)),Rc=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Oc(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.host,o=e.path,r=e.pass,i=e.port,s=e.projectId,a=e.protocol,l=e.publicKey;return"".concat(a,"://").concat(l).concat(t&&r?":".concat(r):"")+"@".concat(n).concat(i?":".concat(i):"","/").concat(o?"".concat(o,"/"):o).concat(s)}function Tc(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Pc(e){var n="string"===typeof e?function(e){var n=Rc.exec(e);if(!n)throw new Sc("Invalid Sentry Dsn: ".concat(e));var o=n.slice(1),r=(0,t.Z)(o,6),i=r[0],s=r[1],a=r[2],l=void 0===a?"":a,u=r[3],c=r[4],p=void 0===c?"":c,d="",h=r[5],f=h.split("/");if(f.length>1&&(d=f.slice(0,-1).join("/"),h=f.pop()),h){var g=h.match(/^\d+/);g&&(h=g[0])}return Tc({host:u,pass:l,path:d,projectId:h,port:p,protocol:i,publicKey:s})}(e):Tc(e);return function(e){if("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){var t=e.port,n=e.projectId,o=e.protocol;if(["protocol","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new Sc("Invalid Sentry Dsn: ".concat(t," missing"))})),!n.match(/^\d+$/))throw new Sc("Invalid Sentry Dsn: Invalid projectId ".concat(n));if(!function(e){return"http"===e||"https"===e}(o))throw new Sc("Invalid Sentry Dsn: Invalid protocol ".concat(o));if(t&&isNaN(parseInt(t,10)))throw new Sc("Invalid Sentry Dsn: Invalid port ".concat(t))}}(n),n}var Ac=n(8805),Dc=n(9153);function xc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[e,t]}function Nc(e,n){var o=(0,t.Z)(e,2),r=o[0],i=o[1];return[r,[].concat((0,Ft.Z)(i),[n])]}function Mc(e,t){e[1].forEach((function(e){var n=e[0].type;t(e,n)}))}function Ic(e,t){return(t||new TextEncoder).encode(e)}function Lc(e,n){var o=(0,t.Z)(e,2),r=o[0],i=o[1],s=JSON.stringify(r);function a(e){"string"===typeof s?s="string"===typeof e?s+e:[Ic(s,n),e]:s.push("string"===typeof e?Ic(e,n):e)}var l,u=(0,Go.Z)(i);try{for(u.s();!(l=u.n()).done;){var c=l.value,p=(0,t.Z)(c,2),d=p[0],h=p[1];a("\n".concat(JSON.stringify(d),"\n")),a("string"===typeof h||h instanceof Uint8Array?h:JSON.stringify(h))}}catch(f){u.e(f)}finally{u.f()}return"string"===typeof s?s:function(e){var t,n=e.reduce((function(e,t){return e+t.length}),0),o=new Uint8Array(n),r=0,i=(0,Go.Z)(e);try{for(i.s();!(t=i.n()).done;){var s=t.value;o.set(s,r),r+=s.length}}catch(f){i.e(f)}finally{i.f()}return o}(s)}function Fc(e,t){var n="string"===typeof e.data?Ic(e.data,t):e.data;return[(0,sc.Jr)({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var kc={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default"};function Gc(e){return kc[e]}var Hc=n(9846);function Bc(){var e="function"===typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(var o=0;o<t.length;o++){if(t[o]===n)return!0}return t.push(n),!1},function(n){if(e)t.delete(n);else for(var o=0;o<t.length;o++)if(t[o]===n){t.splice(o,1);break}}]}function Vc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return jc("",e,t,n)}catch(o){return{ERROR:"**non-serializable** (".concat(o,")")}}}function Wc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,o=Vc(e,t);return zc(o)>n?Wc(e,t-1,n):o}function jc(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Bc(),s=(0,t.Z)(i,2),a=s[0],l=s[1];if(null===n||["number","boolean","string"].includes(typeof n)&&!(0,Ac.i2)(n))return n;var u=Uc(e,n);if(!u.startsWith("[object "))return u;if(n.__sentry_skip_normalization__)return n;if(0===o)return u.replace("object ","");if(a(n))return"[Circular ~]";var c=n;if(c&&"function"===typeof c.toJSON)try{var p=c.toJSON();return jc("",p,o-1,r,i)}catch(v){}var d=Array.isArray(n)?[]:{},h=0,f=(0,sc.Sh)(n);for(var g in f)if(Object.prototype.hasOwnProperty.call(f,g)){if(h>=r){d[g]="[MaxProperties ~]";break}var m=f[g];d[g]=jc(g,m,o-1,r,i),h+=1}return l(n),d}function Uc(e,t){try{return"domain"===e&&t&&"object"===typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!==typeof n.g&&t===n.g?"[Global]":"undefined"!==typeof window&&t===window?"[Window]":"undefined"!==typeof document&&t===document?"[Document]":(0,Ac.Cy)(t)?"[SyntheticEvent]":"number"===typeof t&&t!==t?"[NaN]":void 0===t?"[undefined]":"function"===typeof t?"[Function: ".concat((0,uc.$P)(t),"]"):"symbol"===typeof t?"[".concat(String(t),"]"):"bigint"===typeof t?"[BigInt: ".concat(String(t),"]"):"[object ".concat(Object.getPrototypeOf(t).constructor.name,"]")}catch(o){return"**non-serializable** (".concat(o,")")}}function zc(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}var Zc=n(437);function Yc(e){if(e&&e.sdk){var t=e.sdk;return{name:t.name,version:t.version}}}function Kc(e,t,n,o){var r=Yc(n),i=e.type||"event",s=(e.sdkProcessingMetadata||{}).transactionSampling||{},a=s.method,l=s.rate;!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[].concat((0,Ft.Z)(e.sdk.integrations||[]),(0,Ft.Z)(t.integrations||[])),e.sdk.packages=[].concat((0,Ft.Z)(e.sdk.packages||[]),(0,Ft.Z)(t.packages||[])))}(e,n&&n.sdk);var u=function(e,t,n,o){var r=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baggage,i=r&&(0,Zc.Hk)(r);return(0,Et.Z)((0,Et.Z)((0,Et.Z)({event_id:e.event_id,sent_at:(new Date).toISOString()},t&&{sdk:t}),!!n&&{dsn:Oc(o)}),"transaction"===e.type&&i&&{trace:(0,sc.Jr)((0,Et.Z)({},i))})}(e,r,o,t);return delete e.sdkProcessingMetadata,xc(u,[[{type:i,sample_rates:[{id:a,rate:l}]},e]])}var qc="Not capturing exception because it's already been captured.",Xc=function(){function e(t){if((0,xt.Z)(this,e),e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._options=t,t.dsn){this._dsn=Pc(t.dsn);var n=yc(this._dsn,t);this._transport=t.transport((0,Et.Z)((0,Et.Z)({recordDroppedEvent:this.recordDroppedEvent.bind(this)},t.transportOptions),{},{url:n}))}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.warn("No DSN provided, client will not do anything.")}return(0,Nt.Z)(e,[{key:"__init",value:function(){this._integrations={}}},{key:"__init2",value:function(){this._integrationsInitialized=!1}},{key:"__init3",value:function(){this._numProcessing=0}},{key:"__init4",value:function(){this._outcomes={}}},{key:"captureException",value:function(e,t,n){var o=this;if(!(0,ec.YO)(e)){var r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((function(e){return o._captureEvent(e,t,n)})).then((function(e){r=e}))),r}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.log(qc)}},{key:"captureMessage",value:function(e,t,n,o){var r=this,i=n&&n.event_id,s=(0,Ac.pt)(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(s.then((function(e){return r._captureEvent(e,n,o)})).then((function(e){i=e}))),i}},{key:"captureEvent",value:function(e,t,n){if(!(t&&t.originalException&&(0,ec.YO)(t.originalException))){var o=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){o=e}))),o}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.log(qc)}},{key:"captureSession",value:function(e){this._isEnabled()?"string"!==typeof e.release?("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,Cc.CT)(e,{init:!1})):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.warn("SDK not enabled, will not capture session.")}},{key:"getDsn",value:function(){return this._dsn}},{key:"getOptions",value:function(){return this._options}},{key:"getTransport",value:function(){return this._transport}},{key:"flush",value:function(e){var t=this._transport;return t?this._isClientDoneProcessing(e).then((function(n){return t.flush(e).then((function(e){return n&&e}))})):(0,Dc.WD)(!0)}},{key:"close",value:function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))}},{key:"setupIntegrations",value:function(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e){var t={};return e.forEach((function(e){t[e.name]=e,-1===Xu.indexOf(e.name)&&(e.setupOnce(Yu.c,Ku.Gd),Xu.push(e.name),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.log("Integration installed: ".concat(e.name)))})),t}(this._options.integrations),this._integrationsInitialized=!0)}},{key:"getIntegrationById",value:function(e){return this._integrations[e]}},{key:"getIntegration",value:function(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.warn("Cannot retrieve integration ".concat(e.id," from the current Client")),null}}},{key:"sendEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._dsn){var n,o=Kc(e,this._dsn,this._options._metadata,this._options.tunnel),r=(0,Go.Z)(t.attachments||[]);try{for(r.s();!(n=r.n()).done;){var i=n.value;o=Nc(o,Fc(i,this._options.transportOptions&&this._options.transportOptions.textEncoder))}}catch(s){r.e(s)}finally{r.f()}this._sendEnvelope(o)}}},{key:"sendSession",value:function(e){if(this._dsn){var t=function(e,t,n,o){var r=Yc(n);return xc((0,Et.Z)((0,Et.Z)({sent_at:(new Date).toISOString()},r&&{sdk:r}),!!o&&{dsn:Oc(t)}),["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}},{key:"recordDroppedEvent",value:function(e,t){if(this._options.sendClientReports){var n="".concat(e,":").concat(t);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.log('Adding outcome: "'.concat(n,'"')),this._outcomes[n]=this._outcomes[n]+1||1}}},{key:"_updateSessionFromEvent",value:function(e,t){var n=!1,o=!1,r=t.exception&&t.exception.values;if(r){o=!0;var i,s=(0,Go.Z)(r);try{for(s.s();!(i=s.n()).done;){var a=i.value.mechanism;if(a&&!1===a.handled){n=!0;break}}}catch(u){s.e(u)}finally{s.f()}}var l="ok"===e.status;(l&&0===e.errors||l&&n)&&((0,Cc.CT)(e,(0,Et.Z)((0,Et.Z)({},n&&{status:"crashed"}),{},{errors:e.errors||Number(o||n)})),this.captureSession(e))}},{key:"_isClientDoneProcessing",value:function(e){var t=this;return new Dc.cW((function(n){var o=0,r=setInterval((function(){0==t._numProcessing?(clearInterval(r),n(!0)):(o+=1,e&&o>=e&&(clearInterval(r),n(!1)))}),1)}))}},{key:"_isEnabled",value:function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}},{key:"_prepareEvent",value:function(e,t,n){var o=this,r=this.getOptions(),i=r.normalizeDepth,s=void 0===i?3:i,a=r.normalizeMaxBreadth,l=void 0===a?1e3:a,u=(0,Et.Z)((0,Et.Z)({},e),{},{event_id:e.event_id||t.event_id||(0,ec.DM)(),timestamp:e.timestamp||(0,Hc.yW)()});this._applyClientOptions(u),this._applyIntegrationsMetadata(u);var c=n;t.captureContext&&(c=Yu.s.clone(c).update(t.captureContext));var p=(0,Dc.WD)(u);if(c){var d=[].concat((0,Ft.Z)(t.attachments||[]),(0,Ft.Z)(c.getAttachments()));d.length&&(t.attachments=d),p=c.applyToEvent(u,t)}return p.then((function(e){return"number"===typeof s&&s>0?o._normalizeEvent(e,s,l):e}))}},{key:"_normalizeEvent",value:function(e,t,n){if(!e)return null;var o=(0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return(0,Et.Z)((0,Et.Z)({},e),e.data&&{data:Vc(e.data,t,n)})}))}),e.user&&{user:Vc(e.user,t,n)}),e.contexts&&{contexts:Vc(e.contexts,t,n)}),e.extra&&{extra:Vc(e.extra,t,n)});return e.contexts&&e.contexts.trace&&o.contexts&&(o.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(o.contexts.trace.data=Vc(e.contexts.trace.data,t,n))),e.spans&&(o.spans=e.spans.map((function(e){return e.data&&(e.data=Vc(e.data,t,n)),e}))),o}},{key:"_applyClientOptions",value:function(e){var t=this.getOptions(),n=t.environment,o=t.release,r=t.dist,i=t.maxValueLength,s=void 0===i?250:i;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==o&&(e.release=o),void 0===e.dist&&void 0!==r&&(e.dist=r),e.message&&(e.message=(0,tc.$G)(e.message,s));var a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=(0,tc.$G)(a.value,s));var l=e.request;l&&l.url&&(l.url=(0,tc.$G)(l.url,s))}},{key:"_applyIntegrationsMetadata",value:function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[].concat((0,Ft.Z)(e.sdk.integrations||[]),t))}},{key:"_captureEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.warn(e)}))}},{key:"_processEvent",value:function(e,t,n){var o=this,r=this.getOptions(),i=r.beforeSend,s=r.sampleRate;if(!this._isEnabled())return(0,Dc.$2)(new Sc("SDK not enabled, will not capture event."));var a="transaction"===e.type;return!a&&"number"===typeof s&&Math.random()>s?(this.recordDroppedEvent("sample_rate","error"),(0,Dc.$2)(new Sc("Discarding event because it's not included in the random sample (sampling rate = ".concat(s,")")))):this._prepareEvent(e,t,n).then((function(n){if(null===n)throw o.recordDroppedEvent("event_processor",e.type||"error"),new Sc("An event processor returned null, will not send event.");return t.data&&!0===t.data.__sentry__||a||!i?n:function(e){var t="`beforeSend` method has to return `null` or a valid event.";if((0,Ac.J8)(e))return e.then((function(e){if(!(0,Ac.PO)(e)&&null!==e)throw new Sc(t);return e}),(function(e){throw new Sc("beforeSend rejected with ".concat(e))}));if(!(0,Ac.PO)(e)&&null!==e)throw new Sc(t);return e}(i(n,t))})).then((function(r){if(null===r)throw o.recordDroppedEvent("before_send",e.type||"error"),new Sc("`beforeSend` returned `null`, will not send event.");var i=n&&n.getSession();return!a&&i&&o._updateSessionFromEvent(i,r),o.sendEvent(r,t),r})).then(null,(function(e){if(e instanceof Sc)throw e;throw o.captureException(e,{data:{__sentry__:!0},originalException:e}),new Sc("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(e))}))}},{key:"_process",value:function(e){var t=this;this._numProcessing+=1,e.then((function(e){return t._numProcessing-=1,e}),(function(e){return t._numProcessing-=1,e}))}},{key:"_sendEnvelope",value:function(e){this._transport&&this._dsn?this._transport.send(e).then(null,(function(e){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.error("Error while sending event:",e)})):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.error("Transport disabled")}},{key:"_clearOutcomes",value:function(){var e=this._outcomes;return this._outcomes={},Object.keys(e).map((function(n){var o=n.split(":"),r=(0,t.Z)(o,2);return{reason:r[0],category:r[1],quantity:e[n]}}))}}]),e}();function Qc(e,t){var n=$c(e,t),o={type:t&&t.name,value:tp(t)};return n.length&&(o.stacktrace={frames:n}),void 0===o.type&&""===o.value&&(o.value="Unrecoverable error caught"),o}function Jc(e,t){return{exception:{values:[Qc(e,t)]}}}function $c(e,t){var n=t.stacktrace||t.stack||"",o=function(e){if(e){if("number"===typeof e.framesToPop)return e.framesToPop;if(ep.test(e.message))return 1}return 0}(t);try{return e(n,o)}catch(Gt){}return[]}var ep=/Minified React error #\d+;/i;function tp(e){var t=e&&e.message;return t?t.error&&"string"===typeof t.error.message?t.error.message:t:"No error message"}function np(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",o=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,i=o&&o.syntheticException||void 0,s=rp(e,t,i,r);return s.level=n,o&&o.event_id&&(s.event_id=o.event_id),(0,Dc.WD)(s)}function op(e,t,n,o,r){var i;if((0,Ac.VW)(t)&&t.error)return Jc(e,t.error);if((0,Ac.TX)(t)||(0,Ac.fm)(t)){var s=t;if("stack"in t)i=Jc(e,t);else{var a=s.name||((0,Ac.TX)(s)?"DOMError":"DOMException"),l=s.message?"".concat(a,": ").concat(s.message):a;i=rp(e,l,n,o),(0,ec.Db)(i,l)}return"code"in s&&(i.tags=(0,Et.Z)((0,Et.Z)({},i.tags),{},{"DOMException.code":"".concat(s.code)})),i}return(0,Ac.VZ)(t)?Jc(e,t):(0,Ac.PO)(t)||(0,Ac.cO)(t)?(i=function(e,t,n,o){var r={exception:{values:[{type:(0,Ac.cO)(t)?t.constructor.name:o?"UnhandledRejection":"Error",value:"Non-Error ".concat(o?"promise rejection":"exception"," captured with keys: ").concat((0,sc.zf)(t))}]},extra:{__serialized__:Wc(t)}};if(n){var i=$c(e,n);i.length&&(r.exception.values[0].stacktrace={frames:i})}return r}(e,t,n,r),(0,ec.EG)(i,{synthetic:!0}),i):(i=rp(e,t,n,o),(0,ec.Db)(i,"".concat(t),void 0),(0,ec.EG)(i,{synthetic:!0}),i)}function rp(e,t,n,o){var r={message:t};if(o&&n){var i=$c(e,n);i.length&&(r.exception={values:[{value:t,stacktrace:{frames:i}}]})}return r}var ip=n(128),sp=["fatal","error","warning","log","info","debug"];function ap(e){return"warn"===e?"warning":sp.includes(e)?e:"log"}var lp="Breadcrumbs",up=function(){function e(t){(0,xt.Z)(this,e),e.prototype.__init.call(this),this.options=(0,Et.Z)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return(0,Nt.Z)(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(){this.options.console&&(0,pc.o)("console",cp),this.options.dom&&(0,pc.o)("dom",function(e){function t(t){var n,o="object"===typeof e?e.serializeAttribute:void 0;"string"===typeof o&&(o=[o]);try{n=t.event.target?(0,ip.R)(t.event.target,o):(0,ip.R)(t.event,o)}catch(Gt){n="<unknown>"}0!==n.length&&(0,Ku.Gd)().addBreadcrumb({category:"ui.".concat(t.name),message:n},{event:t.event,name:t.name,global:t.global})}return t}(this.options.dom)),this.options.xhr&&(0,pc.o)("xhr",pp),this.options.fetch&&(0,pc.o)("fetch",dp),this.options.history&&(0,pc.o)("history",hp)}}],[{key:"__initStatic",value:function(){this.id=lp}}]),e}();function cp(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:ap(e.level),message:(0,tc.nK)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: ".concat((0,tc.nK)(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}(0,Ku.Gd)().addBreadcrumb(t,{input:e.args,level:e.level})}function pp(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,o=t.url,r=t.status_code,i=t.body;(0,Ku.Gd)().addBreadcrumb({category:"xhr",data:{method:n,url:o,status_code:r},type:"http"},{xhr:e.xhr,input:i})}else;}function dp(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?(0,Ku.Gd)().addBreadcrumb({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args}):(0,Ku.Gd)().addBreadcrumb({category:"fetch",data:(0,Et.Z)((0,Et.Z)({},e.fetchData),{},{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))}function hp(e){var t=(0,lc.R)(),n=e.from,o=e.to,r=(0,ec.en)(t.location.href),i=(0,ec.en)(n),s=(0,ec.en)(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),(0,Ku.Gd)().addBreadcrumb({category:"navigation",data:{from:n,to:o}})}up.__initStatic();var fp,gp=(0,lc.R)();function mp(){if(fp)return fp;if((0,cc.Du)(gp.fetch))return fp=gp.fetch.bind(gp);var e=gp.document,t=gp.fetch;if(e&&"function"===typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var o=n.contentWindow;o&&o.fetch&&(t=o.fetch),e.head.removeChild(n)}catch(Gt){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",Gt)}return fp=t.bind(gp)}var vp=(0,lc.R)(),yp=function(e){(0,At.Z)(n,e);var t=(0,fc.Z)(n);function n(e){var o;return(0,xt.Z)(this,n),e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:Zu}],version:Zu},o=t.call(this,e),e.sendClientReports&&vp.document&&vp.document.addEventListener("visibilitychange",(function(){"hidden"===vp.document.visibilityState&&o._flushOutcomes()})),o}return(0,Nt.Z)(n,[{key:"eventFromException",value:function(e,t){return function(e,t,n,o){var r=op(e,t,n&&n.syntheticException||void 0,o);return(0,ec.EG)(r),r.level="error",n&&n.event_id&&(r.event_id=n.event_id),(0,Dc.WD)(r)}(this._options.stackParser,e,t,this._options.attachStacktrace)}},{key:"eventFromMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2?arguments[2]:void 0;return np(this._options.stackParser,e,t,n,this._options.attachStacktrace)}},{key:"sendEvent",value:function(e,t){var o=this.getIntegrationById(lp);o&&o.options&&o.options.sentry&&(0,Ku.Gd)().addBreadcrumb({category:"sentry.".concat("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,ec.jH)(e)},{event:e}),(0,dc.Z)((0,hc.Z)(n.prototype),"sendEvent",this).call(this,e,t)}},{key:"_prepareEvent",value:function(e,t,o){return e.platform=e.platform||"javascript",(0,dc.Z)((0,hc.Z)(n.prototype),"_prepareEvent",this).call(this,e,t,o)}},{key:"_flushOutcomes",value:function(){var e=this._clearOutcomes();if(0!==e.length)if(this._dsn){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.log("Sending outcomes:",e);var t,n,o,r=yc(this._dsn,this._options),i=(t=e,xc((n=this._options.tunnel&&Oc(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:o||(0,Hc.yW)(),discarded_events:t}]]));try{!function(e,t){"[object Navigator]"===Object.prototype.toString.call(gp&&gp.navigator)&&"function"===typeof gp.navigator.sendBeacon?gp.navigator.sendBeacon.bind(gp.navigator)(e,t):(0,cc.Ak)()&&mp()(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,(function(e){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.error(e)}))}(r,Lc(i))}catch(Gt){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.error(Gt)}}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.log("No dsn provided, will not send outcomes");else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.log("No outcomes to send")}}]),n}(Xc),Cp="?";function wp(e,t,n,o){var r={filename:e,function:t,in_app:!0};return void 0!==n&&(r.lineno=n),void 0!==o&&(r.colno=o),r}var _p=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,bp=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ep=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Sp=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Rp=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Op=[[30,function(e){var n=_p.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){var o=bp.exec(n[2]);o&&(n[2]=o[1],n[3]=o[2],n[4]=o[3])}var r=Pp(n[1]||Cp,n[2]),i=(0,t.Z)(r,2),s=i[0];return wp(i[1],s,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,function(e){var n=Ep.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var o=Sp.exec(n[3]);o&&(n[1]=n[1]||"eval",n[3]=o[1],n[4]=o[2],n[5]="")}var r=n[3],i=n[1]||Cp,s=Pp(i,r),a=(0,t.Z)(s,2);return i=a[0],wp(r=a[1],i,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],[40,function(e){var t=Rp.exec(e);return t?wp(t[2],t[1]||Cp,+t[3],t[4]?+t[4]:void 0):void 0}]],Tp=uc.pE.apply(void 0,Op),Pp=function(e,t){var n=-1!==e.indexOf("safari-extension"),o=-1!==e.indexOf("safari-web-extension");return n||o?[-1!==e.indexOf("@")?e.split("@")[0]:Cp,n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]};function Ap(e,t){return(0,Ku.Gd)().captureException(e,{captureContext:t})}function Dp(e){(0,Ku.Gd)().withScope(e)}var xp=0;function Np(){return xp>0}function Mp(){xp+=1,setTimeout((function(){xp-=1}))}function Ip(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if("function"!==typeof e)return e;try{var o=e.__sentry_wrapped__;if(o)return o;if((0,sc.HK)(e))return e}catch(Gt){return e}var r=function(){var o=Array.prototype.slice.call(arguments);try{n&&"function"===typeof n&&n.apply(this,arguments);var r=o.map((function(e){return Ip(e,t)}));return e.apply(this,r)}catch(i){throw Mp(),Dp((function(e){e.addEventProcessor((function(e){return t.mechanism&&((0,ec.Db)(e,void 0,void 0),(0,ec.EG)(e,t.mechanism)),e.extra=(0,Et.Z)((0,Et.Z)({},e.extra),{},{arguments:o}),e})),Ap(i)})),i}};try{for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch(a){}(0,sc.$Q)(r,e),(0,sc.xp)(e,"__sentry_wrapped__",r);try{var s=Object.getOwnPropertyDescriptor(r,"name");s.configurable&&Object.defineProperty(r,"name",{get:function(){return e.name}})}catch(a){}return r}var Lp=["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"],Fp=function(){function e(t){(0,xt.Z)(this,e),e.prototype.__init.call(this),this._options=(0,Et.Z)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return(0,Nt.Z)(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(){var e=(0,lc.R)();this._options.setTimeout&&(0,sc.hl)(e,"setTimeout",kp),this._options.setInterval&&(0,sc.hl)(e,"setInterval",kp),this._options.requestAnimationFrame&&(0,sc.hl)(e,"requestAnimationFrame",Gp),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&(0,sc.hl)(XMLHttpRequest.prototype,"send",Hp);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:Lp).forEach(Bp)}}],[{key:"__initStatic",value:function(){this.id="TryCatch"}}]),e}();function kp(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var r=n[0];return n[0]=Ip(r,{mechanism:{data:{function:(0,uc.$P)(e)},handled:!0,type:"instrument"}}),e.apply(this,n)}}function Gp(e){return function(t){return e.apply(this,[Ip(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,uc.$P)(e)},handled:!0,type:"instrument"}})])}}function Hp(e){return function(){var t=this,n=["onload","onerror","onprogress","onreadystatechange"];n.forEach((function(e){e in t&&"function"===typeof t[e]&&(0,sc.hl)(t,e,(function(t){var n={mechanism:{data:{function:e,handler:(0,uc.$P)(t)},handled:!0,type:"instrument"}},o=(0,sc.HK)(t);return o&&(n.mechanism.data.handler=(0,uc.$P)(o)),Ip(t,n)}))}));for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return e.apply(this,r)}}function Bp(e){var t=(0,lc.R)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,sc.hl)(n,"addEventListener",(function(t){return function(n,o,r){try{"function"===typeof o.handleEvent&&(o.handleEvent=Ip(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,uc.$P)(o),target:e},handled:!0,type:"instrument"}}))}catch(i){}return t.apply(this,[n,Ip(o,{mechanism:{data:{function:"addEventListener",handler:(0,uc.$P)(o),target:e},handled:!0,type:"instrument"}}),r])}})),(0,sc.hl)(n,"removeEventListener",(function(e){return function(t,n,o){var r=n;try{var i=r&&r.__sentry_wrapped__;i&&e.call(this,t,i,o)}catch(Gt){}return e.call(this,t,r,o)}})))}Fp.__initStatic();var Vp=function(){function e(t){(0,xt.Z)(this,e),e.prototype.__init.call(this),e.prototype.__init2.call(this),this._options=(0,Et.Z)({onerror:!0,onunhandledrejection:!0},t)}return(0,Nt.Z)(e,[{key:"__init",value:function(){this.name=e.id}},{key:"__init2",value:function(){this._installFunc={onerror:Wp,onunhandledrejection:jp}}},{key:"setupOnce",value:function(){Error.stackTraceLimit=50;var e,t=this._options;for(var n in t){var o=this._installFunc[n];o&&t[n]&&(e=n,("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.log("Global Handler attached: ".concat(e)),o(),this._installFunc[n]=void 0)}}}],[{key:"__initStatic",value:function(){this.id="GlobalHandlers"}}]),e}();function Wp(){(0,pc.o)("error",(function(e){var n=Zp(),o=(0,t.Z)(n,3),r=o[0],i=o[1],s=o[2];if(r.getIntegration(Vp)){var a=e.msg,l=e.url,u=e.line,c=e.column,p=e.error;if(!(Np()||p&&p.__sentry_own_request__)){var d=void 0===p&&(0,Ac.HD)(a)?function(e,t,n,o){var r=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,i=(0,Ac.VW)(e)?e.message:e,s="Error",a=i.match(r);a&&(s=a[1],i=a[2]);return Up({exception:{values:[{type:s,value:i}]}},t,n,o)}(a,l,u,c):Up(op(i,p||a,void 0,s,!1),l,u,c);d.level="error",zp(r,p,d,"onerror")}}}))}function jp(){(0,pc.o)("unhandledrejection",(function(e){var n=Zp(),o=(0,t.Z)(n,3),r=o[0],i=o[1],s=o[2];if(r.getIntegration(Vp)){var a=e;try{"reason"in e?a=e.reason:"detail"in e&&"reason"in e.detail&&(a=e.detail.reason)}catch(u){}if(Np()||a&&a.__sentry_own_request__)return!0;var l=(0,Ac.pt)(a)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(a))}]}}:op(i,a,void 0,s,!0);l.level="error",zp(r,a,l,"onunhandledrejection")}}))}function Up(e,t,n,o){var r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],u=isNaN(parseInt(o,10))?void 0:o,c=isNaN(parseInt(n,10))?void 0:n,p=(0,Ac.HD)(t)&&t.length>0?t:(0,ip.l)();return 0===l.length&&l.push({colno:u,filename:p,function:"?",in_app:!0,lineno:c}),e}function zp(e,t,n,o){(0,ec.EG)(n,{handled:!1,type:o}),e.captureEvent(n,{originalException:t})}function Zp(){var e=(0,Ku.Gd)(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:function(){return[]},attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}Vp.__initStatic();var Yp="cause",Kp=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,xt.Z)(this,e),e.prototype.__init.call(this),this._key=t.key||Yp,this._limit=t.limit||5}return(0,Nt.Z)(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(){var t=(0,Ku.Gd)().getClient();t&&(0,Yu.c)((function(n,o){var r=(0,Ku.Gd)().getIntegration(e);return r?function(e,t,n,o,r){if(!o.exception||!o.exception.values||!r||!(0,Ac.V9)(r.originalException,Error))return o;var i=qp(e,n,r.originalException,t);return o.exception.values=[].concat((0,Ft.Z)(i),(0,Ft.Z)(o.exception.values)),o}(t.getOptions().stackParser,r._key,r._limit,n,o):n}))}}],[{key:"__initStatic",value:function(){this.id="LinkedErrors"}}]),e}();function qp(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];if(!(0,Ac.V9)(n[o],Error)||r.length+1>=t)return r;var i=Qc(e,n[o]);return qp(e,t,n[o],o,[i].concat((0,Ft.Z)(r)))}Kp.__initStatic();var Xp=function(){function e(){(0,xt.Z)(this,e),e.prototype.__init.call(this)}return(0,Nt.Z)(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(t,n){var o=function(t){var o=n().getIntegration(e);if(o){try{if(function(e,t){if(!t)return!1;if(function(e,t){var n=e.message,o=t.message;if(!n&&!o)return!1;if(n&&!o||!n&&o)return!1;if(n!==o)return!1;if(!Jp(e,t))return!1;if(!Qp(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){var n=$p(t),o=$p(e);if(!n||!o)return!1;if(n.type!==o.type||n.value!==o.value)return!1;if(!Jp(e,t))return!1;if(!Qp(e,t))return!1;return!0}(e,t))return!0;return!1}(t,o._previousEvent))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(r){return o._previousEvent=t}return o._previousEvent=t}return t};o.id=this.name,t(o)}}],[{key:"__initStatic",value:function(){this.id="Dedupe"}}]),e}();function Qp(e,t){var n=ed(e),o=ed(t);if(!n&&!o)return!0;if(n&&!o||!n&&o)return!1;if(o.length!==n.length)return!1;for(var r=0;r<o.length;r++){var i=o[r],s=n[r];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function Jp(e,t){var n=e.fingerprint,o=t.fingerprint;if(!n&&!o)return!0;if(n&&!o||!n&&o)return!1;try{return!(n.join("")!==o.join(""))}catch(r){return!1}}function $p(e){return e.exception&&e.exception.values&&e.exception.values[0]}function ed(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(n){return}}Xp.__initStatic();var td=(0,lc.R)(),nd=function(){function e(){(0,xt.Z)(this,e),e.prototype.__init.call(this)}return(0,Nt.Z)(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(){(0,Yu.c)((function(t){if((0,Ku.Gd)().getIntegration(e)){if(!td.navigator&&!td.location&&!td.document)return t;var n=t.request&&t.request.url||td.location&&td.location.href,o=(td.document||{}).referrer,r=(td.navigator||{}).userAgent,i=(0,Et.Z)((0,Et.Z)((0,Et.Z)({},t.request&&t.request.headers),o&&{Referer:o}),r&&{"User-Agent":r}),s=(0,Et.Z)((0,Et.Z)({},n&&{url:n}),{},{headers:i});return(0,Et.Z)((0,Et.Z)({},t),{},{request:s})}return t}))}}],[{key:"__initStatic",value:function(){this.id="HttpContext"}}]),e}();function od(e){var t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(o){if(!(void 0===e||t.length<e))return(0,Dc.$2)(new Sc("Not adding Promise due to buffer limit reached."));var r=o();return-1===t.indexOf(r)&&t.push(r),r.then((function(){return n(r)})).then(null,(function(){return n(r).then(null,(function(){}))})),r},drain:function(e){return new Dc.cW((function(n,o){var r=t.length;if(!r)return n(!0);var i=setTimeout((function(){e&&e>0&&n(!1)}),e);t.forEach((function(e){(0,Dc.WD)(e).then((function(){--r||(clearTimeout(i),n(!0))}),o)}))}))}}}nd.__initStatic();function rd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),n=parseInt("".concat(e),10);if(!isNaN(n))return 1e3*n;var o=Date.parse("".concat(e));return isNaN(o)?6e4:o-t}function id(e,t){return e[t]||e.all||0}function sd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return id(e,t)>n}function ad(e,n){var o=n.statusCode,r=n.headers,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now(),s=(0,Et.Z)({},e),a=r&&r["x-sentry-rate-limits"],l=r&&r["retry-after"];if(a){var u,c=(0,Go.Z)(a.trim().split(","));try{for(c.s();!(u=c.n()).done;){var p=u.value,d=p.split(":",2),h=(0,t.Z)(d,2),f=h[0],g=h[1],m=parseInt(f,10),v=1e3*(isNaN(m)?60:m);if(g){var y,C=(0,Go.Z)(g.split(";"));try{for(C.s();!(y=C.n()).done;){var w=y.value;s[w]=i+v}}catch(_){C.e(_)}finally{C.f()}}else s.all=i+v}}catch(_){c.e(_)}finally{c.f()}}else l?s.all=i+rd(l,i):429===o&&(s.all=i+6e4);return s}function ld(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:od(e.bufferSize||30),o={},r=function(e){return n.drain(e)};function i(r){var i=[];if(Mc(r,(function(t,n){var r=Gc(n);sd(o,r)?e.recordDroppedEvent("ratelimit_backoff",r):i.push(t)})),0===i.length)return(0,Dc.WD)();var s=xc(r[0],i),a=function(t){Mc(s,(function(n,o){e.recordDroppedEvent(t,Gc(o))}))};return n.add((function(){return t({body:Lc(s,e.textEncoder)}).then((function(e){void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.warn("Sentry responded with status code ".concat(e.statusCode," to sent event.")),o=ad(o,e)}),(function(e){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.error("Failed while sending event:",e),a("network_error")}))})).then((function(e){return e}),(function(e){if(e instanceof Sc)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.error("Skipped sending event due to full buffer"),a("queue_overflow"),(0,Dc.WD)();throw e}))}return{send:i,flush:r}}function ud(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:mp();function n(n){var o=(0,Et.Z)({body:n.body,method:"POST",referrerPolicy:"origin",headers:e.headers},e.fetchOptions);return t(e.url,o).then((function(e){return{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}}))}return ld(e,n)}function cd(e){return ld(e,(function(t){return new Dc.cW((function(n,o){var r=new XMLHttpRequest;for(var i in r.onerror=o,r.onreadystatechange=function(){4===r.readyState&&n({statusCode:r.status,headers:{"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")}})},r.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,i)&&r.setRequestHeader(i,e.headers[i]);r.send(t.body)}))}))}var pd=[new oc,new ac,new Fp,new up,new Vp,new Kp,new Xp,new nd];function dd(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function hd(){if("undefined"!==typeof(0,lc.R)().document){var e=(0,Ku.Gd)();e.captureSession&&(dd(e),(0,pc.o)("history",(function(e){var t=e.from,n=e.to;void 0!==t&&t!==n&&dd((0,Ku.Gd)())})))}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}var fd=n(3499),gd=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");var md=n(5522),vd=n(5129),yd=(0,lc.R)();var Cd=n(7717),wd=function(e,t,n){var o;return function(r){t.value>=0&&(r||n)&&(t.delta=t.value-(o||0),(t.delta||void 0===o)&&(o=t.value,e(t)))}},_d=function(e,t){return{name:e,value:(0,Cd.h)(t,(function(){return-1})),delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},bd=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(Gt){}},Ed=function(e,t){var n=function n(o){"pagehide"!==o.type&&"hidden"!==(0,lc.R)().document.visibilityState||(e(o),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Sd=-1,Rd=function(){return Sd<0&&(Sd="hidden"===(0,lc.R)().document.visibilityState?0:1/0,Ed((function(e){var t=e.timeStamp;Sd=t}),!0)),{get firstHiddenTime(){return Sd}}},Od={},Td=["startTimestamp"];function Pd(e){return"number"===typeof e&&isFinite(e)}function Ad(e,t){var n=t.startTimestamp,o=Yl(t,Td);return n&&e.startTimestamp>n&&(e.startTimestamp=n),e.startChild((0,Et.Z)({startTimestamp:n},o))}var Dd=(0,lc.R)();function xd(){return Dd&&Dd.addEventListener&&Dd.performance}var Nd,Md,Id=0,Ld={};function Fd(){!function(e,t){var n,o=_d("CLS",0),r=0,i=[],s=function(e){if(e&&!e.hadRecentInput){var t=i[0],s=i[i.length-1];r&&0!==i.length&&e.startTime-s.startTime<1e3&&e.startTime-t.startTime<5e3?(r+=e.value,i.push(e)):(r=e.value,i=[e]),r>o.value&&(o.value=r,o.entries=i,n&&n())}},a=bd("layout-shift",s);a&&(n=wd(e,o,t),Ed((function(){a.takeRecords().map(s),n(!0)})))}((function(e){var t=e.entries.pop();t&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.log("[Measurements] Adding CLS"),Ld.cls={value:e.value,unit:""},Md=t)}))}function kd(e){!function(e,t){var n,o=Rd(),r=_d("LCP"),i=function(e){var t=e.startTime;t<o.firstHiddenTime&&(r.value=t,r.entries.push(e)),n&&n()},s=bd("largest-contentful-paint",i);if(s){n=wd(e,r,t);var a=function(){Od[r.id]||(s.takeRecords().map(i),s.disconnect(),Od[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,a,{once:!0,capture:!0})})),Ed(a,!0)}}((function(e){var t=e.entries.pop();if(t){var n=(0,vd.XL)(Hc.Z1),o=(0,vd.XL)(t.startTime);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.log("[Measurements] Adding LCP"),Ld.lcp={value:e.value,unit:"millisecond"},Ld["mark.lcp"]={value:n+o,unit:"second"},Nd=t}}),e)}function Gd(){!function(e,t){var n,o=Rd(),r=_d("FID"),i=function(e){n&&e.startTime<o.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},s=bd("first-input",i);s&&(n=wd(e,r,t),Ed((function(){s.takeRecords().map(i),s.disconnect()}),!0))}((function(e){var t=e.entries.pop();if(t){var n=(0,vd.XL)(Hc.Z1),o=(0,vd.XL)(t.startTime);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.log("[Measurements] Adding FID"),Ld.fid={value:e.value,unit:"millisecond"},Ld["mark.fid"]={value:n+o,unit:"second"}}}))}function Hd(e){var t=xd();if(t&&Dd.performance.getEntries&&Hc.Z1){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.log("[Tracing] Adding & adjusting spans using Performance API");var n,o,r=(0,vd.XL)(Hc.Z1),i=t.getEntries();i.slice(Id).forEach((function(t){var i=(0,vd.XL)(t.startTime),s=(0,vd.XL)(t.duration);if(!("navigation"===e.op&&r+i<e.startTimestamp))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((function(o){Bd(e,t,o,n)})),Bd(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),Bd(e,t,"fetch",n,"cache","domainLookupStart"),Bd(e,t,"domainLookup",n,"DNS"),function(e,t,n){Ad(e,{op:"browser",description:"request",startTimestamp:n+(0,vd.XL)(t.requestStart),endTimestamp:n+(0,vd.XL)(t.responseEnd)}),Ad(e,{op:"browser",description:"response",startTimestamp:n+(0,vd.XL)(t.responseStart),endTimestamp:n+(0,vd.XL)(t.responseEnd)})}(e,t,n)}(e,t,r),n=r+(0,vd.XL)(t.responseStart),o=r+(0,vd.XL)(t.requestStart);break;case"mark":case"paint":case"measure":var a=function(e,t,n,o,r){var i=r+n,s=i+o;return Ad(e,{description:t.name,endTimestamp:s,op:t.entryType,startTimestamp:i}),i}(e,t,i,s,r),l=Rd(),u=t.startTime<l.firstHiddenTime;"first-paint"===t.name&&u&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.log("[Measurements] Adding FP"),Ld.fp={value:t.startTime,unit:"millisecond"},Ld["mark.fp"]={value:a,unit:"second"}),"first-contentful-paint"===t.name&&u&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.log("[Measurements] Adding FCP"),Ld.fcp={value:t.startTime,unit:"millisecond"},Ld["mark.fcp"]={value:a,unit:"second"});break;case"resource":var c=t.name.replace(Dd.location.origin,"");!function(e,t,n,o,r,i){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;var s={};"transferSize"in t&&(s["Transfer Size"]=t.transferSize);"encodedBodySize"in t&&(s["Encoded Body Size"]=t.encodedBodySize);"decodedBodySize"in t&&(s["Decoded Body Size"]=t.decodedBodySize);var a=i+o;Ad(e,{description:n,endTimestamp:a+r,op:t.initiatorType?"resource.".concat(t.initiatorType):"resource",startTimestamp:a,data:s})}(e,t,c,i,s,r)}})),Id=Math.max(i.length-1,0),function(e){var t=Dd.navigator;if(!t)return;var n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),Pd(n.rtt)&&(Ld["connection.rtt"]={value:n.rtt,unit:"millisecond"}),Pd(n.downlink)&&(Ld["connection.downlink"]={value:n.downlink,unit:""}));Pd(t.deviceMemory)&&e.setTag("deviceMemory","".concat(t.deviceMemory," GB"));Pd(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===e.op&&("number"===typeof n&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.log("[Measurements] Adding TTFB"),Ld.ttfb={value:1e3*(n-e.startTimestamp),unit:"millisecond"},"number"===typeof o&&o<=n&&(Ld["ttfb.requestTime"]={value:1e3*(n-o),unit:"millisecond"})),["fcp","fp","lcp"].forEach((function(t){if(Ld[t]&&!(r>=e.startTimestamp)){var n=Ld[t].value,o=r+(0,vd.XL)(n),i=Math.abs(1e3*(o-e.startTimestamp)),s=i-n;("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.log("[Measurements] Normalized ".concat(t," from ").concat(n," to ").concat(i," (").concat(s,")")),Ld[t].value=i}})),Ld["mark.fid"]&&Ld.fid&&Ad(e,{description:"first input delay",endTimestamp:Ld["mark.fid"].value+(0,vd.XL)(Ld.fid.value),op:"web.vitals",startTimestamp:Ld["mark.fid"].value}),"fcp"in Ld||delete Ld.cls,Object.keys(Ld).forEach((function(t){e.setMeasurement(t,Ld[t].value,Ld[t].unit)})),function(e){Nd&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.log("[Measurements] Adding LCP Data"),Nd.element&&e.setTag("lcp.element",(0,ip.R)(Nd.element)),Nd.id&&e.setTag("lcp.id",Nd.id),Nd.url&&e.setTag("lcp.url",Nd.url.trim().slice(0,200)),e.setTag("lcp.size",Nd.size));Md&&Md.sources&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.log("[Measurements] Adding CLS Data"),Md.sources.forEach((function(t,n){return e.setTag("cls.source.".concat(n+1),(0,ip.R)(t.node))})))}(e)),Nd=void 0,Md=void 0,Ld={}}}function Bd(e,t,n,o,r,i){var s=i?t[i]:t["".concat(n,"End")],a=t["".concat(n,"Start")];a&&s&&Ad(e,{op:"browser",description:(0,Cd.h)(r,(function(){return n})),startTimestamp:o+(0,vd.XL)(a),endTimestamp:o+(0,vd.XL)(s)})}var Vd={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};function Wd(e){var n=(0,Et.Z)((0,Et.Z)({},Vd),e),o=n.traceFetch,r=n.traceXHR,i=n.tracingOrigins,s=n.shouldCreateSpanForRequest,a={},l=function(e){if(a[e])return a[e];var t=i;return a[e]=t.some((function(t){return(0,tc.zC)(e,t)}))&&!(0,tc.zC)(e,"sentry_key"),a[e]},u=l;"function"===typeof s&&(u=function(e){return l(e)&&s(e)});var c={};o&&(0,pc.o)("fetch",(function(e){!function(e,n,o){if(!(0,vd.zu)()||!e.fetchData||!n(e.fetchData.url))return;if(e.endTimestamp){var r=e.fetchData.__span;if(!r)return;return void((s=o[r])&&(e.response?s.setHttpStatus(e.response.status):e.error&&s.setStatus("internal_error"),s.finish(),delete o[r]))}var i=(0,vd.x1)();if(i){var s=i.startChild({data:(0,Et.Z)((0,Et.Z)({},e.fetchData),{},{type:"fetch"}),description:"".concat(e.fetchData.method," ").concat(e.fetchData.url),op:"http.client"});e.fetchData.__span=s.spanId,o[s.spanId]=s;var a=e.args[0]=e.args[0],l=e.args[1]=e.args[1]||{};l.headers=function(e,n,o,r){var i=r.headers;(0,Ac.V9)(e,Request)&&(i=e.headers);if(i)if("function"===typeof i.append)i.append("sentry-trace",o.toTraceparent()),i.append(Zc.bU,(0,Zc.J8)(n,i.get(Zc.bU)));else if(Array.isArray(i)){var s=i.find((function(e){var n=(0,t.Z)(e,2),o=n[0];n[1];return o===Zc.bU})),a=(0,t.Z)(s,2)[1];i=[].concat((0,Ft.Z)(i),[["sentry-trace",o.toTraceparent()],[Zc.bU,(0,Zc.J8)(n,a)]])}else i=(0,Et.Z)((0,Et.Z)({},i),{},{"sentry-trace":o.toTraceparent(),baggage:(0,Zc.J8)(n,i.baggage)});else i={"sentry-trace":o.toTraceparent(),baggage:(0,Zc.J8)(n)};return i}(a,i.getBaggage(),s,l)}}(e,u,c)})),r&&(0,pc.o)("xhr",(function(e){!function(e,t,n){if(!(0,vd.zu)()||e.xhr&&e.xhr.__sentry_own_request__||!(e.xhr&&e.xhr.__sentry_xhr__&&t(e.xhr.__sentry_xhr__.url)))return;var o=e.xhr.__sentry_xhr__;if(e.endTimestamp){var r=e.xhr.__sentry_xhr_span_id__;if(!r)return;return void((s=n[r])&&(s.setHttpStatus(o.status_code),s.finish(),delete n[r]))}var i=(0,vd.x1)();if(i){var s=i.startChild({data:(0,Et.Z)((0,Et.Z)({},o.data),{},{type:"xhr",method:o.method,url:o.url}),description:"".concat(o.method," ").concat(o.url),op:"http.client"});if(e.xhr.__sentry_xhr_span_id__=s.spanId,n[e.xhr.__sentry_xhr_span_id__]=s,e.xhr.setRequestHeader)try{e.xhr.setRequestHeader("sentry-trace",s.toTraceparent());var a=e.xhr.getRequestHeader&&e.xhr.getRequestHeader(Zc.bU);e.xhr.setRequestHeader(Zc.bU,(0,Zc.J8)(i.getBaggage(),a))}catch(ae){}}}(e,u,c)}))}var jd=(0,lc.R)();var Ud=(0,Et.Z)({idleTimeout:md.nT,finalTimeout:md.mg,markBackgroundTransactions:!0,routingInstrumentation:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(jd&&jd.location){var o,r=jd.location.href;t&&(o=e({name:jd.location.pathname,op:"pageload",metadata:{source:"url"}})),n&&(0,pc.o)("history",(function(t){var n=t.to,i=t.from;void 0===i&&r&&-1!==r.indexOf(n)?r=void 0:i!==n&&(r=void 0,o&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.log("[Tracing] Finishing current transaction with op: ".concat(o.op)),o.finish()),o=e({name:jd.location.pathname,op:"navigation",metadata:{source:"url"}}))}))}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},Vd),zd=function(){function e(t){(0,xt.Z)(this,e),e.prototype.__init.call(this);var n=Vd.tracingOrigins;t&&(t.tracingOrigins&&Array.isArray(t.tracingOrigins)&&0!==t.tracingOrigins.length?n=t.tracingOrigins:("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._emitOptionsWarning=!0)),this.options=(0,Et.Z)((0,Et.Z)((0,Et.Z)({},Ud),t),{},{tracingOrigins:n});var o=this.options._metricOptions;!function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=xd();t&&Hc.Z1&&(t.mark&&Dd.performance.mark("sentry-tracing-init"),Fd(),kd(e),Gd())}(o&&o._reportAllChanges)}return(0,Nt.Z)(e,[{key:"__init",value:function(){this.name="BrowserTracing"}},{key:"setupOnce",value:function(e,t){var n=this;this._getCurrentHub=t,this._emitOptionsWarning&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.warn("[Tracing] We added a reasonable default for you: ".concat(Vd.tracingOrigins)));var o=this.options,r=o.routingInstrumentation,i=o.startTransactionOnLocationChange,s=o.startTransactionOnPageLoad,a=o.markBackgroundTransactions,l=o.traceFetch,u=o.traceXHR,c=o.tracingOrigins,p=o.shouldCreateSpanForRequest;r((function(e){return n._createRouteTransaction(e)}),s,i),a&&(yd&&yd.document?yd.document.addEventListener("visibilitychange",(function(){var e=(0,vd.x1)();if(yd.document.hidden&&e){var t="cancelled";("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.log("[Tracing] Transaction: ".concat(t," -> since tab moved to the background, op: ").concat(e.op)),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}})):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),Wd({traceFetch:l,traceXHR:u,tracingOrigins:c,shouldCreateSpanForRequest:p})}},{key:"_createRouteTransaction",value:function(e){var t=this;if(this._getCurrentHub){var n=this.options,o=n.beforeNavigate,r=n.idleTimeout,i=n.finalTimeout,s="pageload"===e.op?function(){var e=Zd("sentry-trace"),t=Zd("baggage"),n=e?function(e){var t,n=e.match(gd);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}(e):void 0,o=(0,Zc.rg)(t,e);if(n||o)return(0,Et.Z)((0,Et.Z)({},n&&n),o&&{metadata:{baggage:o}});return}():void 0,a=(0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)({},e),s),s&&{metadata:(0,Et.Z)((0,Et.Z)({},e.metadata),s.metadata)}),{},{trimEnd:!0}),l="function"===typeof o?o(a):a,u=void 0===l?(0,Et.Z)((0,Et.Z)({},a),{},{sampled:!1}):l;u.metadata=u.name!==a.name?(0,Et.Z)((0,Et.Z)({},u.metadata),{},{source:"custom"}):u.metadata,!1===u.sampled&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.log("[Tracing] Will not send ".concat(u.op," transaction because of beforeNavigate.")),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.log("[Tracing] Starting ".concat(u.op," transaction on scope"));var c=this._getCurrentHub(),p=(0,lc.R)().location,d=(0,fd.lb)(c,u,r,i,!0,{location:p});return d.registerBeforeFinishCallback((function(e){Hd(e),e.setTag("sentry_reportAllChanges",Boolean(t.options._metricOptions&&t.options._metricOptions._reportAllChanges))})),d}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&qu.kg.warn("[Tracing] Did not create ".concat(e.op," transaction because _getCurrentHub is invalid."))}}]),e}();function Zd(e){var t=(0,lc.R)();if(t.document&&t.document.querySelector){var n=t.document.querySelector("meta[name=".concat(e,"]"));return n?n.getAttribute("content"):null}return null}("undefined"===typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,fd.ro)();var Yd,Kd,qd=function(e){e&&e instanceof Function&&n.e(787).then(n.bind(n,787)).then((function(t){var n=t.getCLS,o=t.getFID,r=t.getFCP,i=t.getLCP,s=t.getTTFB;n(e),o(e),r(e),i(e),s(e)}))};(Kd={dsn:null!==(Yd={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SENTRY_DSN)&&void 0!==Yd?Yd:"https://7c5d37a228d341199489039e51f58011@o387782.ingest.sentry.io/6613470",integrations:[new zd],tracesSampleRate:.1,environment:"production",release:"v0.5.0"})._metadata=Kd._metadata||{},Kd._metadata.sdk=Kd._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:Zu}],version:Zu},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(void 0===e.defaultIntegrations&&(e.defaultIntegrations=pd),void 0===e.release){var t=(0,lc.R)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);var n=(0,Et.Z)((0,Et.Z)({},e),{},{stackParser:(0,uc.Sq)(e.stackParser||Tp),integrations:Ju(e),transport:e.transport||((0,cc.Ak)()?ud:cd)});$u(yp,n),e.autoSessionTracking&&hd()}(Kd),z.createRoot(document.getElementById("root")).render((0,To.jsx)(j,{basename:"/app",children:(0,To.jsx)(zu,{})})),qd()}()}();
-//# sourceMappingURL=main.d22853ff.js.map
+/*! For license information please see main.b4f546c3.js.LICENSE.txt */
+!function(){var e={8539:function(e,t,n){"use strict";n.d(t,{Gd:function(){return m},cu:function(){return f}});var o=n(1413),r=n(5671),i=n(3144),s=n(6870),a=n(9846),l=n(6017),u=n(2968),c=n(9509),p=n(1917),d=n(3082),h=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new p.s,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4;(0,r.Z)(this,e),this._version=o,e.prototype.__init.call(this),this.getStackTop().scope=n,t&&this.bindClient(t)}return(0,i.Z)(e,[{key:"__init",value:function(){this._stack=[{}]}},{key:"isOlderThan",value:function(e){return this._version<e}},{key:"bindClient",value:function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}},{key:"pushScope",value:function(){var e=p.s.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}},{key:"popScope",value:function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}},{key:"withScope",value:function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}}},{key:"getClient",value:function(){return this.getStackTop().client}},{key:"getScope",value:function(){return this.getStackTop().scope}},{key:"getStack",value:function(){return this._stack}},{key:"getStackTop",value:function(){return this._stack[this._stack.length-1]}},{key:"captureException",value:function(e,t){var n=this._lastEventId=t&&t.event_id?t.event_id:(0,s.DM)(),r=new Error("Sentry syntheticException");return this._withClient((function(i,s){i.captureException(e,(0,o.Z)((0,o.Z)({originalException:e,syntheticException:r},t),{},{event_id:n}),s)})),n}},{key:"captureMessage",value:function(e,t,n){var r=this._lastEventId=n&&n.event_id?n.event_id:(0,s.DM)(),i=new Error(e);return this._withClient((function(s,a){s.captureMessage(e,t,(0,o.Z)((0,o.Z)({originalException:e,syntheticException:i},n),{},{event_id:r}),a)})),r}},{key:"captureEvent",value:function(e,t){var n=t&&t.event_id?t.event_id:(0,s.DM)();return"transaction"!==e.type&&(this._lastEventId=n),this._withClient((function(r,i){r.captureEvent(e,(0,o.Z)((0,o.Z)({},t),{},{event_id:n}),i)})),n}},{key:"lastEventId",value:function(){return this._lastEventId}},{key:"addBreadcrumb",value:function(e,t){var n=this.getStackTop(),r=n.scope,i=n.client;if(r&&i){var s=i.getOptions&&i.getOptions()||{},u=s.beforeBreadcrumb,c=void 0===u?null:u,p=s.maxBreadcrumbs,d=void 0===p?100:p;if(!(d<=0)){var h=(0,a.yW)(),f=(0,o.Z)({timestamp:h},e),g=c?(0,l.Cf)((function(){return c(f,t)})):f;null!==g&&r.addBreadcrumb(g,d)}}}},{key:"setUser",value:function(e){var t=this.getScope();t&&t.setUser(e)}},{key:"setTags",value:function(e){var t=this.getScope();t&&t.setTags(e)}},{key:"setExtras",value:function(e){var t=this.getScope();t&&t.setExtras(e)}},{key:"setTag",value:function(e,t){var n=this.getScope();n&&n.setTag(e,t)}},{key:"setExtra",value:function(e,t){var n=this.getScope();n&&n.setExtra(e,t)}},{key:"setContext",value:function(e,t){var n=this.getScope();n&&n.setContext(e,t)}},{key:"configureScope",value:function(e){var t=this.getStackTop(),n=t.scope,o=t.client;n&&o&&e(n)}},{key:"run",value:function(e){var t=g(this);try{e(this)}finally{g(t)}}},{key:"getIntegration",value:function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(n){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("Cannot retrieve integration ".concat(e.id," from the current Hub")),null}}},{key:"startTransaction",value:function(e,t){return this._callExtensionMethod("startTransaction",e,t)}},{key:"traceHeaders",value:function(){return this._callExtensionMethod("traceHeaders")}},{key:"captureSession",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e)return this.endSession();this._sendSessionUpdate()}},{key:"endSession",value:function(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&(0,d.RJ)(n),this._sendSessionUpdate(),t&&t.setSession()}},{key:"startSession",value:function(e){var t=this.getStackTop(),n=t.scope,r=t.client,i=r&&r.getOptions()||{},s=i.release,a=i.environment,l=((0,u.R)().navigator||{}).userAgent,c=(0,d.Hv)((0,o.Z)((0,o.Z)((0,o.Z)({release:s,environment:a},n&&{user:n.getUser()}),l&&{userAgent:l}),e));if(n){var p=n.getSession&&n.getSession();p&&"ok"===p.status&&(0,d.CT)(p,{status:"exited"}),this.endSession(),n.setSession(c)}return c}},{key:"shouldSendDefaultPii",value:function(){var e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}},{key:"_sendSessionUpdate",value:function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var o=t.getSession();o&&n&&n.captureSession&&n.captureSession(o)}}},{key:"_withClient",value:function(e){var t=this.getStackTop(),n=t.scope,o=t.client;o&&e(o,n)}},{key:"_callExtensionMethod",value:function(e){var t=f(),n=t.__SENTRY__;if(n&&n.extensions&&"function"===typeof n.extensions[e]){for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];return n.extensions[e].apply(this,r)}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("Extension method ".concat(e," couldn't be found, doing nothing."))}}]),e}();function f(){var e=(0,u.R)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function g(e){var t=f(),n=y(t);return C(t,e),n}function m(){var e=f();return v(e)&&!y(e).isOlderThan(4)||C(e,new h),(0,c.KV)()?function(e){try{var t=f().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return y(e);if(!v(n)||y(n).isOlderThan(4)){var o=y(e).getStackTop();C(n,new h(o.client,p.s.clone(o.scope)))}return y(n)}catch(r){return y(e)}}(e):y(e)}function v(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function y(e){return(0,u.Y)("hub",(function(){return new h}),e)}function C(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}},1917:function(e,t,n){"use strict";n.d(t,{c:function(){return m},s:function(){return f}});var o=n(2982),r=n(4942),i=n(1413),s=n(5671),a=n(3144),l=n(8805),u=n(9846),c=n(9153),p=n(6017),d=n(2968),h=n(3082),f=function(){function e(){(0,s.Z)(this,e),this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return(0,a.Z)(e,[{key:"addScopeListener",value:function(e){this._scopeListeners.push(e)}},{key:"addEventProcessor",value:function(e){return this._eventProcessors.push(e),this}},{key:"setUser",value:function(e){return this._user=e||{},this._session&&(0,h.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}},{key:"getUser",value:function(){return this._user}},{key:"getRequestSession",value:function(){return this._requestSession}},{key:"setRequestSession",value:function(e){return this._requestSession=e,this}},{key:"setTags",value:function(e){return this._tags=(0,i.Z)((0,i.Z)({},this._tags),e),this._notifyScopeListeners(),this}},{key:"setTag",value:function(e,t){return this._tags=(0,i.Z)((0,i.Z)({},this._tags),{},(0,r.Z)({},e,t)),this._notifyScopeListeners(),this}},{key:"setExtras",value:function(e){return this._extra=(0,i.Z)((0,i.Z)({},this._extra),e),this._notifyScopeListeners(),this}},{key:"setExtra",value:function(e,t){return this._extra=(0,i.Z)((0,i.Z)({},this._extra),{},(0,r.Z)({},e,t)),this._notifyScopeListeners(),this}},{key:"setFingerprint",value:function(e){return this._fingerprint=e,this._notifyScopeListeners(),this}},{key:"setLevel",value:function(e){return this._level=e,this._notifyScopeListeners(),this}},{key:"setTransactionName",value:function(e){return this._transactionName=e,this._notifyScopeListeners(),this}},{key:"setContext",value:function(e,t){return null===t?delete this._contexts[e]:this._contexts=(0,i.Z)((0,i.Z)({},this._contexts),{},(0,r.Z)({},e,t)),this._notifyScopeListeners(),this}},{key:"setSpan",value:function(e){return this._span=e,this._notifyScopeListeners(),this}},{key:"getSpan",value:function(){return this._span}},{key:"getTransaction",value:function(){var e=this.getSpan();return e&&e.transaction}},{key:"setSession",value:function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}},{key:"getSession",value:function(){return this._session}},{key:"update",value:function(t){if(!t)return this;if("function"===typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=(0,i.Z)((0,i.Z)({},this._tags),t._tags),this._extra=(0,i.Z)((0,i.Z)({},this._extra),t._extra),this._contexts=(0,i.Z)((0,i.Z)({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):(0,l.PO)(t)&&(this._tags=(0,i.Z)((0,i.Z)({},this._tags),t.tags),this._extra=(0,i.Z)((0,i.Z)({},this._extra),t.extra),this._contexts=(0,i.Z)((0,i.Z)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this}},{key:"clear",value:function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}},{key:"addBreadcrumb",value:function(e,t){var n="number"===typeof t?Math.min(t,100):100;if(n<=0)return this;var r=(0,i.Z)({timestamp:(0,u.yW)()},e);return this._breadcrumbs=[].concat((0,o.Z)(this._breadcrumbs),[r]).slice(-n),this._notifyScopeListeners(),this}},{key:"clearBreadcrumbs",value:function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}},{key:"addAttachment",value:function(e){return this._attachments.push(e),this}},{key:"getAttachments",value:function(){return this._attachments}},{key:"clearAttachments",value:function(){return this._attachments=[],this}},{key:"applyToEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._extra&&Object.keys(this._extra).length&&(e.extra=(0,i.Z)((0,i.Z)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=(0,i.Z)((0,i.Z)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=(0,i.Z)((0,i.Z)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=(0,i.Z)((0,i.Z)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=(0,i.Z)({trace:this._span.getTraceContext()},e.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags=(0,i.Z)({transaction:n},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=[].concat((0,o.Z)(e.breadcrumbs||[]),(0,o.Z)(this._breadcrumbs)),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata=(0,i.Z)((0,i.Z)({},e.sdkProcessingMetadata),this._sdkProcessingMetadata),this._notifyEventProcessors([].concat((0,o.Z)(g()),(0,o.Z)(this._eventProcessors)),e,t)}},{key:"setSDKProcessingMetadata",value:function(e){return this._sdkProcessingMetadata=(0,i.Z)((0,i.Z)({},this._sdkProcessingMetadata),e),this}},{key:"_notifyEventProcessors",value:function(e,t,n){var o=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new c.cW((function(s,a){var u=e[r];if(null===t||"function"!==typeof u)s(t);else{var c=u((0,i.Z)({},t),n);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&u.id&&null===c&&p.kg.log('Event processor "'.concat(u.id,'" dropped event')),(0,l.J8)(c)?c.then((function(t){return o._notifyEventProcessors(e,t,n,r+1).then(s)})).then(null,a):o._notifyEventProcessors(e,c,n,r+1).then(s).then(null,a)}}))}},{key:"_notifyScopeListeners",value:function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)}},{key:"_applyFingerprint",value: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}}],[{key:"clone",value:function(t){var n=new e;return t&&(n._breadcrumbs=(0,o.Z)(t._breadcrumbs),n._tags=(0,i.Z)({},t._tags),n._extra=(0,i.Z)({},t._extra),n._contexts=(0,i.Z)({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=(0,o.Z)(t._eventProcessors),n._requestSession=t._requestSession,n._attachments=(0,o.Z)(t._attachments)),n}}]),e}();function g(){return(0,d.Y)("globalEventProcessors",(function(){return[]}))}function m(e){g().push(e)}},3082:function(e,t,n){"use strict";n.d(t,{CT:function(){return a},Hv:function(){return s},RJ:function(){return l}});var o=n(9846),r=n(6870),i=n(5256);function s(e){var t=(0,o.ph)(),n={sid:(0,r.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:function(){return function(e){return(0,i.Jr)({sid:"".concat(e.sid),init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"===typeof e.did||"string"===typeof e.did?"".concat(e.did):void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)}};return e&&a(n,e),n}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,o.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,r.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did="".concat(t.did)),"number"===typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"===typeof t.duration)e.duration=t.duration;else{var n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"===typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function l(e,t){var n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),a(e,n)}},3499:function(e,t,n){"use strict";n.d(t,{ro:function(){return y},lb:function(){return v}});var o=n(2982),r=n(1413),i=n(8539),s=n(6017),a=n(8805),l=n(9509),u=n(2034),c=n(5129);function p(){var e=(0,c.x1)();if(e){var t="internal_error";("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] Transaction: ".concat(t," -> Global error occured")),e.setStatus(t)}}var d=n(5522),h=n(4281);function f(){var e=this.getScope();if(e){var t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}}function g(e,t,n){return(0,c.zu)(t)?void 0!==e.sampled?(e.setMetadata({transactionSampling:{method:"explicitly_set"}}),e):("function"===typeof t.tracesSampler?(o=t.tracesSampler(n),e.setMetadata({transactionSampling:{method:"client_sampler",rate:Number(o)}})):void 0!==n.parentSampled?(o=n.parentSampled,e.setMetadata({transactionSampling:{method:"inheritance"}})):(o=t.tracesSampleRate,e.setMetadata({transactionSampling:{method:"client_rate",rate:Number(o)}})),function(e){if((0,a.i2)(e)||"number"!==typeof e&&"boolean"!==typeof e)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ".concat(JSON.stringify(e)," of type ").concat(JSON.stringify(typeof e),".")),!1;if(e<0||e>1)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ".concat(e,".")),!1;return!0}(o)?o?(e.sampled=Math.random()<o,e.sampled?(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] starting ".concat(e.op," transaction - ").concat(e.name)),e):(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ".concat(Number(o),")")),e)):(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.log("[Tracing] Discarding transaction because ".concat("function"===typeof t.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),e.sampled=!1,e):(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&s.kg.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)):(e.sampled=!1,e);var o}function m(e,t){var n=this.getClient(),o=n&&n.getOptions()||{},i=new h.Y(e,this);return(i=g(i,o,(0,r.Z)({parentSampled:e.parentSampled,transactionContext:e},t))).sampled&&i.initSpanRecorder(o._experiments&&o._experiments.maxSpans),i}function v(e,t,n,o,i,s){var a=e.getClient(),l=a&&a.getOptions()||{},u=new d.io(t,e,n,o,i);return(u=g(u,l,(0,r.Z)({parentSampled:t.parentSampled,transactionContext:t},s))).sampled&&u.initSpanRecorder(l._experiments&&l._experiments.maxSpans),u}function y(){!function(){var e=(0,i.cu)();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=m),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=f))}(),(0,l.KV)()&&function(){var t=(0,i.cu)();if(t.__SENTRY__){var n={mongodb:function(){return new((0,l.l$)(e,"./integrations/node/mongo").Mongo)},mongoose:function(){return new((0,l.l$)(e,"./integrations/node/mongo").Mongo)({mongoose:!0})},mysql:function(){return new((0,l.l$)(e,"./integrations/node/mysql").Mysql)},pg:function(){return new((0,l.l$)(e,"./integrations/node/postgres").Postgres)}},r=Object.keys(n).filter((function(e){return!!(0,l.$y)(e)})).map((function(e){try{return n[e]()}catch(t){return}})).filter((function(e){return e}));r.length>0&&(t.__SENTRY__.integrations=[].concat((0,o.Z)(t.__SENTRY__.integrations||[]),(0,o.Z)(r)))}}(),(0,u.o)("error",p),(0,u.o)("unhandledrejection",p)}e=n.hmd(e)},5522:function(e,t,n){"use strict";n.d(t,{io:function(){return y},mg:function(){return m},nT:function(){return g}});var o=n(7762),r=n(7326),i=n(5671),s=n(3144),a=n(1752),l=n(1120),u=n(136),c=n(7277),p=n(9846),d=n(6017),h=n(4533),f=n(4281),g=1e3,m=3e4,v=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e,o,r,s){var a;return(0,i.Z)(this,n),(a=t.call(this,s))._pushActivity=e,a._popActivity=o,a.transactionSpanId=r,a}return(0,s.Z)(n,[{key:"add",value:function(e){var t=this;e.spanId!==this.transactionSpanId&&(e.finish=function(n){e.endTimestamp="number"===typeof n?n:(0,p._I)(),t._popActivity(e.spanId)},void 0===e.endTimestamp&&this._pushActivity(e.spanId)),(0,a.Z)((0,l.Z)(n.prototype),"add",this).call(this,e)}}]),n}(h.gB),y=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e,o){var s,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:m,u=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return(0,i.Z)(this,n),(s=t.call(this,e,o))._idleHub=o,s._idleTimeout=a,s._finalTimeout=l,s._onScope=u,n.prototype.__init.call((0,r.Z)(s)),n.prototype.__init2.call((0,r.Z)(s)),n.prototype.__init3.call((0,r.Z)(s)),n.prototype.__init4.call((0,r.Z)(s)),u&&(C(o),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("Setting idle transaction on scope. Span ID: ".concat(s.spanId)),o.configureScope((function(e){return e.setSpan((0,r.Z)(s))}))),s._startIdleTimeout(),setTimeout((function(){s._finished||(s.setStatus("deadline_exceeded"),s.finish())}),s._finalTimeout),s}return(0,s.Z)(n,[{key:"__init",value:function(){this.activities={}}},{key:"__init2",value:function(){this._heartbeatCounter=0}},{key:"__init3",value:function(){this._finished=!1}},{key:"__init4",value:function(){this._beforeFinishCallbacks=[]}},{key:"finish",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,p._I)();if(this._finished=!0,this.activities={},this.spanRecorder){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);var r,i=(0,o.Z)(this._beforeFinishCallbacks);try{for(i.s();!(r=i.n()).done;){var s=r.value;s(this,t)}}catch(u){i.e(u)}finally{i.f()}this.spanRecorder.spans=this.spanRecorder.spans.filter((function(n){if(n.spanId===e.spanId)return!0;n.endTimestamp||(n.endTimestamp=t,n.setStatus("cancelled"),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(n,void 0,2)));var o=n.startTimestamp<t;return o||("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(n,void 0,2)),o})),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("[Tracing] flushing IdleTransaction")}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("[Tracing] No active IdleTransaction");return this._onScope&&C(this._idleHub),(0,a.Z)((0,l.Z)(n.prototype),"finish",this).call(this,t)}},{key:"registerBeforeFinishCallback",value:function(e){this._beforeFinishCallbacks.push(e)}},{key:"initSpanRecorder",value:function(e){var t=this;if(!this.spanRecorder){this.spanRecorder=new v((function(e){t._finished||t._pushActivity(e)}),(function(e){t._finished||t._popActivity(e)}),this.spanId,e),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}},{key:"_cancelIdleTimeout",value:function(){this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0)}},{key:"_startIdleTimeout",value:function(e){var t=this;this._cancelIdleTimeout(),this._idleTimeoutID=setTimeout((function(){t._finished||0!==Object.keys(t.activities).length||t.finish(e)}),this._idleTimeout)}},{key:"_pushActivity",value:function(e){this._cancelIdleTimeout(),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("[Tracing] pushActivity: ".concat(e)),this.activities[e]=!0,("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}},{key:"_popActivity",value:function(e){if(this.activities[e]&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("[Tracing] popActivity ".concat(e)),delete this.activities[e],("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){var t=(0,p._I)()+this._idleTimeout/1e3;this._startIdleTimeout(t)}}},{key:"_beat",value:function(){if(!this._finished){var e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter+=1:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.finish()):this._pingHeartbeat()}}},{key:"_pingHeartbeat",value:function(){var e=this;("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&d.kg.log("pinging Heartbeat -> current counter: ".concat(this._heartbeatCounter)),setTimeout((function(){e._beat()}),5e3)}}]),n}(f.Y);function C(e){var t=e.getScope();t&&(t.getTransaction()&&t.setSpan(void 0))}},4533:function(e,t,n){"use strict";n.d(t,{Dr:function(){return h},gB:function(){return d}});var o=n(4942),r=n(1413),i=n(5671),s=n(3144),a=n(7717),l=n(6870),u=n(9846),c=n(6017),p=n(5256),d=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;(0,i.Z)(this,e),e.prototype.__init.call(this),this._maxlen=t}return(0,s.Z)(e,[{key:"__init",value:function(){this.spans=[]}},{key:"add",value:function(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}]),e}(),h=function(){function e(t){if((0,i.Z)(this,e),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this),e.prototype.__init6.call(this),!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp)}return(0,s.Z)(e,[{key:"__init2",value:function(){this.traceId=(0,l.DM)()}},{key:"__init3",value:function(){this.spanId=(0,l.DM)().substring(16)}},{key:"__init4",value:function(){this.startTimestamp=(0,u._I)()}},{key:"__init5",value:function(){this.tags={}}},{key:"__init6",value:function(){this.data={}}},{key:"startChild",value:function(t){var n=new e((0,r.Z)((0,r.Z)({},t),{},{parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId}));if(n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&n.transaction){var o=t&&t.op||"< unknown op >",i=n.transaction.name||"< unknown name >",s=n.transaction.spanId,a="[Tracing] Starting '".concat(o,"' span on transaction '").concat(i,"' (").concat(s,").");n.transaction.metadata.spanMetadata[n.spanId]={logMessage:a},c.kg.log(a)}return n}},{key:"setTag",value:function(e,t){return this.tags=(0,r.Z)((0,r.Z)({},this.tags),{},(0,o.Z)({},e,t)),this}},{key:"setData",value:function(e,t){return this.data=(0,r.Z)((0,r.Z)({},this.data),{},(0,o.Z)({},e,t)),this}},{key:"setStatus",value:function(e){return this.status=e,this}},{key:"setHttpStatus",value:function(e){this.setTag("http.status_code",String(e));var t=function(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(e);return"unknown_error"!==t&&this.setStatus(t),this}},{key:"isSuccess",value:function(){return"ok"===this.status}},{key:"finish",value:function(e){if(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){var t=this.transaction.metadata.spanMetadata[this.spanId].logMessage;t&&c.kg.log(t.replace("Starting","Finishing"))}this.endTimestamp="number"===typeof e?e:(0,u._I)()}},{key:"toTraceparent",value:function(){var e="";return void 0!==this.sampled&&(e=this.sampled?"-1":"-0"),"".concat(this.traceId,"-").concat(this.spanId).concat(e)}},{key:"toContext",value:function(){return(0,p.Jr)({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}},{key:"updateWithContext",value:function(e){var t=this;return this.data=(0,a.h)(e.data,(function(){return{}})),this.description=e.description,this.endTimestamp=e.endTimestamp,this.op=e.op,this.parentSpanId=e.parentSpanId,this.sampled=e.sampled,this.spanId=(0,a.h)(e.spanId,(function(){return t.spanId})),this.startTimestamp=(0,a.h)(e.startTimestamp,(function(){return t.startTimestamp})),this.status=e.status,this.tags=(0,a.h)(e.tags,(function(){return{}})),this.traceId=(0,a.h)(e.traceId,(function(){return t.traceId})),this}},{key:"getTraceContext",value:function(){return(0,p.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}},{key:"toJSON",value:function(){return(0,p.Jr)({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}]),e}()},4281:function(e,t,n){"use strict";n.d(t,{Y:function(){return v}});var o=n(1413),r=n(5671),i=n(3144),s=n(7326),a=n(1752),l=n(1120),u=n(136),c=n(7277),p=n(7717),d=n(8539),h=n(6017),f=n(5256),g=n(437),m=n(4533),v=function(e){(0,u.Z)(n,e);var t=(0,c.Z)(n);function n(e,i){var a;return(0,r.Z)(this,n),a=t.call(this,e),n.prototype.__init.call((0,s.Z)(a)),a._hub=i||(0,d.Gd)(),a._name=e.name||"",a.metadata=(0,o.Z)((0,o.Z)({},e.metadata),{},{spanMetadata:{}}),a._trimEnd=e.trimEnd,a.transaction=(0,s.Z)(a),a}return(0,i.Z)(n,[{key:"__init",value:function(){this._measurements={}}},{key:"name",get:function(){return this._name},set:function(e){this._name=e,this.metadata.source="custom"}},{key:"setName",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom";this.name=e,this.metadata.source=t}},{key:"initSpanRecorder",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;this.spanRecorder||(this.spanRecorder=new m.gB(e)),this.spanRecorder.add(this)}},{key:"setMeasurement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";this._measurements[e]={value:t,unit:n}}},{key:"setMetadata",value:function(e){this.metadata=(0,o.Z)((0,o.Z)({},this.metadata),e)}},{key:"finish",value:function(e){var t=this;if(void 0===this.endTimestamp){if(this.name||(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.kg.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),(0,a.Z)((0,l.Z)(n.prototype),"finish",this).call(this,e),!0===this.sampled){var r=this.spanRecorder?this.spanRecorder.spans.filter((function(e){return e!==t&&e.endTimestamp})):[];this._trimEnd&&r.length>0&&(this.endTimestamp=r.reduce((function(e,t){return e.endTimestamp&&t.endTimestamp?e.endTimestamp>t.endTimestamp?e:t:e})).endTimestamp);var i=this.metadata,s=(0,o.Z)({contexts:{trace:this.getTraceContext()},spans:r,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:(0,o.Z)((0,o.Z)({},i),{},{baggage:this.getBaggage()})},i.source&&{transaction_info:{source:i.source}});return Object.keys(this._measurements).length>0&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),s.measurements=this._measurements),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.kg.log("[Tracing] Finishing ".concat(this.op," transaction: ").concat(this.name,".")),this._hub.captureEvent(s)}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&h.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");var u=this._hub.getClient();u&&u.recordDroppedEvent("sample_rate","transaction")}}},{key:"toContext",value:function(){var e=(0,a.Z)((0,l.Z)(n.prototype),"toContext",this).call(this);return(0,f.Jr)((0,o.Z)((0,o.Z)({},e),{},{name:this.name,trimEnd:this._trimEnd}))}},{key:"updateWithContext",value:function(e){return(0,a.Z)((0,l.Z)(n.prototype),"updateWithContext",this).call(this,e),this.name=(0,p.h)(e.name,(function(){return""})),this._trimEnd=e.trimEnd,this}},{key:"getBaggage",value:function(){var e=this.metadata.baggage,t=!e||(0,g.Gp)(e)?this._populateBaggageWithSentryValues(e):e;return this.metadata.baggage=t,t}},{key:"_populateBaggageWithSentryValues",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,g.Hn)({}),t=this._hub||(0,d.Gd)(),n=t&&t.getClient();if(!n)return e;var r=n.getOptions()||{},i=r.environment,s=r.release,a=n.getDsn()||{},l=a.publicKey,u=this.metadata&&this.metadata.transactionSampling&&this.metadata.transactionSampling.rate,c=void 0!==u?u.toLocaleString("fullwide",{useGrouping:!1,maximumFractionDigits:16}):void 0,p=t.getScope(),h=p&&p.getUser()||{},m=h.segment,v=this.metadata.source,y=v&&"url"!==v?this.name:void 0;return(0,g.Hn)((0,f.Jr)((0,o.Z)({environment:i,release:s,transaction:y,user_segment:m,public_key:l,trace_id:this.traceId,sample_rate:c},(0,g.Hk)(e))),"",!1)}}]),n}(m.Dr)},5129:function(e,t,n){"use strict";n.d(t,{XL:function(){return s},x1:function(){return i},zu:function(){return r}});var o=n(8539);function r(e){var t=(0,o.Gd)().getClient(),n=e||t&&t.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function i(e){var t=(e||(0,o.Gd)()).getScope();return t&&t.getTransaction()}function s(e){return e/1e3}},437:function(e,t,n){"use strict";n.d(t,{Gp:function(){return d},Hk:function(){return p},Hn:function(){return c},J8:function(){return f},bU:function(){return l},rg:function(){return g}});var o=n(4942),r=n(885),i=n(1413),s=n(8805),a=n(6017),l="baggage",u=/^sentry-/;function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return[(0,i.Z)({},e),t,n]}function p(e){return e[0]}function d(e){return e[2]}function h(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Array.isArray(e)&&!(0,s.HD)(e)||"number"===typeof e)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("[parseBaggageHeader] Received input value of incompatible type: ",typeof e,e),c({},"");var n=((0,s.HD)(e)?e:e.join(",")).split(",").map((function(e){return e.trim()})).filter((function(e){return""!==e&&(t||u.test(e))}));return n.reduce((function(e,t){var n=(0,r.Z)(e,2),s=n[0],a=n[1],l=t.split("="),c=(0,r.Z)(l,2),p=c[0],d=c[1];if(u.test(p)){var h=decodeURIComponent(p.split("-")[1]);return[(0,i.Z)((0,i.Z)({},s),{},(0,o.Z)({},h,decodeURIComponent(d))),a,!0]}return[s,""===a?t:"".concat(a,",").concat(t),!0]}),[{},"",!0])}function f(e,t){if(!e&&!t)return"";var n=t&&h(t,!0)||void 0,o=n&&n[1];return function(e){return Object.keys(e[0]).reduce((function(t,n){var o=e[0][n],r="".concat("sentry-").concat(encodeURIComponent(n),"=").concat(encodeURIComponent(o)),i=""===t?r:"".concat(t,",").concat(r);return i.length>8192?(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.kg.warn("Not adding key: ".concat(n," with val: ").concat(o," to baggage due to exceeding baggage size limits.")),t):i}),e[1])}(c(e&&e[0]||{},o||""))}function g(e,t){var n=h(e||"");return(t||!function(e){return 0===Object.keys(e[0]).length}(n))&&function(e){e[2]=!1}(n),n}},128:function(e,t,n){"use strict";n.d(t,{R:function(){return i},l:function(){return a}});var o=n(2968),r=n(8805);function i(e,t){try{for(var n,o=e,r=[],i=0,a=0,l=" > ".length;o&&i++<5&&!("html"===(n=s(o,t))||i>1&&a+r.length*l+n.length>=80);)r.push(n),a+=n.length,o=o.parentNode;return r.reverse().join(" > ")}catch(u){return"<unknown>"}}function s(e,t){var n,o,i,s,a,l=e,u=[];if(!l||!l.tagName)return"";u.push(l.tagName.toLowerCase());var c=t&&t.length?t.filter((function(e){return l.getAttribute(e)})).map((function(e){return[e,l.getAttribute(e)]})):null;if(c&&c.length)c.forEach((function(e){u.push("[".concat(e[0],'="').concat(e[1],'"]'))}));else if(l.id&&u.push("#".concat(l.id)),(n=l.className)&&(0,r.HD)(n))for(o=n.split(/\s+/),a=0;a<o.length;a++)u.push(".".concat(o[a]));var p=["type","name","title","alt"];for(a=0;a<p.length;a++)i=p[a],(s=l.getAttribute(i))&&u.push("[".concat(i,'="').concat(s,'"]'));return u.join("")}function a(){var e=(0,o.R)();try{return e.document.location.href}catch(t){return""}}},7717:function(e,t,n){"use strict";function o(e,t){return null!=e?e:t()}n.d(t,{h:function(){return o}})},2968:function(e,t,n){"use strict";n.d(t,{R:function(){return i},Y:function(){return s}});var o=n(9509),r={};function i(){return(0,o.KV)()?n.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:r}function s(e,t,n){var o=n||i(),r=o.__SENTRY__=o.__SENTRY__||{};return r[e]||(r[e]=t())}},2034:function(e,t,n){"use strict";n.d(t,{o:function(){return m}});var o,r=n(1413),i=n(7762),s=n(2968),a=n(8805),l=n(6017),u=n(5256),c=n(8578),p=n(4678),d=(0,s.R)(),h={},f={};function g(e){if(!f[e])switch(f[e]=!0,e){case"console":!function(){if(!("console"in d))return;l.RU.forEach((function(e){e in d.console&&(0,u.hl)(d.console,e,(function(t){return function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];v("console",{args:o,level:e}),t&&t.apply(d.console,o)}}))}))}();break;case"dom":!function(){if(!("document"in d))return;var e=v.bind(null,"dom"),t=S(e,!0);d.document.addEventListener("click",t,!1),d.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((function(t){var n=d[t]&&d[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,u.hl)(n,"addEventListener",(function(t){return function(n,o,r){if("click"===n||"keypress"==n)try{var i=this,s=i.__sentry_instrumentation_handlers__=i.__sentry_instrumentation_handlers__||{},a=s[n]=s[n]||{refCount:0};if(!a.handler){var l=S(e);a.handler=l,t.call(this,n,l,r)}a.refCount+=1}catch(u){}return t.call(this,n,o,r)}})),(0,u.hl)(n,"removeEventListener",(function(e){return function(t,n,o){if("click"===t||"keypress"==t)try{var r=this,i=r.__sentry_instrumentation_handlers__||{},s=i[t];s&&(s.refCount-=1,s.refCount<=0&&(e.call(this,t,s.handler,o),s.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete r.__sentry_instrumentation_handlers__)}catch(a){}return e.call(this,t,n,o)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in d))return;var e=XMLHttpRequest.prototype;(0,u.hl)(e,"open",(function(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var r=this,i=n[1],s=r.__sentry_xhr__={method:(0,a.HD)(n[0])?n[0].toUpperCase():n[0],url:n[1]};(0,a.HD)(i)&&"POST"===s.method&&i.match(/sentry_key/)&&(r.__sentry_own_request__=!0);var l=function(){if(4===r.readyState){try{s.status_code=r.status}catch(e){}v("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:r})}};return"onreadystatechange"in r&&"function"===typeof r.onreadystatechange?(0,u.hl)(r,"onreadystatechange",(function(e){return function(){l();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return e.apply(r,n)}})):r.addEventListener("readystatechange",l),e.apply(r,n)}})),(0,u.hl)(e,"send",(function(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return this.__sentry_xhr__&&void 0!==n[0]&&(this.__sentry_xhr__.body=n[0]),v("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),e.apply(this,n)}}))}();break;case"fetch":!function(){if(!(0,p.t$)())return;(0,u.hl)(d,"fetch",(function(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var i={args:n,fetchData:{method:y(n),url:C(n)},startTimestamp:Date.now()};return v("fetch",(0,r.Z)({},i)),e.apply(d,n).then((function(e){return v("fetch",(0,r.Z)((0,r.Z)({},i),{},{endTimestamp:Date.now(),response:e})),e}),(function(e){throw v("fetch",(0,r.Z)((0,r.Z)({},i),{},{endTimestamp:Date.now(),error:e})),e}))}}))}();break;case"history":!function(){if(!(0,p.Bf)())return;var e=d.onpopstate;function t(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.length>2?n[2]:void 0;if(i){var s=o,a=String(i);o=a,v("history",{from:s,to:a})}return e.apply(this,n)}}d.onpopstate=function(){var t=d.location.href,n=o;if(o=t,v("history",{from:n,to:t}),e)try{for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return e.apply(this,i)}catch(a){}},(0,u.hl)(d.history,"pushState",t),(0,u.hl)(d.history,"replaceState",t)}();break;case"error":R=d.onerror,d.onerror=function(e,t,n,o,r){return v("error",{column:o,error:r,line:n,msg:e,url:t}),!!R&&R.apply(this,arguments)};break;case"unhandledrejection":O=d.onunhandledrejection,d.onunhandledrejection=function(e){return v("unhandledrejection",e),!O||O.apply(this,arguments)};break;default:return void(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.warn("unknown instrumentation type:",e))}}function m(e,t){h[e]=h[e]||[],h[e].push(t),g(e)}function v(e,t){if(e&&h[e]){var n,o=(0,i.Z)(h[e]||[]);try{for(o.s();!(n=o.n()).done;){var r=n.value;try{r(t)}catch(s){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&l.kg.error("Error while triggering instrumentation handler.\nType: ".concat(e,"\nName: ").concat((0,c.$P)(r),"\nError:"),s)}}}catch(a){o.e(a)}finally{o.f()}}}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return"Request"in d&&(0,a.V9)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return"string"===typeof e[0]?e[0]:"Request"in d&&(0,a.V9)(e[0],Request)?e[0].url:String(e[0])}var w,_;function b(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(n){}return!1}function E(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(n){}return!0}function S(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){if(n&&_!==n&&!E(n)){var o="keypress"===n.type?"input":n.type;(void 0===w||b(_,n))&&(e({event:n,name:o,global:t}),_=n),clearTimeout(w),w=d.setTimeout((function(){w=void 0}),1e3)}}}var R=null;var O=null},8805:function(e,t,n){"use strict";n.d(t,{Cy:function(){return m},HD:function(){return u},J8:function(){return g},Kj:function(){return f},PO:function(){return p},TX:function(){return a},V9:function(){return y},VW:function(){return s},VZ:function(){return r},cO:function(){return d},fm:function(){return l},i2:function(){return v},kK:function(){return h},pt:function(){return c}});var o=Object.prototype.toString;function r(e){switch(o.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(e,Error)}}function i(e,t){return o.call(e)==="[object ".concat(t,"]")}function s(e){return i(e,"ErrorEvent")}function a(e){return i(e,"DOMError")}function l(e){return i(e,"DOMException")}function u(e){return i(e,"String")}function c(e){return null===e||"object"!==typeof e&&"function"!==typeof e}function p(e){return i(e,"Object")}function d(e){return"undefined"!==typeof Event&&y(e,Event)}function h(e){return"undefined"!==typeof Element&&y(e,Element)}function f(e){return i(e,"RegExp")}function g(e){return Boolean(e&&e.then&&"function"===typeof e.then)}function m(e){return p(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function v(e){return"number"===typeof e&&e!==e}function y(e,t){try{return e instanceof t}catch(n){return!1}}},6017:function(e,t,n){"use strict";n.d(t,{Cf:function(){return l},RU:function(){return a},kg:function(){return o}});var o,r=n(2968),i=(0,r.R)(),s="Sentry Logger ",a=["debug","info","warn","error","log","assert","trace"];function l(e){var t=(0,r.R)();if(!("console"in t))return e();var n=t.console,o={};a.forEach((function(e){var r=n[e]&&n[e].__sentry_original__;e in t.console&&r&&(o[e]=n[e],n[e]=r)}));try{return e()}finally{Object.keys(o).forEach((function(e){n[e]=o[e]}))}}function u(){var e=!1,t={enable:function(){e=!0},disable:function(){e=!1}};return"undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?a.forEach((function(n){t[n]=function(){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];e&&l((function(){var e;(e=i.console)[n].apply(e,["".concat(s,"[").concat(n,"]:")].concat(o))}))}})):a.forEach((function(e){t[e]=function(){}})),t}o="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,r.Y)("logger",u):u()},6870:function(e,t,n){"use strict";n.d(t,{DM:function(){return s},Db:function(){return c},EG:function(){return p},YO:function(){return d},en:function(){return a},jH:function(){return u}});var o=n(1413),r=n(2968),i=n(5256);function s(){var e=(0,r.R)(),t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");var n=t&&t.getRandomValues?function(){return t.getRandomValues(new Uint8Array(1))[0]}:function(){return 16*Math.random()};return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(function(e){return(e^(15&n())>>e/4).toString(16)}))}function a(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 l(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function u(e){var t=e.message,n=e.event_id;if(t)return t;var o=l(e);return o?o.type&&o.value?"".concat(o.type,": ").concat(o.value):o.type||o.value||n||"<unknown>":n||"<unknown>"}function c(e,t,n){var o=e.exception=e.exception||{},r=o.values=o.values||[],i=r[0]=r[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function p(e,t){var n=l(e);if(n){var r=n.mechanism;if(n.mechanism=(0,o.Z)((0,o.Z)((0,o.Z)({},{type:"generic",handled:!0}),r),t),t&&"data"in t){var i=(0,o.Z)((0,o.Z)({},r&&r.data),t.data);n.mechanism.data=i}}}function d(e){if(e&&e.__sentry_captured__)return!0;try{(0,i.xp)(e,"__sentry_captured__",!0)}catch(t){}return!1}},9509:function(e,t,n){"use strict";function o(){return!("undefined"!==typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof process?process:0)}function r(e,t){return e.require(t)}function i(t){var n;try{n=r(e,t)}catch(i){}try{var o=r(e,"process").cwd;n=r(e,"".concat(o(),"/node_modules/").concat(t))}catch(i){}return n}n.d(t,{l$:function(){return r},KV:function(){return o},$y:function(){return i}}),e=n.hmd(e)},5256:function(e,t,n){"use strict";n.d(t,{$Q:function(){return u},HK:function(){return c},Jr:function(){return m},Sh:function(){return d},_j:function(){return p},hl:function(){return a},xp:function(){return l},zf:function(){return g}});var o=n(1413),r=n(128),i=n(8805),s=n(7050);function a(e,t,n){if(t in e){var o=e[t],r=n(o);if("function"===typeof r)try{u(r,o)}catch(i){}e[t]=r}}function l(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function u(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,l(e,"__sentry_original__",t)}function c(e){return e.__sentry_original__}function p(e){return Object.keys(e).map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))})).join("&")}function d(e){if((0,i.VZ)(e))return(0,o.Z)({message:e.message,name:e.name,stack:e.stack},f(e));if((0,i.cO)(e)){var t=(0,o.Z)({type:e.type,target:h(e.target),currentTarget:h(e.currentTarget)},f(e));return"undefined"!==typeof CustomEvent&&(0,i.V9)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function h(e){try{return(0,i.kK)(e)?(0,r.R)(e):Object.prototype.toString.call(e)}catch(t){return"<unknown>"}}function f(e){if("object"===typeof e&&null!==e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,n=Object.keys(d(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,s.$G)(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:(0,s.$G)(r,t)}return""}function m(e){return v(e,new Map)}function v(e,t){if((0,i.PO)(e)){if(void 0!==(a=t.get(e)))return a;var n={};t.set(e,n);for(var o=0,r=Object.keys(e);o<r.length;o++){var s=r[o];"undefined"!==typeof e[s]&&(n[s]=v(e[s],t))}return n}if(Array.isArray(e)){var a;if(void 0!==(a=t.get(e)))return a;n=[];return t.set(e,n),e.forEach((function(e){n.push(v(e,t))})),n}return e}},8578:function(e,t,n){"use strict";n.d(t,{$P:function(){return c},Sq:function(){return a},pE:function(){return s}});var o=n(1413),r=n(2982),i=n(7762);function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t.sort((function(e,t){return e[0]-t[0]})).map((function(e){return e[1]}));return function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[],s=(0,i.Z)(e.split("\n").slice(n));try{for(s.s();!(t=s.n()).done;){var a,u=t.value,c=(0,i.Z)(o);try{for(c.s();!(a=c.n()).done;){var p=a.value,d=p(u);if(d){r.push(d);break}}}catch(h){c.e(h)}finally{c.f()}}}catch(h){s.e(h)}finally{s.f()}return l(r)}}function a(e){return Array.isArray(e)?s.apply(void 0,(0,r.Z)(e)):e}function l(e){if(!e.length)return[];var t=e,n=t[0].function||"",r=t[t.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((function(e){return(0,o.Z)((0,o.Z)({},e),{},{filename:e.filename||t[0].filename,function:e.function||"?"})})).reverse()}var u="<anonymous>";function c(e){try{return e&&"function"===typeof e&&e.name||u}catch(t){return u}}},7050:function(e,t,n){"use strict";n.d(t,{$G:function(){return r},nK:function(){return i},zC:function(){return s}});var o=n(8805);function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!==typeof e||0===t||e.length<=t?e:"".concat(e.substr(0,t),"...")}function i(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(i){n.push("[value cannot be serialized]")}}return n.join(t)}function s(e,t){return!!(0,o.HD)(e)&&((0,o.Kj)(t)?t.test(e):"string"===typeof t&&-1!==e.indexOf(t))}},4678:function(e,t,n){"use strict";n.d(t,{Ak:function(){return i},Bf:function(){return l},Du:function(){return s},t$:function(){return a}});var o=n(2968),r=n(6017);function i(){if(!("fetch"in(0,o.R)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function s(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function a(){if(!i())return!1;var e=(0,o.R)();if(s(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"===typeof n.createElement)try{var a=n.createElement("iframe");a.hidden=!0,n.head.appendChild(a),a.contentWindow&&a.contentWindow.fetch&&(t=s(a.contentWindow.fetch)),n.head.removeChild(a)}catch(l){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&r.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",l)}return t}function l(){var e=(0,o.R)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}},9153:function(e,t,n){"use strict";n.d(t,{$2:function(){return l},WD:function(){return a},cW:function(){return u}});var o,r=n(5671),i=n(3144),s=n(8805);function a(e){return new u((function(t){t(e)}))}function l(e){return new u((function(t,n){n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(o||(o={}));var u=function(){function e(t){(0,r.Z)(this,e),e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this),e.prototype.__init6.call(this);try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}return(0,i.Z)(e,[{key:"__init",value:function(){this._state=o.PENDING}},{key:"__init2",value:function(){this._handlers=[]}},{key:"then",value:function(t,n){var o=this;return new e((function(e,r){o._handlers.push([!1,function(n){if(t)try{e(t(n))}catch(o){r(o)}else e(n)},function(t){if(n)try{e(n(t))}catch(o){r(o)}else r(t)}]),o._executeHandlers()}))}},{key:"catch",value:function(e){return this.then((function(e){return e}),e)}},{key:"finally",value: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)}))}))}},{key:"__init3",value:function(){var e=this;this._resolve=function(t){e._setResult(o.RESOLVED,t)}}},{key:"__init4",value:function(){var e=this;this._reject=function(t){e._setResult(o.REJECTED,t)}}},{key:"__init5",value:function(){var e=this;this._setResult=function(t,n){e._state===o.PENDING&&((0,s.J8)(n)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))}}},{key:"__init6",value:function(){var e=this;this._executeHandlers=function(){if(e._state!==o.PENDING){var t=e._handlers.slice();e._handlers=[],t.forEach((function(t){t[0]||(e._state===o.RESOLVED&&t[1](e._value),e._state===o.REJECTED&&t[2](e._value),t[0]=!0)}))}}}}]),e}()},9846:function(e,t,n){"use strict";n.d(t,{Z1:function(){return p},_I:function(){return c},ph:function(){return u},yW:function(){return l}});var o=n(2968),r=n(9509);e=n.hmd(e);var i={nowSeconds:function(){return Date.now()/1e3}};var s=(0,r.KV)()?function(){try{return(0,r.l$)(e,"perf_hooks").performance}catch(t){return}}():function(){var e=(0,o.R)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),a=void 0===s?i:{nowSeconds:function(){return(s.timeOrigin+s.now())/1e3}},l=i.nowSeconds.bind(i),u=a.nowSeconds.bind(a),c=u,p=function(){var e=(0,o.R)().performance;if(e&&e.now){var t=36e5,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,s=i<t,a=e.timing&&e.timing.navigationStart,l="number"===typeof a?Math.abs(a+n-r):t;return s||l<t?i<=l?("timeOrigin",e.timeOrigin):("navigationStart",a):("dateNow",r)}"none"}()},1167:function(e,t,n){"use strict";function o(e){return null==e||""===e?null:e}function r(e,t){return void 0===t&&(t=!1),null!=e&&(""!==e||t)}function i(e){return!r(e)}function s(e){return null==e||0===e.length}function a(e){return null!=e&&"function"===typeof e.toString?e.toString():null}function l(e){if(void 0!==e){if(null===e||""===e)return null;if("number"===typeof e)return isNaN(e)?void 0:e;var t=parseInt(e,10);return isNaN(t)?void 0:t}}function u(e){if(void 0!==e)return null!==e&&""!==e&&("boolean"===typeof e?e:/true/i.test(e))}function c(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)return i(e,t);if(!n)return i(e,t);try{return e.localeCompare(t)}catch(s){return i(e,t)}}function p(e){if(e instanceof Set||e instanceof Map){var t=[];return e.forEach((function(e){return t.push(e)})),t}return Object.values(e)}Object.defineProperty(t,"__esModule",{value:!0});var d=Object.freeze({makeNull:o,exists:r,missing:i,missingOrEmpty:s,toStringOrNull:a,attrToNumber:l,attrToBoolean:u,attrToString:function(e){if(null!=e&&""!==e)return e},referenceCompare:function(e,t){return null==e&&null==t||(null!=e||null==t)&&((null==e||null!=t)&&e===t)},jsonEquals:function(e,t){return(e?JSON.stringify(e):null)===(t?JSON.stringify(t):null)},defaultComparator:c,values:p}),h=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=a(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}();function f(e,t){null!=e&&(Array.isArray(e)?e.forEach((function(e,n){return t(""+n,e)})):Object.keys(e).forEach((function(n){return t(n,e[n])})))}function g(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}function m(e,t){if(e){var n=e,o={};return Object.keys(n).forEach((function(e){if(!(t&&t.indexOf(e)>=0)){var r=n[e],i=R(r)&&r.constructor===Object;o[e]=i?m(r):r}})),o}}function v(e,t){return e[t]}function y(e,t,n){e[t]=n}function C(e,t,n,o){var r=v(e,n);void 0!==r&&y(t,n,o?o(r):r)}function w(e){var t={};return e.filter((function(e){return null!=e})).forEach((function(e){Object.keys(e).forEach((function(e){return t[e]=null}))})),Object.keys(t)}function _(e){if(!e)return[];var t=Object;if("function"===typeof t.values)return t.values(e);var n=[];for(var o in e)e.hasOwnProperty(o)&&e.propertyIsEnumerable(o)&&n.push(e[o]);return n}function b(e,t,n,o){void 0===n&&(n=!0),void 0===o&&(o=!1),r(t)&&f(t,(function(t,r){var i=e[t];if(i!==r){if(o)if(null==i&&null!=r)"object"===typeof r&&r.constructor===Object&&(i={},e[t]=i);R(r)&&R(i)&&!Array.isArray(i)?b(i,r,n,o):(n||void 0!==r)&&(e[t]=r)}}))}function E(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(null==r)return;r=r[o[i]]}return r}}function S(e,t){Object.keys(e).forEach((function(t){"object"===typeof e[t]&&(e[t]=void 0)}));var n=Object.getPrototypeOf(e),o={};Object.keys(n).forEach((function(e){if("function"===typeof n[e]){o[e]={value:function(){console.warn("AG Grid: "+t+" function "+e+"() cannot be called as the grid has been destroyed.\n                     Please don't call grid API functions on destroyed grids - as a matter of fact you shouldn't\n                     be keeping the API reference, your application has a memory leak! Remove the API reference\n                     when the grid is destroyed.")},writable:!0}}})),Object.defineProperties(e,o)}function R(e){return"object"===typeof e&&null!==e}var O=Object.freeze({iterateObject:f,cloneObject:g,deepCloneObject:function(e){return JSON.parse(JSON.stringify(e))},deepCloneDefinition:m,getProperty:v,setProperty:y,copyPropertiesIfPresent:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];n.forEach((function(n){return C(e,t,n)}))},copyPropertyIfPresent:C,getAllKeysInObjects:w,getAllValuesInObject:_,mergeDeep:b,missingOrEmptyObject:function(e){return i(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),p(t).forEach((function(t){(R(t)||"function"===typeof t)&&e(t)})),t},getValueUsingField:E,removeAllReferences:S,isNonNullObject:R}),T=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,P=/([^\s,]+)/g,A={};function D(e,t){A[t]||(e(),A[t]=!0)}function x(e){if(e.name)return e.name;var t=/function\s+([^\(]+)/.exec(e.toString());return t&&2===t.length?t[1].trim():null}function N(e){return!!(e&&e.constructor&&e.call&&e.apply)}function M(e){k(e,400)}var I=[],L=!1;function F(e){I.push(e),L||(L=!0,window.setTimeout((function(){var e=I.slice();I.length=0,L=!1,e.forEach((function(e){return e()}))}),0))}function k(e,t){void 0===t&&(t=0),e.length>0&&window.setTimeout((function(){return e.forEach((function(e){return e()}))}),t)}function G(e,t,n){var 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)}}function H(e,t){var n=0;return function(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=this,s=(new Date).getTime();s-n<t||(n=s,e.apply(i,o))}}function B(e,t,n,o){void 0===n&&(n=100);var r=(new Date).getTime(),i=null,s=!1,a=function(){var a=(new Date).getTime()-r>n;(e()||a)&&(t(),s=!0,null!=i&&(window.clearInterval(i),i=null),a&&o&&console.warn(o))};a(),s||(i=window.setInterval(a,10))}function V(e){e&&e()}var W=Object.freeze({doOnce:D,getFunctionName:x,getFunctionParameters:function(e){var t=e.toString().replace(T,"");return t.slice(t.indexOf("(")+1,t.indexOf(")")).match(P)||[]},isFunction:N,executeInAWhile:M,executeNextVMTurn:F,executeAfter:k,debounce:G,throttle:H,waitUntil:B,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:V}),j=function(){function e(e,t){if(this.beanWrappers={},this.destroyed=!1,e&&e.beanClasses){this.contextParams=e,this.logger=t,this.logger.log(">> creating ag-Application Context"),this.createBeans();var n=this.getBeanInstances();this.wireBeans(n),this.logger.log(">> ag-Application Context ready - component is alive")}}return e.prototype.getBeanInstances=function(){return p(this.beanWrappers).map((function(e){return e.beanInstance}))},e.prototype.createBean=function(e,t){if(!e)throw Error("Can't wire to bean since it is null");return this.wireBeans([e],t),e},e.prototype.wireBeans=function(e,t){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),r(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")},e.prototype.createBeans=function(){var e=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),f(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=e.getBeansForParameters(o,n.bean.name),i=function(e,t){var n=[null].concat(t);return new(e.bind.apply(e,n))}(n.bean,r);n.beanInstance=i}));var t=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+t)},e.prototype.createBeanWrapper=function(e){var t=e.__agBeanMetaData;if(!t){var n=void 0;return n=e.prototype.constructor?x(e.prototype.constructor):""+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){f(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&&f(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){return n.callLifeCycleMethodsOnBean(e,t)}))},e.prototype.callLifeCycleMethodsOnBean=function(e,t,n){var o={};this.forEachMetaDataInHierarchy(e,(function(e){var r=e[t];r&&r.forEach((function(e){e!=n&&(o[e]=!0)}))})),Object.keys(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.destroyBeans(e),this.contextParams.providedBeanInstances=null,this.destroyed=!0,this.logger.log(">> ag-Application Context shut down - component is dead")}},e.prototype.destroyBean=function(e){e&&this.destroyBeans([e])},e.prototype.destroyBeans=function(e){var t=this;return e?(e.forEach((function(e){t.callLifeCycleMethodsOnBean(e,"preDestroyMethods","destroy");var n=e;"function"===typeof n.destroy&&n.destroy()})),[]):[]},e}();function U(e,t,n){var o=J(e.constructor);o.preConstructMethods||(o.preConstructMethods=[]),o.preConstructMethods.push(t)}function z(e,t,n){var o=J(e.constructor);o.postConstructMethods||(o.postConstructMethods=[]),o.postConstructMethods.push(t)}function Z(e,t,n){var o=J(e.constructor);o.preDestroyMethods||(o.preDestroyMethods=[]),o.preDestroyMethods.push(t)}function Y(e){return function(t){J(t).beanName=e}}function K(e){return function(t,n,o){X(t,e,!1,t,n,null)}}function q(e){return function(t,n,o){X(t,e,!0,t,n,null)}}function X(e,t,n,o,r,i){if(null!==t)if("number"!==typeof i){var s=J(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 Q(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=J(i),s=n):(r=J(i),s="agConstructor"),r.autowireMethods||(r.autowireMethods={}),r.autowireMethods[s]||(r.autowireMethods[s]={}),r.autowireMethods[s][o]=e}}}function J(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}var $,ee=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},te=function(e,t){return function(n,o){t(n,o,e)}},ne=function(){function e(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return e.prototype.setBeans=function(e,t,n,o){if(void 0===o&&(o=null),this.frameworkOverrides=n,o){var r=t.useAsyncEvents();this.addGlobalListener(o,r)}},e.prototype.getListeners=function(e,t,n){var o=t?this.allAsyncListeners:this.allSyncListeners,r=o.get(e);return!r&&n&&(r=new Set,o.set(e,r)),r},e.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},e.prototype.addEventListener=function(e,t,n){void 0===n&&(n=!1),this.getListeners(e,n,!0).add(t)},e.prototype.removeEventListener=function(e,t,n){void 0===n&&(n=!1);var o=this.getListeners(e,n,!1);o&&(o.delete(t),0===o.size&&(n?this.allAsyncListeners:this.allSyncListeners).delete(e))},e.prototype.addGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)},e.prototype.removeGlobalListener=function(e,t){void 0===t&&(t=!1),(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)},e.prototype.dispatchEvent=function(e){this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},e.prototype.dispatchEventOnce=function(e){this.firedEvents[e.type]||this.dispatchEvent(e)},e.prototype.dispatchToListeners=function(e,t){var n=this,o=e.type,r=this.getListeners(o,t,!1);r&&function(o){o.forEach((function(o){t?n.dispatchAsync((function(){return o(e)})):o(e)}))}(r),(t?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(r){t?n.dispatchAsync((function(){return n.frameworkOverrides.dispatchEvent(o,(function(){return r(o,e)}),!0)})):n.frameworkOverrides.dispatchEvent(o,(function(){return r(o,e)}),!0)}))},e.prototype.dispatchAsync=function(e){this.asyncFunctionsQueue.push(e),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},e.prototype.flushAsyncQueue=function(){this.scheduled=!1;var e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach((function(e){return e()}))},ee([te(0,Q("loggerFactory")),te(1,Q("gridOptionsWrapper")),te(2,Q("frameworkOverrides")),te(3,Q("globalEventListener"))],e.prototype,"setBeans",null),e=ee([Y("eventService")],e)}(),oe=function(){function e(){}return e.ROW_BUFFER_SIZE=10,e.LAYOUT_INTERVAL=500,e.BATCH_WAIT_MILLIS=50,e.EXPORT_TYPE_DRAG_COPY="dragCopy",e.EXPORT_TYPE_CLIPBOARD="clipboard",e.EXPORT_TYPE_EXCEL="excel",e.EXPORT_TYPE_CSV="csv",e.ROW_MODEL_TYPE_INFINITE="infinite",e.ROW_MODEL_TYPE_VIEWPORT="viewport",e.ROW_MODEL_TYPE_CLIENT_SIDE="clientSide",e.ROW_MODEL_TYPE_SERVER_SIDE="serverSide",e.ALWAYS="always",e.ONLY_WHEN_GROUPING="onlyWhenGrouping",e.PINNED_TOP="top",e.PINNED_BOTTOM="bottom",e.DOM_LAYOUT_NORMAL="normal",e.DOM_LAYOUT_PRINT="print",e.DOM_LAYOUT_AUTO_HEIGHT="autoHeight",e.GROUP_AUTO_COLUMN_ID="ag-Grid-AutoColumn",e.SOURCE_PASTE="paste",e.PINNED_RIGHT="right",e.PINNED_LEFT="left",e.SORT_ASC="asc",e.SORT_DESC="desc",e.INPUT_SELECTOR="input, select, button, textarea",e.FOCUSABLE_SELECTOR="[tabindex], input, select, button, textarea",e.FOCUSABLE_EXCLUDE=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled, .ag-disabled *",e}();($=t.ModuleNames||(t.ModuleNames={})).CommunityCoreModule="@ag-grid-community/core",$.CommunityAllModules="@ag-grid-community/all",$.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",$.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",$.CsvExportModule="@ag-grid-community/csv-export",$.EnterpriseCoreModule="@ag-grid-enterprise/core",$.EnterpriseAllModules="@ag-grid-enterprise/all",$.RowGroupingModule="@ag-grid-enterprise/row-grouping",$.ColumnToolPanelModule="@ag-grid-enterprise/column-tool-panel",$.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",$.MenuModule="@ag-grid-enterprise/menu",$.SetFilterModule="@ag-grid-enterprise/set-filter",$.MultiFilterModule="@ag-grid-enterprise/multi-filter",$.StatusBarModule="@ag-grid-enterprise/status-bar",$.SideBarModule="@ag-grid-enterprise/side-bar",$.RangeSelectionModule="@ag-grid-enterprise/range-selection",$.MasterDetailModule="@ag-grid-enterprise/master-detail",$.RichSelectModule="@ag-grid-enterprise/rich-select",$.GridChartsModule="@ag-grid-enterprise/charts",$.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",$.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",$.ExcelExportModule="@ag-grid-enterprise/excel-export",$.ClipboardModule="@ag-grid-enterprise/clipboard",$.SparklinesModule="@ag-grid-enterprise/sparklines",$.AngularModule="@ag-grid-community/angular",$.ReactModule="@ag-grid-community/react",$.VueModule="@ag-grid-community/vue",$.PolymerModule="@ag-grid-community/polymer";var re=function(){function e(){}return e.register=function(t,n){void 0===n&&(n=!0),e.modulesMap[t.moduleName]=t,void 0===e.moduleBased?e.moduleBased=n:e.moduleBased!==n&&D((function(){console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.")}),"ModulePackageCheck")},e.registerModules=function(t,n){void 0===n&&(n=!0),t&&t.forEach((function(t){return e.register(t,n)}))},e.assertRegistered=function(t,n){if(this.isRegistered(t))return!0;var o,r=n+t;return o=e.moduleBased?"AG Grid: unable to use "+n+" as module "+t+" is not present. Please see: https://www.ag-grid.com/javascript-grid/modules/":"AG Grid: unable to use "+n+" as package 'ag-grid-enterprise' is not present. Please see: https://www.ag-grid.com/javascript-grid/packages/",D((function(){console.warn(o)}),r),!1},e.isRegistered=function(t){return!!e.modulesMap[t]},e.getRegisteredModules=function(){return p(e.modulesMap)},e.isPackageBased=function(){return!e.moduleBased},e.modulesMap={},e}(),ie=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},se=0,ae=function(){function e(e,t,n,o){this.instanceId=se++,this.moving=!1,this.menuVisible=!1,this.filterActive=!1,this.eventService=new ne,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=e,this.userProvidedColDef=t,this.colId=n,this.primary=o,this.setState(e)}return e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setState=function(e){void 0!==e.sort?e.sort!==oe.SORT_ASC&&e.sort!==oe.SORT_DESC||(this.sort=e.sort):e.initialSort!==oe.SORT_ASC&&e.initialSort!==oe.SORT_DESC||(this.sort=e.initialSort);var t=l(e.sortIndex),n=l(e.initialSortIndex);void 0!==t?null!==t&&(this.sortIndex=t):null!==n&&(this.sortIndex=n);var o=u(e.hide),r=u(e.initialHide);this.visible=void 0!==o?!o:!r,void 0!==e.pinned?this.setPinned(e.pinned):this.setPinned(e.initialPinned);var i=l(e.flex),s=l(e.initialFlex);void 0!==i?this.flex=i:void 0!==s&&(this.flex=s)},e.prototype.setColDef=function(e,t){this.colDef=e,this.userProvidedColDef=t,this.initMinAndMaxWidths(),this.initDotNotation()},e.prototype.getUserProvidedColDef=function(){return this.userProvidedColDef},e.prototype.setParent=function(e){this.parent=e},e.prototype.getParent=function(){return this.parent},e.prototype.setOriginalParent=function(e){this.originalParent=e},e.prototype.getOriginalParent=function(){return this.originalParent},e.prototype.initialise=function(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.validate()},e.prototype.initDotNotation=function(){var e=this.gridOptionsWrapper.isSuppressFieldDotNotation();this.fieldContainsDots=r(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!e,this.tooltipFieldContainsDots=r(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!e},e.prototype.initMinAndMaxWidths=function(){var e=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(e),this.maxWidth=this.columnUtils.calculateColMaxWidth(e)},e.prototype.resetActualWidth=function(e){void 0===e&&(e="api");var t=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)},e.prototype.isEmptyGroup=function(){return!1},e.prototype.isRowGroupDisplayed=function(e){if(i(this.colDef)||i(this.colDef.showRowGroup))return!1;var t=!0===this.colDef.showRowGroup,n=this.colDef.showRowGroup===e;return t||n},e.prototype.isPrimary=function(){return this.primary},e.prototype.isFilterAllowed=function(){return!!this.colDef.filter||!!this.colDef.filterFramework},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){D((function(){n?console.warn(e,n):D((function(){return console.warn(e)}),t)}),t)}if(this.gridOptionsWrapper.isRowModelDefault()&&!re.isRegistered(t.ModuleNames.RowGroupingModule)){["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].forEach((function(o){r(e[o])&&(re.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(re.isRegistered(t.ModuleNames.RichSelectModule)||"agRichSelect"===this.colDef.cellEditor&&(re.isPackageBased()?n("AG Grid: "+this.colDef.cellEditor+" can only be used with ag-grid-enterprise","ColumnRichSelectMissing"):n("AG Grid: "+this.colDef.cellEditor+" can only be used with AG Grid Enterprise Module "+t.ModuleNames.RichSelectModule,"ColumnRichSelectMissing")),this.gridOptionsWrapper.isTreeData()){["rowGroup","rowGroupIndex","pivot","pivotIndex"].forEach((function(t){r(e[t])&&n("AG Grid: "+t+" is not possible when doing tree data, your column definition should not have "+t,"TreeDataCannotRowGroup")}))}r(this.colDef.width)&&"number"!==typeof this.colDef.width&&n("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck_asdfawef"),e.pinnedRowCellRenderer&&n("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowCellRendererParams&&n("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowCellRendererFramework&&n("AG Grid: pinnedRowCellRenderer no longer exists, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue. See https://www.ag-grid.com/javascript-grid/cell-rendering/#many-renderers-one-column","colDef.pinnedRowCellRenderer-deprecated"),e.pinnedRowValueGetter&&n("AG Grid: pinnedRowCellRenderer is deprecated, use cellRendererSelector if you want a different Cell Renderer for pinned rows. Check params.node.rowPinned. This was an unfortunate (but necessary) change we had to do to allow future plans we have of re-skinng the data grid in frameworks such as React, Angular and Vue.","colDef.pinnedRowCellRenderer-deprecated")},e.prototype.addEventListener=function(e,t){this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService.removeEventListener(e,t)},e.prototype.createColumnFunctionCallbackParams=function(e){return{node:e,data:e.data,column:this,colDef:this.colDef,context:this.gridOptionsWrapper.getContext(),api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()}},e.prototype.isSuppressNavigable=function(e){if("boolean"===typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"===typeof this.colDef.suppressNavigable){var t=this.createColumnFunctionCallbackParams(e);return(0,this.colDef.suppressNavigable)(t)}return!1},e.prototype.isCellEditable=function(e){return!(e.group&&!this.gridOptionsWrapper.isEnableGroupEdit())&&this.isColumnFunc(e,this.colDef.editable)},e.prototype.isSuppressFillHandle=function(){return!!u(this.colDef.suppressFillHandle)},e.prototype.isAutoHeight=function(){return!!u(this.colDef.autoHeight)},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!!u(this.colDef.resizable)},e.prototype.isColumnFunc=function(e,t){return"boolean"===typeof t?t:"function"===typeof t&&t(this.createColumnFunctionCallbackParams(e))},e.prototype.setMoving=function(t,n){void 0===n&&(n="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MOVING_CHANGED,n))},e.prototype.createColumnEvent=function(e,t){return{api:this.gridApi,columnApi:this.columnApi,type:e,column:this,columns:[this],source:t}},e.prototype.isMoving=function(){return this.moving},e.prototype.getSort=function(){return this.sort},e.prototype.setSort=function(t,n){void 0===n&&(n="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_SORT_CHANGED,n)))},e.prototype.setMenuVisible=function(t,n){void 0===n&&(n="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_MENU_VISIBLE_CHANGED,n)))},e.prototype.isMenuVisible=function(){return this.menuVisible},e.prototype.isSortAscending=function(){return this.sort===oe.SORT_ASC},e.prototype.isSortDescending=function(){return this.sort===oe.SORT_DESC},e.prototype.isSortNone=function(){return i(this.sort)},e.prototype.isSorting=function(){return r(this.sort)},e.prototype.getSortIndex=function(){return this.sortIndex},e.prototype.setSortIndex=function(e){this.sortIndex=e},e.prototype.setAggFunc=function(e){this.aggFunc=e},e.prototype.getAggFunc=function(){return this.aggFunc},e.prototype.getLeft=function(){return this.left},e.prototype.getOldLeft=function(){return this.oldLeft},e.prototype.getRight=function(){return this.left+this.actualWidth},e.prototype.setLeft=function(t,n){void 0===n&&(n="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LEFT_CHANGED,n)))},e.prototype.isFilterActive=function(){return this.filterActive},e.prototype.setFilterActive=function(t,n,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&&b(r,o),this.eventService.dispatchEvent(r)},e.prototype.setPinned=function(e){!0===e||e===oe.PINNED_LEFT?this.pinned=oe.PINNED_LEFT:e===oe.PINNED_RIGHT?this.pinned=oe.PINNED_RIGHT:this.pinned=null},e.prototype.setFirstRightPinned=function(t,n){void 0===n&&(n="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_FIRST_RIGHT_PINNED_CHANGED,n)))},e.prototype.setLastLeftPinned=function(t,n){void 0===n&&(n="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_LAST_LEFT_PINNED_CHANGED,n)))},e.prototype.isFirstRightPinned=function(){return this.firstRightPinned},e.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},e.prototype.isPinned=function(){return this.pinned===oe.PINNED_LEFT||this.pinned===oe.PINNED_RIGHT},e.prototype.isPinnedLeft=function(){return this.pinned===oe.PINNED_LEFT},e.prototype.isPinnedRight=function(){return this.pinned===oe.PINNED_RIGHT},e.prototype.getPinned=function(){return this.pinned},e.prototype.setVisible=function(t,n){void 0===n&&(n="api");var 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.getUniqueId=function(){return this.getId()},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(i(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(i(this.colDef.rowSpan))return 1;var t=this.createBaseColDefParams(e),n=this.colDef.rowSpan(t);return Math.max(n,1)},e.prototype.setActualWidth=function(e,t,n){void 0===t&&(t="api"),void 0===n&&(n=!1),null!=this.minWidth&&(e=Math.max(e,this.minWidth)),null!=this.maxWidth&&(e=Math.min(e,this.maxWidth)),this.actualWidth!==e&&(this.actualWidth=e,this.flex&&"flex"!==t&&"gridInitializing"!==t&&(this.flex=null),n||this.fireColumnWidthChangedEvent(t))},e.prototype.fireColumnWidthChangedEvent=function(t){this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_WIDTH_CHANGED,t))},e.prototype.isGreaterThanMax=function(e){return null!=this.maxWidth&&e>this.maxWidth},e.prototype.getMinWidth=function(){return this.minWidth},e.prototype.getMaxWidth=function(){return this.maxWidth},e.prototype.getFlex=function(){return this.flex||0},e.prototype.setFlex=function(e){this.flex!==e&&(this.flex=e)},e.prototype.setMinimum=function(e){void 0===e&&(e="api"),r(this.minWidth)&&this.setActualWidth(this.minWidth,e)},e.prototype.setRowGroupActive=function(t,n){void 0===n&&(n="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_ROW_GROUP_CHANGED,n)))},e.prototype.isRowGroupActive=function(){return this.rowGroupActive},e.prototype.setPivotActive=function(t,n){void 0===n&&(n="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_PIVOT_CHANGED,n)))},e.prototype.isPivotActive=function(){return this.pivotActive},e.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},e.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},e.prototype.setValueActive=function(t,n){void 0===n&&(n="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent(e.EVENT_VALUE_CHANGED,n)))},e.prototype.isValueActive=function(){return this.aggregationActive},e.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},e.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},e.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},e.prototype.getMenuTabs=function(e){var t=this.getColDef().menuTabs;return null==t&&(t=e),t},e.prototype.isLockPosition=function(){return console.warn("AG Grid: since v21, col.isLockPosition() should not be used, please use col.getColDef().lockPosition instead."),!!this.colDef&&!!this.colDef.lockPosition},e.prototype.isLockVisible=function(){return console.warn("AG Grid: since v21, col.isLockVisible() should not be used, please use col.getColDef().lockVisible instead."),!!this.colDef&&!!this.colDef.lockVisible},e.prototype.isLockPinned=function(){return console.warn("AG Grid: since v21, col.isLockPinned() should not be used, please use col.getColDef().lockPinned instead."),!!this.colDef&&!!this.colDef.lockPinned},e.EVENT_MOVING_CHANGED="movingChanged",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_WIDTH_CHANGED="widthChanged",e.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",e.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",e.EVENT_VISIBLE_CHANGED="visibleChanged",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",e.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_PIVOT_CHANGED="columnPivotChanged",e.EVENT_VALUE_CHANGED="columnValueChanged",ie([K("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),ie([K("columnUtils")],e.prototype,"columnUtils",void 0),ie([K("columnApi")],e.prototype,"columnApi",void 0),ie([K("gridApi")],e.prototype,"gridApi",void 0),ie([K("context")],e.prototype,"context",void 0),ie([z],e.prototype,"initialise",null),e}();function le(){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(r(o))return o}return null}function ue(e){if(e&&e.length)return e[e.length-1]}function ce(e,t,n){return null==e&&null==t||null!=e&&null!=t&&e.length===t.length&&e.every((function(e,o){return n?n(e,t[o]):t[o]===e}))}function pe(e){return e.sort((function(e,t){return e-t}))}function de(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function he(e,t){t.forEach((function(t){return de(e,t)}))}function fe(e,t,n){e.splice(n,0,t)}function ge(e,t,n){he(e,t),t.slice().reverse().forEach((function(t){return fe(e,t,n)}))}function me(e,t){return e.indexOf(t)>-1}function ve(e,t){null!=t&&null!=e&&t.forEach((function(t){return e.push(t)}))}var ye=Object.freeze({firstExistingValue:le,existsAndNotEmpty:function(e){return null!=e&&e.length>0},last:ue,areEqual:ce,compareArrays:function(e,t){return ce(e,t)},shallowCompare:function(e,t){return ce(e,t)},sortNumerically:pe,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:de,removeAllFromArray:he,insertIntoArray:fe,insertArrayIntoArray:function(e,t,n){if(null!=e&&null!=t)for(var o=t.length-1;o>=0;o--){fe(e,t[o],n)}},moveInArray:ge,includes:me,flatten:function(e){return[].concat.apply([],e)},pushAll:ve,toStrings:function(e){return e.map(a)},forEachReverse:function(e,t){if(null!=e)for(var n=e.length-1;n>=0;n--)t(e[n],n)}}),Ce=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},we=function(){function e(e,t,n,o){this.displayedChildren=[],this.localEventService=new ne,this.groupId=t,this.instanceId=n,this.providedColumnGroup=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.getProvidedColumnGroup().getLeafColumns();return!(!e||0===e.length)&&e.every((function(e){return e.isMoving()}))},e.prototype.checkLeft=function(){if(this.displayedChildren.forEach((function(t){t instanceof e&&t.checkLeft()})),this.displayedChildren.length>0)if(this.gridOptionsWrapper.isEnableRtl()){var t=ue(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()||0})),e},e.prototype.addChild=function(e){this.children||(this.children=[]),this.children.push(e)},e.prototype.getDisplayedChildren=function(){return this.displayedChildren},e.prototype.getLeafColumns=function(){var e=[];return this.addLeafColumns(e),e},e.prototype.getDisplayedLeafColumns=function(){var e=[];return this.addDisplayedLeafColumns(e),e},e.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},e.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},e.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},e.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},e.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},e.prototype.setExpanded=function(e){this.providedColumnGroup.setExpanded(e)},e.prototype.addDisplayedLeafColumns=function(t){this.displayedChildren.forEach((function(n){n instanceof ae?t.push(n):n instanceof e&&n.addDisplayedLeafColumns(t)}))},e.prototype.addLeafColumns=function(t){this.children.forEach((function(n){n instanceof ae?t.push(n):n instanceof e&&n.addLeafColumns(t)}))},e.prototype.getChildren=function(){return this.children},e.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},e.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},e.prototype.getOriginalColumnGroup=function(){return console.warn("AG Grid: columnGroup.getOriginalColumnGroup() is deprecated due to a method rename, use columnGroup.getProvidedColumnGroup() instead"),this.getProvidedColumnGroup()},e.prototype.getPaddingLevel=function(){var e=this.getParent();return this.isPadding()&&e&&e.isPadding()?1+e.getPaddingLevel():0},e.prototype.calculateDisplayedColumns=function(){var t=this;this.displayedChildren=[];for(var n=this;null!=n&&n.isPadding();)n=n.getParent();if(!(!!n&&n.providedColumnGroup.isExpandable()))return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach((function(o){if(!(o instanceof e&&(!o.displayedChildren||!o.displayedChildren.length)))switch(o.getColumnGroupShow()){case e.HEADER_GROUP_SHOW_OPEN:n.providedColumnGroup.isExpanded()&&t.displayedChildren.push(o);break;case e.HEADER_GROUP_SHOW_CLOSED:n.providedColumnGroup.isExpanded()||t.displayedChildren.push(o);break;default:t.displayedChildren.push(o)}})),this.localEventService.dispatchEvent(this.createAgEvent(e.EVENT_DISPLAYED_CHILDREN_CHANGED))},e.HEADER_GROUP_SHOW_OPEN="open",e.HEADER_GROUP_SHOW_CLOSED="closed",e.EVENT_LEFT_CHANGED="leftChanged",e.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",Ce([K("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),_e=function(){function e(e,t,n,o){this.localEventService=new ne,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 ae?t.push(n):n instanceof e&&n.addLeafColumns(t)}))},e.prototype.getColumnGroupShow=function(){var e=this.colGroupDef;if(e)return e.columnGroupShow},e.prototype.setupExpandable=function(){var e=this;this.setExpandable(),this.getLeafColumns().forEach((function(t){return t.addEventListener(ae.EVENT_VISIBLE_CHANGED,e.onColumnVisibilityChanged.bind(e))}))},e.prototype.setExpandable=function(){if(!this.isPadding()){for(var t=!1,n=!1,o=!1,r=this.findChildrenRemovingPadding(),i=0,s=r.length;i<s;i++){var a=r[i];if(a.isVisible()){var l=a.getColumnGroupShow();l===we.HEADER_GROUP_SHOW_OPEN?(t=!0,o=!0):l===we.HEADER_GROUP_SHOW_CLOSED?(n=!0,o=!0):(t=!0,n=!0)}}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.findChildrenRemovingPadding=function(){var t=[];return function n(o){o.forEach((function(o){o instanceof e&&o.isPadding()?n(o.children):t.push(o)}))}(this.children),t},e.prototype.onColumnVisibilityChanged=function(){this.setExpandable()},e.prototype.addEventListener=function(e,t){this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService.removeEventListener(e,t)},e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_EXPANDABLE_CHANGED="expandableChanged",e}(),be={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},Ee="__ag_Grid_Stop_Propagation",Se=["touchstart","touchend","touchmove","touchcancel"],Re={};function Oe(e){e[Ee]=!0}function Te(e){return!0===e[Ee]}var Pe=function(){var e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return function(t){if("boolean"===typeof Re[t])return Re[t];var n=document.createElement(e[t]||"div");return Re[t="on"+t]=t in n}}();function Ae(e,t,n){for(var o=t.target;o;){var r=e.getDomData(o,n);if(r)return r;o=o.parentElement}return null}function De(e,t){return!(!t||!e)&&Ne(t).indexOf(e)>=0}function xe(e){for(var t=[],n=e.target;n;)t.push(n),n=n.parentElement;return t}function Ne(e){var t=e;return t.path?t.path:t.composedPath?t.composedPath():t.__agGridEventPath?t.__agGridEventPath:xe(e)}function Me(e,t,n,o){var r=me(Se,n)?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(t,n,o,r)}var Ie=Object.freeze({stopPropagationForAgGrid:Oe,isStopPropagationForAgGrid:Te,isEventSupported:Pe,getCtrlForEvent:Ae,addChangeListener:function(e,t){e.addEventListener("changed",t),e.addEventListener("paste",t),e.addEventListener("input",t)},isElementInEventPath:De,createEventPath:xe,addAgGridEventPath:function(e){e.__agGridEventPath=Ne(e)},getEventPath:Ne,addSafePassiveEventListener:Me}),Le=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},Fe=function(){function e(){var e=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.isAlive=function(){return!e.destroyed}}return e.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},e.prototype.getContext=function(){return this.context},e.prototype.destroy=function(){this.destroyFunctions.forEach((function(e){return e()})),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:e.EVENT_DESTROYED})},e.prototype.addEventListener=function(e,t){this.localEventService||(this.localEventService=new ne),this.localEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.localEventService&&this.localEventService.removeEventListener(e,t)},e.prototype.dispatchEventAsync=function(e){var t=this;window.setTimeout((function(){return t.dispatchEvent(e)}),0)},e.prototype.dispatchEvent=function(e){this.localEventService&&this.localEventService.dispatchEvent(e)},e.prototype.addManagedListener=function(e,t,n){var o=this;if(!this.destroyed){e instanceof HTMLElement?Me(this.getFrameworkOverrides(),e,t,n):e.addEventListener(t,n);var r=function r(){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.createManagedBean=function(e,t){var n=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),n},e.prototype.createBean=function(e,t,n){return(t||this.getContext()).createBean(e,n)},e.prototype.destroyBean=function(e,t){return(t||this.getContext()).destroyBean(e)},e.prototype.destroyBeans=function(e,t){var n=this;return e&&e.forEach((function(e){return n.destroyBean(e,t)})),[]},e.EVENT_DESTROYED="destroyed",Le([K("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Le([K("context")],e.prototype,"context",void 0),Le([K("eventService")],e.prototype,"eventService",void 0),Le([K("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Le([Z],e.prototype,"destroy",null),e}(),ke=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Ge=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},He=function(e,t){return function(n,o){t(n,o,e)}},Be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ke(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ColumnFactory")},t.prototype.createColumnTree=function(e,t,n){var o=new h,r=this.extractExistingTreeData(n),i=r.existingCols,s=r.existingGroups,a=r.existingColKeys;o.addExistingKeys(a);var l=this.recursivelyCreateColumns(e,0,t,i,o,s),u=this.findMaxDept(l,0);this.logger.log("Number of levels for grouped columns is "+u);var c=this.balanceColumnTree(l,0,u,o);return this.columnUtils.depthFirstOriginalTreeSearch(null,c,(function(e,t){e instanceof _e&&e.setupExpandable(),e.setOriginalParent(t)})),{columnTree:c,treeDept:u}},t.prototype.extractExistingTreeData=function(e){var t=[],n=[],o=[];return e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,(function(e){if(e instanceof _e){var r=e;n.push(r)}else{var i=e;o.push(i.getId()),t.push(i)}})),{existingCols:t,existingGroups:n,existingColKeys:o}},t.prototype.createForAutoGroups=function(e,t){var n=this;return e.map((function(e){return n.createAutoGroupTreeItem(t,e)}))},t.prototype.createAutoGroupTreeItem=function(e,t){for(var n=t,o=this.findDepth(e)-1;o>=0;o--){var r=new _e(null,"FAKE_PATH_"+t.getId()+"}_"+o,!0,o);this.context.createBean(r),r.setChildren([n]),n.setOriginalParent(r),n=r}return n},t.prototype.findDepth=function(e){for(var t=0,n=e;n&&n[0]&&n[0]instanceof _e;)t++,n=n[0].getChildren();return t},t.prototype.balanceColumnTree=function(e,t,n,o){for(var r=[],i=0;i<e.length;i++){var s=e[i];if(s instanceof _e){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 _e(h,d,!0,t);this.context.createBean(f),c&&c.setChildren([f]),c=f,u||(u=c)}if(u&&c){if(r.push(u),e.some((function(e){return e instanceof _e}))){c.setChildren([s]);continue}c.setChildren(e);break}r.push(s)}}return r},t.prototype.findMaxDept=function(e,t){for(var n=t,o=0;o<e.length;o++){var r=e[o];if(r instanceof _e){var i=r,s=this.findMaxDept(i.getChildren(),t+1);n<s&&(n=s)}}return n},t.prototype.recursivelyCreateColumns=function(e,t,n,o,r,i){var s=this;return(e||[]).map((function(e){return s.isColumnGroup(e)?s.createColumnGroup(n,e,t,o,r,i):s.createColumn(n,e,o,r)}))},t.prototype.createColumnGroup=function(e,t,n,o,r,i){var s=this.createMergedColGroupDef(t),a=r.getUniqueKey(s.groupId||null,null),l=new _e(s,a,!1,n);this.context.createBean(l);var u=this.findExistingGroup(t,i);u&&de(i,u),u&&u.isExpanded()&&l.setExpanded(!0);var c=this.recursivelyCreateColumns(s.children,n+1,e,o,r,i);return l.setChildren(c),l},t.prototype.createMergedColGroupDef=function(e){var t={};return Object.assign(t,this.gridOptionsWrapper.getDefaultColGroupDef()),Object.assign(t,e),this.checkForDeprecatedItems(t),t},t.prototype.createColumn=function(e,t,n,o){var r=this.mergeColDefs(t);this.checkForDeprecatedItems(r);var i=this.findExistingColumn(t,n);if(n&&i&&de(n,i),i)i.setColDef(r,t),this.applyColumnState(i,r);else{var s=o.getUniqueKey(r.colId,r.field);i=new ae(r,t,s,e),this.context.createBean(i)}return i},t.prototype.applyColumnState=function(e,t){var n=l(t.flex);if(void 0!==n&&e.setFlex(n),e.getFlex()<=0){var o=l(t.width);if(null!=o)e.setActualWidth(o);else{var r=e.getActualWidth();e.setActualWidth(r)}}void 0!==t.sort&&(t.sort==oe.SORT_ASC||t.sort==oe.SORT_DESC?e.setSort(t.sort):e.setSort(void 0));var i=l(t.sortIndex);void 0!==i&&e.setSortIndex(i);var s=u(t.hide);void 0!==s&&e.setVisible(!s),void 0!==t.pinned&&e.setPinned(t.pinned)},t.prototype.findExistingColumn=function(e,t){return(t||[]).find((function(t){var n=t.getUserProvidedColDef();if(!n)return!1;var o=null!=e.colId,r=null!=e.field;return o?t.getId()===e.colId:r?n.field===e.field:n===e}))},t.prototype.findExistingGroup=function(e,t){return t.find((function(t){return!!t.getColGroupDef()&&(!(null==e.groupId)&&t.getId()===e.groupId)}))},t.prototype.mergeColDefs=function(e){var t={},n=this.gridOptionsWrapper.getDefaultColDef();b(t,n,!1,!0);var o=e.type;return o||(o=n&&n.type),o&&this.assignColumnTypes(o,t),b(t,e,!1,!0),t},t.prototype.assignColumnTypes=function(e,t){var n=[];if(e instanceof Array){e.some((function(e){return"string"!==typeof e}))?console.warn("AG Grid: if colDef.type is supplied an array it should be of type 'string[]'"):n=e}else{if("string"!==typeof e)return void console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'");n=e.split(",")}var o=Object.assign({},be);f(this.gridOptionsWrapper.getColumnTypes()||{},(function(e,t){e in o?console.warn("AG Grid: the column type '"+e+"' is a default column type and cannot be overridden."):o[e]=t})),n.forEach((function(e){var n=o[e.trim()];n?b(t,n,!1,!0):console.warn("AG Grid: colDef.type '"+e+"' does not correspond to defined gridOptions.columnTypes")}))},t.prototype.checkForDeprecatedItems=function(e){if(e){var t=e;void 0!==t.group&&console.warn("AG Grid: colDef.group is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroup&&console.warn("AG Grid: colDef.headerGroup is invalid, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.headerGroupShow&&console.warn("AG Grid: colDef.headerGroupShow is invalid, should be columnGroupShow, please check documentation on how to do grouping as it changed in version 3"),void 0!==t.suppressRowGroup&&console.warn("AG Grid: colDef.suppressRowGroup is deprecated, please use colDef.type instead"),void 0!==t.suppressAggregation&&console.warn("AG Grid: colDef.suppressAggregation is deprecated, please use colDef.type instead"),(t.suppressRowGroup||t.suppressAggregation)&&console.warn("AG Grid: colDef.suppressAggregation and colDef.suppressRowGroup are deprecated, use allowRowGroup, allowPivot and allowValue instead"),t.displayName&&(console.warn("AG Grid: Found displayName "+t.displayName+", please use headerName instead, displayName is deprecated."),t.headerName=t.displayName)}},t.prototype.isColumnGroup=function(e){return void 0!==e.children},Ge([K("columnUtils")],t.prototype,"columnUtils",void 0),Ge([He(0,Q("loggerFactory"))],t.prototype,"setBeans",null),t=Ge([Y("columnFactory")],t)}(Fe),Ve=function(){function e(){}return e.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",e.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",e.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",e.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",e.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",e.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",e.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",e.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",e.EVENT_COLUMN_MOVED="columnMoved",e.EVENT_COLUMN_VISIBLE="columnVisible",e.EVENT_COLUMN_PINNED="columnPinned",e.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",e.EVENT_COLUMN_RESIZED="columnResized",e.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",e.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",e.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",e.EVENT_ROW_GROUP_OPENED="rowGroupOpened",e.EVENT_ROW_DATA_CHANGED="rowDataChanged",e.EVENT_ROW_DATA_UPDATED="rowDataUpdated",e.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",e.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",e.EVENT_CHART_CREATED="chartCreated",e.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",e.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",e.EVENT_CHART_DESTROYED="chartDestroyed",e.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",e.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",e.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",e.EVENT_MODEL_UPDATED="modelUpdated",e.EVENT_PASTE_START="pasteStart",e.EVENT_PASTE_END="pasteEnd",e.EVENT_FILL_START="fillStart",e.EVENT_FILL_END="fillEnd",e.EVENT_CELL_CLICKED="cellClicked",e.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",e.EVENT_CELL_MOUSE_DOWN="cellMouseDown",e.EVENT_CELL_CONTEXT_MENU="cellContextMenu",e.EVENT_CELL_VALUE_CHANGED="cellValueChanged",e.EVENT_CELL_EDIT_REQUEST="cellEditRequest",e.EVENT_ROW_VALUE_CHANGED="rowValueChanged",e.EVENT_CELL_FOCUSED="cellFocused",e.EVENT_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_SELECTION_CHANGED="selectionChanged",e.EVENT_CELL_KEY_DOWN="cellKeyDown",e.EVENT_CELL_KEY_PRESS="cellKeyPress",e.EVENT_CELL_MOUSE_OVER="cellMouseOver",e.EVENT_CELL_MOUSE_OUT="cellMouseOut",e.EVENT_FILTER_CHANGED="filterChanged",e.EVENT_FILTER_MODIFIED="filterModified",e.EVENT_FILTER_OPENED="filterOpened",e.EVENT_SORT_CHANGED="sortChanged",e.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",e.EVENT_ROW_CLICKED="rowClicked",e.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",e.EVENT_GRID_READY="gridReady",e.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",e.EVENT_VIEWPORT_CHANGED="viewportChanged",e.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",e.EVENT_FIRST_DATA_RENDERED="firstDataRendered",e.EVENT_DRAG_STARTED="dragStarted",e.EVENT_DRAG_STOPPED="dragStopped",e.EVENT_CHECKBOX_CHANGED="checkboxChanged",e.EVENT_ROW_EDITING_STARTED="rowEditingStarted",e.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",e.EVENT_CELL_EDITING_STARTED="cellEditingStarted",e.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",e.EVENT_BODY_SCROLL="bodyScroll",e.EVENT_BODY_SCROLL_END="bodyScrollEnd",e.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",e.EVENT_PAGINATION_CHANGED="paginationChanged",e.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",e.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",e.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",e.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",e.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",e.EVENT_FLASH_CELLS="flashCells",e.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOffsetChanged",e.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",e.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",e.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",e.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",e.EVENT_ROW_DRAG_ENTER="rowDragEnter",e.EVENT_ROW_DRAG_MOVE="rowDragMove",e.EVENT_ROW_DRAG_LEAVE="rowDragLeave",e.EVENT_ROW_DRAG_END="rowDragEnd",e.EVENT_POPUP_TO_FRONT="popupToFront",e.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",e.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",e.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",e.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",e.EVENT_KEYBOARD_FOCUS="keyboardFocus",e.EVENT_MOUSE_FOCUS="mouseFocus",e.EVENT_STORE_UPDATED="storeUpdated",e}(),We=function(){function e(){this.existingIds={}}return e.prototype.getInstanceIdForKey=function(e){var t,n=this.existingIds[e];return t="number"!==typeof n?0:n+1,this.existingIds[e]=t,t},e}(),je=/[&<>"']/g,Ue={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ze(e){return null===e||void 0===e?null:e.replace(/([A-Z])/g,(function(e){return"-"+e[0].toLowerCase()}))}function Ze(e){return null===e||void 0===e?null:e.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))}function Ye(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()}function Ke(e){return null==e?null:e.toString().toString().replace(je,(function(e){return Ue[e]}))}function qe(e){if(!e||null==e)return null;return e.replace(/([A-Z])([A-Z])([a-z])|([a-z])([A-Z])/g,"$1$4 $2$3$5").replace("."," ").split(" ").map((function(e){return e.substring(0,1).toUpperCase()+(e.length>1?e.substring(1,e.length):"")})).join(" ")}var Xe=Object.freeze({utf8_encode:function(e){var t=String.fromCharCode;function n(e,n){return t(e>>n&63|128)}function o(e){if(e>=0&&e<=31&&10!==e)return"_x"+e.toString(16).toUpperCase().padStart(4,"0")+"_";if(0==(4294967168&e))return t(e);var 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){var t=[];if(!e)return[];for(var n,o,r=e.length,i=0;i<r;)(n=e.charCodeAt(i++))>=55296&&n<=56319&&i<r?56320==(64512&(o=e.charCodeAt(i++)))?t.push(((1023&n)<<10)+(1023&o)+65536):(t.push(n),i--):t.push(n);return t}(e),i=r.length,s=-1,a="";++s<i;)a+=o(r[s]);return a},camelCaseToHyphen:ze,hyphenToCamelCase:Ze,capitalise:Ye,escapeString:Ke,camelCaseToHumanText:qe});function Qe(e){var t=new Map;return e.forEach((function(e){return t.set(e[0],e[1])})),t}var Je=Object.freeze({convertToMap:Qe,mapById:function(e,t){var n=new Map;return e.forEach((function(e){return n.set(t(e),e)})),n},keys:function(e){var t=[];return e.forEach((function(e,n){return t.push(n)})),t}}),$e=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),et=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(e,t){return function(n,o){t(n,o,e)}},nt=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ot=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},rt=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ot(arguments[t]));return e},it=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.primaryHeaderRowCount=0,t.secondaryHeaderRowCount=0,t.gridHeaderRowCount=0,t.displayedColumnsLeft=[],t.displayedColumnsRight=[],t.displayedColumnsCenter=[],t.displayedColumns=[],t.displayedColumnsAndGroupsMap={},t.viewportColumns=[],t.viewportColumnsCenter=[],t.autoHeightActiveAtLeastOnce=!1,t.rowGroupColumns=[],t.valueColumns=[],t.pivotColumns=[],t.ready=!1,t.autoGroupsNeedBuilding=!1,t.forceRecreateAutoGroups=!1,t.pivotMode=!1,t.bodyWidth=0,t.leftWidth=0,t.rightWidth=0,t.bodyWidthDirty=!0,t.colDefVersion=0,t.flexColsCalculatedAtLestOnce=!1,t}return $e(t,e),t.prototype.init=function(){var e=this;this.suppressColumnVirtualisation=this.gridOptionsWrapper.isSuppressColumnVirtualisation();var t=this.gridOptionsWrapper.isPivotMode();this.isPivotSettingAllowed(t)&&(this.pivotMode=t),this.usingTreeData=this.gridOptionsWrapper.isTreeData(),this.addManagedListener(this.gridOptionsWrapper,"autoGroupColumnDef",(function(){return e.onAutoGroupColumnDefChanged()})),this.addManagedListener(this.gridOptionsWrapper,"defaultColDef",(function(){return e.onDefaultColDefChanged()}))},t.prototype.onAutoGroupColumnDefChanged=function(){this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged")},t.prototype.onDefaultColDefChanged=function(){this.colDefVersion++,this.forceRecreateAutoGroups=!0,this.createColumnsFromColumnDefs(!0)},t.prototype.getColDefVersion=function(){return this.colDefVersion},t.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api");var n=!!this.columnDefs;this.colDefVersion++,this.columnDefs=e,this.createColumnsFromColumnDefs(n,t)},t.prototype.createColumnsFromColumnDefs=function(e,t){var n=this;void 0===t&&(t="api");var o=e?this.compareColumnStatesAndRaiseEvents(t):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var r=this.primaryColumns,i=this.primaryColumnTree,s=this.columnFactory.createColumnTree(this.columnDefs,!0,i);this.primaryColumnTree=s.columnTree,this.primaryHeaderRowCount=s.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach((function(e){return n.primaryColumnsMap[e.getId()]=e})),this.extractRowGroupColumns(t,r),this.extractPivotColumns(t,r),this.extractValueColumns(t,r),this.ready=!0;var a=void 0===this.gridColsArePrimary;(this.gridColsArePrimary||a)&&(this.updateGridColumns(),e&&!this.gridOptionsWrapper.isMaintainColumnOrder()&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(t),this.checkViewportColumns()),this.dispatchEverythingChanged(t),o&&o(),this.dispatchNewColumnsLoaded()},t.prototype.dispatchNewColumnsLoaded=function(){var e={type:Ve.EVENT_NEW_COLUMNS_LOADED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.dispatchEverythingChanged=function(e){void 0===e&&(e="api");var t={type:Ve.EVENT_COLUMN_EVERYTHING_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:e};this.eventService.dispatchEvent(t)},t.prototype.orderGridColumnsLikePrimary=function(){var e=this,t=this.primaryColumns;t&&this.gridColumns.sort((function(n,o){var r=t.indexOf(n),i=t.indexOf(o),s=r>=0,a=i>=0;return s&&a?r-i:s?1:a?-1:e.gridColumns.indexOf(n)-e.gridColumns.indexOf(o)}))},t.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},t.prototype.setViewport=function(){this.gridOptionsWrapper.isEnableRtl()?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},t.prototype.getDisplayedColumnsStartingAt=function(e){for(var t=e,n=[];null!=t;)n.push(t),t=this.getDisplayedColAfter(t);return n},t.prototype.checkViewportColumns=function(){if(null!=this.displayedColumnsCenter){var e=this.viewportColumns.map((function(e){return e.getId()})).join("#");if(this.extractViewport(),e!==this.viewportColumns.map((function(e){return e.getId()})).join("#")){var t={type:Ve.EVENT_VIRTUAL_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}}},t.prototype.setViewportPosition=function(e,t){(e!==this.scrollWidth||t!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=e,this.scrollPosition=t,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns())},t.prototype.isPivotMode=function(){return this.pivotMode},t.prototype.isPivotSettingAllowed=function(e){return!e||!this.gridOptionsWrapper.isTreeData()||(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},t.prototype.setPivotMode=function(e,t){if(void 0===t&&(t="api"),e!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)){this.pivotMode=e,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(t);var n={type:Ve.EVENT_COLUMN_PIVOT_MODE_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},t.prototype.getSecondaryPivotColumn=function(e,t){if(i(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;ce(r,e)&&i===n&&(o=t)})),o},t.prototype.setBeans=function(e){this.logger=e.create("columnModel")},t.prototype.setFirstRightAndLastLeftPinned=function(e){var t,n;this.gridOptionsWrapper.isEnableRtl()?(t=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,n=this.displayedColumnsRight?ue(this.displayedColumnsRight):null):(t=this.displayedColumnsLeft?ue(this.displayedColumnsLeft):null,n=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach((function(o){o.setLastLeftPinned(o===t,e),o.setFirstRightPinned(o===n,e)}))},t.prototype.autoSizeColumns=function(e){var t=this,n=e.columns,o=e.skipHeader,r=e.skipHeaderGroups,i=e.stopAtGroup,s=e.source,a=void 0===s?"api":s;this.animationFrameService.flushAllFrames();for(var l=[],u=-1,c=null!=o?o:this.gridOptionsWrapper.isSkipHeaderOnAutoSize(),p=null!=r?r:c;0!==u;)u=0,this.actionOnGridColumns(n,(function(e){if(l.indexOf(e)>=0)return!1;var n=t.autoWidthCalculator.getPreferredWidthForColumn(e,c);if(n>0){var o=t.normaliseColumnWidth(e,n);e.setActualWidth(o,a),l.push(e),u++}return!0}),a);p||this.autoSizeColumnGroupsByColumns(n,i),this.fireColumnResizedEvent(l,!0,"autosizeColumns")},t.prototype.fireColumnResizedEvent=function(e,t,n,o){if(void 0===o&&(o=null),e&&e.length){var r={type:Ve.EVENT_COLUMN_RESIZED,columns:e,column:1===e.length?e[0]:null,flexColumns:o,finished:t,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(r)}},t.prototype.autoSizeColumn=function(e,t,n){void 0===n&&(n="api"),e&&this.autoSizeColumns({columns:[e],skipHeader:t,skipHeaderGroups:!0,source:n})},t.prototype.autoSizeColumnGroupsByColumns=function(e,t){var n,o,r,i,s,a=new Set;this.getGridColumns(e).forEach((function(e){for(var n=e.getParent();n&&n!=t;)n.isPadding()||a.add(n),n=n.getParent()}));try{for(var l=nt(a),u=l.next();!u.done;u=l.next()){var c=u.value;try{for(var p=(r=void 0,nt(this.ctrlsService.getHeaderRowContainerCtrls())),d=p.next();!d.done;d=p.next()){if(s=d.value.getHeaderCtrlForColumn(c))break}}catch(h){r={error:h}}finally{try{d&&!d.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}s&&s.resizeLeafColumnsToFit()}}catch(f){n={error:f}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}return[]},t.prototype.autoSizeAllColumns=function(e,t){void 0===t&&(t="api");var n=this.getAllDisplayedColumns();this.autoSizeColumns({columns:n,skipHeader:e,source:t})},t.prototype.getColumnsFromTree=function(e){var t=[];return function e(n){for(var o=0;o<n.length;o++){var r=n[o];r instanceof ae?t.push(r):r instanceof _e&&e(r.getChildren())}}(e),t},t.prototype.getAllDisplayedTrees=function(){return this.displayedTreeLeft&&this.displayedTreeRight&&this.displayedTreeCentre?this.displayedTreeLeft.concat(this.displayedTreeCentre).concat(this.displayedTreeRight):null},t.prototype.getPrimaryColumnTree=function(){return this.primaryColumnTree},t.prototype.getHeaderRowCount=function(){return this.gridHeaderRowCount},t.prototype.getDisplayedTreeLeft=function(){return this.displayedTreeLeft},t.prototype.getDisplayedTreeRight=function(){return this.displayedTreeRight},t.prototype.getDisplayedTreeCentre=function(){return this.displayedTreeCentre},t.prototype.isColumnDisplayed=function(e){return this.getAllDisplayedColumns().indexOf(e)>=0},t.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},t.prototype.getViewportColumns=function(){return this.viewportColumns},t.prototype.getDisplayedLeftColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsLeft):this.displayedColumnsLeft},t.prototype.getDisplayedRightColumnsForRow=function(e){return this.colSpanActive?this.getDisplayedColumnsForRow(e,this.displayedColumnsRight):this.displayedColumnsRight},t.prototype.getDisplayedColumnsForRow=function(e,t,n,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},t.prototype.getViewportCenterColumnsForRow=function(e){var t=this;if(!this.colSpanActive)return this.viewportColumnsCenter;var n=this.suppressColumnVirtualisation?null:this.isColumnInViewport.bind(this);return this.getDisplayedColumnsForRow(e,this.displayedColumnsCenter,n,(function(e){var n=e.getLeft();return r(n)&&n>t.viewportLeft}))},t.prototype.getAriaColumnIndex=function(e){return this.getAllGridColumns().indexOf(e)+1},t.prototype.isColumnInViewport=function(e){if(e.isAutoHeight())return!0;var t=e.getLeft()||0,n=t+e.getActualWidth(),o=this.viewportLeft-200,r=this.viewportRight+200;return!(t<o&&n<o)&&!(t>r&&n>r)},t.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},t.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},t.prototype.updatePrimaryColumnList=function(e,t,n,o,r,i){var a=this;if(void 0===i&&(i="api"),e&&!s(e)){var l=!1;if(e.forEach((function(e){var r=a.getPrimaryColumn(e);if(r){if(n){if(t.indexOf(r)>=0)return;t.push(r)}else{if(t.indexOf(r)<0)return;de(t,r)}o(r),l=!0}})),l){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i);var u={type:r,columns:t,column:1===t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:i};this.eventService.dispatchEvent(u)}}},t.prototype.setRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(e,this.rowGroupColumns,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,this.setRowGroupActive.bind(this),t)},t.prototype.setRowGroupActive=function(e,t,n){e!==t.isRowGroupActive()&&(t.setRowGroupActive(e,n),e||this.gridOptionsWrapper.isSuppressMakeColumnVisibleAfterUnGroup()||t.setVisible(!0,n))},t.prototype.addRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.addRowGroupColumns([e],t)},t.prototype.addRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},t.prototype.removeRowGroupColumns=function(e,t){void 0===t&&(t="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(e,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,t)},t.prototype.removeRowGroupColumn=function(e,t){void 0===t&&(t="api"),e&&this.removeRowGroupColumns([e],t)},t.prototype.addPivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!0,(function(e){return e.setPivotActive(!0,t)}),Ve.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.setPivotColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.pivotColumns,Ve.EVENT_COLUMN_PIVOT_CHANGED,(function(e,n){n.setPivotActive(e,t)}),t)},t.prototype.addPivotColumn=function(e,t){void 0===t&&(t="api"),this.addPivotColumns([e],t)},t.prototype.removePivotColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.pivotColumns,!1,(function(e){return e.setPivotActive(!1,t)}),Ve.EVENT_COLUMN_PIVOT_CHANGED,t)},t.prototype.removePivotColumn=function(e,t){void 0===t&&(t="api"),this.removePivotColumns([e],t)},t.prototype.setPrimaryColumnList=function(e,t,n,o,i){var s=this;t.length=0,r(e)&&e.forEach((function(e){var n=s.getPrimaryColumn(e);n&&t.push(n)})),(this.primaryColumns||[]).forEach((function(e){var n=t.indexOf(e)>=0;o(n,e)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(i),this.fireColumnEvent(n,t,i)},t.prototype.setValueColumns=function(e,t){void 0===t&&(t="api"),this.setPrimaryColumnList(e,this.valueColumns,Ve.EVENT_COLUMN_VALUE_CHANGED,this.setValueActive.bind(this),t)},t.prototype.setValueActive=function(e,t,n){if(e!==t.isValueActive()&&(t.setValueActive(e,n),e&&!t.getAggFunc())){var o=this.aggFuncService.getDefaultAggFunc(t);t.setAggFunc(o)}},t.prototype.addValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!0,this.setValueActive.bind(this,!0),Ve.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.addValueColumn=function(e,t){void 0===t&&(t="api"),e&&this.addValueColumns([e],t)},t.prototype.removeValueColumn=function(e,t){void 0===t&&(t="api"),this.removeValueColumns([e],t)},t.prototype.removeValueColumns=function(e,t){void 0===t&&(t="api"),this.updatePrimaryColumnList(e,this.valueColumns,!1,this.setValueActive.bind(this,!1),Ve.EVENT_COLUMN_VALUE_CHANGED,t)},t.prototype.normaliseColumnWidth=function(e,t){var n=e.getMinWidth();r(n)&&t<n&&(t=n);var o=e.getMaxWidth();return r(o)&&e.isGreaterThanMax(t)&&(t=o),t},t.prototype.getPrimaryOrGridColumn=function(e){return this.getPrimaryColumn(e)||this.getGridColumn(e)},t.prototype.setColumnWidths=function(e,t,n,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({resizeSets:i,finished:n,source:o})},t.prototype.checkMinAndMaxWidthsForSet=function(e){var t=e.columns,n=e.width,o=0,i=0,s=!0;return t.forEach((function(e){var t=e.getMinWidth();o+=t||0;var n=e.getMaxWidth();r(n)&&n>0?i+=n:s=!1})),n>=o&&(!s||n<=i)},t.prototype.resizeColumnSets=function(e){var t=this,n=e.resizeSets,o=e.finished,i=e.source;if(!n||n.every((function(e){return t.checkMinAndMaxWidthsForSet(e)}))){var s=[],a=[];n.forEach((function(e){var t=e.width,n=e.columns,o=e.ratios,l={},u={};n.forEach((function(e){return a.push(e)}));for(var c=!0,p=0,d=function(){if(++p>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";c=!1;var e=[],i=0,s=t;n.forEach((function(t,n){if(u[t.getId()])s-=l[t.getId()];else{e.push(t);var r=o[n];i+=r}}));var a=1/i;e.forEach((function(n,i){var p;i===e.length-1?p=s:(p=Math.round(o[i]*t*a),s-=p);var d=n.getMinWidth(),h=n.getMaxWidth();r(d)&&p<d?(p=d,u[n.getId()]=!0,c=!0):r(h)&&h>0&&p>h&&(p=h,u[n.getId()]=!0,c=!0),l[n.getId()]=p}))};c;){if("break"===d())break}n.forEach((function(e){var t=l[e.getId()];e.getActualWidth()!==t&&(e.setActualWidth(t,i),s.push(e))}))}));var l=s.length>0,u=[];l&&(u=this.refreshFlexedColumns({resizingCols:a,skipSetLeft:!0}),this.setLeftValues(i),this.updateBodyWidths(),this.checkViewportColumns());var c=a.concat(u);(l||o)&&this.fireColumnResizedEvent(c,o,i,u)}else if(o){var p=n&&n.length>0?n[0].columns:null;this.fireColumnResizedEvent(p,o,i)}},t.prototype.setColumnAggFunc=function(e,t,n){if(void 0===n&&(n="api"),e){var o=this.getPrimaryColumn(e);o&&(o.setAggFunc(t),this.fireColumnEvent(Ve.EVENT_COLUMN_VALUE_CHANGED,[o],n))}},t.prototype.fireColumnEvent=function(e,t,n){var o={type:e,columns:t,column:t&&1==t.length?t[0]:null,api:this.gridApi,columnApi:this.columnApi,source:n};this.eventService.dispatchEvent(o)},t.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:Ve.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)},t.prototype.moveColumns=function(e,t,n){if(void 0===n&&(n="api"),this.columnAnimationService.start(),t>this.gridColumns.length-e.length)return console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+t),void console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");var o=this.getGridColumns(e);if(!!this.doesMovePassRules(o,t)){ge(this.gridColumns,o,t),this.updateDisplayedColumns(n);var r={type:Ve.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()}},t.prototype.doesMovePassRules=function(e,t){var n=this.gridColumns.slice();return ge(n,e,t),!!this.doesMovePassMarryChildren(n)&&!!this.doesMovePassLockedPositions(n)},t.prototype.sortColumnsLikeGridColumns=function(e){var t=this;!e||e.length<=1||(e.filter((function(e){return t.gridColumns.indexOf(e)<0})).length>0||e.sort((function(e,n){return t.gridColumns.indexOf(e)-t.gridColumns.indexOf(n)})))},t.prototype.doesMovePassLockedPositions=function(e){var t=0,n=!0;return e.forEach((function(e){var o,r=(o=e.getColDef().lockPosition)?!0===o||"left"===o?0:2:1;r<t&&(n=!1),t=r})),n},t.prototype.doesMovePassMarryChildren=function(e){var t=!0;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){if(n instanceof _e){var o=n,r=o.getColGroupDef();if(r&&r.marryChildren){var i=[];o.getLeafColumns().forEach((function(t){var n=e.indexOf(t);i.push(n)})),Math.max.apply(Math,i)-Math.min.apply(Math,i)>o.getLeafColumns().length-1&&(t=!1)}}})),t},t.prototype.moveColumn=function(e,t,n){void 0===n&&(n="api"),this.moveColumns([e],t,n)},t.prototype.moveColumnByIndex=function(e,t,n){void 0===n&&(n="api");var o=this.gridColumns[e];this.moveColumn(o,t,n)},t.prototype.getColumnDefs=function(){var e=this;if(this.primaryColumns){var t=this.primaryColumns.slice();return this.gridColsArePrimary?t.sort((function(t,n){return e.gridColumns.indexOf(t)-e.gridColumns.indexOf(n)})):this.lastPrimaryOrder&&t.sort((function(t,n){return e.lastPrimaryOrder.indexOf(t)-e.lastPrimaryOrder.indexOf(n)})),this.columnDefFactory.buildColumnDefs(t,this.rowGroupColumns,this.pivotColumns)}},t.prototype.getBodyContainerWidth=function(){return this.bodyWidth},t.prototype.getContainerWidth=function(e){switch(e){case oe.PINNED_LEFT:return this.leftWidth;case oe.PINNED_RIGHT:return this.rightWidth;default:return this.bodyWidth}},t.prototype.updateBodyWidths=function(){var e=this.getWidthOfColsInList(this.displayedColumnsCenter),t=this.getWidthOfColsInList(this.displayedColumnsLeft),n=this.getWidthOfColsInList(this.displayedColumnsRight);if(this.bodyWidthDirty=this.bodyWidth!==e,this.bodyWidth!==e||this.leftWidth!==t||this.rightWidth!==n){this.bodyWidth=e,this.leftWidth=t,this.rightWidth=n;var o={type:Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)}},t.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},t.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},t.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},t.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},t.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},t.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},t.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},t.prototype.getDisplayedColumns=function(e){switch(e){case oe.PINNED_LEFT:return this.getDisplayedLeftColumns();case oe.PINNED_RIGHT:return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},t.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},t.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},t.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},t.prototype.getAllGridColumns=function(){return this.gridColumns},t.prototype.isEmpty=function(){return s(this.gridColumns)},t.prototype.isRowGroupEmpty=function(){return s(this.rowGroupColumns)},t.prototype.setColumnVisible=function(e,t,n){void 0===n&&(n="api"),this.setColumnsVisible([e],t,n)},t.prototype.setColumnsVisible=function(e,t,n){var o=this;void 0===t&&(t=!1),void 0===n&&(n="api"),this.columnAnimationService.start(),this.actionOnGridColumns(e,(function(e){return e.isVisible()!==t&&(e.setVisible(t,n),!0)}),n,(function(){return{type:Ve.EVENT_COLUMN_VISIBLE,visible:t,column:null,columns:null,api:o.gridApi,columnApi:o.columnApi,source:n}})),this.columnAnimationService.finish()},t.prototype.setColumnPinned=function(e,t,n){void 0===n&&(n="api"),e&&this.setColumnsPinned([e],t,n)},t.prototype.setColumnsPinned=function(e,t,n){var o,r=this;(void 0===n&&(n="api"),"print"!==this.gridOptionsWrapper.getDomLayout())?(this.columnAnimationService.start(),o=!0===t||t===oe.PINNED_LEFT?oe.PINNED_LEFT:t===oe.PINNED_RIGHT?oe.PINNED_RIGHT:null,this.actionOnGridColumns(e,(function(e){return e.getPinned()!==o&&(e.setPinned(o),!0)}),n,(function(){return{type:Ve.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'")},t.prototype.actionOnGridColumns=function(e,t,n,o){var i=this;if(!s(e)){var a=[];if(e.forEach((function(e){var n=i.getGridColumn(e);n&&(!1!==t(n)&&a.push(n))})),a.length&&(this.updateDisplayedColumns(n),r(o)&&o)){var l=o();l.columns=a,l.column=1===a.length?a[0]:null,this.eventService.dispatchEvent(l)}}},t.prototype.getDisplayedColBefore=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n>0?t[n-1]:null},t.prototype.getDisplayedColAfter=function(e){var t=this.getAllDisplayedColumns(),n=t.indexOf(e);return n<t.length-1?t[n+1]:null},t.prototype.getDisplayedGroupAfter=function(e){return this.getDisplayedGroupAtDirection(e,"After")},t.prototype.getDisplayedGroupBefore=function(e){return this.getDisplayedGroupAtDirection(e,"Before")},t.prototype.getDisplayedGroupAtDirection=function(e,t){for(var n=e.getProvidedColumnGroup().getLevel()+e.getPaddingLevel(),o=e.getDisplayedLeafColumns(),r="After"===t?ue(o):o[0],i="getDisplayedCol"+t;;){var s=this[i](r);if(!s)return null;var a=this.getColumnGroupAtLevel(s,n);if(a!==e)return a}},t.prototype.getColumnGroupAtLevel=function(e,t){for(var n=e.getParent();;){if(n.getProvidedColumnGroup().getLevel()+n.getPaddingLevel()<=t)break;n=n.getParent()}return n},t.prototype.isPinningLeft=function(){return this.displayedColumnsLeft.length>0},t.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},t.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var e;return(e=[]).concat.apply(e,rt([this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]]))},t.prototype.getPrimaryAndAutoGroupCols=function(){var e;return(e=[]).concat.apply(e,rt([this.primaryColumns||[],this.groupAutoColumns||[]]))},t.prototype.getPrimaryAndSecondaryColumns=function(){var e;return(e=[]).concat.apply(e,rt([this.primaryColumns||[],this.secondaryColumns||[]]))},t.prototype.createStateItemFromColumn=function(e){var t=e.isRowGroupActive()?this.rowGroupColumns.indexOf(e):null,n=e.isPivotActive()?this.pivotColumns.indexOf(e):null,o=e.isValueActive()?e.getAggFunc():null,r=null!=e.getSort()?e.getSort():null,i=null!=e.getSortIndex()?e.getSortIndex():null,s=null!=e.getFlex()&&e.getFlex()>0?e.getFlex():null;return{colId:e.getColId(),width:e.getActualWidth(),hide:!e.isVisible(),pinned:e.getPinned(),sort:r,sortIndex:i,aggFunc:o,rowGroup:e.isRowGroupActive(),rowGroupIndex:t,pivot:e.isPivotActive(),pivotIndex:n,flex:s}},t.prototype.getColumnState=function(){if(i(this.primaryColumns)||!this.isAlive())return[];var e=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(e),e},t.prototype.orderColumnStateList=function(e){var t=Qe(this.gridColumns.map((function(e,t){return[e.getColId(),t]})));e.sort((function(e,n){return(t.has(e.colId)?t.get(e.colId):-1)-(t.has(n.colId)?t.get(n.colId):-1)}))},t.prototype.resetColumnState=function(e){void 0===e&&(e="api");var t=this.getColumnsFromTree(this.primaryColumnTree),n=[],o=1e3,r=1e3,s=[];this.groupAutoColumns&&(s=s.concat(this.groupAutoColumns)),t&&(s=s.concat(t)),s.forEach((function(e){var t=function(e,t){return null!=e?e:null!=t?t:null},s=e.getColDef(),a=t(s.sort,s.initialSort),l=t(s.sortIndex,s.initialSortIndex),u=t(s.hide,s.initialHide),c=t(s.pinned,s.initialPinned),p=t(s.width,s.initialWidth),d=t(s.flex,s.initialFlex),h=t(s.rowGroupIndex,s.initialRowGroupIndex),f=t(s.rowGroup,s.initialRowGroup);null!=h||null!=f&&0!=f||(h=null,f=null);var g=t(s.pivotIndex,s.initialPivotIndex),m=t(s.pivot,s.initialPivot);null!=g||null!=m&&0!=m||(g=null,m=null);var v=t(s.aggFunc,s.initialAggFunc),y={colId:e.getColId(),sort:a,sortIndex:l,hide:u,pinned:c,width:p,flex:d,rowGroup:f,rowGroupIndex:h,pivot:m,pivotIndex:g,aggFunc:v};i(h)&&f&&(y.rowGroupIndex=o++),i(g)&&m&&(y.pivotIndex=r++),n.push(y)})),this.applyColumnState({state:n,applyOrder:!0},e)},t.prototype.applyColumnState=function(e,t){var n=this;if(void 0===t&&(t="api"),s(this.primaryColumns))return!1;if(e&&e.state&&!e.state.forEach)return console.warn("AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state."),!1;var o=function(o,r,i){var s=n.compareColumnStatesAndRaiseEvents(t);n.autoGroupsNeedBuilding=!0;var a=r.slice(),l={},u={},c=[],p=[],d=0,h=n.rowGroupColumns.slice(),f=n.pivotColumns.slice();o.forEach((function(o){var r=o.colId||"";if(r.startsWith(oe.GROUP_AUTO_COLUMN_ID))return c.push(o),void p.push(o);var s=i(r);s?(n.syncColumnWithStateItem(s,o,e.defaultState,l,u,!1,t),de(a,s)):(p.push(o),d+=1)}));var g=function(o){return n.syncColumnWithStateItem(o,null,e.defaultState,l,u,!1,t)};a.forEach(g);var m=function(e,t,n,o){var r=e[n.getId()],i=e[o.getId()],s=null!=r,a=null!=i;if(s&&a)return r-i;if(s)return-1;if(a)return 1;var l=t.indexOf(n),u=t.indexOf(o),c=l>=0;return c&&u>=0?l-u:c?-1:1};n.rowGroupColumns.sort(m.bind(n,l,h)),n.pivotColumns.sort(m.bind(n,u,f)),n.updateGridColumns();var v=n.groupAutoColumns?n.groupAutoColumns.slice():[];return c.forEach((function(o){var r=n.getAutoColumn(o.colId);de(v,r),n.syncColumnWithStateItem(r,o,e.defaultState,null,null,!0,t)})),v.forEach(g),n.applyOrderAfterApplyState(e),n.updateDisplayedColumns(t),n.dispatchEverythingChanged(t),s(),{unmatchedAndAutoStates:p,unmatchedCount:d}};this.columnAnimationService.start();var i=o(e.state||[],this.primaryColumns||[],(function(e){return n.getPrimaryColumn(e)})),a=i.unmatchedAndAutoStates,l=i.unmatchedCount;return(a.length>0||r(e.defaultState))&&(l=o(a,this.secondaryColumns||[],(function(e){return n.getSecondaryColumn(e)})).unmatchedCount),this.columnAnimationService.finish(),0===l},t.prototype.applyOrderAfterApplyState=function(e){var t=this;if(e.applyOrder&&e.state){var n=[],o={};e.state.forEach((function(e){if(e.colId&&!o[e.colId]){var r=t.gridColumnsMap[e.colId];r&&(n.push(r),o[e.colId]=!0)}}));var r=0;this.gridColumns.forEach((function(e){var t=e.getColId();null!=o[t]||(t.startsWith(oe.GROUP_AUTO_COLUMN_ID)?fe(n,e,r++):n.push(e))})),n=this.placeLockedColumns(n),this.doesMovePassMarryChildren(n)?this.gridColumns=n:console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.")}},t.prototype.compareColumnStatesAndRaiseEvents=function(e){var t=this,n={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},o=this.getColumnState(),r={};return o.forEach((function(e){r[e.colId]=e})),function(){if(!t.gridOptionsWrapper.isSuppressColumnStateEvents()){var i=t.getPrimaryAndSecondaryAndAutoColumns(),s=function(n,o,r,i){if(!ce(o.map(i),r.map(i))){var s={type:n,columns:r,column:1===r.length?r[0]:null,api:t.gridApi,columnApi:t.columnApi,source:e};t.eventService.dispatchEvent(s)}},a=function(e){var t=[];return i.forEach((function(n){var o=r[n.getColId()];o&&e(o,n)&&t.push(n)})),t},l=function(e){return e.getColId()};s(Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,n.rowGroupColumns,t.rowGroupColumns,l),s(Ve.EVENT_COLUMN_PIVOT_CHANGED,n.pivotColumns,t.pivotColumns,l);a((function(e,t){var n=null!=e.aggFunc,o=n!=t.isValueActive(),r=n&&e.aggFunc!=t.getAggFunc();return o||r})).length>0&&t.fireColumnEvent(Ve.EVENT_COLUMN_VALUE_CHANGED,t.valueColumns,e);t.fireColumnResizedEvent(a((function(e,t){return e.width!=t.getActualWidth()})),!0,e);t.raiseColumnPinnedEvent(a((function(e,t){return e.pinned!=t.getPinned()})),e);t.raiseColumnVisibleEvent(a((function(e,t){return e.hide==t.isVisible()})),e);a((function(e,t){return e.sort!=t.getSort()||e.sortIndex!=t.getSortIndex()})).length>0&&t.sortController.dispatchSortChangedEvents(e),t.raiseColumnMovedEvent(o,e)}}},t.prototype.raiseColumnPinnedEvent=function(e,t){if(e.length){var n=1===e.length?e[0]:null,o=this.getCommonValue(e,(function(e){return e.getPinned()})),r={type:Ve.EVENT_COLUMN_PINNED,pinned:null!=o?o:null,columns:e,column:n,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(r)}},t.prototype.getCommonValue=function(e,t){if(e&&0!=e.length){for(var n=t(e[0]),o=1;o<e.length;o++)if(n!==t(e[o]))return;return n}},t.prototype.raiseColumnVisibleEvent=function(e,t){if(e.length){var n=1===e.length?e[0]:null,o=this.getCommonValue(e,(function(e){return e.isVisible()})),r={type:Ve.EVENT_COLUMN_VISIBLE,visible:o,columns:e,column:n,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(r)}},t.prototype.raiseColumnMovedEvent=function(e,t){var n=this,o=this.getColumnState(),r={};o.forEach((function(e){return r[e.colId]=e}));var i={};e.forEach((function(e){r[e.colId]&&(i[e.colId]=!0)}));var s=e.filter((function(e){return i[e.colId]})),a=o.filter((function(e){return i[e.colId]})),l=[];if(a.forEach((function(e,t){var o=s&&s[t];if(o&&o.colId!==e.colId){var r=n.getGridColumn(o.colId);r&&l.push(r)}})),l.length){var u={type:Ve.EVENT_COLUMN_MOVED,columns:l,column:null,api:this.gridApi,columnApi:this.columnApi,source:t};this.eventService.dispatchEvent(u)}},t.prototype.syncColumnWithStateItem=function(e,t,n,o,i,s,a){if(e){var l=function(e,o){var i={value1:void 0,value2:void 0},s=!1;return t&&(void 0!==t[e]&&(i.value1=t[e],s=!0),r(o)&&void 0!==t[o]&&(i.value2=t[o],s=!0)),!s&&n&&(void 0!==n[e]&&(i.value1=n[e]),r(o)&&void 0!==n[o]&&(i.value2=n[o])),i},u=l("hide").value1;void 0!==u&&e.setVisible(!u,a);var c=l("pinned").value1;void 0!==c&&e.setPinned(c);var p=this.columnUtils.calculateColMinWidth(e.getColDef()),d=l("flex").value1;if(void 0!==d&&e.setFlex(d),e.getFlex()<=0){var h=l("width").value1;null!=h&&null!=p&&h>=p&&e.setActualWidth(h,a)}var f=l("sort").value1;void 0!==f&&(f===oe.SORT_DESC||f===oe.SORT_ASC?e.setSort(f,a):e.setSort(void 0,a));var g=l("sortIndex").value1;if(void 0!==g&&e.setSortIndex(g),!s&&e.isPrimary()){var m=l("aggFunc").value1;void 0!==m&&("string"===typeof m?(e.setAggFunc(m),e.isValueActive()||(e.setValueActive(!0,a),this.valueColumns.push(e))):(r(m)&&console.warn("AG Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON."),e.isValueActive()&&(e.setValueActive(!1,a),de(this.valueColumns,e))));var v=l("rowGroup","rowGroupIndex"),y=v.value1,C=v.value2;void 0===y&&void 0===C||("number"===typeof C||y?(e.isRowGroupActive()||(e.setRowGroupActive(!0,a),this.rowGroupColumns.push(e)),o&&"number"===typeof C&&(o[e.getId()]=C)):e.isRowGroupActive()&&(e.setRowGroupActive(!1,a),de(this.rowGroupColumns,e)));var w=l("pivot","pivotIndex"),_=w.value1,b=w.value2;void 0===_&&void 0===b||("number"===typeof b||_?(e.isPivotActive()||(e.setPivotActive(!0,a),this.pivotColumns.push(e)),i&&"number"===typeof b&&(i[e.getId()]=b)):e.isPivotActive()&&(e.setPivotActive(!1,a),de(this.pivotColumns,e)))}}},t.prototype.getGridColumns=function(e){return this.getColumns(e,this.getGridColumn.bind(this))},t.prototype.getColumns=function(e,t){var n=[];return e&&e.forEach((function(e){var o=t(e);o&&n.push(o)})),n},t.prototype.getColumnWithValidation=function(e){if(null==e)return null;var t=this.getGridColumn(e);return t||console.warn("AG Grid: could not find column "+e),t},t.prototype.getPrimaryColumn=function(e){return this.primaryColumns?this.getColumn(e,this.primaryColumns,this.primaryColumnsMap):null},t.prototype.getGridColumn=function(e){return this.getColumn(e,this.gridColumns,this.gridColumnsMap)},t.prototype.getSecondaryColumn=function(e){return this.secondaryColumns?this.getColumn(e,this.secondaryColumns,this.secondaryColumnsMap):null},t.prototype.getColumn=function(e,t,n){if(!e)return null;if("string"==typeof e&&n[e])return n[e];for(var o=0;o<t.length;o++)if(this.columnsMatch(t[o],e))return t[o];return this.getAutoColumn(e)},t.prototype.getAutoColumn=function(e){var t=this;return this.groupAutoColumns&&r(this.groupAutoColumns)&&!i(this.groupAutoColumns)&&this.groupAutoColumns.find((function(n){return t.columnsMatch(n,e)}))||null},t.prototype.columnsMatch=function(e,t){var n=e===t,o=e.getColDef()===t,r=e.getColId()==t;return n||o||r},t.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},t.prototype.getDisplayNameForProvidedColumnGroup=function(e,t,n){var o=t?t.getColGroupDef():null;return o?this.getHeaderName(o,null,e,t,n):null},t.prototype.getDisplayNameForColumnGroup=function(e,t){return this.getDisplayNameForProvidedColumnGroup(e,e.getProvidedColumnGroup(),t)},t.prototype.getHeaderName=function(e,t,n,o,r){var i=e.headerValueGetter;if(i){var s={colDef:e,column:t,columnGroup:n,providedColumnGroup:o,location:r,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};return"function"===typeof i?i(s):"string"===typeof i?this.expressionService.evaluate(i,s):(console.warn("ag-grid: headerValueGetter must be a function or a string"),"")}return null!=e.headerName?e.headerName:e.field?qe(e.field):""},t.prototype.wrapHeaderNameWithAggFunc=function(e,t){if(this.gridOptionsWrapper.isSuppressAggFuncInHeader())return t;var n,o=e.getColDef().pivotValueColumn,i=null;if(r(o)){var s=this.gridOptionsWrapper.isRemovePivotHeaderRowWhenSingleValueColumn()&&1===this.valueColumns.length,a=void 0!==e.getColDef().pivotTotalColumnIds;if(s&&!a)return t;i=o?o.getAggFunc():null,n=!0}else{var l=e.isValueActive(),u=this.pivotMode||!this.isRowGroupEmpty();l&&u?(i=e.getAggFunc(),n=!0):n=!1}if(n){var c="string"===typeof i?i:"func";return this.gridOptionsWrapper.getLocaleTextFunc()(c,c)+"("+t+")"}return t},t.prototype.getColumnGroup=function(e,t){if(!e)return null;if(e instanceof we)return e;var n=this.getAllDisplayedTrees(),o="number"===typeof t,r=null;return this.columnUtils.depthFirstAllColumnTreeSearch(n,(function(n){if(n instanceof we){var i=n;(o?e===i.getGroupId()&&t===i.getInstanceId():e===i.getGroupId())&&(r=i)}})),r},t.prototype.isReady=function(){return this.ready},t.prototype.extractValueColumns=function(e,t){this.valueColumns=this.extractColumns(t,this.valueColumns,(function(t,n){return t.setValueActive(n,e)}),(function(){}),(function(){}),(function(e){var t=e.aggFunc;return null===t||""===t?null:void 0!==t?!!t:void 0}),(function(e){return null!=e.initialAggFunc&&""!=e.initialAggFunc})),this.valueColumns.forEach((function(e){var t=e.getColDef();null!=t.aggFunc&&""!=t.aggFunc?e.setAggFunc(t.aggFunc):e.getAggFunc()||e.setAggFunc(t.initialAggFunc)}))},t.prototype.extractRowGroupColumns=function(e,t){this.rowGroupColumns=this.extractColumns(t,this.rowGroupColumns,(function(t,n){return t.setRowGroupActive(n,e)}),(function(e){return e.rowGroupIndex}),(function(e){return e.initialRowGroupIndex}),(function(e){return e.rowGroup}),(function(e){return e.initialRowGroup}))},t.prototype.extractColumns=function(e,t,n,o,r,i,s){void 0===e&&(e=[]),void 0===t&&(t=[]);var a=[],c=[];(this.primaryColumns||[]).forEach((function(n){var p=e.indexOf(n)<0,d=n.getColDef(),h=u(i(d)),f=u(s(d)),g=l(o(d)),m=l(r(d));(void 0!==h?h:void 0!==g?null!==g&&g>=0:p?void 0!==f?f:!!(void 0!==m)&&(null!=m&&m>=0):t.indexOf(n)>=0)&&((p?null!=g||null!=m:null!=g)?a.push(n):c.push(n))}));var p=function(e){var t=o(e.getColDef()),n=r(e.getColDef());return null!=t?t:n};a.sort((function(e,t){var n=p(e),o=p(t);return n===o?0:n<o?-1:1}));var d=[].concat(a);return t.forEach((function(e){c.indexOf(e)>=0&&d.push(e)})),c.forEach((function(e){d.indexOf(e)<0&&d.push(e)})),t.forEach((function(e){d.indexOf(e)<0&&n(e,!1)})),d.forEach((function(e){t.indexOf(e)<0&&n(e,!0)})),d},t.prototype.extractPivotColumns=function(e,t){this.pivotColumns=this.extractColumns(t,this.pivotColumns,(function(t,n){return t.setPivotActive(n,e)}),(function(e){return e.pivotIndex}),(function(e){return e.initialPivotIndex}),(function(e){return e.pivot}),(function(e){return e.initialPivot}))},t.prototype.resetColumnGroupState=function(e){void 0===e&&(e="api");var t=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(e){if(e instanceof _e){var n=e.getColGroupDef(),o={groupId:e.getGroupId(),open:n?n.openByDefault:void 0};t.push(o)}})),this.setColumnGroupState(t,e)},t.prototype.getColumnGroupState=function(){var e=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(t){t instanceof _e&&e.push({groupId:t.getGroupId(),open:t.isExpanded()})})),e},t.prototype.setColumnGroupState=function(e,t){var n=this;void 0===t&&(t="api"),this.columnAnimationService.start();var o=[];e.forEach((function(e){var t=e.groupId,r=e.open,i=n.getProvidedColumnGroup(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:Ve.EVENT_COLUMN_GROUP_OPENED,columnGroup:e,api:n.gridApi,columnApi:n.columnApi};n.eventService.dispatchEvent(t)})),this.columnAnimationService.finish()},t.prototype.setColumnGroupOpened=function(e,t,n){var o;void 0===n&&(n="api"),o=e instanceof _e?e.getId():e||"",this.setColumnGroupState([{groupId:o,open:t}],n)},t.prototype.getProvidedColumnGroup=function(e){"string"!==typeof e&&console.error("AG Grid: group key must be a string");var t=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(n){n instanceof _e&&n.getId()===e&&(t=n)})),t},t.prototype.calculateColumnsForDisplay=function(){var e=this;return this.pivotMode&&i(this.secondaryColumns)?this.gridColumns.filter((function(t){var n=e.groupAutoColumns&&me(e.groupAutoColumns,t),o=e.valueColumns&&me(e.valueColumns,t);return n||o})):this.gridColumns.filter((function(t){return e.groupAutoColumns&&me(e.groupAutoColumns,t)||t.isVisible()}))},t.prototype.checkColSpanActiveInCols=function(e){var t=!1;return e.forEach((function(e){r(e.getColDef().colSpan)&&(t=!0)})),t},t.prototype.calculateColumnsForGroupDisplay=function(){var e=this;this.groupDisplayColumns=[];var t=function(t){var n=t.getColDef();n&&r(n.showRowGroup)&&e.groupDisplayColumns.push(t)};this.gridColumns.forEach(t),this.groupAutoColumns&&this.groupAutoColumns.forEach(t)},t.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},t.prototype.updateDisplayedColumns=function(e){var t=this.calculateColumnsForDisplay();this.buildDisplayedTrees(t),this.calculateColumnsForGroupDisplay(),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e)},t.prototype.isSecondaryColumnsPresent=function(){return r(this.secondaryColumns)},t.prototype.setSecondaryColumns=function(e,t){var n=this;void 0===t&&(t="api");var o=e&&e.length>0;if(o||!i(this.secondaryColumns)){if(o){this.processSecondaryColumnDefinitions(e);var r=this.columnFactory.createColumnTree(e,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0);this.secondaryBalancedTree=r.columnTree,this.secondaryHeaderRowCount=r.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach((function(e){return n.secondaryColumnsMap[e.getId()]=e})),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(t)}},t.prototype.processSecondaryColumnDefinitions=function(e){var t=this.gridOptionsWrapper.getProcessSecondaryColDefFunc(),n=this.gridOptionsWrapper.getProcessSecondaryColGroupDefFunc();if(t||n){e&&function e(o){o.forEach((function(o){if(r(o.children)){var i=o;n&&n(i),e(i.children)}else t&&t(o)}))}(e)}},t.prototype.updateGridColumns=function(){var e=this;if(this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns,this.secondaryColumns&&this.secondaryBalancedTree){var t=this.secondaryColumns.every((function(t){return void 0!==e.gridColumnsMap[t.getColId()]}));this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,t&&this.orderGridColsLike(this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,this.orderGridColsLike(this.lastPrimaryOrder));this.addAutoGroupToGridColumns(),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.setupQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach((function(t){return e.gridColumnsMap[t.getId()]=t})),this.setAutoHeightActive();var n={type:Ve.EVENT_GRID_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)},t.prototype.setAutoHeightActive=function(){if(this.autoHeightActive=this.gridColumns.filter((function(e){return e.isAutoHeight()})).length>0,this.autoHeightActive){this.autoHeightActiveAtLeastOnce=!0;var e=this.rowModel.getType();if(!(e===oe.ROW_MODEL_TYPE_CLIENT_SIDE||e===oe.ROW_MODEL_TYPE_SERVER_SIDE)){D((function(){return console.warn("AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.")}),"autoHeightActive.wrongRowModel")}}},t.prototype.orderGridColsLike=function(e){if(!i(e)){var t=Qe(e.map((function(e,t){return[e,t]}))),n=!0;if(this.gridColumns.forEach((function(e){t.has(e)&&(n=!1)})),!n){var o=Qe(this.gridColumns.map((function(e){return[e,!0]}))),r=e.filter((function(e){return o.has(e)})),s=Qe(r.map((function(e){return[e,!0]}))),a=this.gridColumns.filter((function(e){return!s.has(e)})),l=r.slice();a.forEach((function(e){var t=e.getOriginalParent();if(t){for(var n=[];!n.length&&t;){t.getLeafColumns().forEach((function(e){var t=l.indexOf(e)>=0,o=n.indexOf(e)<0;t&&o&&n.push(e)})),t=t.getOriginalParent()}if(n.length){var o=n.map((function(e){return l.indexOf(e)})),r=Math.max.apply(Math,rt(o));fe(l,e,r+1)}else l.push(e)}else l.push(e)})),this.gridColumns=l}}},t.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},t.prototype.setupQuickFilterColumns=function(){this.groupAutoColumns?this.columnsForQuickFilter=(this.primaryColumns||[]).concat(this.groupAutoColumns):this.primaryColumns&&(this.columnsForQuickFilter=this.primaryColumns)},t.prototype.placeLockedColumns=function(e){var t=[],n=[],o=[];return e.forEach((function(e){var r=e.getColDef().lockPosition;"right"===r?o.push(e):"left"===r||!0===r?t.push(e):n.push(e)})),rt(t,n,o)},t.prototype.addAutoGroupToGridColumns=function(){if(this.createGroupAutoColumnsIfNeeded(),!i(this.groupAutoColumns)){this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var e=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.gridBalancedTree=e.concat(this.gridBalancedTree)}},t.prototype.clearDisplayedAndViewportColumns=function(){this.displayedTreeLeft=[],this.displayedTreeRight=[],this.displayedTreeCentre=[],this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[]},t.prototype.updateGroupsAndDisplayedColumns=function(e){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(e),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var t={type:Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.deriveDisplayedColumns=function(e){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinDisplayedColumns(),this.setLeftValues(e),this.displayedAutoHeightCols=this.displayedColumns.filter((function(e){return e.isAutoHeight()}))},t.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},t.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},t.prototype.joinDisplayedColumns=function(){this.gridOptionsWrapper.isEnableRtl()?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},t.prototype.setLeftValues=function(e){this.setLeftValuesOfColumns(e),this.setLeftValuesOfGroups()},t.prototype.setLeftValuesOfColumns=function(e){var t=this;if(this.primaryColumns){var n=this.primaryColumns.slice(0),o=this.gridOptionsWrapper.isEnableRtl();[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].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()}))}he(n,r)})),n.forEach((function(t){t.setLeft(null,e)}))}},t.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach((function(e){e.forEach((function(e){e instanceof we&&e.checkLeft()}))}))},t.prototype.derivedDisplayedColumnsFromDisplayedTree=function(e,t){t.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(e,(function(e){e instanceof ae&&t.push(e)}))},t.prototype.extractViewportColumns=function(){this.suppressColumnVirtualisation?this.viewportColumnsCenter=this.displayedColumnsCenter:this.viewportColumnsCenter=this.filterOutColumnsWithinViewport(),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},t.prototype.getVirtualHeaderGroupRow=function(e,t){var n;switch(e){case oe.PINNED_LEFT:n=this.viewportRowLeft[t];break;case oe.PINNED_RIGHT:n=this.viewportRowRight[t];break;default:n=this.viewportRowCenter[t]}return i(n)&&(n=[]),n},t.prototype.extractViewportRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var e={};this.viewportColumns.forEach((function(t){return e[t.getId()]=!0}));var t=function t(n,o,r){for(var i=!1,s=0;s<n.length;s++){var a=n[s],l=!1;if(a instanceof ae)l=!0===e[a.getId()];else{var u=a.getDisplayedChildren();u&&(l=t(u,o,r+1))}l&&(i=!0,o[r]||(o[r]=[]),o[r].push(a))}return i};t(this.displayedTreeLeft,this.viewportRowLeft,0),t(this.displayedTreeRight,this.viewportRowRight,0),t(this.displayedTreeCentre,this.viewportRowCenter,0)},t.prototype.extractViewport=function(){this.extractViewportColumns(),this.extractViewportRows()},t.prototype.filterOutColumnsWithinViewport=function(){return this.displayedColumnsCenter.filter(this.isColumnInViewport.bind(this))},t.prototype.refreshFlexedColumns=function(e){var t=this;void 0===e&&(e={});var n=e.source?e.source:"flex";if(null!=e.viewportWidth&&(this.flexViewportWidth=e.viewportWidth),!this.flexViewportWidth)return[];var o=-1;e.resizingCols&&e.resizingCols.forEach((function(e){var n=t.displayedColumnsCenter.indexOf(e);o<n&&(o=n)}));var i=function(e){var n=t.displayedColumnsCenter.indexOf(e)>o;return e.getFlex()&&n},s=this.displayedColumnsCenter.filter((function(e){return!i(e)})),a=this.displayedColumnsCenter.filter((function(e){return i(e)})),l=[];if(!a.length)return[];var u,c=[];e:for(;;){var p=a.reduce((function(e,t){return e+t.getFlex()}),0);u=this.flexViewportWidth-this.getWidthOfColsInList(s);for(var d=0;d<a.length;d++){var h=a[d],f=u*h.getFlex()/p,g=0,m=h.getMinWidth(),v=h.getMaxWidth();if(r(m)&&f<m?g=m:r(v)&&f>v&&(g=v),g){h.setActualWidth(g,n),de(a,h),l.push(h),s.push(h);continue e}c[d]=Math.round(f)}break}var y=u;return a.forEach((function(e,t){e.setActualWidth(Math.min(c[t],y),n),l.push(e),y-=c[t]})),e.skipSetLeft||this.setLeftValues(n),e.updateBodyWidths&&this.updateBodyWidths(),e.fireResizedEvent&&this.fireColumnResizedEvent(l,!0,n,a),this.flexColsCalculatedAtLestOnce||(this.gridOptionsWrapper.isRowModelDefault()&&this.rowModel.resetRowHeights(),this.flexColsCalculatedAtLestOnce=!0),a},t.prototype.sizeColumnsToFit=function(e,t,n){void 0===t&&(t="sizeColumnsToFit");var o=this.getAllDisplayedColumns();if(!(e<=0)&&o.length){var i=[],s=[];o.forEach((function(e){!0===e.getColDef().suppressSizeToFit?s.push(e):i.push(e)}));var a=i.slice(0),l=!1,u=function(e){de(i,e),s.push(e)};for(i.forEach((function(e){return e.resetActualWidth(t)}));!l;){l=!0;var c=e-this.getWidthOfColsInList(s);if(c<=0)i.forEach((function(e){e.setMinimum(t)}));else for(var p=c/this.getWidthOfColsInList(i),d=c,h=i.length-1;h>=0;h--){var f=i[h],g=f.getMinWidth(),m=f.getMaxWidth(),v=Math.round(f.getActualWidth()*p);r(g)&&v<g?(v=g,u(f),l=!1):r(m)&&f.isGreaterThanMax(v)?(v=m,u(f),l=!1):0===h&&(v=d),f.setActualWidth(v,t,!0),d-=v}}a.forEach((function(e){e.fireColumnWidthChangedEvent(t)})),this.setLeftValues(t),this.updateBodyWidths(),n||this.fireColumnResizedEvent(a,!0,t)}},t.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 We;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(t,this.gridBalancedTree,r,oe.PINNED_LEFT,this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(n,this.gridBalancedTree,r,oe.PINNED_RIGHT,this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(o,this.gridBalancedTree,r,null,this.displayedTreeCentre),this.updateDisplayedMap()},t.prototype.updateDisplayedMap=function(){var e=this;this.displayedColumnsAndGroupsMap={};var t=function(t){e.displayedColumnsAndGroupsMap[t.getUniqueId()]=t};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,t),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,t)},t.prototype.isDisplayed=function(e){return this.displayedColumnsAndGroupsMap[e.getUniqueId()]===e},t.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var e=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(e,(function(e){e instanceof we&&e.calculateDisplayedColumns()}))},t.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},t.prototype.createGroupAutoColumnsIfNeeded=function(){if(this.autoGroupsNeedBuilding){this.autoGroupsNeedBuilding=!1;var e=this.gridOptionsWrapper.isGroupUseEntireRow(this.pivotMode),t=this.pivotMode?this.gridOptionsWrapper.isPivotSuppressAutoColumn():this.gridOptionsWrapper.isGroupSuppressAutoColumn();if((this.rowGroupColumns.length>0||this.usingTreeData)&&!t&&!e){var n=this.groupAutoColumns||[],o=this.autoGroupColService.createAutoGroupColumns(n,this.rowGroupColumns);(!this.autoColsEqual(o,this.groupAutoColumns)||this.forceRecreateAutoGroups)&&(this.groupAutoColumns=o)}else this.groupAutoColumns=null}},t.prototype.autoColsEqual=function(e,t){return ce(e,t,(function(e,t){return e.getColId()===t.getColId()}))},t.prototype.getWidthOfColsInList=function(e){return e.reduce((function(e,t){return e+t.getActualWidth()}),0)},t.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},t.prototype.hasFloatingFilters=function(){return!!this.gridColumns&&this.gridColumns.some((function(e){return e.getColDef().floatingFilter}))},t.prototype.getFirstDisplayedColumn=function(){var e=this.gridOptionsWrapper.isEnableRtl(),t=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];e&&t.reverse();for(var n=0;n<t.length;n++){var o=this[t[n]]();if(o.length)return e?ue(o):o[0]}return null},et([K("expressionService")],t.prototype,"expressionService",void 0),et([K("columnFactory")],t.prototype,"columnFactory",void 0),et([K("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),et([K("ctrlsService")],t.prototype,"ctrlsService",void 0),et([K("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),et([K("columnUtils")],t.prototype,"columnUtils",void 0),et([K("columnAnimationService")],t.prototype,"columnAnimationService",void 0),et([K("autoGroupColService")],t.prototype,"autoGroupColService",void 0),et([q("aggFuncService")],t.prototype,"aggFuncService",void 0),et([q("valueCache")],t.prototype,"valueCache",void 0),et([q("animationFrameService")],t.prototype,"animationFrameService",void 0),et([K("rowModel")],t.prototype,"rowModel",void 0),et([K("columnApi")],t.prototype,"columnApi",void 0),et([K("gridApi")],t.prototype,"gridApi",void 0),et([K("sortController")],t.prototype,"sortController",void 0),et([K("columnDefFactory")],t.prototype,"columnDefFactory",void 0),et([z],t.prototype,"init",null),et([tt(0,Q("loggerFactory"))],t.prototype,"setBeans",null),t=et([Y("columnModel")],t)}(Fe),st=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),at=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){function t(){return null!==e&&e.apply(this,arguments)||this}return st(t,e),t.prototype.calculateColMinWidth=function(e){return null!=e.minWidth?e.minWidth:this.gridOptionsWrapper.getMinColWidth()},t.prototype.calculateColMaxWidth=function(e){return null!=e.maxWidth?e.maxWidth:this.gridOptionsWrapper.getMaxColWidth()||Number.MAX_SAFE_INTEGER},t.prototype.calculateColInitialWidth=function(e){var t,n=this.calculateColMinWidth(e),o=this.calculateColMaxWidth(e),r=l(e.width),i=l(e.initialWidth);return t=null!=r?r:null!=i?i:this.gridOptionsWrapper.getColWidth(),Math.max(Math.min(t,o),n)},t.prototype.getOriginalPathForColumn=function(e,t){var n=[],o=!1;return function t(r,i){for(var s=0;s<r.length;s++){if(o)return;var a=r[s];if(a instanceof _e)t(a.getChildren(),i+1),n[i]=a;else a===e&&(o=!0)}}(t,0),o?n:null},t.prototype.depthFirstOriginalTreeSearch=function(e,t,n){var o=this;t&&t.forEach((function(t){t instanceof _e&&o.depthFirstOriginalTreeSearch(t,t.getChildren(),n),n(t,e)}))},t.prototype.depthFirstAllColumnTreeSearch=function(e,t){var n=this;e&&e.forEach((function(e){e instanceof we&&n.depthFirstAllColumnTreeSearch(e.getChildren(),t),t(e)}))},t.prototype.depthFirstDisplayedColumnTreeSearch=function(e,t){var n=this;e&&e.forEach((function(e){e instanceof we&&n.depthFirstDisplayedColumnTreeSearch(e.getDisplayedChildren(),t),t(e)}))},t=at([Y("columnUtils")],t)}(Fe),ut=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),ct=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},pt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ut(t,e),t.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):ue(c).addChild(e);i=c,s=r})),this.setupParentsIntoColumns(l,null),l},t.prototype.createColumnGroup=function(e,t,n,o){var i=e.getGroupId(),s=t.getInstanceIdForKey(i),a=n[we.createUniqueId(i,s)];return a&&a.getProvidedColumnGroup()!==e&&(a=null),r(a)?a.reset():(a=new we(e,i,s,o),this.context.createBean(a)),a},t.prototype.mapOldGroupsById=function(e){var t={};return e&&function e(n){n.forEach((function(n){if(n instanceof we){var o=n;t[n.getUniqueId()]=o,e(o.getChildren())}}))}(e),t},t.prototype.setupParentsIntoColumns=function(e,t){var n=this;e.forEach((function(e){if(e.setParent(t),e instanceof we){var o=e;n.setupParentsIntoColumns(o.getChildren(),o)}}))},t.prototype.getOriginalPathForColumn=function(e,t){var n=[],o=!1;return function e(r,i){for(var s=0;s<r.length;s++){if(o)return;var a=r[s];a instanceof _e?(e(a.getChildren(),i+1),n[i]=a):a===t&&(o=!0)}}(e,0),o?n:(console.warn("AG Grid: could not get path"),null)},t=ct([Y("displayedGroupCreator")],t)}(Fe),dt=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},ht=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(dt(arguments[t]));return e},ft=function(){function e(){}return e.STRING_PROPERTIES=["sortingOrder","rowClass","rowSelection","overlayLoadingTemplate","overlayNoRowsTemplate","quickFilterText","rowModelType","editType","domLayout","clipboardDelimiter","rowGroupPanelShow","multiSortKey","pivotColumnGroupTotals","pivotRowTotals","pivotPanelShow","fillHandleDirection","serverSideStoreType","groupDisplayType","treeDataDisplayType"],e.OBJECT_PROPERTIES=["components","frameworkComponents","rowStyle","context","autoGroupColumnDef","localeText","icons","datasource","serverSideDatasource","viewportDatasource","groupRowRendererParams","aggFuncs","fullWidthCellRendererParams","defaultColGroupDef","defaultColDef","defaultExportParams","defaultCsvExportParams","defaultExcelExportParams","columnTypes","rowClassRules","detailCellRendererParams","loadingCellRendererParams","loadingOverlayComponentParams","noRowsOverlayComponentParams","popupParent","colResizeDefault","statusBar","sideBar","chartThemeOverrides","customChartThemes"],e.ARRAY_PROPERTIES=["alignedGrids","rowData","columnDefs","excelStyles","pinnedTopRowData","pinnedBottomRowData","chartThemes"],e.NUMBER_PROPERTIES=["rowHeight","detailRowHeight","rowBuffer","colWidth","headerHeight","groupHeaderHeight","floatingFiltersHeight","pivotHeaderHeight","pivotGroupHeaderHeight","groupDefaultExpanded","minColWidth","maxColWidth","viewportRowModelPageSize","viewportRowModelBufferSize","autoSizePadding","maxBlocksInCache","maxConcurrentDatasourceRequests","tooltipShowDelay","tooltipHideDelay","cacheOverflowSize","paginationPageSize","cacheBlockSize","infiniteInitialRowCount","scrollbarWidth","batchUpdateWaitMillis","asyncTransactionWaitMillis","blockLoadDebounceMillis","keepDetailRowsCount","undoRedoCellEditingLimit","cellFlashDelay","cellFadeDelay","tabIndex"],e.BOOLEAN_PROPERTIES=["suppressMakeColumnVisibleAfterUnGroup","suppressRowClickSelection","suppressCellSelection","suppressCellFocus","suppressHorizontalScroll","alwaysShowHorizontalScroll","alwaysShowVerticalScroll","debug","enableBrowserTooltips","enableCellExpressions","angularCompileRows","angularCompileFilters","groupSuppressAutoColumn","groupSelectsChildren","groupIncludeFooter","groupIncludeTotalFooter","groupUseEntireRow","groupSuppressBlankHeader","suppressMenuHide","suppressRowDeselection","unSortIcon","suppressMultiSort","alwaysMultiSort","singleClickEdit","suppressLoadingOverlay","suppressNoRowsOverlay","suppressAutoSize","skipHeaderOnAutoSize","suppressParentsInRowNodes","suppressColumnMoveAnimation","suppressMovableColumns","suppressFieldDotNotation","enableRangeSelection","enableRangeHandle","enableFillHandle","suppressClearOnFillReduction","deltaSort","suppressTouch","suppressAsyncEvents","allowContextMenuWithControlKey","suppressContextMenu","rememberGroupStateWhenNewData","enableCellChangeFlash","suppressDragLeaveHidesColumns","suppressMiddleClickScrolls","suppressPreventDefaultOnMouseWheel","suppressCopyRowsToClipboard","copyHeadersToClipboard","copyGroupHeadersToClipboard","pivotMode","suppressAggFuncInHeader","suppressColumnVirtualisation","suppressAggAtRootLevel","suppressFocusAfterRefresh","functionsPassive","functionsReadOnly","animateRows","groupSelectsFiltered","groupRemoveSingleChildren","groupRemoveLowestSingleChildren","enableRtl","suppressClickEdit","rowDragEntireRow","rowDragManaged","suppressRowDrag","suppressMoveWhenRowDragging","rowDragMultiRow","enableGroupEdit","embedFullWidthRows","deprecatedEmbedFullWidthRows","suppressPaginationPanel","groupHideOpenParents","groupMultiAutoColumn","pagination","stopEditingWhenGridLosesFocus","paginationAutoPageSize","suppressScrollOnNewData","suppressScrollWhenPopupsAreOpen","purgeClosedRowNodes","cacheQuickFilter","deltaRowDataMode","ensureDomOrder","accentedSort","suppressChangeDetection","valueCache","valueCacheNeverExpires","aggregateOnlyChangedColumns","suppressAnimationFrame","suppressExcelExport","suppressCsvExport","treeData","masterDetail","suppressMultiRangeSelection","enterMovesDownAfterEdit","enterMovesDown","suppressPropertyNamesCheck","rowMultiSelectWithClick","suppressEnterpriseResetOnNewColumns","suppressRowHoverHighlight","suppressRowTransform","suppressClipboardPaste","suppressLastEmptyLineOnPaste","serverSideSortingAlwaysResets","suppressSetColumnStateEvents","suppressColumnStateEvents","enableCharts","deltaColumnMode","suppressMaintainUnsortedOrder","enableCellTextSelection","suppressBrowserResizeObserver","suppressMaxRenderedRowRestriction","excludeChildrenWhenTreeDataFiltering","tooltipMouseTrack","keepDetailRows","paginateChildRows","preventDefaultOnContextMenu","undoRedoCellEditing","allowDragFromColumnsToolPanel","immutableData","immutableColumns","pivotSuppressAutoColumn","suppressExpandablePivotGroups","applyColumnDefOrder","debounceVerticalScrollbar","detailRowAutoHeight","serverSideFilteringAlwaysResets","suppressAggFilteredOnly","showOpenedGroup","suppressClipboardApi","suppressModelUpdateAfterUpdateTransaction","stopEditingWhenCellsLoseFocus","maintainColumnOrder","groupMaintainOrder","columnHoverHighlight","reactUi","suppressReactUi","readOnlyEdit","suppressRowVirtualisation","resetRowDataOnUpdate","removePivotHeaderRowWhenSingleValueColumn","suppressCopySingleCellRanges"],e.FUNCTION_PROPERTIES=["localeTextFunc","getLocaleText","groupRowInnerRenderer","groupRowInnerRendererFramework","groupRowRenderer","groupRowRendererFramework","isExternalFilterPresent","getRowHeight","doesExternalFilterPass","getRowClass","getRowStyle","getContextMenuItems","getMainMenuItems","processRowPostCreate","processCellForClipboard","groupRowAggNodes","getGroupRowAgg","getRowNodeId","isFullWidthCell","isFullWidthRow","fullWidthCellRenderer","fullWidthCellRendererFramework","processSecondaryColDef","processSecondaryColGroupDef","getBusinessKeyForNode","sendToClipboard","navigateToNextHeader","tabToNextHeader","navigateToNextCell","tabToNextCell","processCellFromClipboard","getDocument","postProcessPopup","getChildCount","getDataPath","loadingCellRenderer","loadingCellRendererFramework","loadingOverlayComponent","loadingOverlayComponentFramework","noRowsOverlayComponent","noRowsOverlayComponentFramework","detailCellRenderer","detailCellRendererFramework","isRowMaster","isRowSelectable","postSort","postSortRows","processHeaderForClipboard","processGroupHeaderForClipboard","paginationNumberFormatter","processDataFromClipboard","getServerSideGroupKey","isServerSideGroup","suppressKeyboardEvent","createChartContainer","getChartToolbarItems","fillOperation","isApplyServerSideTransaction","getServerSideStoreParams","isServerSideGroupOpenByDefault","isGroupOpenByDefault","defaultGroupSortComparator","defaultGroupOrderComparator","initialGroupOrderComparator","loadingCellRendererSelector","getRowId","groupAggFiltering"],e.ALL_PROPERTIES=ht(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES,e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),gt=function(){return gt=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},gt.apply(this,arguments)},mt=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},vt=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(mt(arguments[t]));return e},yt=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){"object"!==typeof t&&(t={});var r=t,i=function(e){return"undefined"!==typeof n[e]};return i("groupAggFiltering")&&"function"!==typeof n.groupAggFiltering&&(r.groupAggFiltering=e.toBoolean(n.groupAggFiltering),delete n.groupAggFiltering),vt(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])})),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){var i=gt({},t),s=n,a=function(e){return i[e]};a("groupAggFiltering")&&("function"===typeof i.groupAggFiltering?s.groupAggFiltering=i.groupAggFiltering:s.groupAggFiltering=e.toBoolean(i.groupAggFiltering),delete i.groupAggFiltering),i.rowClass&&(o.setRowClass(i.rowClass.currentValue),delete i.rowClass),vt(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.getEventCallbacks()).filter(a).forEach((function(e){return s[e]=i[e].currentValue})),e.BOOLEAN_PROPERTIES.filter(a).forEach((function(t){return s[t]=e.toBoolean(i[t].currentValue)})),e.NUMBER_PROPERTIES.filter(a).forEach((function(t){return s[t]=e.toNumber(i[t].currentValue)})),i.enableCellTextSelection&&(o.setEnableCellTextSelection(e.toBoolean(i.enableCellTextSelection.currentValue)),delete i.enableCellTextSelection),i.quickFilterText&&(o.setQuickFilter(i.quickFilterText.currentValue),delete i.quickFilterText),i.autoGroupColumnDef&&(o.setAutoGroupColumnDef(i.autoGroupColumnDef.currentValue,"gridOptionsChanged"),delete i.autoGroupColumnDef),i.columnDefs&&(o.setColumnDefs(i.columnDefs.currentValue,"gridOptionsChanged"),delete i.columnDefs),i.defaultColDef&&(o.setDefaultColDef(i.defaultColDef.currentValue,"gridOptionsChanged"),delete i.defaultColDef),i.paginationPageSize&&(o.paginationSetPageSize(e.toNumber(i.paginationPageSize.currentValue)),delete i.paginationPageSize),i.pivotMode&&(r.setPivotMode(e.toBoolean(i.pivotMode.currentValue)),delete i.pivotMode),i.groupRemoveSingleChildren&&(o.setGroupRemoveSingleChildren(e.toBoolean(i.groupRemoveSingleChildren.currentValue)),delete i.groupRemoveSingleChildren),i.suppressRowDrag&&(o.setSuppressRowDrag(e.toBoolean(i.suppressRowDrag.currentValue)),delete i.suppressRowDrag),i.suppressMoveWhenRowDragging&&(o.setSuppressMoveWhenRowDragging(e.toBoolean(i.suppressMoveWhenRowDragging.currentValue)),delete i.suppressMoveWhenRowDragging),i.suppressRowClickSelection&&(o.setSuppressRowClickSelection(e.toBoolean(i.suppressRowClickSelection.currentValue)),delete i.suppressRowClickSelection),i.suppressClipboardPaste&&(o.setSuppressClipboardPaste(e.toBoolean(i.suppressClipboardPaste.currentValue)),delete i.suppressClipboardPaste),i.headerHeight&&(o.setHeaderHeight(e.toNumber(i.headerHeight.currentValue)),delete i.headerHeight);var l=o;Object.keys(i).forEach((function(e){var n="set"+e.charAt(0).toUpperCase()+e.substring(1);l[n]&&l[n](t[e].currentValue)}));var u={type:Ve.EVENT_COMPONENT_STATE_CHANGED,api:n.api,columnApi:n.columnApi};f(t,(function(e,t){u[e]=t})),o.dispatchEvent(u)}},e.toBoolean=function(e){return"boolean"===typeof e?e:"string"===typeof e&&("TRUE"===e.toUpperCase()||""==e)},e.toNumber=function(e){return"number"===typeof e?e:"string"===typeof e?Number(e):void 0},e.EVENTS=[],e.PUBLIC_EVENTS=[],e.EXCLUDED_INTERNAL_EVENTS=[],e.STRING_PROPERTIES=ft.STRING_PROPERTIES,e.OBJECT_PROPERTIES=ft.OBJECT_PROPERTIES,e.ARRAY_PROPERTIES=ft.ARRAY_PROPERTIES,e.NUMBER_PROPERTIES=ft.NUMBER_PROPERTIES,e.BOOLEAN_PROPERTIES=ft.BOOLEAN_PROPERTIES,e.FUNCTION_PROPERTIES=ft.FUNCTION_PROPERTIES,e.ALL_PROPERTIES=ft.ALL_PROPERTIES,e}();yt.EVENTS=p(Ve),yt.EXCLUDED_INTERNAL_EVENTS=[Ve.EVENT_SCROLLBAR_WIDTH_CHANGED,Ve.EVENT_CHECKBOX_CHANGED,Ve.EVENT_HEIGHT_SCALE_CHANGED,Ve.EVENT_BODY_HEIGHT_CHANGED,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,Ve.EVENT_SCROLL_VISIBILITY_CHANGED,Ve.EVENT_COLUMN_HOVER_CHANGED,Ve.EVENT_FLASH_CELLS,Ve.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,Ve.EVENT_DISPLAYED_ROWS_CHANGED,Ve.EVENT_LEFT_PINNED_WIDTH_CHANGED,Ve.EVENT_RIGHT_PINNED_WIDTH_CHANGED,Ve.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,Ve.EVENT_POPUP_TO_FRONT,Ve.EVENT_KEYBOARD_FOCUS,Ve.EVENT_MOUSE_FOCUS,Ve.EVENT_STORE_UPDATED,Ve.EVENT_COLUMN_PANEL_ITEM_DRAG_START,Ve.EVENT_COLUMN_PANEL_ITEM_DRAG_END,Ve.EVENT_FILL_START,Ve.EVENT_FILL_END,Ve.EVENT_FULL_WIDTH_ROW_FOCUSED],yt.PUBLIC_EVENTS=yt.EVENTS.filter((function(e){return!me(yt.EXCLUDED_INTERNAL_EVENTS,e)}));var Ct=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),wt=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},_t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.componentsMappedByName={},t}return Ct(t,e),t.prototype.setupComponents=function(e){var t=this;e&&e.forEach((function(e){return t.addComponent(e)}))},t.prototype.addComponent=function(e){var t=e.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[t]=e.componentClass},t.prototype.getComponentClass=function(e){return this.componentsMappedByName[e]},t=wt([Y("agStackComponentsRegistry")],t)}(Fe),bt=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Et=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(bt(arguments[t]));return e},St=function(){function e(){}return e.STRING_PROPERTIES=["headerName","columnGroupShow","headerClass","toolPanelClass","headerValueGetter","pivotKeys","groupId","colId","sort","initialSort","field","type","tooltipComponent","tooltipField","headerTooltip","cellClass","showRowGroup","filter","initialAggFunc","defaultAggFunc","aggFunc","pinned","initialPinned","chartDataType","cellEditorPopupPosition"],e.OBJECT_PROPERTIES=["headerGroupComponent","headerGroupComponentFramework","headerGroupComponentParams","cellStyle","cellRenderer","cellRendererParams","cellRendererFramework","cellEditor","cellEditorFramework","cellEditorParams","pinnedRowCellRendererFramework","pinnedRowCellRendererParams","filterFramework","filterParams","pivotValueColumn","headerComponent","headerComponentFramework","headerComponentParams","floatingFilterComponent","floatingFilterComponentParams","floatingFilterComponentFramework","floatingFilterFramework","tooltipComponent","tooltipComponentParams","tooltipComponentFramework","refData","columnsMenuParams"],e.ARRAY_PROPERTIES=["children","sortingOrder","allowedAggFuncs","menuTabs","pivotTotalColumnIds","cellClassRules","icons"],e.NUMBER_PROPERTIES=["sortedAt","sortIndex","initialSortIndex","flex","initialFlex","width","initialWidth","minWidth","maxWidth","rowGroupIndex","initialRowGroupIndex","pivotIndex","initialPivotIndex"],e.BOOLEAN_PROPERTIES=["suppressCellFlash","suppressColumnsToolPanel","suppressFiltersToolPanel","openByDefault","marryChildren","hide","initialHide","rowGroup","initialRowGroup","pivot","initialPivot","checkboxSelection","headerCheckboxSelection","headerCheckboxSelectionFilteredOnly","suppressMenu","suppressMovable","lockPosition","lockVisible","lockPinned","unSortIcon","suppressSizeToFit","suppressAutoSize","enableRowGroup","enablePivot","enableValue","editable","suppressPaste","suppressNavigable","enableCellChangeFlash","rowDrag","dndSource","autoHeight","wrapText","sortable","resizable","singleClickEdit","floatingFilter","cellEditorPopup","suppressFillHandle"],e.FUNCTION_PROPERTIES=["dndSourceOnRowDrag","valueGetter","valueSetter","filterValueGetter","keyCreator","pinnedRowCellRenderer","valueFormatter","pinnedRowValueFormatter","valueParser","comparator","equals","pivotComparator","suppressKeyboardEvent","suppressHeaderKeyboardEvent","colSpan","rowSpan","getQuickFilterText","newValueHandler","onCellValueChanged","onCellClicked","onCellDoubleClicked","onCellContextMenu","rowDragText","tooltipValueGetter","tooltipComponent","tooltipComponentFramework","cellRendererSelector","cellEditorSelector"],e.ALL_PROPERTIES=Et(e.ARRAY_PROPERTIES,e.OBJECT_PROPERTIES,e.STRING_PROPERTIES,e.NUMBER_PROPERTIES,e.FUNCTION_PROPERTIES,e.BOOLEAN_PROPERTIES),e.FRAMEWORK_PROPERTIES=["__ob__","__v_skip","__metadata__","mappedColumnProperties","hasChildColumns","toColDef","createColDefFromGridColumn"],e}(),Rt=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Ot=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.parseHex=function(e){var t;switch((e=e.replace(/ /g,"").slice(1)).length){case 6:case 8:t=[];for(var n=0;n<e.length;n+=2)t.push(parseInt(""+e[n]+e[n+1],16));break;case 3:case 4:t=e.split("").map((function(e){return parseInt(e,16)})).map((function(e){return e+16*e}))}if(t.length>=3&&t.every((function(e){return e>=0})))return 3===t.length&&t.push(255),t},e.fromHexString=function(t){var n=e.parseHex(t);if(n){var o=Rt(n,4);return new e(o[0]/255,o[1]/255,o[2]/255,o[3]/255)}throw new Error("Malformed hexadecimal color string: '"+t+"'")},e.stringToRgba=function(e){for(var t=Rt([NaN,NaN],2),n=t[0],o=t[1],r=0;r<e.length;r++){var i=e[r];if(n||"("!==i){if(")"===i){o=r;break}}else n=r}var s=n&&o&&e.substring(n+1,o);if(s){var a=s.split(","),l=[];for(r=0;r<a.length;r++){var u=a[r],c=parseFloat(u);if(isNaN(c))return;u.indexOf("%")>=0?(c=Math.max(0,Math.min(100,c)),c/=100):3===r?c=Math.max(0,Math.min(1,c)):(c=Math.max(0,Math.min(255,c)),c/=255),l.push(c)}return l}},e.fromRgbaString=function(t){var n=e.stringToRgba(t);if(n){if(3===n.length)return new e(n[0],n[1],n[2]);if(4===n.length)return new e(n[0],n[1],n[2],n[3])}throw new Error("Malformed rgb/rgba color string: '"+t+"'")},e.fromArray=function(t){if(4===t.length)return new e(t[0],t[1],t[2],t[3]);if(3===t.length)return new e(t[0],t[1],t[2]);throw new Error("The given array should contain 3 or 4 color components (numbers).")},e.fromHSB=function(t,n,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.nameToHex=Object.freeze({aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",green:"#008000",greenyellow:"#ADFF2F",grey:"#808080",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"}),e}();function Tt(e,t){void 0===t&&(t=",");var n=[],o=function(e){return"\r"===e||"\n"===e},r=!1;if(""===e)return[[""]];for(var i,s,a,l=function(l,u,c){var p=e[c-1],d=e[c],h=e[c+1],f=function(){n[l]||(n[l]=[]),n[l][u]||(n[l][u]="")};if(f(),'"'===d){if(r)return'"'===h?(n[l][u]+='"',c++):r=!1,i=l,s=u,a=c,"continue";if(void 0===p||p===t||o(p))return r=!0,i=l,s=u,a=c,"continue"}if(!r){if(d===t)return u++,f(),i=l,s=u,a=c,"continue";if(o(d))return u=0,l++,f(),"\r"===d&&"\n"===h&&c++,i=l,s=u,a=c,"continue"}n[l][u]+=d,i=l,s=u,a=c},u=0,c=0,p=0;p<e.length;p++)l(u,c,p),u=i,c=s,p=a;return n}var Pt,At,Dt,xt,Nt,Mt,It,Lt,Ft=Object.freeze({stringToArray:Tt}),kt=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function Gt(){return void 0===Dt&&(void 0===At&&(At=!!document.documentMode),Dt=!At&&!!window.StyleMedia),Dt}function Ht(){return void 0===Pt&&(Pt=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Pt}function Bt(){if(void 0===xt){var e=window;xt=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return xt}function Vt(){if(void 0===Nt){var e=window;Nt="undefined"!==typeof e.InstallTrigger}return Nt}function Wt(){return void 0===Mt&&(Mt=(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream),Mt}function jt(e){if(!e)return null;var t=e.tabIndex,n=e.getAttribute("tabIndex");return-1!==t||null!==n&&(""!==n||Vt())?t.toString():null}function Ut(){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}function zt(){return null==Lt&&Zt(),Lt}function Zt(){var e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);var n=t.offsetWidth-t.clientWidth;0===n&&0===t.clientWidth&&(n=null),t.parentNode&&t.parentNode.removeChild(t),null!=n&&(Lt=n,It=0===n)}function Yt(){return null==It&&Zt(),It}function Kt(){return document.body?document.body.clientWidth:window.innerHeight?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:-1}function qt(){return document.body?document.body.clientHeight:window.innerHeight?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:-1}var Xt,Qt=Object.freeze({isBrowserEdge:Gt,isBrowserSafari:Ht,isBrowserChrome:Bt,isBrowserFirefox:Vt,isIOSUserAgent:Wt,getTabIndex:jt,getMaxDivHeight:Ut,getScrollbarWidth:zt,isInvisibleScrollbar:Yt,hasOverflowScrolling:function(){var e,t,n=["webkit","moz","o","ms"],o=document.createElement("div"),r=!1;document.getElementsByTagName("body")[0].appendChild(o),o.setAttribute("style",n.map((function(e){return"-"+e+"-overflow-scrolling: touch"})).concat("overflow-scrolling: touch").join(";"));var i=window.getComputedStyle(o);if("touch"===i.overflowScrolling&&(r=!0),!r)try{for(var s=kt(n),a=s.next();!a.done;a=s.next())if("touch"===i[a.value+"OverflowScrolling"]){r=!0;break}}catch(l){e={error:l}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return o.parentNode&&o.parentNode.removeChild(o),r},getBodyWidth:Kt,getBodyHeight:qt});function Jt(e){var t=Element.prototype.matches||Element.prototype.msMatchesSelector,n=t.call(e,oe.INPUT_SELECTOR),o=t.call(e,oe.FOCUSABLE_EXCLUDE),r=fn(e);return n&&!o&&r}function $t(e,t){e.classList.toggle("ag-hidden",!t)}function en(e,t){e.classList.toggle("ag-invisible",!t)}function tn(e,t){var n="disabled",o=t?function(e){return e.setAttribute(n,"")}:function(e){return e.removeAttribute(n)};o(e),In(e.querySelectorAll("input"),(function(e){return o(e)}))}function nn(e,t,n){for(var o=0;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,n&&++o>n)break}return!1}function on(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 rn(e){var t=on(e);return"border-box"===t.boxSizing?t.height-t.paddingTop-t.paddingBottom:t.height}function sn(e){var t=on(e);return"border-box"===t.boxSizing?t.width-t.paddingLeft-t.paddingRight:t.width}function an(e){var t=on(e),n=t.marginBottom+t.marginTop;return Math.ceil(e.offsetHeight+n)}function ln(e){var t=on(e),n=t.marginLeft+t.marginRight;return Math.ceil(e.offsetWidth+n)}function un(){if("boolean"===typeof Xt)return Xt;var e=document.createElement("div");return e.style.direction="rtl",e.style.width="1px",e.style.height="1px",e.style.position="fixed",e.style.top="0px",e.style.overflow="hidden",e.dir="rtl",e.innerHTML='<div style="width: 2px">\n            <span style="display: inline-block; width: 1px"></span>\n            <span style="display: inline-block; width: 1px"></span>\n        </div>',document.body.appendChild(e),e.scrollLeft=1,Xt=0===Math.floor(e.scrollLeft),document.body.removeChild(e),Xt}function cn(e,t){var n=e.scrollLeft;return t&&(n=Math.abs(n),Bt()&&!un()&&(n=e.scrollWidth-e.clientWidth-n)),n}function pn(e,t,n){n&&(un()?t*=-1:(Ht()||Bt())&&(t=e.scrollWidth-e.clientWidth-t)),e.scrollLeft=t}function dn(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function hn(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function fn(e){return null!==e.offsetParent}function gn(e){if(null!==DOMParser)return(new DOMParser).parseFromString(e,"text/html").body.firstChild;var t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function mn(e){return e&&e.clientHeight?e.clientHeight:0}function vn(e){return e&&e.clientWidth?e.clientWidth:0}function yn(e,t,n){n&&n.nextSibling===t||(n?n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t))}function Cn(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 wn(e,t,n){n?n.insertAdjacentElement("afterend",t):e.firstChild?e.insertAdjacentElement("afterbegin",t):e.appendChild(t)}function _n(e,t){t&&Object.keys(t).forEach((function(n){var o=Ze(n);o&&(e.style[o]=t[n])}))}function bn(e){return e.clientWidth<e.scrollWidth}function En(e){return e.clientHeight<e.scrollHeight}function Sn(e,t){"flex"===t?(e.style.removeProperty("width"),e.style.removeProperty("minWidth"),e.style.removeProperty("maxWidth"),e.style.flex="1 1 auto"):Rn(e,t)}function Rn(e,t){t=Tn(t),e.style.width=t.toString(),e.style.maxWidth=t.toString(),e.style.minWidth=t.toString()}function On(e,t){t=Tn(t),e.style.height=t.toString(),e.style.maxHeight=t.toString(),e.style.minHeight=t.toString()}function Tn(e){return"number"===typeof e?e+"px":e}function Pn(e){return"function"===typeof Node?e instanceof Node:e&&"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName}function An(e){return"function"===typeof HTMLElement?e instanceof HTMLElement:e&&R(e)&&1===e.nodeType&&"string"===typeof e.nodeName}function Dn(e){return Pn(e)||An(e)}function xn(e){if(null==e)return[];var t=[];return In(e,(function(e){return t.push(e)})),t}function Nn(e,t){if(e)for(var n=0;n<e.length;n++){var o=e[n];t(o.name,o.value)}}function Mn(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n.toString())}function In(e,t){if(null!=e)for(var n=0;n<e.length;n++)t(e[n])}var Ln=Object.freeze({radioCssClass:function(e,t,n){for(var o=e.parentElement,r=o&&o.firstChild;r;)t&&r.classList.toggle(t,r===e),n&&r.classList.toggle(n,r!==e),r=r.nextSibling},isFocusableFormField:Jt,setDisplayed:$t,setVisible:en,setDisabled:tn,isElementChildOfClass:nn,getElementSize:on,getInnerHeight:rn,getInnerWidth:sn,getAbsoluteHeight:an,getAbsoluteWidth:ln,isRtlNegativeScroll:un,getScrollLeft:cn,setScrollLeft:pn,clearElement:dn,removeElement:function(e,t){hn(e.querySelector(t))},removeFromParent:hn,isVisible:fn,loadTemplate:gn,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:mn,offsetWidth:vn,ensureDomOrder:yn,setDomChildOrder:Cn,insertWithDomOrder:wn,prependDC:function(e,t){r(e.firstChild)?e.insertBefore(t,e.firstChild):e.appendChild(t)},addStylesToElement:_n,isHorizontalScrollShowing:bn,isVerticalScrollShowing:En,setElementWidth:Sn,setFixedWidth:Rn,setElementHeight:function(e,t){"flex"===t?(e.style.removeProperty("height"),e.style.removeProperty("minHeight"),e.style.removeProperty("maxHeight"),e.style.flex="1 1 auto"):On(e,t)},setFixedHeight:On,formatSize:Tn,isNode:Pn,isElement:An,isNodeOrElement:Dn,copyNodeList:xn,iterateNamedNodeMap:Nn,setCheckboxState:function(e,t){"boolean"===typeof t?(e.checked=t,e.indeterminate=!1):e.indeterminate=!0},addOrRemoveAttribute:Mn,nodeListForEach:In});var Fn=Object.freeze({getNameOfClass:function(e){var t=e.toString(),n=/function (.{1,})\(/.exec(t);return n&&n.length>1?n[1]:""},findLineByLeastSquares:function(e){var t=e.length,n=0;if(t<=1)return e;for(var o=0;o<e.length;o++){var r=e[o],i=r.toString().split("e-");i.length>1?n=Math.max(n,parseInt(i[1],10)):Math.floor(r)!==r&&(n=Math.max(n,r.toString().split(".")[1].length))}for(var s=0,a=0,l=0,u=0,c=0,p=0;p<t;p++)s+=p,a+=c=e[p],u+=p*p,l+=p*c;var d=(t*l-s*a)/(t*u-s*s),h=a/t-d*s/t,f=[];for(p=0;p<=t;p++)f.push(parseFloat((p*d+h).toFixed(n)));return f},cssStyleObjectToMarkup:function(e){if(!e)return"";var t=[];return f(e,(function(e,n){var o=ze(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=gn('<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)}))}});function kn(e,t,n){e.setAttribute(Hn(t),n.toString())}function Gn(e,t){e.removeAttribute(Hn(t))}function Hn(e){return"aria-"+e}function Bn(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function Vn(e){return e.isSortAscending()?"ascending":e.isSortDescending()?"descending":"none"}function Wn(e){return parseInt(e.getAttribute("aria-level"),10)}function jn(e){return parseInt(e.getAttribute("aria-posinset"),10)}function Un(e,t){var n="label";t?kn(e,n,t):Gn(e,n)}function zn(e,t){var n="labelledby";t?kn(e,n,t):Gn(e,n)}function Zn(e,t){var n="description";t?kn(e,n,t):Gn(e,n)}function Yn(e,t){var n="describedby";t?kn(e,n,t):Gn(e,n)}function Kn(e,t){kn(e,"level",t)}function qn(e,t){kn(e,"disabled",t)}function Xn(e,t){kn(e,"expanded",t)}function Qn(e){Gn(e,"expanded")}function Jn(e,t){kn(e,"setsize",t)}function $n(e,t){kn(e,"posinset",t)}function eo(e,t){kn(e,"multiselectable",t)}function to(e,t){kn(e,"rowcount",t)}function no(e,t){kn(e,"rowindex",t)}function oo(e,t){kn(e,"colcount",t)}function ro(e,t){kn(e,"colindex",t)}function io(e,t){kn(e,"colspan",t)}function so(e,t){kn(e,"sort",t)}function ao(e){Gn(e,"sort")}function lo(e,t){var n="selected";t?kn(e,n,t):Gn(e,n)}function uo(e,t){kn(e,"checked",void 0===t?"mixed":t)}var co=Object.freeze({setAriaRole:Bn,getAriaSortState:Vn,getAriaLevel:Wn,getAriaPosInSet:jn,getAriaDescribedBy:function(e){return e.getAttribute("aria-describedby")||""},setAriaLabel:Un,setAriaLabelledBy:zn,setAriaDescription:Zn,setAriaDescribedBy:Yn,setAriaLevel:Kn,setAriaDisabled:qn,setAriaExpanded:Xn,removeAriaExpanded:Qn,setAriaSetSize:Jn,setAriaPosInSet:$n,setAriaMultiSelectable:eo,setAriaRowCount:to,setAriaRowIndex:no,setAriaColCount:oo,setAriaColIndex:ro,setAriaColSpan:io,setAriaSort:so,removeAriaSort:ao,setAriaSelected:lo,setAriaChecked:uo});function po(e,t){return e.toString().padStart(t,"0")}function ho(e,t){for(var n=[],o=e;o<=t;o++)n.push(o);return n}function fo(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function go(e,t,n){return"number"!==typeof e?"":e.toString().replace(".",n).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+t)}var mo=Object.freeze({padStartWidthZeros:po,createArrayOfNumbers:ho,isNumeric:fo,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,t,n){return"number"!==typeof e?"":go(Math.round(100*e)/100,t,n)},formatNumberCommas:go,sum:function(e){return null==e?null:e.reduce((function(e,t){return e+t}),0)}}),vo=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s};function yo(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 po(e,2)})).join(n);return t&&(o+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map((function(e){return po(e,2)})).join(":")),o}function Co(e){if(!e)return null;var t=vo(e.split(" "),2),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=vo(r,3),s=i[0],a=i[1],l=i[2],u=new Date(s,a-1,l);if(u.getFullYear()!==s||u.getMonth()!==a-1||u.getDate()!==l)return null;if(!o||"00:00:00"===o)return u;var c=vo(o.split(":").map((function(e){return parseInt(e,10)})),3),p=c[0],d=c[1],h=c[2];return p>=0&&p<24&&u.setHours(p),d>=0&&d<60&&u.setMinutes(d),h>=0&&h<60&&u.setSeconds(h),u}var wo=Object.freeze({serialiseDate:yo,parseDateTimeFromString:Co});function _o(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]=bo(e,n)})),o}function bo(e,t,n,o){var r=o?Ro:So,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 Eo(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 So(e,t){if(0===e.length&&0===t.length)return 0;var n,o,r=Eo(e),i=Eo(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 Ro(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],i);-1!==a&&(r+=100-100*(i=a)/1e4*100)}return r}var Oo=Object.freeze({fuzzyCheckStrings:_o,fuzzySuggestions:bo,get_bigrams:Eo,string_distances:So,string_weighted_distances:Ro}),To={columnGroupOpened:"expanded",columnGroupClosed:"contracted",columnSelectClosed:"tree-closed",columnSelectOpen:"tree-open",columnSelectIndeterminate:"tree-indeterminate",columnMovePin:"pin",columnMoveHide:"eye-slash",columnMoveMove:"arrows",columnMoveLeft:"left",columnMoveRight:"right",columnMoveGroup:"group",columnMoveValue:"aggregation",columnMovePivot:"pivot",dropNotAllowed:"not-allowed",groupContracted:"tree-closed",groupExpanded:"tree-open",chart:"chart",close:"cross",cancel:"cancel",check:"tick",first:"first",previous:"previous",next:"next",last:"last",linked:"linked",unlinked:"unlinked",colorPicker:"color-picker",groupLoading:"loading",menu:"menu",filter:"filter",columns:"columns",maximize:"maximize",minimize:"minimize",menuPin:"pin",menuValue:"aggregation",menuAddRowGroup:"group",menuRemoveRowGroup:"group",clipboardCopy:"copy",clipboardPaste:"paste",pivotPanel:"pivot",rowGroupPanel:"group",valuePanel:"aggregation",columnDrag:"grip",rowDrag:"grip",save:"save",csvExport:"csv",excelExport:"excel",smallDown:"small-down",smallLeft:"small-left",smallRight:"small-right",smallUp:"small-up",sortAscending:"asc",sortDescending:"desc",sortUnSort:"none"};function Po(e,t,n){var o=Ao(e,t,n);if(o&&o.className.indexOf("ag-icon")>-1)return o;var r=document.createElement("span");return r.appendChild(o),r}function Ao(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=To[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"),Bn(a,"presentation"),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?gn(u):Dn(u)?u:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}var Do=Object.freeze({iconNameClassMap:To,createIcon:Po,createIconNoSpan:Ao});function xo(e){if(e.altKey||e.ctrlKey||e.metaKey)return!1;var t=1===e.key.length,n=function(e){return Gt()&&"Del"===e.key&&46===e.charCode}(e);return t||n}function No(e,t,n,o,r){var i=e.getSuppressKeyboardEventFunc(),s=o?o.getColDef().suppressKeyboardEvent:void 0;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()};if(s&&s(a))return!0;return!!i&&i(a)}function Mo(e,t,n,o){var i=o.getDefinition(),s=i&&i.suppressHeaderKeyboardEvent;return!!r(s)&&!!s({api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext(),colDef:i,column:o,headerRowIndex:n,event:t})}var Io=Object.freeze({isEventFromPrintableCharacter:xo,isUserSuppressingKeyboardEvent:No,isUserSuppressingHeaderKeyboardEvent:Mo});function Lo(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}var Fo=Object.freeze({areEventsNear:Lo});var ko=Object.freeze({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){if(!o)return;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)}});function Go(e){var t=new Set;return e.forEach((function(e){return t.add(e)})),t}var Ho,Bo=Object.freeze({convertToSet:Go}),Vo=function(){return Vo=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},Vo.apply(this,arguments)},Wo=Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo(Vo({},Fn),co),ye),Qt),Ft),wo),Ln),Ie),W),Oo),d),Do),Io),Je),Fo),mo),O),ko),Bo),Xe),jo=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}();(Ho=t.AgPromiseStatus||(t.AgPromiseStatus={}))[Ho.IN_PROGRESS=0]="IN_PROGRESS",Ho[Ho.RESOLVED=1]="RESOLVED";var Uo,zo=function(){function e(e){var n=this;this.status=t.AgPromiseStatus.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);t.forEach((function(t,r){t.then((function(t){o[r]=t,0===--n&&e(o)}))}))}))},e.resolve=function(t){return void 0===t&&(t=null),new e((function(e){return e(t)}))},e.prototype.then=function(n){var o=this;return new e((function(e){o.status===t.AgPromiseStatus.RESOLVED?e(n(o.resolution)):o.waiters.push((function(t){return e(n(t))}))}))},e.prototype.resolveNow=function(e,n){return this.status===t.AgPromiseStatus.RESOLVED?n(this.resolution):e},e.prototype.onDone=function(e){this.status=t.AgPromiseStatus.RESOLVED,this.resolution=e,this.waiters.forEach((function(t){return t(e)}))},e.prototype.onReject=function(e){console.warn("TBI")},e}(),Zo=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}(),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])},e(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)}}(),Ko=function(){return Ko=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},Ko.apply(this,arguments)},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};!function(e){e[e.NOTHING=0]="NOTHING",e[e.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",e[e.SHOWING=2]="SHOWING"}(Uo||(Uo={}));var Xo=function(e){function t(t){var n=e.call(this)||this;return n.DEFAULT_SHOW_TOOLTIP_DELAY=2e3,n.DEFAULT_HIDE_TOOLTIP_DELAY=1e4,n.SHOW_QUICK_TOOLTIP_DIFF=1e3,n.FADE_OUT_TOOLTIP_TIMEOUT=1e3,n.state=Uo.NOTHING,n.tooltipInstanceCount=0,n.tooltipMouseTrack=!1,n.parentComp=t,n}return Yo(t,e),t.prototype.postConstruct=function(){this.tooltipShowDelay=this.gridOptionsWrapper.getTooltipDelay("show")||this.DEFAULT_SHOW_TOOLTIP_DELAY,this.tooltipHideDelay=this.gridOptionsWrapper.getTooltipDelay("hide")||this.DEFAULT_HIDE_TOOLTIP_DELAY,this.tooltipMouseTrack=this.gridOptionsWrapper.isTooltipMouseTrack();var e=this.parentComp.getGui();this.addManagedListener(e,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(e,"mouseleave",this.onMouseLeave.bind(this)),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(e,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(e,"keydown",this.onKeyDown.bind(this))},t.prototype.destroy=function(){this.setToDoNothing(),e.prototype.destroy.call(this)},t.prototype.onMouseEnter=function(e){if(!Wt()&&this.state==Uo.NOTHING){var t=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay;this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.lastMouseEvent=e,this.state=Uo.WAITING_TO_SHOW}},t.prototype.onMouseLeave=function(){this.setToDoNothing()},t.prototype.onKeyDown=function(){this.setToDoNothing()},t.prototype.setToDoNothing=function(){this.state===Uo.SHOWING&&this.hideTooltip(),this.clearTimeouts(),this.state=Uo.NOTHING},t.prototype.onMouseMove=function(e){this.lastMouseEvent=e,this.tooltipMouseTrack&&this.state===Uo.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=Uo.NOTHING},t.prototype.destroyTooltipComp=function(){var e=this;this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");var t=this.tooltipPopupDestroyFunc,n=this.tooltipComp;window.setTimeout((function(){t(),e.getContext().destroyBean(n)}),this.FADE_OUT_TOOLTIP_TIMEOUT),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0},t.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-t.lastTooltipHideTime<this.SHOW_QUICK_TOOLTIP_DIFF},t.prototype.showTooltip=function(){var e=Ko({},this.parentComp.getTooltipParams());if(r(e.value)){this.state=Uo.SHOWING,this.tooltipInstanceCount++;var t=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount);this.userComponentFactory.getTooltipCompDetails(e).newAgStackInstance().then(t)}else this.setToDoNothing()},t.prototype.newTooltipComponentCallback=function(e,t){if(this.state!==Uo.SHOWING||this.tooltipInstanceCount!==e)this.getContext().destroyBean(t);else{var n=t.getGui();this.tooltipComp=t,n.classList.contains("ag-tooltip")||n.classList.add("ag-tooltip-custom");var o=this.gridOptionsWrapper.getLocaleTextFunc(),r=this.popupService.addPopup({eChild:n,ariaLabel:o("ariaLabelTooltip","Tooltip")});r&&(this.tooltipPopupDestroyFunc=r.hideFunc),this.positionTooltipUnderLastMouseEvent(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.tooltipHideDelay)}},t.prototype.positionTooltipUnderLastMouseEvent=function(){this.popupService.positionPopupUnderMouseEvent({type:"tooltip",mouseEvent:this.lastMouseEvent,ePopup:this.tooltipComp.getGui(),nudgeY:18})},t.prototype.clearTimeouts=function(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0),this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)},qo([K("popupService")],t.prototype,"popupService",void 0),qo([K("userComponentFactory")],t.prototype,"userComponentFactory",void 0),qo([K("columnApi")],t.prototype,"columnApi",void 0),qo([K("gridApi")],t.prototype,"gridApi",void 0),qo([z],t.prototype,"postConstruct",null),t}(Fe),Qo=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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},$o=new jo,er=function(){function e(e){this.cssClassStates={},this.getGui=e}return e.prototype.addCssClass=function(e){var t=this,n=(e||"").split(" ");n.length>1?n.forEach((function(e){return t.addCssClass(e)})):!0!==this.cssClassStates[e]&&e.length&&(this.getGui().classList.add(e),this.cssClassStates[e]=!0)},e.prototype.removeCssClass=function(e){var t=this,n=(e||"").split(" ");n.length>1?n.forEach((function(e){return t.removeCssClass(e)})):!1!==this.cssClassStates[e]&&e.length&&(this.getGui().classList.remove(e),this.cssClassStates[e]=!1)},e.prototype.containsCssClass=function(e){return this.getGui().classList.contains(e)},e.prototype.addOrRemoveCssClass=function(e,t){var n=this,o=(e||"").split(" ");o.length>1?o.forEach((function(e){return n.addOrRemoveCssClass(e,t)})):this.cssClassStates[e]!==t&&e.length&&(this.getGui().classList.toggle(e,t),this.cssClassStates[e]=t)},e}(),tr=function(e){function t(t){var n=e.call(this)||this;return n.displayed=!0,n.visible=!0,n.compId=$o.next(),n.cssClassManager=new er((function(){return n.eGui})),t&&n.setTemplate(t),n}return Qo(t,e),t.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsWrapper.isEnableBrowserTooltips()},t.prototype.getCompId=function(){return this.compId},t.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},t.prototype.setTooltip=function(e){var t=this;this.tooltipText!=e&&(this.tooltipText&&(t.usingBrowserTooltips?t.getGui().removeAttribute("title"):t.tooltipFeature=t.destroyBean(t.tooltipFeature)),null!=e&&(this.tooltipText=e,this.tooltipText&&(t.usingBrowserTooltips?t.getGui().setAttribute("title",t.tooltipText):t.tooltipFeature=t.createBean(new Xo(t)))))},t.prototype.createChildComponentsFromTags=function(e,t){var n=this;xn(e.childNodes).forEach((function(o){if(o instanceof HTMLElement){var r=n.createComponentFromElement(o,(function(e){e.getGui()&&n.copyAttributesFromNode(o,e.getGui())}),t);if(r){if(r.addItems&&o.children.length){n.createChildComponentsFromTags(o,t);var i=Array.prototype.slice.call(o.children);r.addItems(i)}n.swapComponentForNode(r,e,o)}else o.childNodes&&n.createChildComponentsFromTags(o,t)}}))},t.prototype.createComponentFromElement=function(e,n,o){var r=e.nodeName,i=o?o[e.getAttribute("ref")]:void 0,s=this.agStackComponentsRegistry.getComponentClass(r);if(s){t.elementGettingCreated=e;var a=new s(i);return a.setParentComponent(this),this.createBean(a,null,n),a}return null},t.prototype.copyAttributesFromNode=function(e,t){Nn(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.addDestroyFunc(this.destroyBean.bind(this,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=x(t.constructor);n&&n[o]&&n[o].querySelectors&&n[o].querySelectors.forEach((function(t){return e(t)})),t=Object.getPrototypeOf(t)}},t.prototype.setTemplate=function(e,t){var n=gn(e);this.setTemplateFromElement(n,t)},t.prototype.setTemplateFromElement=function(e,t){this.eGui=e,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),t)},t.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},t.prototype.wireQuerySelectors=function(){var e=this;if(this.eGui){var t=this;this.iterateOverQuerySelectors((function(n){var o=function(e){return t[n.attributeName]=e};if(n.refSelector&&e.eGui.getAttribute("ref")===n.refSelector)o(e.eGui);else{var r=e.eGui.querySelector(n.querySelector);r&&o(r.__agComponent||r)}}))}},t.prototype.getGui=function(){return this.eGui},t.prototype.getFocusableElement=function(){return this.eGui},t.prototype.setParentComponent=function(e){this.parentComponent=e},t.prototype.getParentComponent=function(){return this.parentComponent},t.prototype.setGui=function(e){this.eGui=e},t.prototype.queryForHtmlElement=function(e){return this.eGui.querySelector(e)},t.prototype.queryForHtmlInputElement=function(e){return this.eGui.querySelector(e)},t.prototype.appendChild=function(e,t){if(t||(t=this.eGui),null!=e)if(Dn(e))t.appendChild(e);else{var n=e;t.appendChild(n.getGui()),this.addDestroyFunc(this.destroyBean.bind(this,n))}},t.prototype.isDisplayed=function(){return this.displayed},t.prototype.setVisible=function(e){e!==this.visible&&(this.visible=e,en(this.eGui,e))},t.prototype.setDisplayed=function(e){if(e!==this.displayed){this.displayed=e,$t(this.eGui,e);var n={type:t.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(n)}},t.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),e.prototype.destroy.call(this)},t.prototype.addGuiEventListener=function(e,t){var n=this;this.eGui.addEventListener(e,t),this.addDestroyFunc((function(){return n.eGui.removeEventListener(e,t)}))},t.prototype.addCssClass=function(e){this.cssClassManager.addCssClass(e)},t.prototype.removeCssClass=function(e){this.cssClassManager.removeCssClass(e)},t.prototype.containsCssClass=function(e){return this.cssClassManager.containsCssClass(e)},t.prototype.addOrRemoveCssClass=function(e,t){this.cssClassManager.addOrRemoveCssClass(e,t)},t.prototype.getAttribute=function(e){var t=this.eGui;return t?t.getAttribute(e):null},t.prototype.getRefElement=function(e){return this.queryForHtmlElement('[ref="'+e+'"]')},t.EVENT_DISPLAYED_CHANGED="displayedChanged",Jo([K("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),Jo([U],t.prototype,"preConstructOnComponent",null),Jo([U],t.prototype,"createChildComponentsPreConstruct",null),t}(Fe);function nr(e){return or.bind(this,"[ref="+e+"]",e)}function or(e,t,n,o,r){null!==e?"number"!==typeof r?function(e,t,n){var o=function(e,t){e.__agComponentMetaData||(e.__agComponentMetaData={});e.__agComponentMetaData[t]||(e.__agComponentMetaData[t]={});return e.__agComponentMetaData[t]}(e,x(e.constructor));o[t]||(o[t]=[]);o[t].push(n)}(n,"querySelectors",{attributeName:o,querySelector:e,refSelector:t}):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}var rr,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])},e(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,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(){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 ir(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e;var t=this.columnModel.getDisplayNameForColumn(e.column,"header",!0),n=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(t+" "+n("ariaFilterInput","Filter Input"))},t.prototype.onParentModelChanged=function(e){var t=this;e?this.params.parentFilterInstance((function(n){if(n.getModelAsString){var o=n.getModelAsString(e);t.eFloatingFilterText.setValue(o)}})):this.eFloatingFilterText.setValue("")},sr([nr("eFloatingFilterText")],t.prototype,"eFloatingFilterText",void 0),sr([K("columnModel")],t.prototype,"columnModel",void 0),t}(tr),lr=function(){function e(e,t,n,o){var r=this;this.alive=!0,this.context=e,this.eParent=o,t.getDateCompDetails(n).newAgStackInstance().then((function(t){r.alive?(r.dateComp=t,t&&(o.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached(),r.tempValue&&t.setDate(r.tempValue),null!=r.disabled&&r.setDateCompDisabled(r.disabled))):e.destroyBean(t)}))}return e.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},e.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},e.prototype.setDate=function(e){this.dateComp?this.dateComp.setDate(e):this.tempValue=e},e.prototype.setDisabled=function(e){this.dateComp?this.setDateCompDisabled(e):this.disabled=e},e.prototype.setDisplayed=function(e){$t(this.eParent,e)},e.prototype.setInputPlaceholder=function(e){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(e)},e.prototype.setInputAriaLabel=function(e){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(e)},e.prototype.afterGuiAttached=function(e){this.dateComp&&"function"===typeof this.dateComp.afterGuiAttached&&this.dateComp.afterGuiAttached(e)},e.prototype.setDateCompDisabled=function(e){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(e)},e}(),ur=function(){return ur=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},ur.apply(this,arguments)},cr=function(){function e(){this.customFilterOptions={}}return e.prototype.init=function(e,t){this.filterOptions=e.filterOptions||t,this.mapCustomOptions(),this.selectDefaultItem(e),this.checkForDeprecatedParams()},e.prototype.checkForDeprecatedParams=function(){this.filterOptions.some((function(e){return"string"!=typeof e&&null!=e.test}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, test() has been replaced with predicate()."),this.filterOptions.some((function(e){return"string"!=typeof e&&null!=e.hideFilterInput}))&&console.warn("AG Grid: [IFilterOptionDef] since v26.2.0, useOfHideFilterInput has been replaced with numberOfInputs.")},e.prototype.getFilterOptions=function(){return this.filterOptions},e.prototype.mapCustomOptions=function(){var e=this;this.filterOptions&&this.filterOptions.forEach((function(t){if("string"!==typeof t){if([["displayKey"],["displayName"],["predicate","test"]].every((function(e){return!!e.some((function(e){return null!=t[e]}))||(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '"+e+"'"),!1)}))){var n=t.test,o=ur({},t);null!=n&&null==t.predicate&&(o.predicate=function(e,t){return n(e[0],t)},delete o.test),o.hideFilterInput&&null==o.numberOfInputs&&(o.numberOfInputs=0,delete o.hideFilterInput),e.customFilterOptions[t.displayKey]=o}else e.filterOptions=e.filterOptions.filter((function(e){return e===t}))||[]}}))},e.prototype.selectDefaultItem=function(e){if(e.defaultOption)this.defaultOption=e.defaultOption;else if(this.filterOptions.length>=1){var t=this.filterOptions[0];"string"===typeof t?this.defaultOption=t:t.displayKey?this.defaultOption=t.displayKey:console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("AG Grid: no filter options for filter")},e.prototype.getDefaultOption=function(){return this.defaultOption},e.prototype.getCustomOption=function(e){return this.customFilterOptions[e]},e}(),pr={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},dr=function(){function e(){}return e.BACKSPACE="Backspace",e.TAB="Tab",e.ENTER="Enter",e.ESCAPE="Escape",e.SPACE=" ",e.LEFT="ArrowLeft",e.UP="ArrowUp",e.RIGHT="ArrowRight",e.DOWN="ArrowDown",e.DELETE="Delete",e.F2="F2",e.PAGE_UP="PageUp",e.PAGE_DOWN="PageDown",e.PAGE_HOME="Home",e.PAGE_END="End",e.A="KeyA",e.C="KeyC",e.V="KeyV",e.D="KeyD",e.Z="KeyZ",e.Y="KeyY",e}(),hr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),fr=function(){return fr=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},fr.apply(this,arguments)},gr=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},mr=function(e){function t(t,n){void 0===n&&(n={});var o=e.call(this)||this;return o.eFocusableElement=t,o.callbacks=n,o.callbacks=fr({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(e){if(!e.defaultPrevented){var t=o.focusService.findNextFocusableElement(o.eFocusableElement,!1,e.shiftKey);t&&(t.focus(),e.preventDefault())}}},n),o}return hr(t,e),t.prototype.postConstruct=function(){this.eFocusableElement.classList.add(t.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedListener(this.eFocusableElement,"focusin",this.callbacks.onFocusIn),this.callbacks.onFocusOut&&this.addManagedListener(this.eFocusableElement,"focusout",this.callbacks.onFocusOut)},t.prototype.addKeyDownListeners=function(e){var t=this;this.addManagedListener(e,"keydown",(function(e){e.defaultPrevented||Te(e)||(t.callbacks.shouldStopEventPropagation(e)?Oe(e):e.key===dr.TAB?t.callbacks.onTabKeyDown(e):t.callbacks.handleKeyDown&&t.callbacks.handleKeyDown(e))}))},t.FOCUS_MANAGED_CLASS="ag-focus-managed",gr([K("focusService")],t.prototype,"focusService",void 0),gr([z],t.prototype,"postConstruct",null),t}(Fe),vr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),yr=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},Cr=function(e){function t(t){var n=e.call(this)||this;return n.filterNameKey=t,n.applyActive=!1,n.hidePopup=null,n.appliedModel=null,n}return vr(t,e),t.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new mr(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)}))},t.prototype.handleKeyDown=function(e){},t.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},t.prototype.isFilterActive=function(){return!!this.appliedModel},t.prototype.resetTemplate=function(e){var t='\n            <div class="ag-filter-wrapper">\n                <div class="ag-filter-body-wrapper ag-'+this.getCssIdentifier()+'-body-wrapper">\n                    '+this.createBodyTemplate()+"\n                </div>\n            </div>";this.setTemplate(t,e)},t.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},t.prototype.init=function(e){var t=this;this.setParams(e),this.resetUiToDefaults(!0).then((function(){t.updateUiVisibility(),t.setupOnBtApplyDebounce()}))},t.prototype.setParams=function(e){this.providedFilterParams=e,this.applyActive=t.isUseApplyButton(e),this.createButtonPanel()},t.prototype.createButtonPanel=function(){var e=this,t=this.providedFilterParams.buttons;if(!(!t||t.length<1||this.isReadOnly())){var n=document.createElement("div");n.classList.add("ag-filter-apply-panel");Go(t).forEach((function(t){return function(t){var o,r;switch(t){case"apply":o=e.translate("applyFilter"),r=function(t){return e.onBtApply(!1,!1,t)};break;case"clear":o=e.translate("clearFilter"),r=function(){return e.onBtClear()};break;case"reset":o=e.translate("resetFilter"),r=function(){return e.onBtReset()};break;case"cancel":o=e.translate("cancelFilter"),r=function(t){e.onBtCancel(t)};break;default:return void console.warn("AG Grid: Unknown button type specified")}var i=gn('<button\n                    type="button"\n                    ref="'+t+'FilterButton"\n                    class="ag-standard-button ag-filter-apply-panel-button"\n                >'+o+"\n                </button>");n.appendChild(i),e.addManagedListener(i,"click",r)}(t)})),this.getGui().appendChild(n)}},t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.setupOnBtApplyDebounce=function(){var e=t.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs());this.onBtApplyDebounce=G(this.onBtApply.bind(this),e)},t.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},t.prototype.setModel=function(e){var t=this;return(null!=e?this.setModelIntoUi(e):this.resetUiToDefaults()).then((function(){t.updateUiVisibility(),t.applyModel()}))},t.prototype.onBtCancel=function(e){var t=this,n=this.getModel(),o=function(){t.onUiChanged(!1,"prevent"),t.providedFilterParams.closeOnApply&&t.close(e)};null!=n?this.setModelIntoUi(n).then(o):this.resetUiToDefaults().then(o)},t.prototype.onBtClear=function(){var e=this;this.resetUiToDefaults().then((function(){return e.onUiChanged()}))},t.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},t.prototype.applyModel=function(){var e=this.getModelFromUi();if(!this.isModelValid(e))return!1;var t=this.appliedModel;return this.appliedModel=e,!this.areModelsEqual(t,e)},t.prototype.isModelValid=function(e){return!0},t.prototype.onBtApply=function(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=!1),this.applyModel()&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t}),this.providedFilterParams.closeOnApply&&this.applyActive&&!e&&!t&&this.close(n)},t.prototype.onNewRowsLoaded=function(){},t.prototype.close=function(e){if(this.hidePopup){var t,n=e,o=n&&n.key;"Enter"!==o&&"Space"!==o||(t={keyboardEvent:n}),this.hidePopup(t),this.hidePopup=null}},t.prototype.onUiChanged=function(e,t){if(void 0===e&&(e=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly){var n=this.isModelValid(this.getModelFromUi());tn(this.getRefElement("applyFilterButton"),!n)}e&&!t||"immediately"===t?this.onBtApply(e):(this.applyActive||t)&&"debounce"!==t||this.onBtApplyDebounce()},t.prototype.afterGuiAttached=function(e){null!=e&&(this.hidePopup=e.hidePopup)},t.getDebounceMs=function(e,n){return t.isUseApplyButton(e)?(null!=e.debounceMs&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):null!=e.debounceMs?e.debounceMs:n},t.isUseApplyButton=function(e){return!!e.buttons&&e.buttons.indexOf("apply")>=0},t.prototype.destroy=function(){this.hidePopup=null,e.prototype.destroy.call(this)},t.prototype.translate=function(e){return this.gridOptionsWrapper.getLocaleTextFunc()(e,pr[e])},t.prototype.getCellValue=function(e){var t=this.providedFilterParams,n=t.api,o=t.colDef,r=t.column,i=t.columnApi,s=t.context;return this.providedFilterParams.valueGetter({api:n,colDef:o,column:r,columnApi:i,context:s,data:e.data,getValue:function(t){return e.data[t]},node:e})},yr([K("rowModel")],t.prototype,"rowModel",void 0),yr([K("valueService")],t.prototype,"valueService",void 0),yr([z],t.prototype,"postConstruct",null),t}(tr),wr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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},br=function(e){function t(t,n){var o=e.call(this,n)||this;return o.labelSeparator="",o.labelAlignment="left",o.label="",o.config=t||{},o}return wr(t,e),t.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var e=this.config,t=e.labelSeparator,n=e.label,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(){dn(this.eLabel),"string"===typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(this.eLabel.classList.add("ag-hidden"),Bn(this.eLabel,"presentation")):(this.eLabel.classList.remove("ag-hidden"),Bn(this.eLabel,null))},t.prototype.setLabelSeparator=function(e){return this.labelSeparator===e||(this.labelSeparator=e,null!=this.label&&this.refreshLabel()),this},t.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-"+this.getCompId()+"-label",this.eLabel.id},t.prototype.getLabel=function(){return this.label},t.prototype.setLabel=function(e){return this.label===e||(this.label=e,this.refreshLabel()),this},t.prototype.setLabelAlignment=function(e){var t=this.getGui().classList;return t.toggle("ag-label-align-left","left"===e),t.toggle("ag-label-align-right","right"===e),t.toggle("ag-label-align-top","top"===e),this},t.prototype.setLabelWidth=function(e){return null==this.label||Sn(this.eLabel,e),this},_r([z],t.prototype,"postConstruct",null),t}(tr),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])},e(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(t,n,o){var r=e.call(this,t,n)||this;return r.className=o,r.disabled=!1,r}return Er(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className)},t.prototype.onValueChange=function(e){var n=this;return this.addManagedListener(this,t.EVENT_CHANGED,(function(){return e(n.getValue())})),this},t.prototype.getWidth=function(){return this.getGui().clientWidth},t.prototype.setWidth=function(e){return Rn(this.getGui(),e),this},t.prototype.getPreviousValue=function(){return this.previousValue},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e,n){return this.value===e||(this.previousValue=this.value,this.value=e,n||this.dispatchEvent({type:t.EVENT_CHANGED})),this},t.prototype.setDisabled=function(e){e=!!e;var t=this.getGui();return tn(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this},t.prototype.isDisabled=function(){return!!this.disabled},t.EVENT_CHANGED="valueChange",t}(br),Rr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Or=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},Tr=function(e){function t(t,n,o,r){var i=e.call(this,t,'<div class="ag-picker-field" role="presentation">\n                <div ref="eLabel"></div>\n                <div ref="eWrapper"\n                    class="ag-wrapper ag-picker-field-wrapper"\n                    tabIndex="-1"\n                    aria-expanded="false"\n                    '+(r?'role="'+r+'"':"")+'\n                >\n                    <div ref="eDisplayField" class="ag-picker-field-display"></div>\n                    <div ref="eIcon" class="ag-picker-field-icon" aria-hidden="true"></div>\n                </div>\n            </div>',n)||this;return i.pickerIcon=o,i.isPickerDisplayed=!1,i.isDestroyingPicker=!1,i.skipClick=!1,i}return Rr(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this);var n=this.getCompId()+"-display";this.eDisplayField.setAttribute("id",n),Yn(this.eWrapper,n);var o=function(){t.skipClick?t.skipClick=!1:t.isDisabled()||(t.pickerComponent=t.showPicker())},r=this.getGui();if(this.addManagedListener(r,"mousedown",(function(e){!t.skipClick&&t.pickerComponent&&t.pickerComponent.isAlive()&&fn(t.pickerComponent.getGui())&&r.contains(e.target)&&(t.skipClick=!0)})),this.addManagedListener(r,"keydown",(function(e){switch(e.key){case dr.UP:case dr.DOWN:case dr.ENTER:case dr.SPACE:o();case dr.ESCAPE:t.isPickerDisplayed&&e.preventDefault()}})),this.addManagedListener(this.eWrapper,"click",o),this.addManagedListener(this.eLabel,"click",o),this.pickerIcon){var i=Ao(this.pickerIcon,this.gridOptionsWrapper);i&&this.eIcon.appendChild(i)}},t.prototype.refreshLabel=function(){r(this.getLabel())?zn(this.eWrapper,this.getLabelId()):this.eWrapper.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},t.prototype.setAriaLabel=function(e){return Un(this.eWrapper,e),this},t.prototype.setInputWidth=function(e){return Sn(this.eWrapper,e),this},t.prototype.getFocusableElement=function(){return this.eWrapper},Or([nr("eLabel")],t.prototype,"eLabel",void 0),Or([nr("eWrapper")],t.prototype,"eWrapper",void 0),Or([nr("eDisplayField")],t.prototype,"eDisplayField",void 0),Or([nr("eIcon")],t.prototype,"eIcon",void 0),t}(Sr),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])},e(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)}}(),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},Dr=function(e){function t(t){void 0===t&&(t="default");var n=e.call(this,'<div class="ag-list ag-'+t+'-list" role="listbox"></div>')||this;return n.cssIdentifier=t,n.options=[],n.itemEls=[],n}return Pr(t,e),t.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},t.prototype.handleKeyDown=function(e){var t=e.key;switch(t){case dr.ENTER:if(this.highlightedEl){var n=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(n)}else this.setValue(this.getValue());break;case dr.DOWN:case dr.UP:var o=t===dr.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=Ke(e.text||t);return this.options.push({value:t,text:n}),this.renderOption(t,n),this.updateIndices(),this},t.prototype.updateIndices=function(){var e=this.getGui().querySelectorAll(".ag-list-item");e.forEach((function(t,n){$n(t,n+1),Jn(t,e.length)}))},t.prototype.renderOption=function(e,t){var n=this,o=document.createElement("div");Bn(o,"option"),o.classList.add("ag-list-item","ag-"+this.cssIdentifier+"-list-item"),o.innerHTML="<span>"+t+"</span>",o.tabIndex=-1,this.itemEls.push(o),this.addManagedListener(o,"mouseover",(function(){return n.highlightItem(o)})),this.addManagedListener(o,"mouseleave",(function(){return n.clearHighlighted()})),this.addManagedListener(o,"click",(function(){return n.setValue(e)})),this.getGui().appendChild(o)},t.prototype.setValue=function(e,t){if(this.value===e)return this.fireItemSelected(),this;if(null==e)return this.reset(),this;var n=this.options.findIndex((function(t){return t.value===e}));if(-1!==n){var 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=this.options.findIndex((function(t){return t.value===e.value}));-1!==t&&this.highlightItem(this.itemEls[t])},t.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},t.prototype.highlightItem=function(e){e.offsetParent&&(this.clearHighlighted(),this.highlightedEl=e,this.highlightedEl.classList.add(t.ACTIVE_CLASS),lo(this.highlightedEl,!0),this.highlightedEl.focus())},t.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(this.highlightedEl.classList.remove(t.ACTIVE_CLASS),lo(this.highlightedEl,!1),this.highlightedEl=null)},t.prototype.fireChangeEvent=function(){this.dispatchEvent({type:Sr.EVENT_CHANGED}),this.fireItemSelected()},t.prototype.fireItemSelected=function(){this.dispatchEvent({type:t.EVENT_ITEM_SELECTED})},t.EVENT_ITEM_SELECTED="selectedItem",t.ACTIVE_CLASS="ag-active-item",Ar([z],t.prototype,"init",null),t}(tr),xr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),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},Mr=function(e){function t(t){return e.call(this,t,"ag-select","smallDown","listbox")||this}return xr(t,e),t.prototype.init=function(){var e=this;this.listComponent=this.createBean(new Dr("select")),this.listComponent.setParentComponent(this),this.eWrapper.tabIndex=0,this.listComponent.addManagedListener(this.listComponent,Dr.EVENT_ITEM_SELECTED,(function(){e.hideList&&e.hideList()})),this.listComponent.addManagedListener(this.listComponent,Sr.EVENT_CHANGED,(function(){e.setValue(e.listComponent.getValue(),!1,!0),e.hideList&&e.hideList()}))},t.prototype.showPicker=function(){var e=this,t=this.listComponent.getGui(),n=this.gridOptionsWrapper.getDocument(),o=this.addManagedListener(n.body,"wheel",(function(n){!t.contains(n.target)&&e.hideList&&e.hideList()})),r=this.addManagedListener(t,"focusout",(function(n){!t.contains(n.relatedTarget)&&e.hideList&&e.hideList()})),i=this.gridOptionsWrapper.getLocaleTextFunc(),s=this.popupService.addPopup({modal:!0,eChild:t,closeOnEsc:!0,closedCallback:function(){e.hideList=null,e.isPickerDisplayed=!1,r(),o(),e.isAlive()&&(Xn(e.eWrapper,!1),e.getFocusableElement().focus())},ariaLabel:i("ariaLabelSelectField","Select Field")});return s&&(this.hideList=s.hideFunc),this.isPickerDisplayed=!0,Sn(t,ln(this.eWrapper)),Xn(this.eWrapper,!0),t.style.maxHeight=rn(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){return this.value===t?this:(o||this.listComponent.setValue(t,!0),this.listComponent.getValue()===this.getValue()?this:(this.eDisplayField.innerHTML=this.listComponent.getDisplayValue(),e.prototype.setValue.call(this,t,n)))},t.prototype.destroy=function(){this.hideList&&this.hideList(),this.destroyBean(this.listComponent),e.prototype.destroy.call(this)},Nr([K("popupService")],t.prototype,"popupService",void 0),Nr([z],t.prototype,"init",null),t}(Tr),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])},e(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)}}(),Lr=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},Fr=function(e){function t(t,n,o,r){void 0===o&&(o="text"),void 0===r&&(r="input");var i=e.call(this,t,'\n            <div role="presentation">\n                <div ref="eLabel" class="ag-input-field-label"></div>\n                <div ref="eWrapper" class="ag-wrapper ag-input-wrapper" role="presentation">\n                    <'+r+' ref="eInput" class="ag-input-field-input"></'+r+">\n                </div>\n            </div>",n)||this;return i.inputType=o,i.displayFieldTag=r,i}return Ir(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add(this.className+"-label"),this.eWrapper.classList.add(this.className+"-input-wrapper"),this.eInput.classList.add(this.className+"-input"),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||"ag-"+this.getCompId()+"-input";var t=this.config,n=t.width,o=t.value;null!=n&&this.setWidth(n),null!=o&&this.setValue(o),this.addInputListeners()},t.prototype.refreshLabel=function(){r(this.getLabel())?zn(this.eInput,this.getLabelId()):this.eInput.removeAttribute("aria-labelledby"),e.prototype.refreshLabel.call(this)},t.prototype.addInputListeners=function(){var e=this;this.addManagedListener(this.eInput,"input",(function(t){return e.setValue(t.target.value)}))},t.prototype.setInputType=function(){"input"===this.displayFieldTag&&this.eInput.setAttribute("type",this.inputType)},t.prototype.getInputElement=function(){return this.eInput},t.prototype.setInputWidth=function(e){return Sn(this.eWrapper,e),this},t.prototype.setInputName=function(e){return this.getInputElement().setAttribute("name",e),this},t.prototype.getFocusableElement=function(){return this.eInput},t.prototype.setMaxLength=function(e){return this.eInput.maxLength=e,this},t.prototype.setInputPlaceholder=function(e){return Mn(this.eInput,"placeholder",e),this},t.prototype.setInputAriaLabel=function(e){return Un(this.eInput,e),this},t.prototype.setDisabled=function(t){return tn(this.eInput,t),e.prototype.setDisabled.call(this,t)},Lr([nr("eLabel")],t.prototype,"eLabel",void 0),Lr([nr("eWrapper")],t.prototype,"eWrapper",void 0),Lr([nr("eInput")],t.prototype,"eInput",void 0),t}(Sr),kr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Gr=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"}(rr||(rr={}));var Hr,Br=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kr(t,e),t.prototype.getNumberOfInputs=function(e){var n=this.optionsFactory.getCustomOption(e);if(n){var o=n.numberOfInputs;return null!=o?o:1}var r=[t.EMPTY,t.NOT_BLANK,t.BLANK];return e&&r.indexOf(e)>=0?0:e===t.IN_RANGE?2:1},t.prototype.onFloatingFilterChanged=function(e,t){this.setTypeFromFloatingFilter(e),this.setValueFromFloatingFilter(t),this.onUiChanged(!0)},t.prototype.setTypeFromFloatingFilter=function(e){this.eType1.setValue(e),this.eType2.setValue(this.optionsFactory.getDefaultOption()),(this.isDefaultOperator("AND")?this.eJoinOperatorAnd:this.eJoinOperatorOr).setValue(!0)},t.prototype.getModelFromUi=function(){return this.isConditionUiComplete(rr.One)?this.isAllowTwoConditions()&&this.isConditionUiComplete(rr.Two)?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:this.createCondition(rr.One),condition2:this.createCondition(rr.Two)}:this.createCondition(rr.One):null},t.prototype.getConditionTypes=function(){return[this.eType1.getValue(),this.eType2.getValue()]},t.prototype.getJoinOperator=function(){return!0===this.eJoinOperatorOr.getValue()?"OR":"AND"},t.prototype.areModelsEqual=function(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var n,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,rr.One),this.setConditionIntoUi(t.condition2,rr.Two)}else{var o=e;this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND")),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR")),this.eType1.setValue(o.type),this.eType2.setValue(this.optionsFactory.getDefaultOption()),this.setConditionIntoUi(o,rr.One),this.setConditionIntoUi(null,rr.Two)}return zo.resolve()},t.prototype.doesFilterPass=function(e){var t=this,n=this.getModel();if(null==n)return!0;var o=n.operator,r=[];if(o){var i=n;r.push(i.condition1,i.condition2)}else r.push(n);return r[o&&"OR"===o?"some":"every"]((function(n){return t.individualConditionPasses(e,n)}))},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.optionsFactory=new cr,this.optionsFactory.init(t,this.getDefaultFilterOptions()),this.allowTwoConditions=!t.suppressAndOrCondition,this.alwaysShowBothConditions=!!t.alwaysShowBothConditions,this.defaultJoinOperator=this.getDefaultJoinOperator(t.defaultJoinOperator),this.putOptionsIntoDropdown(),this.addChangedListeners()},t.prototype.getDefaultJoinOperator=function(e){return me(["AND","OR"],e)?e:"AND"},t.prototype.putOptionsIntoDropdown=function(){var e=this,t=this.optionsFactory.getFilterOptions(),n=[this.eType1,this.eType2];t.forEach((function(t){var o="string"===typeof t?e.createBoilerplateListOption(t):e.createCustomListOption(t);n.forEach((function(e){return e.addOption(o)}))})),n.forEach((function(e){return e.setDisabled(t.length<=1)}))},t.prototype.createBoilerplateListOption=function(e){return{value:e,text:this.translate(e)}},t.prototype.createCustomListOption=function(e){var t=e.displayKey,n=this.optionsFactory.getCustomOption(e.displayKey);return{value:t,text:n?this.gridOptionsWrapper.getLocaleTextFunc()(n.displayKey,n.displayName):this.translate(t)}},t.prototype.isAllowTwoConditions=function(){return this.allowTwoConditions},t.prototype.createBodyTemplate=function(){return'\n            <ag-select class="ag-filter-select" ref="eOptions1"></ag-select>\n            '+this.createValueTemplate(rr.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(rr.Two)},t.prototype.getCssIdentifier=function(){return"simple-filter"},t.prototype.updateUiVisibility=function(){var e=this,t=[[this.eType1],[this.eType2,this.eJoinOperatorPanel,this.eJoinOperatorAnd,this.eJoinOperatorOr]],n=[this.eCondition1Body,this.eCondition2Body];t.forEach((function(t,n){var o=e.isConditionVisible(n),r=e.isConditionDisabled(n);t.forEach((function(e){e instanceof Fr||e instanceof Mr?(e.setDisabled(r),e.setDisplayed(o)):(tn(e,r),$t(e,o))}))})),n.forEach((function(t,n){$t(t,e.isConditionBodyVisible(n))})),this.forEachInput((function(t,n,o,r){e.setElementDisplayed(t,n<r),e.setElementDisabled(t,e.isConditionDisabled(o))})),this.resetPlaceholder()},t.prototype.afterGuiAttached=function(t){if(e.prototype.afterGuiAttached.call(this,t),this.resetPlaceholder(),!t||!t.suppressFocus&&!this.isReadOnly()){var n=this.getInputs()[0][0];if(!n)return;n instanceof Fr&&n.getInputElement().focus()}},t.prototype.resetPlaceholder=function(){var e=this,t=this.gridOptionsWrapper.getLocaleTextFunc();this.forEachInput((function(n,o,r,i){if(n instanceof Fr){var s=0===o&&i>1?"inRangeStart":0===o?"filterOoo":"inRangeEnd",a=0===o&&i>1?t("ariaFilterFromValue","Filter from value"):0===o?t("ariaFilterValue","Filter Value"):t("ariaFilterToValue","Filter to Value");n.setInputPlaceholder(e.translate(s)),n.setInputAriaLabel(a)}}))},t.prototype.setElementValue=function(e,t,n){e instanceof Fr&&e.setValue(null!=t?String(t):null,n)},t.prototype.setElementDisplayed=function(e,t){e instanceof tr&&$t(e.getGui(),t)},t.prototype.setElementDisabled=function(e,t){e instanceof tr&&tn(e.getGui(),t)},t.prototype.attachElementOnChange=function(e,t){e instanceof Fr&&e.onValueChange(t)},t.prototype.forEachInput=function(e){var t=this,n=this.getInputs();this.getConditionTypes().forEach((function(o,r){for(var i=t.getNumberOfInputs(o),s=0;s<n[r].length;s++){var a=n[r][s];null!=a&&e(a,s,r,i)}}))},t.prototype.isConditionVisible=function(e){return 0===e||!!this.allowTwoConditions&&(this.isReadOnly()?this.isConditionUiComplete(e):!!this.alwaysShowBothConditions||this.isConditionUiComplete(e-1))},t.prototype.isConditionDisabled=function(e){return!!this.isReadOnly()||(!this.isConditionVisible(e)||0!==e&&!this.isConditionUiComplete(e-1))},t.prototype.isConditionBodyVisible=function(e){if(!this.isConditionVisible(e))return!1;var t=this.getConditionTypes()[e];return this.getNumberOfInputs(t)>0},t.prototype.isConditionUiComplete=function(e){return this.getConditionTypes()[e]!==t.EMPTY&&!this.getValues(e).some((function(e){return null==e}))},t.prototype.resetUiToDefaults=function(e){var t=this,n=this.gridOptionsWrapper.getLocaleTextFunc()("ariaFilteringOperator","Filtering operator"),o="ag-simple-filter-and-or-"+this.getCompId(),r=this.optionsFactory.getDefaultOption();return this.eType1.setValue(r,e).setAriaLabel(n).setDisabled(this.isReadOnly()),this.eType2.setValue(this.optionsFactory.getDefaultOption(),e).setAriaLabel(n).setDisabled(this.isReadOnly()),this.eJoinOperatorAnd.setValue(this.isDefaultOperator("AND"),e).setName(o).setLabel(this.translate("andCondition")).setDisabled(this.isReadOnly()),this.eJoinOperatorOr.setValue(this.isDefaultOperator("OR"),e).setName(o).setLabel(this.translate("orCondition")).setDisabled(this.isReadOnly()),this.forEachInput((function(n){t.setElementValue(n,null,e),t.setElementDisabled(n,t.isReadOnly())})),this.resetPlaceholder(),zo.resolve()},t.prototype.setConditionIntoUi=function(e,t){var n=this,o=this.mapValuesFromModel(e);this.forEachInput((function(e,r,i,s){i===t&&n.setElementValue(e,null!=o[r]?o[r]:null)}))},t.prototype.setValueFromFloatingFilter=function(e){var t=this;this.forEachInput((function(n,o,r,i){t.setElementValue(n,0===o&&0===r?e:null)}))},t.prototype.isDefaultOperator=function(e){return e===this.defaultJoinOperator},t.prototype.addChangedListeners=function(){var e=this;if(!this.isReadOnly()){var t=function(){return e.onUiChanged()};this.eType1.onValueChange(t),this.eType2.onValueChange(t),this.eJoinOperatorOr.onValueChange(t),this.eJoinOperatorAnd.onValueChange(t),this.forEachInput((function(n){e.attachElementOnChange(n,t)}))}},t.prototype.individualConditionPasses=function(e,t){var n=this.getCellValue(e.node),o=this.mapValuesFromModel(t),r=this.optionsFactory.getCustomOption(t.type),i=this.evaluateCustomFilter(r,o,n);return null!=i?i:null==n?this.evaluateNullValue(t.type):this.evaluateNonNullValue(o,n,t,e)},t.prototype.evaluateCustomFilter=function(e,t,n){if(null!=e){var o=e.predicate;return null==o||t.some((function(e){return null==e}))?void 0:o(t,n)}},t.prototype.isBlank=function(e){return null==e||"string"===typeof e&&0===e.trim().length},t.EMPTY="empty",t.BLANK="blank",t.NOT_BLANK="notBlank",t.EQUALS="equals",t.NOT_EQUAL="notEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.IN_RANGE="inRange",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.STARTS_WITH="startsWith",t.ENDS_WITH="endsWith",Gr([nr("eOptions1")],t.prototype,"eType1",void 0),Gr([nr("eOptions2")],t.prototype,"eType2",void 0),Gr([nr("eJoinOperatorPanel")],t.prototype,"eJoinOperatorPanel",void 0),Gr([nr("eJoinOperatorAnd")],t.prototype,"eJoinOperatorAnd",void 0),Gr([nr("eJoinOperatorOr")],t.prototype,"eJoinOperatorOr",void 0),Gr([nr("eCondition1Body")],t.prototype,"eCondition1Body",void 0),Gr([nr("eCondition2Body")],t.prototype,"eCondition2Body",void 0),t}(Cr),Vr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Wr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vr(t,e),t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.scalarFilterParams=t},t.prototype.evaluateNullValue=function(e){switch(e){case t.EQUALS:case t.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case t.GREATER_THAN:case t.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case t.LESS_THAN:case t.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case t.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case t.BLANK:return!0;case t.NOT_BLANK:return!1}return!1},t.prototype.evaluateNonNullValue=function(e,n,o){var r=this.comparator(),i=null!=e[0]?r(e[0],n):0;switch(o.type){case t.EQUALS:return 0===i;case t.NOT_EQUAL:return 0!==i;case t.GREATER_THAN:return i>0;case t.GREATER_THAN_OR_EQUAL:return i>=0;case t.LESS_THAN:return i<0;case t.LESS_THAN_OR_EQUAL:return i<=0;case t.IN_RANGE:var s=r(e[1],n);return this.scalarFilterParams.inRangeInclusive?i>=0&&s<=0:i>0&&s<0;case t.BLANK:return this.isBlank(n);case t.NOT_BLANK:return!this.isBlank(n);default:return console.warn('AG Grid: Unexpected type of filter "'+o.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},t}(Br),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])},e(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(){return Ur=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},Ur.apply(this,arguments)},zr=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},Zr=1/0,Yr=function(e){function t(){var t=e.call(this,"dateFilter")||this;return t.minValidYear=1e3,t.maxValidYear=Zr,t}return jr(t,e),t.prototype.afterGuiAttached=function(t){e.prototype.afterGuiAttached.call(this,t),this.dateCondition1FromComp.afterGuiAttached(t)},t.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.dateFrom,o=t.dateTo,r=t.type;return[n&&Co(n)||null,o&&Co(o)||null].slice(0,this.getNumberOfInputs(r))},t.prototype.comparator=function(){return this.dateFilterParams.comparator?this.dateFilterParams.comparator:this.defaultComparator.bind(this)},t.prototype.defaultComparator=function(e,t){return null==t||t<e?-1:t>e?1:0},t.prototype.setParams=function(t){e.prototype.setParams.call(this,t),this.dateFilterParams=t;var n=function(e,n){if(null!=t[e]){if(!isNaN(t[e]))return null==t[e]?n:Number(t[e]);console.warn("AG Grid: DateFilter "+e+" is not a number")}return n};this.minValidYear=n("minValidYear",1e3),this.maxValidYear=n("maxValidYear",Zr),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),this.createDateComponents()},t.prototype.createDateComponents=function(){var e=this,t=function(t){return new lr(e.getContext(),e.userComponentFactory,{onDateChanged:function(){return e.onUiChanged()},filterParams:e.dateFilterParams},t)};this.dateCondition1FromComp=t(this.eCondition1PanelFrom),this.dateCondition1ToComp=t(this.eCondition1PanelTo),this.dateCondition2FromComp=t(this.eCondition2PanelFrom),this.dateCondition2ToComp=t(this.eCondition2PanelTo),this.addDestroyFunc((function(){e.forEachInput((function(e){return e.destroy()}))}))},t.prototype.setElementValue=function(e,t,n){e.setDate(t)},t.prototype.setElementDisplayed=function(e,t){e.setDisplayed(t)},t.prototype.setElementDisabled=function(e,t){e.setDisabled(t)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===rr.One?"1":"2";return'\n            <div class="ag-filter-body" ref="eCondition'+t+'Body">\n                <div class="ag-filter-from ag-filter-date-from" ref="eCondition'+t+'PanelFrom"></div>\n                <div class="ag-filter-to ag-filter-date-to" ref="eCondition'+t+'PanelTo"></div>\n            </div>'},t.prototype.isConditionUiComplete=function(t){var n=this;if(!e.prototype.isConditionUiComplete.call(this,t))return!1;var o=!0;return this.forEachInput((function(e,r,i,s){var a;i!==t||!o||r>=s||(o=o&&(null!=(a=e.getDate())&&a.getUTCFullYear()>=n.minValidYear&&a.getUTCFullYear()<=n.maxValidYear))})),o},t.prototype.areSimpleModelsEqual=function(e,t){return e.dateFrom===t.dateFrom&&e.dateTo===t.dateTo&&e.type===t.type},t.prototype.getFilterType=function(){return"date"},t.prototype.createCondition=function(e){var t=this.getConditionTypes()[e],n={},o=this.getValues(e);return o.length>0&&(n.dateFrom=yo(o[0])),o.length>1&&(n.dateTo=yo(o[1])),Ur({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:t},n)},t.prototype.resetPlaceholder=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.translate("dateFormatOoo"),n=e("ariaFilterValue","Filter Value");this.forEachInput((function(e){e.setInputPlaceholder(t),e.setInputAriaLabel(n)}))},t.prototype.getInputs=function(){return[[this.dateCondition1FromComp,this.dateCondition1ToComp],[this.dateCondition2FromComp,this.dateCondition2ToComp]]},t.prototype.getValues=function(e){var t=[];return this.forEachInput((function(n,o,r,i){e===r&&o<i&&t.push(n.getDate())})),t},t.DEFAULT_FILTER_OPTIONS=[Wr.EQUALS,Wr.GREATER_THAN,Wr.LESS_THAN,Wr.NOT_EQUAL,Wr.IN_RANGE,Wr.BLANK,Wr.NOT_BLANK],zr([nr("eCondition1PanelFrom")],t.prototype,"eCondition1PanelFrom",void 0),zr([nr("eCondition1PanelTo")],t.prototype,"eCondition1PanelTo",void 0),zr([nr("eCondition2PanelFrom")],t.prototype,"eCondition2PanelFrom",void 0),zr([nr("eCondition2PanelTo")],t.prototype,"eCondition2PanelTo",void 0),zr([K("userComponentFactory")],t.prototype,"userComponentFactory",void 0),t}(Wr),Kr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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){function t(){return null!==e&&e.apply(this,arguments)||this}return Kr(t,e),t.prototype.getDefaultDebounceMs=function(){return 0},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.getTextFromModel=function(e){if(!e)return null;if(null!=e.operator){var t=e,n=t||{},o=n.condition1,r=n.condition2,i=this.optionsFactory.getCustomOption(o.type),s=this.optionsFactory.getCustomOption(r.type);return[this.conditionToString(o,i),t.operator,this.conditionToString(r,s)].join(" ")}var a=e,l=this.optionsFactory.getCustomOption(a.type),u=l||{},c=u.displayKey,p=u.displayName,d=u.numberOfInputs;return c&&p&&0===d?(this.gridOptionsWrapper.getLocaleTextFunc()(c,p),p):this.conditionToString(a,l)},t.prototype.isEventFromFloatingFilter=function(e){return e&&e.afterFloatingFilter},t.prototype.getLastType=function(){return this.lastType},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setLastTypeFromModel=function(e){if(e){var t;if(e.operator)t=e.condition1;else t=e;this.lastType=t.type}else this.lastType=this.optionsFactory.getDefaultOption()},t.prototype.canWeEditAfterModelFromParentFilter=function(e){if(!e)return this.isTypeEditable(this.lastType);if(e.operator)return!1;var t=e;return this.isTypeEditable(t.type)},t.prototype.init=function(e){this.optionsFactory=new cr,this.optionsFactory.init(e.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption(),this.readOnly=!!e.filterParams.readOnly;var t=this.isTypeEditable(this.lastType);this.setEditable(t)},t.prototype.doesFilterHaveSingleInput=function(e){var t=(this.optionsFactory.getCustomOption(e)||{}).numberOfInputs;return null==t||1==t},t.prototype.isTypeEditable=function(e){var t=[Br.IN_RANGE,Br.EMPTY,Br.BLANK,Br.NOT_BLANK];return!!e&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(e)&&t.indexOf(e)<0},t}(tr),Xr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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},Jr=function(e){function t(){return e.call(this,'\n            <div class="ag-floating-filter-input" role="presentation">\n                <ag-input-text-field ref="eReadOnlyText"></ag-input-text-field>\n                <div ref="eDateWrapper" style="display: flex;"></div>\n            </div>')||this}return Xr(t,e),t.prototype.getDefaultFilterOptions=function(){return Yr.DEFAULT_FILTER_OPTIONS},t.prototype.conditionToString=function(e,t){var n=e.type,o=(t||{}).numberOfInputs,r=n==Br.IN_RANGE||2===o,i=Co(e.dateFrom),s=Co(e.dateTo);return r?yo(i,!1)+"-"+yo(s,!1):null!=i?""+yo(i,!1):""+n},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.createDateComponent();var n=this.gridOptionsWrapper.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(n("ariaDateFilterInput","Date Filter Input"))},t.prototype.setEditable=function(e){$t(this.eDateWrapper,e),$t(this.eReadOnlyText.getGui(),!e)},t.prototype.onParentModelChanged=function(t,n){if(!this.isEventFromFloatingFilter(n)){e.prototype.setLastTypeFromModel.call(this,t);var o=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(t);if(this.setEditable(o),o){if(t){var r=t;this.dateComp.setDate(Co(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=yo(this.dateComp.getDate());this.params.parentFilterInstance((function(n){if(n){var o=Co(t);n.onFloatingFilterChanged(e.getLastType()||null,o)}}))},t.prototype.createDateComponent=function(){var e=this,t=Cr.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),n={onDateChanged:G(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams};this.dateComp=new lr(this.getContext(),this.userComponentFactory,n,this.eDateWrapper),this.addDestroyFunc((function(){return e.dateComp.destroy()}))},Qr([K("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Qr([nr("eReadOnlyText")],t.prototype,"eReadOnlyText",void 0),Qr([nr("eDateWrapper")],t.prototype,"eDateWrapper",void 0),t}(qr),$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])},e(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)}}(),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},ti=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 $r(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var t=this,n=this.gridOptionsWrapper.getDocument(),o=this.eDateInput.getInputElement();this.shouldUseBrowserDatePicker(e)&&(o.type="date"),this.addManagedListener(o,"mousedown",(function(){t.eDateInput.isDisabled()||o.focus()})),this.addManagedListener(o,"input",(function(o){o.target===n.activeElement&&(t.eDateInput.isDisabled()||e.onDateChanged())}));var r=e.filterParams||{},i=r.minValidYear,s=r.maxValidYear;i&&(o.min=i+"-01-01"),s&&(o.max=s+"-12-31")},t.prototype.getDate=function(){return Co(this.eDateInput.getValue())},t.prototype.setDate=function(e){this.eDateInput.setValue(yo(e,!1))},t.prototype.setInputPlaceholder=function(e){this.eDateInput.setInputPlaceholder(e)},t.prototype.setDisabled=function(e){this.eDateInput.setDisabled(e)},t.prototype.afterGuiAttached=function(e){e&&e.suppressFocus||this.eDateInput.getInputElement().focus()},t.prototype.shouldUseBrowserDatePicker=function(e){return e.filterParams&&null!=e.filterParams.browserDatePicker?e.filterParams.browserDatePicker:Bt()||Vt()},ei([nr("eDateInput")],t.prototype,"eDateInput",void 0),t}(tr),ni=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),oi=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},ri=function(e){function t(){return e.call(this,"numberFilter")||this}return ni(t,e),t.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.filter,o=t.filterTo,r=t.type;return[null==n?null:n,null==o?null:o].slice(0,this.getNumberOfInputs(r))},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.comparator=function(){return function(e,t){return e===t?0:e<t?1:-1}},t.prototype.setParams=function(t){this.numberFilterParams=t;var n=this.getAllowedCharPattern();if(n){var o={allowedCharPattern:n};this.resetTemplate({"eValue-index0-1":o,"eValue-index1-1":o,"eValue-index0-2":o,"eValue-index1-2":o})}e.prototype.setParams.call(this,t)},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===rr.One?"1":"2",n=this.getAllowedCharPattern()?"ag-input-text-field":"ag-input-number-field";return'\n            <div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n                <'+n+' class="ag-filter-from ag-filter-filter" ref="eValue-index0-'+t+'"></'+n+">\n                <"+n+' class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+t+'"></'+n+">\n            </div>"},t.prototype.getValues=function(e){var t=this,n=[];return this.forEachInput((function(o,r,i,s){e===i&&r<s&&n.push(t.stringToFloat(o.getValue()))})),n},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},t.prototype.getFilterType=function(){return"number"},t.prototype.stringToFloat=function(e){if("number"===typeof e)return e;var t=o(e);return null!=t&&""===t.trim()&&(t=null),this.numberFilterParams.numberParser?this.numberFilterParams.numberParser(t):null==t||"-"===t.trim()?null:parseFloat(t)},t.prototype.createCondition=function(e){var t=this.getConditionTypes()[e],n={filterType:this.getFilterType(),type:t},o=this.getValues(e);return o.length>0&&(n.filter=o[0]),o.length>1&&(n.filterTo=o[1]),n},t.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getAllowedCharPattern=function(){var e=(this.numberFilterParams||{}).allowedCharPattern;return e||(Bt()||Gt()?null:"\\d\\-\\.")},t.DEFAULT_FILTER_OPTIONS=[Wr.EQUALS,Wr.NOT_EQUAL,Wr.LESS_THAN,Wr.LESS_THAN_OR_EQUAL,Wr.GREATER_THAN,Wr.GREATER_THAN_OR_EQUAL,Wr.IN_RANGE,Wr.BLANK,Wr.NOT_BLANK],oi([nr("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),oi([nr("eValue-index1-1")],t.prototype,"eValueTo1",void 0),oi([nr("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),oi([nr("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}(Wr),ii=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),si=function(){return si=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},si.apply(this,arguments)},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 t(){return e.call(this,"textFilter")||this}return ii(t,e),t.trimInput=function(e){var t=e&&e.trim();return""===t?e:t},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.setParams=function(n){e.prototype.setParams.call(this,n),this.textFilterParams=n,this.matcher=this.getTextMatcher(),this.formatter=this.textFilterParams.textFormatter||(this.textFilterParams.caseSensitive?t.DEFAULT_FORMATTER:t.DEFAULT_LOWERCASE_FORMATTER)},t.prototype.getTextMatcher=function(){var e=this.textFilterParams.textCustomComparator;return e?(Wo.doOnce((function(){return console.warn("AG Grid - textCustomComparator is deprecated, use textMatcher instead.")}),"textCustomComparator.deprecated"),function(t){var n=t.filterOption,o=t.value,r=t.filterText;return e(n,o,r)}):this.textFilterParams.textMatcher||t.DEFAULT_MATCHER},t.prototype.createCondition=function(e){var t=this.getConditionTypes()[e],n={filterType:this.getFilterType(),type:t},o=this.getValues(e);return o.length>0&&(n.filter=o[0]),o.length>1&&(n.filterTo=o[1]),n},t.prototype.getFilterType=function(){return"text"},t.prototype.areSimpleModelsEqual=function(e,t){return e.filter===t.filter&&e.filterTo===t.filterTo&&e.type===t.type},t.prototype.getInputs=function(){return[[this.eValueFrom1,this.eValueTo1],[this.eValueFrom2,this.eValueTo2]]},t.prototype.getValues=function(e){var n=this,r=[];return this.forEachInput((function(i,s,a,l){if(e===a&&s<l){var u=o(i.getValue()),c=(n.textFilterParams.trimInput?t.trimInput(u):u)||null;r.push(c),i.setValue(c,!0)}})),r},t.prototype.getDefaultFilterOptions=function(){return t.DEFAULT_FILTER_OPTIONS},t.prototype.createValueTemplate=function(e){var t=e===rr.One?"1":"2";return'\n            <div class="ag-filter-body" ref="eCondition'+t+'Body" role="presentation">\n                <ag-input-text-field class=".ag-filter-from ag-filter-filter" ref="eValue-index0-'+t+'"></ag-input-text-field>\n                <ag-input-text-field class="ag-filter-to ag-filter-filter" ref="eValue-index1-'+t+'"></ag-input-text-field>\n            </div>'},t.prototype.mapValuesFromModel=function(e){var t=e||{},n=t.filter,o=t.filterTo,r=t.type;return[n||null,o||null].slice(0,this.getNumberOfInputs(r))},t.prototype.evaluateNullValue=function(e){var t=[Br.NOT_EQUAL,Br.NOT_CONTAINS,Br.BLANK];return!!e&&t.indexOf(e)>=0},t.prototype.evaluateNonNullValue=function(e,t,n,o){var r=this,i=e.map((function(e){return r.formatter(e)}))||[],s=this.formatter(t),a=this.textFilterParams,l=a.api,u=a.colDef,c=a.column,p=a.columnApi,d=a.context,h=a.textFormatter;if(n.type===Br.BLANK)return this.isBlank(t);if(n.type===Br.NOT_BLANK)return!this.isBlank(t);var f={api:l,colDef:u,column:c,columnApi:p,context:d,node:o.node,data:o.data,filterOption:n.type,value:s,textFormatter:h};return i.some((function(e){return r.matcher(si(si({},f),{filterText:e}))}))},t.DEFAULT_FILTER_OPTIONS=[Br.CONTAINS,Br.NOT_CONTAINS,Br.EQUALS,Br.NOT_EQUAL,Br.STARTS_WITH,Br.ENDS_WITH,Br.BLANK,Br.NOT_BLANK],t.DEFAULT_FORMATTER=function(e){return e},t.DEFAULT_LOWERCASE_FORMATTER=function(e){return null==e?null:e.toString().toLowerCase()},t.DEFAULT_MATCHER=function(e){var n=e.filterOption,o=e.value,r=e.filterText;if(null==r)return!1;switch(n){case t.CONTAINS:return o.indexOf(r)>=0;case t.NOT_CONTAINS:return o.indexOf(r)<0;case t.EQUALS:return o===r;case t.NOT_EQUAL:return o!=r;case t.STARTS_WITH:return 0===o.indexOf(r);case t.ENDS_WITH:var i=o.lastIndexOf(r);return i>=0&&i===o.length-r.length;default:return!1}},ai([nr("eValue-index0-1")],t.prototype,"eValueFrom1",void 0),ai([nr("eValue-index1-1")],t.prototype,"eValueTo1",void 0),ai([nr("eValue-index0-2")],t.prototype,"eValueFrom2",void 0),ai([nr("eValue-index1-2")],t.prototype,"eValueTo2",void 0),t}(Br),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])},e(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 null!==e&&e.apply(this,arguments)||this}return ui(t,e),t.prototype.postConstruct=function(){this.resetTemplate()},t.prototype.resetTemplate=function(e){this.setTemplate('\n            <div class="ag-floating-filter-input" role="presentation">\n                <ag-input-text-field ref="eFloatingFilterInput"></ag-input-text-field>\n            </div>\n        ',e)},t.prototype.getDefaultDebounceMs=function(){return 500},t.prototype.onParentModelChanged=function(e,t){this.isEventFromFloatingFilter(t)||(this.setLastTypeFromModel(e),this.eFloatingFilterInput.setValue(this.getTextFromModel(e)),this.setEditable(this.canWeEditAfterModelFromParentFilter(e)))},t.prototype.init=function(t){e.prototype.init.call(this,t),this.params=t,this.applyActive=Cr.isUseApplyButton(this.params.filterParams);var n=this.params.filterParams.allowedCharPattern;if(null!=n&&this.resetTemplate({eFloatingFilterInput:{allowedCharPattern:n}}),!this.isReadOnly()){var o=Cr.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),r=G(this.syncUpWithParentFilter.bind(this),o),i=this.eFloatingFilterInput.getGui();this.addManagedListener(i,"input",r),this.addManagedListener(i,"keypress",r),this.addManagedListener(i,"keydown",r)}var s=t.column.getDefinition();(this.isReadOnly()||s.filterParams&&s.filterParams.filterOptions&&1===s.filterParams.filterOptions.length&&"inRange"===s.filterParams.filterOptions[0])&&this.eFloatingFilterInput.setDisabled(!0);var a=this.columnModel.getDisplayNameForColumn(t.column,"header",!0),l=this.gridOptionsWrapper.getLocaleTextFunc();this.eFloatingFilterInput.setInputAriaLabel(a+" "+l("ariaFilterInput","Filter Input"))},t.prototype.syncUpWithParentFilter=function(e){var t=this,n=e.key===dr.ENTER;if(!this.applyActive||n){var o=this.eFloatingFilterInput.getValue();this.params.filterParams.trimInput&&(o=li.trimInput(o),this.eFloatingFilterInput.setValue(o,!0)),this.params.parentFilterInstance((function(e){e&&e.onFloatingFilterChanged(t.getLastType()||null,o||null)}))}},t.prototype.conditionToString=function(e,t){var n=(t||{}).numberOfInputs;return e.type==Br.IN_RANGE||2===n?e.filter+"-"+e.filterTo:null!=e.filter?""+e.filter:""+e.type},t.prototype.setEditable=function(e){this.eFloatingFilterInput.setDisabled(!e)},ci([K("columnModel")],t.prototype,"columnModel",void 0),ci([nr("eFloatingFilterInput")],t.prototype,"eFloatingFilterInput",void 0),ci([z],t.prototype,"postConstruct",null),t}(qr),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])},e(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){function t(){return null!==e&&e.apply(this,arguments)||this}return di(t,e),t.prototype.getDefaultFilterOptions=function(){return ri.DEFAULT_FILTER_OPTIONS},t}(pi),fi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),gi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fi(t,e),t.prototype.getDefaultFilterOptions=function(){return li.DEFAULT_FILTER_OPTIONS},t}(pi),mi=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new ne,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)!Lo(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}(),vi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),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},Ci=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastMovingChanged=0,t}return vi(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.refresh=function(e){return this.params=e,this.workOutTemplate()==this.currentTemplate&&(this.workOutShowMenu()==this.currentShowMenu&&(this.workOutSort()==this.currentSort&&(this.setDisplayName(e),!0)))},t.prototype.workOutTemplate=function(){var e=le(this.params.template,t.TEMPLATE);return e=e&&e.trim?e.trim():e},t.prototype.init=function(e){this.params=e,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(e.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(e)},t.prototype.setDisplayName=function(e){if(this.currentDisplayName!=e.displayName){this.currentDisplayName=e.displayName;var t=Ke(this.currentDisplayName);this.eText&&(this.eText.innerHTML=t)}},t.prototype.setupIcons=function(e){this.addInIcon("sortAscending",this.eSortAsc,e),this.addInIcon("sortDescending",this.eSortDesc,e),this.addInIcon("sortUnSort",this.eSortNone,e),this.addInIcon("menu",this.eMenu,e),this.addInIcon("filter",this.eFilter,e)},t.prototype.addInIcon=function(e,t,n){if(null!=t){var o=Ao(e,this.gridOptionsWrapper,n);o&&t.appendChild(o)}},t.prototype.setupTap=function(){var e=this,t=this.gridOptionsWrapper;if(!t.isSuppressTouch()){var n=new mi(this.getGui(),!0),o=t.isSuppressMenuHide(),i=o&&r(this.eMenu),s=i?new mi(this.eMenu,!0):n;if(this.params.enableMenu){var a=i?"EVENT_TAP":"EVENT_LONG_TAP";this.addManagedListener(s,mi[a],(function(n){t.getApi().showColumnMenuAfterMouseClick(e.params.column,n.touchStart)}))}if(this.params.enableSorting){this.addManagedListener(n,mi.EVENT_TAP,(function(t){var n=t.touchStart.target;o&&e.eMenu.contains(n)||e.sortController.progressSort(e.params.column,!1,"uiColumnSorted")}))}this.addDestroyFunc((function(){return n.destroy()})),i&&this.addDestroyFunc((function(){return s.destroy()}))}},t.prototype.workOutShowMenu=function(){var e=!this.gridOptionsWrapper.isSuppressMenuHide(),t=Wt()&&e;return this.params.enableMenu&&!t},t.prototype.setMenu=function(){var e=this;if(this.eMenu)if(this.currentShowMenu=this.workOutShowMenu(),this.currentShowMenu){var t=this.gridOptionsWrapper.isSuppressMenuHide();this.addManagedListener(this.eMenu,"click",(function(){return e.showMenu(e.eMenu)})),this.eMenu.classList.toggle("ag-header-menu-always-show",t)}else hn(this.eMenu)},t.prototype.showMenu=function(e){e||(e=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,e,"columnMenu")},t.prototype.removeSortIcons=function(){hn(this.eSortAsc),hn(this.eSortDesc),hn(this.eSortNone),hn(this.eSortOrder)},t.prototype.workOutSort=function(){return this.params.enableSorting},t.prototype.setupSort=function(){var e=this;if(this.currentSort=this.params.enableSorting,this.currentSort){var t=this.gridOptionsWrapper.isMultiSortKeyCtrl();this.addManagedListener(this.params.column,ae.EVENT_MOVING_CHANGED,(function(){e.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addManagedListener(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.addManagedListener(this.params.column,ae.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.onSortChanged(),this.addManagedListener(this.eventService,Ve.EVENT_SORT_CHANGED,this.setMultiSortOrder.bind(this)),this.setMultiSortOrder()}else this.removeSortIcons()},t.prototype.onSortChanged=function(){if(this.addOrRemoveCssClass("ag-header-cell-sorted-asc",this.params.column.isSortAscending()),this.addOrRemoveCssClass("ag-header-cell-sorted-desc",this.params.column.isSortDescending()),this.addOrRemoveCssClass("ag-header-cell-sorted-none",this.params.column.isSortNone()),this.eSortAsc&&this.eSortAsc.classList.toggle("ag-hidden",!this.params.column.isSortAscending()),this.eSortDesc&&this.eSortDesc.classList.toggle("ag-hidden",!this.params.column.isSortDescending()),this.eSortNone){var e=!this.params.column.getColDef().unSortIcon&&!this.gridOptionsWrapper.isUnSortIcon();this.eSortNone.classList.toggle("ag-hidden",e||!this.params.column.isSortNone())}},t.prototype.setMultiSortOrder=function(){if(this.eSortOrder){var e=this.params.column,t=this.sortController.getColumnsWithSortingOrdered(),n=t.indexOf(e),o=t.length>1,r=e.isSorting()&&o;$t(this.eSortOrder,r),n>=0?this.eSortOrder.innerHTML=(n+1).toString():dn(this.eSortOrder)}},t.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,ae.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},t.prototype.onFilterChanged=function(){var e=this.params.column.isFilterActive();this.eFilter.classList.toggle("ag-hidden",!e)},t.TEMPLATE='<div class="ag-cell-label-container" role="presentation">\n            <span ref="eMenu" class="ag-header-icon ag-header-cell-menu-button" aria-hidden="true"></span>\n            <div ref="eLabel" class="ag-header-cell-label" role="presentation">\n                <span ref="eText" class="ag-header-cell-text"></span>\n                <span ref="eFilter" class="ag-header-icon ag-header-label-icon ag-filter-icon" aria-hidden="true"></span>\n                <span ref="eSortOrder" class="ag-header-icon ag-header-label-icon ag-sort-order" aria-hidden="true"></span>\n                <span ref="eSortAsc" class="ag-header-icon ag-header-label-icon ag-sort-ascending-icon" aria-hidden="true"></span>\n                <span ref="eSortDesc" class="ag-header-icon ag-header-label-icon ag-sort-descending-icon" aria-hidden="true"></span>\n                <span ref="eSortNone" class="ag-header-icon ag-header-label-icon ag-sort-none-icon" aria-hidden="true"></span>\n            </div>\n        </div>',yi([K("sortController")],t.prototype,"sortController",void 0),yi([K("menuFactory")],t.prototype,"menuFactory",void 0),yi([nr("eFilter")],t.prototype,"eFilter",void 0),yi([nr("eSortAsc")],t.prototype,"eSortAsc",void 0),yi([nr("eSortDesc")],t.prototype,"eSortDesc",void 0),yi([nr("eSortNone")],t.prototype,"eSortNone",void 0),yi([nr("eSortOrder")],t.prototype,"eSortOrder",void 0),yi([nr("eMenu")],t.prototype,"eMenu",void 0),yi([nr("eLabel")],t.prototype,"eLabel",void 0),yi([nr("eText")],t.prototype,"eText",void 0),t}(tr),wi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),_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},bi=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return wi(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){this.params=e,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},t.prototype.checkWarnings=function(){if(this.params.template){D((function(){return console.warn("AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")}),"HeaderGroupComp.templateNotSupported")}},t.prototype.setupExpandIcons=function(){var e=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var t=function(t){if(!Te(t)){var n=!e.params.columnGroup.isExpanded();e.columnModel.setColumnGroupOpened(e.params.columnGroup.getProvidedColumnGroup(),n,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,t),this.addTouchAndClickListeners(this.eOpenIcon,t);var n=function(e){Oe(e)};this.addManagedListener(this.eCloseIcon,"dblclick",n),this.addManagedListener(this.eOpenIcon,"dblclick",n),this.addManagedListener(this.getGui(),"dblclick",t),this.updateIconVisibility();var o=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(o,_e.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(o,_e.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},t.prototype.addTouchAndClickListeners=function(e,t){var n=new mi(e,!0);this.addManagedListener(n,mi.EVENT_TAP,t),this.addDestroyFunc((function(){return n.destroy()})),this.addManagedListener(e,"click",t)},t.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var e=this.params.columnGroup.isExpanded();$t(this.eOpenIcon,e),$t(this.eCloseIcon,!e)}else $t(this.eOpenIcon,!1),$t(this.eCloseIcon,!1)},t.prototype.addInIcon=function(e,t){var n=Ao(e,this.gridOptionsWrapper,null);n&&this.getRefElement(t).appendChild(n)},t.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return $t(this.eOpenIcon,!1),void $t(this.eCloseIcon,!1)},t.prototype.setupLabel=function(){var e=this.params.displayName;if(r(e)){var t=Ke(e);this.getRefElement("agLabel").innerHTML=t}},t.TEMPLATE='<div class="ag-header-group-cell-label" ref="agContainer" role="presentation">\n            <span ref="agLabel" class="ag-header-group-text" role="presentation"></span>\n            <span ref="agOpened" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-expanded"></span>\n            <span ref="agClosed" class="ag-header-icon ag-header-expand-icon ag-header-expand-icon-collapsed"></span>\n        </div>',_i([K("columnModel")],t.prototype,"columnModel",void 0),_i([nr("agOpened")],t.prototype,"eOpenIcon",void 0),_i([nr("agClosed")],t.prototype,"eCloseIcon",void 0),t}(tr),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])},e(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)}}(),Si=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ei(t,e),t.prototype.isPopup=function(){return!0},t.prototype.setParentComponent=function(t){t.addCssClass("ag-has-popup"),e.prototype.setParentComponent.call(this,t)},t.prototype.destroy=function(){var t=this.parentComponent;t&&t.isAlive()&&t.getGui().classList.remove("ag-has-popup"),e.prototype.destroy.call(this)},t}(tr),Ri=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Oi=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(e){function t(){return e.call(this,t.TEMPLATE)||this}return Ri(t,e),t.prototype.init=function(e){this.params=e,this.focusAfterAttached=e.cellStartedEdit,this.eTextArea.setMaxLength(e.maxLength||200).setCols(e.cols||60).setRows(e.rows||10),r(e.value)&&this.eTextArea.setValue(e.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this))},t.prototype.onKeyDown=function(e){var t=e.key;(t===dr.LEFT||t===dr.UP||t===dr.RIGHT||t===dr.DOWN||e.shiftKey&&t===dr.ENTER)&&e.stopPropagation()},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},t.prototype.getValue=function(){return this.params.parseValue(this.eTextArea.getValue())},t.TEMPLATE='<div class="ag-large-text" tabindex="0">\n            <ag-input-text-area ref="eTextArea" class="ag-large-text-input"></ag-input-text-area>\n        </div>',Oi([nr("eTextArea")],t.prototype,"eTextArea",void 0),t}(Si),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])},e(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},Di=function(e){function t(){var t=e.call(this,'<div class="ag-cell-edit-wrapper"><ag-select class="ag-cell-editor" ref="eSelect"></ag-select></div>')||this;return t.startedByEnter=!1,t}return Pi(t,e),t.prototype.init=function(e){var t=this;if(this.focusAfterAttached=e.cellStartedEdit,i(e.values))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=e.eventKey&&e.eventKey===dr.ENTER;var n=!1;e.values.forEach((function(o){var r={value:o},i=t.valueFormatterService.formatValue(e.column,null,null,o),s=null!==i&&void 0!==i;r.text=s?i:o,t.eSelect.addOption(r),n=n||e.value===o})),n?this.eSelect.setValue(e.value,!0):e.values.length&&this.eSelect.setValue(e.values[0],!0),this.gridOptionsWrapper.isFullRowEdit()||this.eSelect.onValueChange((function(){return e.stopEditing()}))}},t.prototype.afterGuiAttached=function(){this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&this.eSelect.showPicker()},t.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},t.prototype.getValue=function(){return this.eSelect.getValue()},t.prototype.isPopup=function(){return!1},Ai([K("valueFormatterService")],t.prototype,"valueFormatterService",void 0),Ai([nr("eSelect")],t.prototype,"eSelect",void 0),t}(Si),xi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Ni=function(e){function t(){var t=e.call(this)||this;return D((function(){return console.warn('AG Grid: The PopupSelectCellEditor (agPopupSelectCellEditor) is deprecated. Instead use {cellEditor: "agSelectCellEditor", cellEditorPopup: true} ')}),"PopupSelectCellEditor.deprecated"),t}return xi(t,e),t.prototype.isPopup=function(){return!0},t}(Di),Mi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),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},Li=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Mi(t,e),t.prototype.init=function(e){this.params=e;var t,n=this.eInput;e.cellStartedEdit?(this.focusAfterAttached=!0,e.eventKey===dr.BACKSPACE||e.eventKey===dr.DELETE?t="":e.charPress?t=e.charPress:(t=this.getStartValue(e),e.eventKey!==dr.F2&&(this.highlightAllOnFocus=!0))):(this.focusAfterAttached=!1,t=this.getStartValue(e)),null!=t&&n.setValue(t,!0),this.addManagedListener(n.getGui(),"keydown",(function(e){var t=e.key;t!==dr.PAGE_UP&&t!==dr.PAGE_DOWN||e.preventDefault()}))},t.prototype.afterGuiAttached=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.eInput;if(t.setInputAriaLabel(e("ariaInputEditor","Input Editor")),this.focusAfterAttached){Ht()||t.getFocusableElement().focus();var n=t.getInputElement();if(this.highlightAllOnFocus)n.select();else{var o=t.getValue(),i=r(o)&&o.length||0;i&&n.setSelectionRange(i,i)}}},t.prototype.focusIn=function(){var e=this.eInput,t=e.getFocusableElement(),n=e.getInputElement();t.focus(),n.select()},t.prototype.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>',Ii([nr("eInput")],t.prototype,"eInput",void 0),t}(Si),Fi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),ki=function(e){function t(){var t=e.call(this)||this;return D((function(){return console.warn('AG Grid: The PopupTextCellEditor (agPopupTextCellEditor) is deprecated. Instead use {cellEditor: "agTextCellEditor", cellEditorPopup: true} ')}),"PopupTextCellEditor.deprecated"),t}return Fi(t,e),t.prototype.isPopup=function(){return!0},t}(Li),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])},e(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 t(){var n=e.call(this,t.TEMPLATE)||this;return n.refreshCount=0,n}return Gi(t,e),t.prototype.init=function(e){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(e)},t.prototype.showDelta=function(e,t){var n=Math.abs(t),o=e.formatValue(n),i=r(o)?o:n,s=t>=0;this.eDelta.innerHTML=s?"\u2191"+i:"\u2193"+i,this.eDelta.classList.toggle("ag-value-change-delta-up",s),this.eDelta.classList.toggle("ag-value-change-delta-down",!s)},t.prototype.setTimerToRemoveDelta=function(){var e=this;this.refreshCount++;var t=this.refreshCount;window.setTimeout((function(){t===e.refreshCount&&e.hideDeltaValue()}),2e3)},t.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),dn(this.eDelta)},t.prototype.refresh=function(e){var t=e.value;if(t===this.lastValue)return!1;if(r(e.valueFormatted)?this.eValue.innerHTML=e.valueFormatted:r(e.value)?this.eValue.innerHTML=t:dn(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering())return!1;if("number"===typeof t&&"number"===typeof this.lastValue){var n=t-this.lastValue;this.showDelta(e,n)}return this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=t,!0},t.TEMPLATE='<span><span class="ag-value-change-delta"></span><span class="ag-value-change-value"></span></span>',Hi([K("filterManager")],t.prototype,"filterManager",void 0),t}(tr),Vi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Wi=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(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 Vi(t,e),t.prototype.init=function(e){this.refresh(e)},t.prototype.addSlideAnimation=function(){var e=this;this.refreshCount++;var t=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=gn('<span class="ag-value-slide-previous ag-value-slide-out"></span>'),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){t===e.refreshCount&&e.ePrevious.classList.add("ag-value-slide-out-end")}),50),window.setTimeout((function(){t===e.refreshCount&&(e.getGui().removeChild(e.ePrevious),e.ePrevious=null)}),3e3)},t.prototype.refresh=function(e){var t=e.value;return i(t)&&(t=""),t!==this.lastValue&&(!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=t,r(e.valueFormatted)?this.eCurrent.innerHTML=e.valueFormatted:r(e.value)?this.eCurrent.innerHTML=t:dn(this.eCurrent),!0))},t.TEMPLATE='<span>\n            <span class="ag-value-slide-current"></span>\n        </span>',Wi([K("filterManager")],t.prototype,"filterManager",void 0),t}(tr);(Hr=t.RowHighlightPosition||(t.RowHighlightPosition={}))[Hr.Above=0]="Above",Hr[Hr.Below=1]="Below";var Ui,zi,Zi,Yi=function(){function e(t){this.rowIndex=null,this.key=null,this.childrenMapped={},this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=e.OBJECT_ID_SEQUENCE++,this.__autoHeights={},this.alreadyRendered=!1,this.highlighted=null,this.selected=!1,this.onRowHeightChangedDebounced=G(this.onRowHeightChanged.bind(this),100),this.beans=t}return e.prototype.setData=function(e){this.setDataCommon(e,!1)},e.prototype.updateData=function(e){this.setDataCommon(e,!0)},e.prototype.setDataCommon=function(e,t){var n=this.data;this.data=e,this.beans.valueCache.onDataChanged(),this.updateDataOnDetailNode(),this.checkRowSelectable();var o=this.createDataChangedEvent(e,n,t);this.dispatchLocalEvent(o)},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.getRowIndexString=function(){return this.rowPinned===oe.PINNED_TOP?"t-"+this.rowIndex:this.rowPinned===oe.PINNED_BOTTOM?"b-"+this.rowIndex:this.rowIndex.toString()},e.prototype.createDaemonNode=function(){var t=new e(this.beans);return t.id=this.id,t.data=this.data,t.daemon=!0,t.selected=this.selected,t.level=this.level,t},e.prototype.setDataAndId=function(e,t){var n=r(this.id)?this.createDaemonNode():null,o=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),this.beans.selectionService.syncInRowNode(this,n),this.checkRowSelectable();var i=this.createDataChangedEvent(e,o,!1);this.dispatchLocalEvent(i)},e.prototype.checkRowSelectable=function(){var e=this.beans.gridOptionsWrapper.getIsRowSelectableFunc();this.setRowSelectable(!e||e(this))},e.prototype.setRowSelectable=function(t){this.selectable!==t&&(this.selectable=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_SELECTABLE_CHANGED)))},e.prototype.setId=function(t){var n=this.beans.gridOptionsWrapper.getRowIdFunc();if(n)if(this.data){var o=this.getGroupKeys(!0);this.id=n({data:this.data,parentKeys:o.length>0?o:void 0,level:this.level}),null!==this.id&&"string"===typeof this.id&&this.id.startsWith(e.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with "+e.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for AG Grid's row grouping feature."),null!==this.id&&"string"!==typeof this.id&&(this.id=""+this.id)}else this.id=void 0;else this.id=t},e.prototype.getGroupKeys=function(e){void 0===e&&(e=!1);var t=[],n=this;for(e&&(n=n.parent);n&&n.level>=0;)t.push(n.key),n=n.parent;return t.reverse(),t},e.prototype.isPixelInRange=function(e){return!(!r(this.rowTop)||!r(this.rowHeight))&&(e>=this.rowTop&&e<this.rowTop+this.rowHeight)},e.prototype.setFirstChild=function(t){this.firstChild!==t&&(this.firstChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_FIRST_CHILD_CHANGED)))},e.prototype.setLastChild=function(t){this.lastChild!==t&&(this.lastChild=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_LAST_CHILD_CHANGED)))},e.prototype.setChildIndex=function(t){this.childIndex!==t&&(this.childIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_CHILD_INDEX_CHANGED)))},e.prototype.setRowTop=function(t){this.oldRowTop=this.rowTop,this.rowTop!==t&&(this.rowTop=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_TOP_CHANGED)),this.setDisplayed(null!==t))},e.prototype.clearRowTopAndRowIndex=function(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)},e.prototype.setDisplayed=function(t){this.displayed!==t&&(this.displayed=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DISPLAYED_CHANGED)))},e.prototype.setDragging=function(t){this.dragging!==t&&(this.dragging=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_DRAGGING_CHANGED)))},e.prototype.setHighlighted=function(t){t!==this.highlighted&&(this.highlighted=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HIGHLIGHT_CHANGED)))},e.prototype.setAllChildrenCount=function(t){this.allChildrenCount!==t&&(this.allChildrenCount=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ALL_CHILDREN_COUNT_CHANGED)))},e.prototype.setMaster=function(t){this.master!==t&&(this.master&&!t&&(this.expanded=!1),this.master=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_MASTER_CHANGED)))},e.prototype.setGroup=function(t){this.group!==t&&(this.group&&!t&&(this.expanded=!1),this.group=t,this.updateHasChildren(),this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_GROUP_CHANGED)))},e.prototype.setRowHeight=function(t,n){void 0===n&&(n=!1),this.rowHeight=t,this.rowHeightEstimated=n,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HEIGHT_CHANGED))},e.prototype.setRowAutoHeight=function(e,t){this.__autoHeights||(this.__autoHeights={}),this.__autoHeights[t.getId()]=e,null!=e&&(null==this.checkAutoHeightsDebounced&&(this.checkAutoHeightsDebounced=G(this.checkAutoHeights.bind(this),1)),this.checkAutoHeightsDebounced())},e.prototype.checkAutoHeights=function(){var e=!1,t=!0,n=0,o=this.__autoHeights;null!=o&&(this.beans.columnModel.getAllDisplayedAutoHeightCols().forEach((function(r){var i=o[r.getId()];null!=i?(t=!1,i>n&&(n=i)):e=!0})),e||((t||n<10)&&(n=this.beans.gridOptionsWrapper.getRowHeightForNode(this).height),n!=this.rowHeight&&(this.setRowHeight(n),this.onRowHeightChangedDebounced())))},e.prototype.onRowHeightChanged=function(){var e=this.beans.rowModel;e.onRowHeightChanged&&e.onRowHeightChanged()},e.prototype.setRowIndex=function(t){this.rowIndex!==t&&(this.rowIndex=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_ROW_INDEX_CHANGED)))},e.prototype.setUiLevel=function(t){this.uiLevel!==t&&(this.uiLevel=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_UI_LEVEL_CHANGED)))},e.prototype.setExpanded=function(t,n){if(this.expanded!==t){this.expanded=t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_EXPANDED_CHANGED));var o=Object.assign({},this.createGlobalRowEvent(Ve.EVENT_ROW_GROUP_OPENED),{expanded:t,event:n||null});this.beans.rowNodeEventThrottle.dispatchExpanded(o),this.beans.gridOptionsWrapper.isGroupIncludeFooter()&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},e.prototype.createGlobalRowEvent=function(e){return{type:e,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi()}},e.prototype.dispatchLocalEvent=function(e){this.eventService&&this.eventService.dispatchEvent(e)},e.prototype.setDataValue=function(e,t,n){var o=this.beans.columnModel.getPrimaryColumn(e),r=this.beans.valueService.getValue(o,this),i=this.beans.valueService.setValue(this,o,t,n);return this.dispatchCellChangedEvent(o,t,r),i},e.prototype.setGroupValue=function(e,t){var n=this.beans.columnModel.getGridColumn(e);i(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=w([this.aggData,e]),o=this.aggData;this.aggData=e,this.eventService&&n.forEach((function(e){var n=t.beans.columnModel.getGridColumn(e),r=t.aggData?t.aggData[e]:void 0,i=o?o[e]:void 0;t.dispatchCellChangedEvent(n,r,i)}))},e.prototype.updateHasChildren=function(){var t=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;t!==this.__hasChildren&&(this.__hasChildren=!!t,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(e.EVENT_HAS_CHILDREN_CHANGED)))},e.prototype.hasChildren=function(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren},e.prototype.isEmptyRowGroupNode=function(){return this.group&&s(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.footer||this.master)},e.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},e.prototype.depthFirstSearch=function(e){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(t){return t.depthFirstSearch(e)})),e(this)},e.prototype.calculateSelectedFromChildren=function(){var e,t,n=!1,o=!1,r=!1;if(null===(e=this.childrenAfterGroup)||void 0===e?void 0:e.length){for(var i=0;i<this.childrenAfterGroup.length;i++){var s=this.childrenAfterGroup[i];if(s.selectable)switch(s.isSelected()){case!0:n=!0;break;case!1:o=!0;break;default:r=!0}}t=r?void 0:!(!n||o)||!(!n&&o)&&void 0,this.selectThisNode(t)}},e.prototype.setSelectedInitialValue=function(e){this.selected=e},e.prototype.setSelected=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),this.setSelectedParams({newValue:e,clearSelection:t,suppressFinishActions:n,rangeSelect:!1})},e.prototype.isRowPinned=function(){return this.rowPinned===oe.PINNED_TOP||this.rowPinned===oe.PINNED_BOTTOM},e.prototype.setSelectedParams=function(e){var t,n=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),o=!0===e.newValue,r=!0===e.clearSelection,i=!0===e.suppressFinishActions,s=!0===e.rangeSelect,a=n&&!0===e.groupSelectsFiltered;if(void 0===this.id)return console.warn("AG Grid: cannot select node until id for node is known"),0;if(this.rowPinned)return console.warn("AG Grid: cannot select pinned rows"),0;if(this.footer)return this.sibling.setSelectedParams(e);if(s&&this.beans.selectionService.getLastSelectedNode()){var l=this.beans.selectionService.getLastSelectedNode()!==this,u=this.beans.gridOptionsWrapper.isRowSelectionMulti();if(l&&u){var c=this.doRowRangeSelection(e.newValue);return this.beans.selectionService.setLastSelectedNode(this),c}}var p=0;a&&this.group||this.selectThisNode(o)&&p++;if(n&&(null===(t=this.childrenAfterGroup)||void 0===t?void 0:t.length)&&(p+=this.selectChildNodes(o,a)),!i){if(o&&(r||!this.beans.gridOptionsWrapper.isRowSelectionMulti())&&(p+=this.beans.selectionService.clearOtherNodes(this)),p>0){this.beans.selectionService.updateGroupsFromChildrenSelections();var d={type:Ve.EVENT_SELECTION_CHANGED,api:this.beans.gridApi,columnApi:this.beans.columnApi};this.beans.eventService.dispatchEvent(d)}o&&this.beans.selectionService.setLastSelectedNode(this)}return p},e.prototype.doRowRangeSelection=function(e){var t=this;void 0===e&&(e=!0);var n=this.beans.gridOptionsWrapper.isGroupSelectsChildren(),o=this.beans.selectionService.getLastSelectedNode(),r=this.beans.rowModel.getNodesInRangeForSelection(this,o),i=0;r.forEach((function(o){o.group&&n||!1===e&&t===o||o.selectThisNode(e)&&i++})),this.beans.selectionService.updateGroupsFromChildrenSelections();var s={type:Ve.EVENT_SELECTION_CHANGED,api:this.beans.gridApi,columnApi:this.beans.columnApi};return this.beans.eventService.dispatchEvent(s),i},e.prototype.isParentOfNode=function(e){for(var t=this.parent;t;){if(t===e)return!0;t=t.parent}return!1},e.prototype.selectThisNode=function(t){var n=!this.selectable&&t,o=this.selected===t;if(n||o)return!1;this.selected=t,this.eventService&&this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_ROW_SELECTED));var r=this.createGlobalRowEvent(Ve.EVENT_ROW_SELECTED);return this.beans.eventService.dispatchEvent(r),!0},e.prototype.selectChildNodes=function(e,t){var n=t?this.childrenAfterAggFilter:this.childrenAfterGroup;if(i(n))return 0;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 ne),this.eventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.eventService&&(this.eventService.removeEventListener(e,t),this.eventService.noRegisteredListenersExist()&&(this.eventService=null))},e.prototype.onMouseEnter=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_ENTER))},e.prototype.onMouseLeave=function(){this.dispatchLocalEvent(this.createLocalRowEvent(e.EVENT_MOUSE_LEAVE))},e.prototype.getFirstChildOfFirstChild=function(e){for(var t=this,n=!0,o=!1,i=null;n&&!o;){var s=t.parent;r(s)&&t.firstChild?s.rowGroupColumn===e&&(o=!0,i=s):n=!1,t=s}return o?i:null},e.prototype.isFullWidthCell=function(){var e=this.beans.gridOptionsWrapper.getIsFullWidthCellFunc();return!!e&&e({rowNode:this})},e.prototype.getRoute=function(){if(null!=this.key){for(var e=[],t=this;null!=t.key;)e.push(t.key),t=t.parent;return e.reverse()}},e.ID_PREFIX_ROW_GROUP="row-group-",e.ID_PREFIX_TOP_PINNED="t-",e.ID_PREFIX_BOTTOM_PINNED="b-",e.OBJECT_ID_SEQUENCE=0,e.EVENT_ROW_SELECTED="rowSelected",e.EVENT_DATA_CHANGED="dataChanged",e.EVENT_CELL_CHANGED="cellChanged",e.EVENT_ALL_CHILDREN_COUNT_CHANGED="allChildrenCountChanged",e.EVENT_MASTER_CHANGED="masterChanged",e.EVENT_GROUP_CHANGED="groupChanged",e.EVENT_MOUSE_ENTER="mouseEnter",e.EVENT_MOUSE_LEAVE="mouseLeave",e.EVENT_HEIGHT_CHANGED="heightChanged",e.EVENT_TOP_CHANGED="topChanged",e.EVENT_DISPLAYED_CHANGED="displayedChanged",e.EVENT_FIRST_CHILD_CHANGED="firstChildChanged",e.EVENT_LAST_CHILD_CHANGED="lastChildChanged",e.EVENT_CHILD_INDEX_CHANGED="childIndexChanged",e.EVENT_ROW_INDEX_CHANGED="rowIndexChanged",e.EVENT_EXPANDED_CHANGED="expandedChanged",e.EVENT_HAS_CHILDREN_CHANGED="hasChildrenChanged",e.EVENT_SELECTABLE_CHANGED="selectableChanged",e.EVENT_UI_LEVEL_CHANGED="uiLevelChanged",e.EVENT_HIGHLIGHT_CHANGED="rowHighlightChanged",e.EVENT_DRAGGING_CHANGED="draggingChanged",e}(),Ki=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),qi=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(e){function t(){return e.call(this,'\n            <div class="ag-selection-checkbox" role="presentation">\n                <ag-checkbox role="presentation" ref="eCheckbox"></ag-checkbox>\n            </div>')||this}return Ki(t,e),t.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0)},t.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},t.prototype.onDataChanged=function(){this.onSelectionChanged()},t.prototype.onSelectableChanged=function(){this.showOrHideSelect()},t.prototype.onSelectionChanged=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.rowNode.isSelected(),n=void 0===t?e("ariaIndeterminate","indeterminate"):!0===t?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),o=e("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(t,!0),this.eCheckbox.setInputAriaLabel(o+" ("+n+")")},t.prototype.onCheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.onUncheckedClicked=function(e){var t=this.gridOptionsWrapper.isGroupSelectsFiltered();return this.rowNode.setSelectedParams({newValue:!0,rangeSelect:e.shiftKey,groupSelectsFiltered:t})},t.prototype.init=function(e){var t=this;if(this.rowNode=e.rowNode,this.column=e.column,this.onSelectionChanged(),this.addGuiEventListener("click",(function(e){return Oe(e)})),this.addGuiEventListener("dblclick",(function(e){return Oe(e)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(e){var n=t.eCheckbox.getValue();void 0===t.eCheckbox.getPreviousValue()||void 0===n?0===t.onUncheckedClicked(e||{})&&t.onCheckedClicked(e):n?t.onCheckedClicked(e):t.onUncheckedClicked(e||{})})),this.addManagedListener(this.rowNode,Yi.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsWrapper.getIsRowSelectableFunc()||this.checkboxCallbackExists()){var n=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,n),this.addManagedListener(this.rowNode,Yi.EVENT_DATA_CHANGED,n),this.addManagedListener(this.rowNode,Yi.EVENT_CELL_CHANGED,n),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},t.prototype.showOrHideSelect=function(){var e=this.rowNode.selectable;e&&this.checkboxCallbackExists()&&(e=this.column.isCellCheckboxSelection(this.rowNode)),this.setVisible(e)},t.prototype.checkboxCallbackExists=function(){var e=this.column?this.column.getColDef():null;return!!e&&"function"===typeof e.checkboxSelection},qi([nr("eCheckbox")],t.prototype,"eCheckbox",void 0),qi([z],t.prototype,"postConstruct",null),t}(tr),Qi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Ji=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},$i=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};(Ui=t.DragSourceType||(t.DragSourceType={}))[Ui.ToolPanel=0]="ToolPanel",Ui[Ui.HeaderCell=1]="HeaderCell",Ui[Ui.RowDrag=2]="RowDrag",Ui[Ui.ChartPanel=3]="ChartPanel",(zi=t.VerticalDirection||(t.VerticalDirection={}))[zi.Up=0]="Up",zi[zi.Down=1]="Down",(Zi=t.HorizontalDirection||(t.HorizontalDirection={}))[Zi.Left=0]="Left",Zi[Zi.Right=1]="Right";var es,ts=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragSourceAndParamsList=[],t.dropTargets=[],t}var o;return Qi(n,e),o=n,n.prototype.init=function(){this.ePinnedIcon=Po("columnMovePin",this.gridOptionsWrapper,null),this.eHideIcon=Po("columnMoveHide",this.gridOptionsWrapper,null),this.eMoveIcon=Po("columnMoveMove",this.gridOptionsWrapper,null),this.eLeftIcon=Po("columnMoveLeft",this.gridOptionsWrapper,null),this.eRightIcon=Po("columnMoveRight",this.gridOptionsWrapper,null),this.eGroupIcon=Po("columnMoveGroup",this.gridOptionsWrapper,null),this.eAggregateIcon=Po("columnMoveValue",this.gridOptionsWrapper,null),this.ePivotIcon=Po("columnMovePivot",this.gridOptionsWrapper,null),this.eDropNotAllowedIcon=Po("dropNotAllowed",this.gridOptionsWrapper,null)},n.prototype.addDragSource=function(e,t){void 0===t&&(t=!1);var n={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this)};this.dragSourceAndParamsList.push({params:n,dragSource:e}),this.dragService.addDragSource(n,t)},n.prototype.removeDragSource=function(e){var t=this.dragSourceAndParamsList.find((function(t){return t.dragSource===e}));t&&(this.dragService.removeDragSource(t.params),de(this.dragSourceAndParamsList,t))},n.prototype.clearDragSourceParamsList=function(){var e=this;this.dragSourceAndParamsList.forEach((function(t){return e.dragService.removeDragSource(t.params)})),this.dragSourceAndParamsList.length=0},n.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},n.prototype.onDragStart=function(e,t){this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},n.prototype.onDragStop=function(e){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var t=this.createDropTargetEvent(this.lastDropTarget,e,null,null,!1);this.lastDropTarget.onDragStop(t)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},n.prototype.onDragging=function(e,t){var n=this,o=this.getHorizontalDirection(e),r=this.getVerticalDirection(e);this.eventLastTime=e,this.positionGhost(e);var i=this.dropTargets.filter((function(t){return n.isMouseOnDropTarget(e,t)})),s=i.length,a=null;if(s>0&&(a=1===s?i[0]:i.reduce((function(e,t){if(!e)return t;var n=e.getContainer(),o=t.getContainer();return n.contains(o)?t:e}))),a!==this.lastDropTarget)this.leaveLastTargetIfExists(e,o,r,t),this.enterDragTargetIfExists(a,e,o,r,t),this.lastDropTarget=a;else if(a&&a.onDragging){var l=this.createDropTargetEvent(a,e,o,r,t);a.onDragging(l)}},n.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)}},n.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)}},n.prototype.getAllContainersFromDropTarget=function(e){var t=e.getSecondaryContainers?e.getSecondaryContainers():null,n=[[e.getContainer()]];return t?n.concat(t):n},n.prototype.allContainersIntersect=function(e,t){var n,o;try{for(var r=$i(t),i=r.next();!i.done;i=r.next()){var s=i.value.getBoundingClientRect();if(0===s.width||0===s.height)return!1;var a=e.clientX>=s.left&&e.clientX<s.right,l=e.clientY>=s.top&&e.clientY<s.bottom;if(!a||!l)return!1}}catch(u){n={error:u}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return!0},n.prototype.isMouseOnDropTarget=function(e,t){var n,o,r=this.getAllContainersFromDropTarget(t),i=!1;try{for(var s=$i(r),a=s.next();!a.done;a=s.next()){var l=a.value;if(this.allContainersIntersect(e,l)){i=!0;break}}}catch(u){n={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}return!(t.targetContainsSource&&!t.getContainer().contains(this.dragSource.eElement))&&(i&&t.isInterestedIn(this.dragSource.type,this.dragSource.eElement))},n.prototype.addDropTarget=function(e){this.dropTargets.push(e)},n.prototype.removeDropTarget=function(e){this.dropTargets=this.dropTargets.filter((function(t){return t.getContainer()!==e.getContainer()}))},n.prototype.hasExternalDropZones=function(){return this.dropTargets.some((function(e){return e.external}))},n.prototype.findExternalZone=function(e){return this.dropTargets.filter((function(e){return e.external})).find((function(t){return t.getContainer()===e.getContainer()}))||null},n.prototype.getHorizontalDirection=function(e){var n=this.eventLastTime&&this.eventLastTime.clientX,o=e.clientX;return n===o?null:n>o?t.HorizontalDirection.Left:t.HorizontalDirection.Right},n.prototype.getVerticalDirection=function(e){var n=this.eventLastTime&&this.eventLastTime.clientY,o=e.clientY;return n===o?null:n>o?t.VerticalDirection.Up:t.VerticalDirection.Down},n.prototype.createDropTargetEvent=function(e,t,n,o,r){var i=e.getContainer(),s=i.getBoundingClientRect(),a=this,l=a.gridApi,u=a.columnApi,c=a.dragItem,p=a.dragSource;return{event:t,x:t.clientX-s.left,y:t.clientY-s.top,vDirection:o,hDirection:n,dragSource:p,fromNudge:r,dragItem:c,api:l,columnApi:u,dropZoneTarget:i}},n.prototype.positionGhost=function(e){var t=this.eGhost;if(t){var n=t.getBoundingClientRect().height,o=Kt()-2,r=qt()-2,i=e.pageY-n/2,s=e.pageX-10,a=this.gridOptionsWrapper.getDocument(),l=a.defaultView||window,u=l.pageYOffset||a.documentElement.scrollTop,c=l.pageXOffset||a.documentElement.scrollLeft;o>0&&s+t.clientWidth>o+c&&(s=o+c-t.clientWidth),s<0&&(s=0),r>0&&i+t.clientHeight>r+u&&(i=r+u-t.clientHeight),i<0&&(i=0),t.style.left=s+"px",t.style.top=i+"px"}},n.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},n.prototype.createGhost=function(){this.eGhost=gn(o.GHOST_TEMPLATE);var e=this.environment.getTheme().theme;e&&this.eGhost.classList.add(e),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var t=this.eGhost.querySelector(".ag-dnd-ghost-label"),n=this.dragSource.dragItemName;N(n)&&(n=n()),t.innerHTML=Ke(n)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var r=this.gridOptionsWrapper.getDocument(),i=null;try{i=r.fullscreenElement}catch(s){}finally{i||(i=r.querySelector("body"))}this.eGhostParent=i,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},n.prototype.setGhostIcon=function(e,t){void 0===t&&(t=!1),dn(this.eGhostIcon);var n=null;switch(e||(e=this.dragSource.defaultIconName||o.ICON_NOT_ALLOWED),e){case o.ICON_PINNED:n=this.ePinnedIcon;break;case o.ICON_MOVE:n=this.eMoveIcon;break;case o.ICON_LEFT:n=this.eLeftIcon;break;case o.ICON_RIGHT:n=this.eRightIcon;break;case o.ICON_GROUP:n=this.eGroupIcon;break;case o.ICON_AGGREGATE:n=this.eAggregateIcon;break;case o.ICON_PIVOT:n=this.ePivotIcon;break;case o.ICON_NOT_ALLOWED:n=this.eDropNotAllowedIcon;break;case o.ICON_HIDE:n=this.eHideIcon}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",t),n===this.eHideIcon&&this.gridOptionsWrapper.isSuppressDragLeaveHidesColumns()||n&&this.eGhostIcon.appendChild(n)},n.ICON_PINNED="pinned",n.ICON_MOVE="move",n.ICON_LEFT="left",n.ICON_RIGHT="right",n.ICON_GROUP="group",n.ICON_AGGREGATE="aggregate",n.ICON_PIVOT="pivot",n.ICON_NOT_ALLOWED="notAllowed",n.ICON_HIDE="hide",n.GHOST_TEMPLATE='<div class="ag-dnd-ghost ag-unselectable">\n            <span class="ag-dnd-ghost-icon ag-shake-left-to-right"></span>\n            <div class="ag-dnd-ghost-label"></div>\n        </div>',Ji([K("dragService")],n.prototype,"dragService",void 0),Ji([K("environment")],n.prototype,"environment",void 0),Ji([K("columnApi")],n.prototype,"columnApi",void 0),Ji([K("gridApi")],n.prototype,"gridApi",void 0),Ji([z],n.prototype,"init",null),Ji([Z],n.prototype,"clearDragSourceParamsList",null),n=o=Ji([Y("dragAndDropService")],n)}(Fe),ns=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),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(e){function n(t,n,o,r,i,s){var a=e.call(this)||this;return a.cellValueFn=t,a.rowNode=n,a.column=o,a.customGui=r,a.dragStartPixels=i,a.suppressVisibilityChange=s,a.dragSource=null,a}return ns(n,e),n.prototype.isCustomGui=function(){return null!=this.customGui},n.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate('<div class="ag-drag-handle ag-row-drag" aria-hidden="true"></div>'),this.getGui().appendChild(Ao("rowDrag",this.beans.gridOptionsWrapper,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var e=this.beans.gridOptionsWrapper.isRowDragManaged()?new as(this,this.beans,this.rowNode,this.column):new ss(this,this.beans,this.rowNode,this.column);this.createManagedBean(e,this.beans.context)}},n.prototype.setDragElement=function(e,t){this.setTemplateFromElement(e),this.addDragSource(t)},n.prototype.getSelectedCount=function(){if(!this.beans.gridOptionsWrapper.isRowDragMultiRow())return 1;var e=this.beans.selectionService.getSelectedNodes();return-1!==e.indexOf(this.rowNode)?e.length:1},n.prototype.checkCompatibility=function(){var e=this.beans.gridOptionsWrapper.isRowDragManaged();this.beans.gridOptionsWrapper.isTreeData()&&e&&D((function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},n.prototype.addDragSource=function(e){var n=this;void 0===e&&(e=4),this.dragSource&&this.removeDragSource();var o={rowNode:this.rowNode,columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()},r=this.column&&this.column.getColDef().rowDragText,i=this.gridOptionsWrapper.getLocaleTextFunc();this.dragSource={type:t.DragSourceType.RowDrag,eElement:this.getGui(),dragItemName:function(){var e=n.getSelectedCount();return r?r(o,e):1===e?n.cellValueFn():e+" "+i("rowDragRows","rows")},getDragItem:function(){return o},dragStartPixels:e,dragSourceDomDataKey:this.beans.gridOptionsWrapper.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},n.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},os([K("beans")],n.prototype,"beans",void 0),os([z],n.prototype,"postConstruct",null),os([Z],n.prototype,"removeDragSource",null),n}(tr),is=function(e){function t(t,n,o){var r=e.call(this)||this;return r.parent=t,r.rowNode=n,r.column=o,r}return ns(t,e),t.prototype.setDisplayedOrVisible=function(e){if(e)this.parent.setDisplayed(!1);else{var t=!0,n=!1;this.column&&(t=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),n=N(this.column.getColDef().rowDrag)),n?(this.parent.setDisplayed(!0),this.parent.setVisible(t)):(this.parent.setDisplayed(t),this.parent.setVisible(!0))}},t}(Fe),ss=function(e){function t(t,n,o,r){var i=e.call(this,t,o,r)||this;return i.beans=n,i}return ns(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.gridOptionsWrapper.isSuppressRowDrag();this.setDisplayedOrVisible(e)},os([z],t.prototype,"postConstruct",null),t}(is),as=function(e){function t(t,n,o,r){var i=e.call(this,t,o,r)||this;return i.beans=n,i}return ns(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,Ve.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ve.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,"suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},t.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},t.prototype.workOutVisibility=function(){var e=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),t=e&&e.shouldPreventRowMove(),n=this.beans.gridOptionsWrapper.isSuppressRowDrag(),o=this.beans.dragAndDropService.hasExternalDropZones(),r=t&&!o||n;this.setDisplayedOrVisible(r)},os([z],t.prototype,"postConstruct",null),t}(is),ls=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),us=function(){return us=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},us.apply(this,arguments)},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(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ls(t,e),t.prototype.init=function(e,t,n,o,r,i,s){this.params=s,this.eGui=t,this.eCheckbox=n,this.eExpanded=o,this.eContracted=r,this.comp=e,this.compClass=i;var a=this.isTopLevelFooter(),l=this.isEmbeddedRowMismatch(),u=null==s.value,c=!1;if(this.gridOptionsWrapper.isGroupIncludeFooter()&&this.gridOptionsWrapper.isGroupHideOpenParents()){var p=s.node;if(p.footer)c=(s.colDef&&s.colDef.showRowGroup)!==(p.rowGroupColumn&&p.rowGroupColumn.getColId())}this.cellIsBlank=!a&&(l||u||c),this.cellIsBlank||(this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.expandListener=null},t.prototype.refreshAriaExpanded=function(){var e=this.params,t=e.node,n=e.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var o=function(){Xn(n,!!t.expanded)};this.expandListener=this.addManagedListener(t,Yi.EVENT_EXPANDED_CHANGED,o)||null,o()}else Qn(n)},t.prototype.isTopLevelFooter=function(){if(!this.gridOptionsWrapper.isGroupIncludeTotalFooter())return!1;if(null!=this.params.value||-1!=this.params.node.level)return!1;var e=this.params.colDef;if(null==e)return!0;if(!0===e.showRowGroup)return!0;var t=this.columnModel.getRowGroupColumns();return!t||0===t.length||t[0].getId()===e.showRowGroup},t.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsWrapper.isEmbedFullWidthRows())return!1;var e=this.params.pinned===oe.PINNED_LEFT,t=this.params.pinned===oe.PINNED_RIGHT,n=!e&&!t;return this.gridOptionsWrapper.isEnableRtl()?this.columnModel.isPinningLeft()?!t:!n:this.columnModel.isPinningLeft()?!e:!n},t.prototype.findDisplayedGroupNode=function(){var e=this.params.column,t=this.params.node;if(this.showingValueForOpenedParent)for(var n=t.parent;null!=n;){if(n.rowGroupColumn&&e.isRowGroupDisplayed(n.rowGroupColumn.getId())){this.displayedGroupNode=n;break}n=n.parent}i(this.displayedGroupNode)&&(this.displayedGroupNode=t)},t.prototype.setupShowingValueForOpenedParent=function(){var e=this.params.node,t=this.params.column;if(this.gridOptionsWrapper.isGroupHideOpenParents())if(e.groupData){if(null!=e.rowGroupColumn){var n=e.rowGroupColumn.getId();if(t.isRowGroupDisplayed(n))return void(this.showingValueForOpenedParent=!1)}var o=null!=e.groupData[t.getId()];this.showingValueForOpenedParent=o}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},t.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},t.prototype.addGroupValue=function(){var e=this.adjustParamsWithDetailsFromRelatedColumn(),t=this.getInnerCompDetails(e),n=e.valueFormatted,o=e.value,r=null!=n?n:o;this.comp.setInnerRenderer(t,r)},t.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var e=this.displayedGroupNode.rowGroupColumn,t=this.params.column;if(!e)return this.params;if(null!=t&&!t.isRowGroupDisplayed(e.getId()))return this.params;var n=this.params,o=this.params,r=o.value,i=o.node,s=this.valueFormatterService.formatValue(e,i,r);return us(us({},n),{valueFormatted:s})},t.prototype.addFooterValue=function(){var e=this.params.footerValueGetter,t="";if(e){var n=g(this.params);n.value=this.params.value,"function"===typeof e?t=e(n):"string"===typeof e?t=this.expressionService.evaluate(e,n):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else t="Total "+(null!=this.params.value?this.params.value:"");var o=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(o,t)},t.prototype.getInnerCompDetails=function(e){var t=this;if(e.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptions.groupRowRendererParams,e);var n=this.userComponentFactory.getInnerRendererDetails(e,e),o=function(e){return e&&e.componentClass==t.compClass};if(n&&!o(n))return n;var r=this.displayedGroupNode.rowGroupColumn,i=r?r.getColDef():void 0;if(i){var s=this.userComponentFactory.getCellRendererDetails(i,e);if(s&&!o(s))return s;if(o(s)&&i.cellRendererParams&&i.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(i.cellRendererParams,e)}},t.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,Yi.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},t.prototype.updateChildCount=function(){var e=this.displayedGroupNode.allChildrenCount,t=this.isShowRowGroupForThisRow()&&null!=e&&e>=0?"("+e+")":"";this.comp.setChildCount(t)},t.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsWrapper.isTreeData())return!0;var e=this.displayedGroupNode.rowGroupColumn;if(!e)return!1;var t=this.params.column;return null==t||t.isRowGroupDisplayed(e.getId())},t.prototype.addExpandAndContract=function(){var e=this.params,t=Ao("groupExpanded",this.gridOptionsWrapper,null),n=Ao("groupContracted",this.gridOptionsWrapper,null);t&&this.eExpanded.appendChild(t),n&&this.eContracted.appendChild(n);var o=e.eGridCell;this.gridOptionsWrapper.isEnableGroupEdit()||!this.isExpandable()||e.suppressDoubleClickExpand||this.addManagedListener(o,"dblclick",this.onCellDblClicked.bind(this)),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(o,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(e.node,Yi.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var r=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,Yi.EVENT_ALL_CHILDREN_COUNT_CHANGED,r),this.addManagedListener(this.displayedGroupNode,Yi.EVENT_MASTER_CHANGED,r),this.addManagedListener(this.displayedGroupNode,Yi.EVENT_GROUP_CHANGED,r),this.addManagedListener(this.displayedGroupNode,Yi.EVENT_HAS_CHILDREN_CHANGED,r)},t.prototype.onExpandClicked=function(e){Te(e)||(Oe(e),this.onExpandOrContract(e))},t.prototype.onExpandOrContract=function(e){var t=this.displayedGroupNode,n=!t.expanded;t.setExpanded(n,e)},t.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var e=this.displayedGroupNode,t=this.columnModel.isPivotMode()&&e.leafGroup;if(!(e.isExpandable()&&!e.footer&&!t))return!1;var n=this.params.column;return null==n||"string"!==typeof n.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},t.prototype.showExpandAndContractIcons=function(){var e=this,t=e.params,n=e.displayedGroupNode,o=e.columnModel,r=t.node,i=this.isExpandable();if(i){var s=!!this.showingValueForOpenedParent||r.expanded;this.comp.setExpandedDisplayed(s),this.comp.setContractedDisplayed(!s)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var a=o.isPivotMode(),l=a&&n.leafGroup,u=i&&!l,c=r.footer&&-1===r.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",u),this.comp.addOrRemoveCssClass("ag-row-group",u),a?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",l):c||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!u)},t.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},t.prototype.setupIndent=function(){var e=this.params.node;this.params.suppressPadding||(this.addManagedListener(e,Yi.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},t.prototype.setIndent=function(){if(!this.gridOptionsWrapper.isGroupHideOpenParents()){var e=this.params,t=e.node,n=!!e.colDef,o=this.gridOptionsWrapper.isTreeData(),r=!n||o||!0===e.colDef.showRowGroup?t.uiLevel:0;e.padding>=0&&D((function(){return console.warn("AG Grid: cellRendererParams.padding no longer works, it was deprecated in since v14.2 and removed in v26, configuring padding for groupCellRenderer should be done with Sass variables and themes. Please see the AG Grid documentation page for Themes, in particular the property $row-group-indent-size.")}),"groupCellRenderer->doDeprecatedWay"),this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+r,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},t.prototype.addFullWidthRowDraggerIfNeeded=function(){var e=this;if(this.params.fullWidth&&this.params.rowDrag){var t=new rs((function(){return e.params.value}),this.params.node);this.createManagedBean(t,this.context),this.eGui.insertAdjacentElement("afterbegin",t.getGui())}},t.prototype.isUserWantsSelected=function(){var e=this.params.checkbox;return"function"===typeof e?e(this.params):!0===e},t.prototype.addCheckboxIfNeeded=function(){var e=this,t=this.displayedGroupNode,n=this.isUserWantsSelected()&&!t.footer&&!t.rowPinned&&!t.detail;if(n){var o=new Xi;this.getContext().createBean(o),o.init({rowNode:t,column:this.params.column}),this.eCheckbox.appendChild(o.getGui()),this.addDestroyFunc((function(){return e.getContext().destroyBean(o)}))}this.comp.setCheckboxVisible(n)},t.prototype.onKeyDown=function(e){e.key!==dr.ENTER||this.params.suppressEnterExpand||(this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(e))},t.prototype.onCellDblClicked=function(e){Te(e)||(De(this.eExpanded,e)||De(this.eContracted,e)||this.onExpandOrContract(e))},cs([K("expressionService")],t.prototype,"expressionService",void 0),cs([K("valueFormatterService")],t.prototype,"valueFormatterService",void 0),cs([K("columnModel")],t.prototype,"columnModel",void 0),cs([K("userComponentFactory")],t.prototype,"userComponentFactory",void 0),cs([K("gridOptions")],t.prototype,"gridOptions",void 0),t}(Fe),ds=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),hs=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},fs=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return ds(t,e),t.prototype.init=function(e){var t=this,n={setInnerRenderer:function(e,n){return t.setRenderDetails(e,n)},setChildCount:function(e){return t.eChildCount.innerHTML=e},addOrRemoveCssClass:function(e,n){return t.addOrRemoveCssClass(e,n)},setContractedDisplayed:function(e){return $t(t.eContracted,e)},setExpandedDisplayed:function(e){return $t(t.eExpanded,e)},setCheckboxVisible:function(e){return t.eCheckbox.classList.toggle("ag-invisible",!e)}},o=this.createManagedBean(new ps),r=!e.colDef,i=this.getGui();o.init(n,i,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,e),r&&Bn(i,"gridcell")},t.prototype.setRenderDetails=function(e,t){var n=this;if(e){var o=e.newAgStackInstance();if(!o)return;o.then((function(e){if(e){var t=function(){return n.context.destroyBean(e)};n.isAlive()?(n.eValue.appendChild(e.getGui()),n.addDestroyFunc(t)):t()}}))}else this.eValue.innerText=t},t.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),e.prototype.destroy.call(this)},t.prototype.refresh=function(){return!1},t.TEMPLATE='<span class="ag-cell-wrapper">\n            <span class="ag-group-expanded" ref="eExpanded"></span>\n            <span class="ag-group-contracted" ref="eContracted"></span>\n            <span class="ag-group-checkbox ag-invisible" ref="eCheckbox"></span>\n            <span class="ag-group-value" ref="eValue"></span>\n            <span class="ag-group-child-count" ref="eChildCount"></span>\n        </span>',hs([nr("eExpanded")],t.prototype,"eExpanded",void 0),hs([nr("eContracted")],t.prototype,"eContracted",void 0),hs([nr("eCheckbox")],t.prototype,"eCheckbox",void 0),hs([nr("eValue")],t.prototype,"eValue",void 0),hs([nr("eChildCount")],t.prototype,"eChildCount",void 0),t}(tr),gs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),ms=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(e){function t(){return e.call(this,t.TEMPLATE)||this}return gs(t,e),t.prototype.init=function(e){e.node.failedLoad?this.setupFailed():this.setupLoading()},t.prototype.setupFailed=function(){this.eLoadingText.innerText="ERR"},t.prototype.setupLoading=function(){var e=Ao("groupLoading",this.gridOptionsWrapper,null);e&&this.eLoadingIcon.appendChild(e);var t=this.gridOptionsWrapper.getLocaleTextFunc();this.eLoadingText.innerText=t("loadingOoo","Loading")},t.prototype.refresh=function(e){return!1},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-loading">\n            <span class="ag-loading-icon" ref="eLoadingIcon"></span>\n            <span class="ag-loading-text" ref="eLoadingText"></span>\n        </div>',ms([nr("eLoadingIcon")],t.prototype,"eLoadingIcon",void 0),ms([nr("eLoadingText")],t.prototype,"eLoadingText",void 0),t}(tr),ys=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Cs=function(e){function t(){return e.call(this)||this}return ys(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayLoadingTemplate()?this.gridOptionsWrapper.getOverlayLoadingTemplate():t.DEFAULT_LOADING_OVERLAY_TEMPLATE,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>',t}(tr),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])},e(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){function t(){return e.call(this)||this}return ws(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.init=function(e){var n=this.gridOptionsWrapper.getOverlayNoRowsTemplate()?this.gridOptionsWrapper.getOverlayNoRowsTemplate():t.DEFAULT_NO_ROWS_TEMPLATE,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>',t}(tr),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])},e(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)}}(),Es=function(e){function t(){return e.call(this,'<div class="ag-tooltip"></div>')||this}return bs(t,e),t.prototype.init=function(e){var t=e.value;this.getGui().innerHTML=Ke(t)},t}(Si),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])},e(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)}}(),Rs=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},Os=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.agGridDefaults={agDateInput:ti,agColumnHeader:Ci,agColumnGroupHeader:bi,agTextColumnFloatingFilter:gi,agNumberColumnFloatingFilter:hi,agDateColumnFloatingFilter:Jr,agReadOnlyFloatingFilter:ar,agAnimateShowChangeCellRenderer:Bi,agAnimateSlideCellRenderer:ji,agGroupCellRenderer:fs,agGroupRowRenderer:fs,agLoadingCellRenderer:vs,agCellEditor:Li,agTextCellEditor:Li,agSelectCellEditor:Di,agPopupTextCellEditor:ki,agPopupSelectCellEditor:Ni,agLargeTextCellEditor:Ti,agTextColumnFilter:li,agNumberColumnFilter:ri,agDateColumnFilter:Yr,agLoadingOverlay:Cs,agNoRowsOverlay:_s,agTooltipComponent:Es},t.agDeprecatedNames={set:{newComponentName:"agSetColumnFilter",propertyHolder:"filter"},text:{newComponentName:"agTextColumnFilter",propertyHolder:"filter"},number:{newComponentName:"agNumberColumnFilter",propertyHolder:"filter"},date:{newComponentName:"agDateColumnFilter",propertyHolder:"filter"},group:{newComponentName:"agGroupCellRenderer",propertyHolder:"cellRenderer"},animateShowChange:{newComponentName:"agAnimateShowChangeCellRenderer",propertyHolder:"cellRenderer"},animateSlide:{newComponentName:"agAnimateSlideCellRenderer",propertyHolder:"cellRenderer"},select:{newComponentName:"agSelectCellEditor",propertyHolder:"cellEditor"},largeText:{newComponentName:"agLargeTextCellEditor",propertyHolder:"cellEditor"},popupSelect:{newComponentName:"agPopupSelectCellEditor",propertyHolder:"cellEditor"},popupText:{newComponentName:"agPopupTextCellEditor",propertyHolder:"cellEditor"},richSelect:{newComponentName:"agRichSelectCellEditor",propertyHolder:"cellEditor"},headerComponent:{newComponentName:"agColumnHeader",propertyHolder:"headerComponent"}},t.jsComps={},t.fwComps={},t}return Ss(t,e),t.prototype.init=function(){var e=this;null!=this.gridOptions.components&&f(this.gridOptions.components,(function(t,n){return e.registerJsComponent(t,n)})),null!=this.gridOptions.frameworkComponents&&f(this.gridOptions.frameworkComponents,(function(t,n){return e.registerFwComponent(t,n)}))},t.prototype.registerDefaultComponent=function(e,t){var n=this.translateIfDeprecated(e);this.agGridDefaults[n]?console.error("Trying to overwrite a default component. You should call registerComponent"):this.agGridDefaults[n]=t},t.prototype.registerJsComponent=function(e,t){var n=this.translateIfDeprecated(e);this.fwComps[n]?console.error("Trying to register a component that you have already registered for frameworks: "+n):this.jsComps[n]=t},t.prototype.registerFwComponent=function(e,t){D((function(){return console.warn("AG Grid: As of v27, registering components via grid property frameworkComponents is deprecated. Instead register both JavaScript AND Framework Components via the components property.")}),"UserComponentRegistry.frameworkComponentsDeprecated");var n=this.translateIfDeprecated(e);this.fwComps[n]=t},t.prototype.retrieve=function(e){var t=this.translateIfDeprecated(e),n=function(e,t){return{componentFromFramework:t,component:e}},o=this.getFrameworkOverrides().frameworkComponent(t);if(null!=o)return n(o,!0);var r=this.fwComps[t];if(r)return n(r,!0);var i=this.jsComps[t];if(i)return n(i,this.getFrameworkOverrides().isFrameworkComponent(i));var s=this.agGridDefaults[t];return s?n(s,!1):(Object.keys(this.agGridDefaults).indexOf(t)<0&&console.warn("AG Grid: Looking for component ["+t+"] but it wasn't found."),null)},t.prototype.translateIfDeprecated=function(e){var t=this.agDeprecatedNames[e];return null!=t?(D((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},Rs([K("gridOptions")],t.prototype,"gridOptions",void 0),Rs([K("agComponentUtils")],t.prototype,"agComponentUtils",void 0),Rs([z],t.prototype,"init",null),t=Rs([Y("userComponentRegistry")],t)}(Fe),Ts={propertyName:"dateComponent",cellRenderer:!1},Ps={propertyName:"headerComponent",cellRenderer:!1},As={propertyName:"headerGroupComponent",cellRenderer:!1},Ds={propertyName:"cellRenderer",cellRenderer:!0},xs={propertyName:"cellEditor",cellRenderer:!1},Ns={propertyName:"innerRenderer",cellRenderer:!0},Ms={propertyName:"loadingOverlayComponent",cellRenderer:!1},Is={propertyName:"noRowsOverlayComponent",cellRenderer:!1},Ls={propertyName:"tooltipComponent",cellRenderer:!1},Fs={propertyName:"filter",cellRenderer:!1},ks={propertyName:"floatingFilterComponent",cellRenderer:!1},Gs={propertyName:"toolPanel",cellRenderer:!1},Hs={propertyName:"statusPanel",cellRenderer:!1},Bs={propertyName:"fullWidthCellRenderer",cellRenderer:!0},Vs={propertyName:"loadingCellRenderer",cellRenderer:!0},Ws={propertyName:"groupRowRenderer",cellRenderer:!0},js={propertyName:"detailCellRenderer",cellRenderer:!0},Us=function(){function e(){}return e.getFloatingFilterType=function(e){return this.filterToFloatingFilterMapping[e]},e.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},e}(),zs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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},Ys=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return zs(n,e),n.prototype.getHeaderCompDetails=function(e,t){return this.getCompDetails(e,Ps,"agColumnHeader",t)},n.prototype.getHeaderGroupCompDetails=function(e){var t=e.columnGroup.getColGroupDef();return this.getCompDetails(t,As,"agColumnGroupHeader",e)},n.prototype.getFullWidthCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Bs,null,e,!0)},n.prototype.getFullWidthLoadingCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Vs,"agLoadingCellRenderer",e,!0)},n.prototype.getFullWidthGroupCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,Ws,"agGroupRowRenderer",e,!0)},n.prototype.getFullWidthDetailCellRendererDetails=function(e){return this.getCompDetails(this.gridOptions,js,"agDetailCellRenderer",e,!0)},n.prototype.getInnerRendererDetails=function(e,t){return this.getCompDetails(e,Ns,null,t)},n.prototype.getFullWidthGroupRowInnerCellRenderer=function(e,t){return this.getCompDetails(e,Ns,null,t)},n.prototype.getCellRendererDetails=function(e,t){return this.getCompDetails(e,Ds,null,t)},n.prototype.getCellEditorDetails=function(e,t){return this.getCompDetails(e,xs,"agCellEditor",t,!0)},n.prototype.getFilterDetails=function(e,t,n){return this.getCompDetails(e,Fs,n,t,!0)},n.prototype.getDateCompDetails=function(e){return this.getCompDetails(this.gridOptions,Ts,"agDateInput",e,!0)},n.prototype.getLoadingOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,Ms,"agLoadingOverlay",e,!0)},n.prototype.getNoRowsOverlayCompDetails=function(e){return this.getCompDetails(this.gridOptions,Is,"agNoRowsOverlay",e,!0)},n.prototype.getTooltipCompDetails=function(e){return this.getCompDetails(e.colDef,Ls,"agTooltipComponent",e,!0)},n.prototype.getSetFilterCellRendererDetails=function(e,t){return this.getCompDetails(e,Ds,null,t)},n.prototype.getFloatingFilterCompDetails=function(e,t,n){return this.getCompDetails(e,ks,n,t)},n.prototype.getToolPanelCompDetails=function(e,t){return this.getCompDetails(e,Gs,null,t,!0)},n.prototype.getStatusPanelCompDetails=function(e,t){return this.getCompDetails(e,Hs,null,t,!0)},n.prototype.getCompDetails=function(e,t,n,o,r){var i=this;void 0===r&&(r=!1);var s=t.propertyName,a=t.cellRenderer,l=this.getCompKeys(e,t,o),u=l.compName,c=l.jsComp,p=l.fwComp,d=l.paramsFromSelector,h=l.popupFromSelector,f=l.popupPositionFromSelector,g=function(e){var t=i.userComponentRegistry.retrieve(e);t&&(c=t.componentFromFramework?void 0:t.component,p=t.componentFromFramework?t.component:void 0)};if(null!=u&&g(u),null==c&&null==p&&null!=n&&g(n),c&&a&&!this.agComponentUtils.doesImplementIComponent(c)&&(c=this.agComponentUtils.adaptFunction(s,c)),c||p){var m=this.mergeParamsWithApplicationProvidedParams(e,t,o,d),v=null==c,y=c||p;return{componentFromFramework:v,componentClass:y,params:m,type:t,popupFromSelector:h,popupPositionFromSelector:f,newAgStackInstance:function(){return i.newAgStackInstance(y,v,m,t)}}}r&&console.error("Could not find component "+u+", did you forget to configure this component?")},n.prototype.getCompKeys=function(e,t,n){var o,r,i,s,a,l,u=this,c=t.propertyName;if(e){var p=e,d=p[c+"Selector"],h=d?d(n):null,f=function(e,t){var n=function(){var e="AG Grid: As of v27, the property "+c+"Framework is deprecated. The property "+c+" can now be used for JavaScript AND Framework Components.";D((function(){return console.warn(e)}),"UserComponentFactory."+c+"FrameworkDeprecated")};if("string"===typeof e)o=e;else if("string"===typeof t)n(),o=t;else if(null!=e&&!0!==e){u.getFrameworkOverrides().isFrameworkComponent(e)?i=e:r=e}else null!=t&&(n(),i=t)};if(h){if(null!=h.frameworkComponent){var g="AG Grid: As of v27, the return for "+c+"Selector has attributes [component, params] only. The attribute frameworkComponent is deprecated. You should now return back Framework Components using the 'component' attribute and the grid works out if it's a framework component or not.";D((function(){return console.warn(g)}),"UserComponentFactory."+c+"FrameworkSelectorDeprecated"),f(h.frameworkComponent,void 0)}else f(h.component,void 0);s=h.params,a=h.popup,l=h.popupPosition}else f(p[c],p[c+"Framework"])}return{compName:o,jsComp:r,fwComp:i,paramsFromSelector:s,popupFromSelector:a,popupPositionFromSelector:l}},n.prototype.newAgStackInstance=function(e,t,n,o){var r,i=o.propertyName;if(!t)r=new e;else{var s=this.componentMetadataProvider.retrieve(i);r=this.frameworkComponentWrapper.wrap(e,s.mandatoryMethodList,s.optionalMethodList,o)}var a=this.initComponent(r,n);return null==a?zo.resolve(r):a.then((function(){return r}))},n.prototype.mergeParamsWithApplicationProvidedParams=function(e,t,n,o){void 0===o&&(o=null);var r={context:this.gridOptionsWrapper.getContext(),columnApi:this.gridOptionsWrapper.getColumnApi(),api:this.gridOptionsWrapper.getApi()};b(r,n);var i=e&&e[t.propertyName+"Params"];"function"===typeof i?b(r,i(n)):"object"===typeof i&&b(r,i);return b(r,o),r},n.prototype.initComponent=function(e,t){if(this.context.createBean(e),null!=e.init)return e.init(t)},n.prototype.getDefaultFloatingFilterType=function(e){if(null==e)return null;var n=null,o=this.getCompKeys(e,Fs),r=o.compName,i=o.jsComp,s=o.fwComp;r?n=Us.getFloatingFilterType(r):null==i&&null==s&&!0===e.filter&&(n=re.isRegistered(t.ModuleNames.SetFilterModule)?"agSetColumnFloatingFilter":"agTextColumnFloatingFilter");return n},Zs([K("gridOptions")],n.prototype,"gridOptions",void 0),Zs([K("agComponentUtils")],n.prototype,"agComponentUtils",void 0),Zs([K("componentMetadataProvider")],n.prototype,"componentMetadataProvider",void 0),Zs([K("userComponentRegistry")],n.prototype,"userComponentRegistry",void 0),Zs([q("frameworkComponentWrapper")],n.prototype,"frameworkComponentWrapper",void 0),n=Zs([Y("userComponentFactory")],n)}(Fe);(es=t.ExcelFactoryMode||(t.ExcelFactoryMode={}))[es.SINGLE_SHEET=0]="SINGLE_SHEET",es[es.MULTI_SHEET=1]="MULTI_SHEET";var 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])},e(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)}}(),qs=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(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dragEndFunctions=[],t.dragSources=[],t}return Ks(t,e),t.prototype.init=function(){this.logger=this.loggerFactory.create("DragService")},t.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},t.prototype.removeListener=function(e){var t=e.dragSource.eElement,n=e.mouseDownListener;if(t.removeEventListener("mousedown",n),e.touchEnabled){var o=e.touchStartListener;t.removeEventListener("touchstart",o,{passive:!0})}},t.prototype.removeDragSource=function(e){var t=this.dragSources.find((function(t){return t.dragSource===e}));t&&(this.removeListener(t),de(this.dragSources,t))},t.prototype.isDragging=function(){return this.dragging},t.prototype.addDragSource=function(e,t){var n=this;void 0===t&&(t=!1);var o=this.onMouseDown.bind(this,e);e.eElement.addEventListener("mousedown",o);var r=null,i=this.gridOptionsWrapper.isSuppressTouch();t&&!i&&(r=function(t){t.cancelable&&t.preventDefault(),n.onTouchStart(e,t)},e.eElement.addEventListener("touchstart",r,{passive:!0})),this.dragSources.push({dragSource:e,mouseDownListener:o,touchStartListener:r,touchEnabled:t})},t.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;var r=function(t){return n.onTouchUp(t,e.eElement)},i=e.eElement,s=[{target:document,type:"touchmove",listener:function(e){e.cancelable&&e.preventDefault()},options:{passive:!1}},{target:i,type:"touchmove",listener:function(t){return n.onTouchMove(t,e.eElement)},options:{passive:!0}},{target:i,type:"touchend",listener: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)},t.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(),i=[{target:r,type:"mousemove",listener:function(t){return n.onMouseMove(t,e.eElement)}},{target:r,type:"mouseup",listener:function(t){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)}},t.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)}))}))},t.prototype.isEventNearStartEvent=function(e,t){var n=this.currentDragParams.dragStartPixels;return Lo(e,t,r(n)?n:4)},t.prototype.getFirstActiveTouch=function(e){for(var t=0;t<e.length;t++)if(e[t].identifier===this.touchStart.identifier)return e[t];return null},t.prototype.onCommonMove=function(e,t,n){if(!this.dragging){if(!this.dragging&&this.isEventNearStartEvent(e,t))return;this.dragging=!0;var o={type:Ve.EVENT_DRAG_STARTED,api:this.gridApi,columnApi:this.columnApi,target:n};this.eventService.dispatchEvent(o),this.currentDragParams.onDragStart(t),this.currentDragParams.onDragging(t)}this.currentDragParams.onDragging(e)},t.prototype.onTouchMove=function(e,t){var n=this.getFirstActiveTouch(e.touches);n&&this.onCommonMove(n,this.touchStart,t)},t.prototype.onMouseMove=function(e,t){Ht()&&"mousemove"===e.type&&e.cancelable&&this.mouseEventService.isEventFromThisGrid(e)&&!this.isOverFormFieldElement(e)&&e.preventDefault(),this.onCommonMove(e,this.mouseStartEvent,t)},t.prototype.isOverFormFieldElement=function(e){var t,n;return!!(null===(n=null===(t=e.target)||void 0===t?void 0:t.tagName.toLocaleLowerCase())||void 0===n?void 0:n.match("^a$|textarea|input|select|button"))},t.prototype.onTouchUp=function(e,t){var n=this.getFirstActiveTouch(e.changedTouches);n||(n=this.touchLastTime),this.onUpCommon(n,t)},t.prototype.onMouseUp=function(e,t){this.onUpCommon(e,t)},t.prototype.onUpCommon=function(e,t){if(this.dragging){this.dragging=!1,this.currentDragParams.onDragStop(e);var n={type:Ve.EVENT_DRAG_STOPPED,api:this.gridApi,columnApi:this.columnApi,target:t};this.eventService.dispatchEvent(n)}this.mouseStartEvent=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null,this.dragEndFunctions.forEach((function(e){return e()})),this.dragEndFunctions.length=0},qs([K("loggerFactory")],t.prototype,"loggerFactory",void 0),qs([K("columnApi")],t.prototype,"columnApi",void 0),qs([K("gridApi")],t.prototype,"gridApi",void 0),qs([K("mouseEventService")],t.prototype,"mouseEventService",void 0),qs([z],t.prototype,"init",null),qs([Z],t.prototype,"removeAllListeners",null),t=qs([Y("dragService")],t)}(Fe),Qs=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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(){return Js=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},Js.apply(this,arguments)},$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},ea=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.allColumnFilters=new Map,t.activeAggregateFilters=[],t.activeColumnFilters=[],t.quickFilter=null,t.quickFilterParts=null,t.processingFilterChange=!1,t}var o;return Qs(n,e),o=n,n.prototype.init=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_GRID_COLUMNS_CHANGED,(function(){return e.onColumnsChanged()})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_VALUE_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){return e.refreshFiltersForAggregations()})),this.quickFilter=this.parseQuickFilter(this.gridOptionsWrapper.getQuickFilterText()),this.setQuickFilterParts(),this.allowShowChangeAfterFilter=this.gridOptionsWrapper.isAllowShowChangeAfterFilter()},n.prototype.setQuickFilterParts=function(){this.quickFilterParts=this.quickFilter?this.quickFilter.split(" "):null},n.prototype.setFilterModel=function(e){var t=this,n=[],o=this.getFilterModel();if(e){var r=Go(Object.keys(e));this.allColumnFilters.forEach((function(o,i){var s=e[i];n.push(t.setModelOnFilterWrapper(o.filterPromise,s)),r.delete(i)})),r.forEach((function(o){var r=t.columnModel.getPrimaryColumn(o)||t.columnModel.getGridColumn(o);if(r)if(r.isFilterAllowed()){var i=t.getOrCreateFilterWrapper(r,"NO_UI");i?n.push(t.setModelOnFilterWrapper(i.filterPromise,e[o])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+o)}else console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+o);else console.warn("AG Grid: setFilterModel() - no column found for colId: "+o)}))}else this.allColumnFilters.forEach((function(e){n.push(t.setModelOnFilterWrapper(e.filterPromise,null))}));zo.all(n).then((function(){var e=t.getFilterModel(),n=[];t.allColumnFilters.forEach((function(t,r){var i=o?o[r]:null,s=e?e[r]:null;Wo.jsonEquals(i,s)||n.push(t.column)})),n.length>0&&t.onFilterChanged({columns:n})}))},n.prototype.setModelOnFilterWrapper=function(e,t){return new zo((function(n){e.then((function(e){"function"!==typeof e.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),n()),(e.setModel(t)||zo.resolve()).then((function(){return n()}))}))}))},n.prototype.getFilterModel=function(){var e={};return this.allColumnFilters.forEach((function(t,n){var o=t.filterPromise.resolveNow(null,(function(e){return e}));if(null==o)return null;if("function"===typeof o.getModel){var i=o.getModel();r(i)&&(e[n]=i)}else console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel")})),e},n.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},n.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},n.prototype.doAggregateFiltersPass=function(e,t){return this.doColumnFiltersPass(e,t,!0)},n.prototype.updateActiveFilters=function(){var e=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var t=function(e){return!!e&&(e.isFilterActive?e.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1))},n=!!this.gridOptionsWrapper.getGroupAggFiltering();this.allColumnFilters.forEach((function(o){if(o.filterPromise.resolveNow(!1,t)){var r=o.filterPromise.resolveNow(null,(function(e){return e}));!function(t){if(!t.isPrimary())return!0;var o=!e.columnModel.isPivotActive();return!(!t.isValueActive()||!o)&&(!!e.columnModel.isPivotMode()||n)}(o.column)?e.activeColumnFilters.push(r):e.activeAggregateFilters.push(r)}}))},n.prototype.updateFilterFlagInColumns=function(e,t){this.allColumnFilters.forEach((function(n){var o=n.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}));n.column.setFilterActive(o,e,t)}))},n.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.gridOptionsWrapper.isExternalFilterPresent()},n.prototype.doColumnFiltersPass=function(e,t,n){for(var o=e.data,r=e.aggData,i=n?this.activeAggregateFilters:this.activeColumnFilters,s=n?r:o,a=0;a<i.length;a++){var l=i[a];if(null!=l&&l!==t){if("function"!==typeof l.doesFilterPass)throw new Error("Filter is missing method doesFilterPass");if(!l.doesFilterPass({node:e,data:s}))return!1}}return!0},n.prototype.parseQuickFilter=function(e){return r(e)?this.gridOptionsWrapper.isRowModelDefault()?e.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},n.prototype.setQuickFilter=function(e){if(null==e||"string"===typeof e){var t=this.parseQuickFilter(e);this.quickFilter!==t&&(this.quickFilter=t,this.setQuickFilterParts(),this.onFilterChanged())}else console.warn("AG Grid - setQuickFilter() only supports string inputs, received: "+typeof e)},n.prototype.refreshFiltersForAggregations=function(){this.gridOptionsWrapper.getGroupAggFiltering()&&this.onFilterChanged()},n.prototype.callOnFilterChangedOutsideRenderCycle=function(e){var t=this;void 0===e&&(e={});var n=function(){return t.onFilterChanged(e)};this.rowRenderer.isRefreshInProgress()?setTimeout(n,0):n()},n.prototype.onFilterChanged=function(e){void 0===e&&(e={});var t=e.filterInstance,n=e.additionalEventAttributes,o=e.columns;this.updateActiveFilters(),this.updateFilterFlagInColumns("filterChanged",n),this.allColumnFilters.forEach((function(e){e.filterPromise&&e.filterPromise.then((function(e){e&&e!==t&&e.onAnyFilterChanged&&e.onAnyFilterChanged()}))}));var r={type:Ve.EVENT_FILTER_CHANGED,api:this.gridApi,columnApi:this.columnApi,columns:o||[]};n&&b(r,n),this.processingFilterChange=!0,this.eventService.dispatchEvent(r),this.processingFilterChange=!1},n.prototype.isSuppressFlashingCellsBecauseFiltering=function(){return!this.allowShowChangeAfterFilter&&this.processingFilterChange},n.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},n.prototype.doesRowPassOtherFilters=function(e,t){return this.doesRowPassFilter({rowNode:t,filterInstanceToSkip:e})},n.prototype.doesRowPassQuickFilterNoCache=function(e,t){var n=this;return this.columnModel.getAllColumnsForQuickFilter().some((function(o){var i=n.getQuickFilterTextForColumn(o,e);return r(i)&&i.indexOf(t)>=0}))},n.prototype.doesRowPassQuickFilterCache=function(e,t){return e.quickFilterAggregateText||this.aggregateRowForQuickFilter(e),e.quickFilterAggregateText.indexOf(t)>=0},n.prototype.doesRowPassQuickFilter=function(e){var t=this,n=this.gridOptionsWrapper.isCacheQuickFilter();return this.quickFilterParts.every((function(o){return n?t.doesRowPassQuickFilterCache(e,o):t.doesRowPassQuickFilterNoCache(e,o)}))},n.prototype.doesRowPassAggregateFilters=function(e){return!(this.isAggregateFilterPresent()&&!this.doAggregateFiltersPass(e.rowNode,e.filterInstanceToSkip))},n.prototype.doesRowPassFilter=function(e){return!(this.isQuickFilterPresent()&&!this.doesRowPassQuickFilter(e.rowNode))&&(!(this.gridOptionsWrapper.isExternalFilterPresent()&&!this.gridOptionsWrapper.doesExternalFilterPass(e.rowNode))&&!(this.isColumnFilterPresent()&&!this.doColumnFiltersPass(e.rowNode,e.filterInstanceToSkip)))},n.prototype.getQuickFilterTextForColumn=function(e,t){var n=this.valueService.getValue(e,t,!0),o=e.getColDef();if(o.getQuickFilterText){var i={value:n,node:t,data:t.data,column:e,colDef:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};n=o.getQuickFilterText(i)}return r(n)?n.toString().toUpperCase():null},n.prototype.aggregateRowForQuickFilter=function(e){var t=this,n=[];this.columnModel.getAllColumnsForQuickFilter().forEach((function(o){var i=t.getQuickFilterTextForColumn(o,e);r(i)&&n.push(i)})),e.quickFilterAggregateText=n.join(o.QUICK_FILTER_SEPARATOR)},n.prototype.onNewRowsLoaded=function(e){this.allColumnFilters.forEach((function(e){e.filterPromise.then((function(e){e.onNewRowsLoaded&&e.onNewRowsLoaded()}))})),this.updateFilterFlagInColumns(e),this.updateActiveFilters()},n.prototype.createValueGetter=function(e){var t=this;return function(n){var o=n.node;return t.valueService.getValue(e,o,!0)}},n.prototype.getFilterComponent=function(e,t,n){var o;if(void 0===n&&(n=!0),n)return(null===(o=this.getOrCreateFilterWrapper(e,t))||void 0===o?void 0:o.filterPromise)||null;var r=this.cachedFilter(e);return r?r.filterPromise:null},n.prototype.isFilterActive=function(e){var t=this.cachedFilter(e);return!!t&&t.filterPromise.resolveNow(!1,(function(e){return e.isFilterActive()}))},n.prototype.getOrCreateFilterWrapper=function(e,t){if(!e.isFilterAllowed())return null;var n=this.cachedFilter(e);return n?"NO_UI"!==t&&this.putIntoGui(n,t):(n=this.createFilterWrapper(e,t),this.allColumnFilters.set(e.getColId(),n)),n},n.prototype.cachedFilter=function(e){return this.allColumnFilters.get(e.getColId())},n.prototype.createFilterInstance=function(e){var n,o=this,r=re.isRegistered(t.ModuleNames.SetFilterModule)?"agSetColumnFilter":"agTextColumnFilter",i=e.getColDef(),s=Js(Js({},this.createFilterParams(e,i)),{filterModifiedCallback:function(){var t={type:Ve.EVENT_FILTER_MODIFIED,api:o.gridApi,columnApi:o.columnApi,column:e,filterInstance:n};o.eventService.dispatchEvent(t)},filterChangedCallback:function(t){var r={filterInstance:n,additionalEventAttributes:t,columns:[e]};o.callOnFilterChangedOutsideRenderCycle(r)},doesRowPassOtherFilter:function(e){return o.doesRowPassOtherFilters(n,e)}}),a=this.userComponentFactory.getFilterDetails(i,s,r);if(!a)return null;var l=a.newAgStackInstance();return l&&l.then((function(e){return n=e})),l},n.prototype.createFilterParams=function(e,t){return{api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),column:e,colDef:g(t),rowModel:this.rowModel,filterChangedCallback:function(){},filterModifiedCallback:function(){},valueGetter:this.createValueGetter(e),context:this.gridOptionsWrapper.getContext(),doesRowPassOtherFilter:function(){return!0}}},n.prototype.createFilterWrapper=function(e,t){var n={column:e,filterPromise:null,compiledElement:null,guiPromise:zo.resolve(null)};return n.filterPromise=this.createFilterInstance(e),n.filterPromise&&this.putIntoGui(n,t),n},n.prototype.putIntoGui=function(e,t){var n=this,o=document.createElement("div");o.className="ag-filter",e.guiPromise=new zo((function(i){e.filterPromise.then((function(s){var a=s.getGui();r(a)||console.warn("AG Grid: getGui method from filter returned "+a+", it should be a DOM element or an HTML template string."),"string"===typeof a&&(a=gn(a)),o.appendChild(a),i(o),n.eventService.dispatchEvent({type:Ve.EVENT_FILTER_OPENED,column:e.column,source:t,eGui:o,api:n.gridApi,columnApi:n.columnApi})}))}))},n.prototype.onColumnsChanged=function(){var e=this,t=[];this.allColumnFilters.forEach((function(n,o){(n.column.isPrimary()?e.columnModel.getPrimaryColumn(o):e.columnModel.getGridColumn(o))||(t.push(n.column),e.disposeFilterWrapper(n,"filterDestroyed"))})),t.length>0&&this.onFilterChanged({columns:t})},n.prototype.destroyFilter=function(e,t){void 0===t&&(t="api");var n=this.allColumnFilters.get(e.getColId());n&&(this.disposeFilterWrapper(n,t),this.onFilterChanged({columns:[e]}))},n.prototype.disposeFilterWrapper=function(e,t){var n=this;e.filterPromise.then((function(o){(o.setModel(null)||zo.resolve()).then((function(){n.getContext().destroyBean(o),e.column.setFilterActive(!1,t),n.allColumnFilters.delete(e.column.getColId())}))}))},n.prototype.destroy=function(){var t=this;e.prototype.destroy.call(this),this.allColumnFilters.forEach((function(e){return t.disposeFilterWrapper(e,"filterDestroyed")}))},n.QUICK_FILTER_SEPARATOR="\n",$s([K("valueService")],n.prototype,"valueService",void 0),$s([K("columnModel")],n.prototype,"columnModel",void 0),$s([K("rowModel")],n.prototype,"rowModel",void 0),$s([K("columnApi")],n.prototype,"columnApi",void 0),$s([K("gridApi")],n.prototype,"gridApi",void 0),$s([K("userComponentFactory")],n.prototype,"userComponentFactory",void 0),$s([K("rowRenderer")],n.prototype,"rowRenderer",void 0),$s([z],n.prototype,"init",null),$s([Z],n.prototype,"destroy",null),n=o=$s([Y("filterManager")],n)}(Fe),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])},e(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){function t(t,n){var o=e.call(this,t)||this;return o.ctrl=n,o}return ta(t,e),t.prototype.getCtrl=function(){return this.ctrl},t}(tr),oa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),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(e){function t(n){return e.call(this,t.TEMPLATE,n)||this}return oa(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),n={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},addOrRemoveBodyCssClass:function(t,n){return e.eFloatingFilterBody.classList.toggle(t,n)},addOrRemoveButtonWrapperCssClass:function(t,n){return e.eButtonWrapper.classList.toggle(t,n)},setCompDetails:function(t){return e.setCompDetails(t)},getFloatingFilterComp:function(){return e.compPromise},setWidth:function(e){return t.style.width=e},setMenuIcon:function(t){return e.eButtonShowMainFilter.appendChild(t)}};this.ctrl.setComp(n,t,this.eButtonShowMainFilter,this.eFloatingFilterBody)},t.prototype.setCompDetails=function(e){var t=this;this.compPromise=e.newAgStackInstance(),this.compPromise.then((function(e){return t.afterCompCreated(e)}))},t.prototype.afterCompCreated=function(e){var t=this;e&&(this.addDestroyFunc((function(){return t.context.destroyBean(e)})),this.isAlive()&&(this.eFloatingFilterBody.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached()))},t.TEMPLATE='<div class="ag-header-cell ag-floating-filter" role="gridcell" tabindex="-1">\n            <div ref="eFloatingFilterBody" role="presentation"></div>\n            <div class="ag-floating-filter-button ag-hidden" ref="eButtonWrapper" role="presentation">\n                <button type="button" aria-label="Open Filter Menu" class="ag-floating-filter-button-button" ref="eButtonShowMainFilter" tabindex="-1"></button>\n            </div>\n        </div>',ra([nr("eFloatingFilterBody")],t.prototype,"eFloatingFilterBody",void 0),ra([nr("eButtonWrapper")],t.prototype,"eButtonWrapper",void 0),ra([nr("eButtonShowMainFilter")],t.prototype,"eButtonShowMainFilter",void 0),ra([z],t.prototype,"postConstruct",null),t}(na),sa=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?(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):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}(),aa=function(){return aa=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},aa.apply(this,arguments)},la=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,t){return function(n,o){t(n,o,e)}},ca=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},pa=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ca(arguments[t]));return e};function da(e){return!0===e||"true"===e}function ha(e){return"number"==typeof e?e:"string"==typeof e?parseInt(e,10):void 0}function fa(e,t){var n=parseInt(e,10);return fo(n)&&n>0?n:t}var ga,ma=function(){function e(){this.propertyEventService=new ne,this.domDataKey="__AG_"+Math.random().toString(),this.destroyed=!1}var n;return n=e,e.prototype.agWire=function(e,t){this.gridOptions.api=e,this.gridOptions.columnApi=t,this.checkForDeprecated(),this.checkForViolations()},e.prototype.destroy=function(){this.gridOptions.api=null,this.gridOptions.columnApi=null,this.destroyed=!0},e.prototype.init=function(){var e=this;!0!==this.gridOptions.suppressPropertyNamesCheck&&(this.checkGridOptionsProperties(),this.checkColumnDefProperties()),null!=this.gridOptions.sideBar&&(this.gridOptions.sideBar=sa.parse(this.gridOptions.sideBar));var n=this.useAsyncEvents();if(this.eventService.addGlobalListener(this.globalEventHandler.bind(this),n),this.isGroupSelectsChildren()&&this.isSuppressParentsInRowNodes()&&console.warn("AG Grid: 'groupSelectsChildren' does not work with 'suppressParentsInRowNodes', this selection method needs the part in rowNode to work"),this.isGroupSelectsChildren()&&(this.isRowSelectionMulti()||console.warn("AG Grid: rowSelection must be 'multiple' for groupSelectsChildren to make sense"),this.isRowModelServerSide()&&console.warn("AG Grid: group selects children is NOT support for Server Side Row Model. This is because the rows are lazy loaded, so selecting a group is not possible asthe grid has no way of knowing what the children are.")),this.isGroupRemoveSingleChildren()&&this.isGroupHideOpenParents()&&console.warn("AG Grid: groupRemoveSingleChildren and groupHideOpenParents do not work with each other, you need to pick one. And don't ask us how to us these together on our support forum either you will get the same answer!"),this.isRowModelServerSide()){var o=function(e){return"AG Grid: '"+e+"' is not supported on the Server-Side Row Model"};r(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupDefaultExpanded")),r(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupIncludeFooter")),r(this.gridOptions.groupDefaultExpanded)&&console.warn(o("groupIncludeTotalFooter"))}this.isEnableRangeSelection()&&re.assertRegistered(t.ModuleNames.RangeSelectionModule,"enableRangeSelection"),this.isEnableRangeSelection()||!this.isEnableRangeHandle()&&!this.isEnableFillHandle()||console.warn("AG Grid: 'enableRangeHandle' and 'enableFillHandle' will not work unless 'enableRangeSelection' is set to true");var i=function(t){e.gridOptions.icons&&e.gridOptions.icons[t]&&console.warn("gridOptions.icons."+t+" is no longer supported. For information on how to style checkboxes and radio buttons, see https://www.ag-grid.com/javascript-grid-icons/")};i("radioButtonOff"),i("radioButtonOn"),i("checkboxChecked"),i("checkboxUnchecked"),i("checkboxIndeterminate"),this.getScrollbarWidth()},e.prototype.checkColumnDefProperties=function(){var e=this;null!=this.gridOptions.columnDefs&&this.gridOptions.columnDefs.forEach((function(t){var n=Object.getOwnPropertyNames(t),o=pa(St.ALL_PROPERTIES,St.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=pa(ft.ALL_PROPERTIES,ft.FRAMEWORK_PROPERTIES,p(Ve).map((function(e){return yt.getCallbackForEvent(e)}))),n=pa(t,["api","columnApi"]);this.checkProperties(e,n,t,"gridOptions","https://www.ag-grid.com/javascript-data-grid/grid-options/")},e.prototype.checkProperties=function(e,t,n,o,r){var i=_o(e,t,n);f(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.mergeGridCommonParams=function(e){var t=this;if(e){return function(n){var o=aa(aa({},n),{api:t.getApi(),columnApi:t.getColumnApi(),context:t.getContext()});return e(o)}}return e},e.prototype.getDomDataKey=function(){return this.domDataKey},e.prototype.getDomData=function(e,t){var n=e[this.getDomDataKey()];return n?n[t]:void 0},e.prototype.setDomData=function(e,t,n){var o=this.getDomDataKey(),r=e[o];i(r)&&(r={},e[o]=r),r[t]=n},e.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},e.prototype.isSuppressRowDeselection=function(){return da(this.gridOptions.suppressRowDeselection)},e.prototype.isRowSelectionMulti=function(){return"multiple"===this.gridOptions.rowSelection},e.prototype.isRowMultiSelectWithClick=function(){return da(this.gridOptions.rowMultiSelectWithClick)},e.prototype.getContext=function(){return this.gridOptions.context},e.prototype.isPivotMode=function(){return da(this.gridOptions.pivotMode)},e.prototype.isSuppressExpandablePivotGroups=function(){return da(this.gridOptions.suppressExpandablePivotGroups)},e.prototype.getPivotColumnGroupTotals=function(){return this.gridOptions.pivotColumnGroupTotals},e.prototype.getPivotRowTotals=function(){return this.gridOptions.pivotRowTotals},e.prototype.isRowModelInfinite=function(){return this.gridOptions.rowModelType===oe.ROW_MODEL_TYPE_INFINITE},e.prototype.isRowModelViewport=function(){return this.gridOptions.rowModelType===oe.ROW_MODEL_TYPE_VIEWPORT},e.prototype.isRowModelServerSide=function(){return this.gridOptions.rowModelType===oe.ROW_MODEL_TYPE_SERVER_SIDE},e.prototype.isRowModelDefault=function(){return i(this.gridOptions.rowModelType)||this.gridOptions.rowModelType===oe.ROW_MODEL_TYPE_CLIENT_SIDE},e.prototype.isFullRowEdit=function(){return"fullRow"===this.gridOptions.editType},e.prototype.isSuppressFocusAfterRefresh=function(){return da(this.gridOptions.suppressFocusAfterRefresh)},e.prototype.isSuppressBrowserResizeObserver=function(){return da(this.gridOptions.suppressBrowserResizeObserver)},e.prototype.isSuppressMaintainUnsortedOrder=function(){return da(this.gridOptions.suppressMaintainUnsortedOrder)},e.prototype.isSuppressClearOnFillReduction=function(){return da(this.gridOptions.suppressClearOnFillReduction)},e.prototype.isShowToolPanel=function(){return da(this.gridOptions.sideBar&&Array.isArray(this.getSideBar().toolPanels))},e.prototype.getSideBar=function(){return this.gridOptions.sideBar},e.prototype.isSuppressTouch=function(){return da(this.gridOptions.suppressTouch)},e.prototype.isMaintainColumnOrder=function(){return da(this.gridOptions.maintainColumnOrder)},e.prototype.isSuppressRowTransform=function(){return da(this.gridOptions.suppressRowTransform)},e.prototype.isSuppressColumnStateEvents=function(){return da(this.gridOptions.suppressColumnStateEvents)},e.prototype.isAllowDragFromColumnsToolPanel=function(){return da(this.gridOptions.allowDragFromColumnsToolPanel)},e.prototype.useAsyncEvents=function(){return!da(this.gridOptions.suppressAsyncEvents)},e.prototype.isEnableCellChangeFlash=function(){return da(this.gridOptions.enableCellChangeFlash)},e.prototype.getCellFlashDelay=function(){return this.gridOptions.cellFlashDelay||500},e.prototype.getCellFadeDelay=function(){return this.gridOptions.cellFadeDelay||1e3},e.prototype.isGroupSelectsChildren=function(){return da(this.gridOptions.groupSelectsChildren)},e.prototype.isSuppressRowHoverHighlight=function(){return da(this.gridOptions.suppressRowHoverHighlight)},e.prototype.isColumnHoverHighlight=function(){return da(this.gridOptions.columnHoverHighlight)},e.prototype.isGroupSelectsFiltered=function(){return da(this.gridOptions.groupSelectsFiltered)},e.prototype.isGroupHideOpenParents=function(){return da(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupMaintainOrder=function(){return da(this.gridOptions.groupMaintainOrder)},e.prototype.getAutoGroupColumnDef=function(){return this.gridOptions.autoGroupColumnDef},e.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?this.matchesGroupDisplayType("multipleColumns",this.gridOptions.groupDisplayType):da(this.gridOptions.groupHideOpenParents)},e.prototype.isGroupUseEntireRow=function(e){return!e&&(!!this.gridOptions.groupDisplayType&&this.matchesGroupDisplayType("groupRows",this.gridOptions.groupDisplayType))},e.prototype.isGroupSuppressAutoColumn=function(){return!(!this.gridOptions.groupDisplayType||!this.matchesGroupDisplayType("custom",this.gridOptions.groupDisplayType))||!!this.gridOptions.treeDataDisplayType&&this.matchesTreeDataDisplayType("custom",this.gridOptions.treeDataDisplayType)},e.prototype.isGroupRemoveSingleChildren=function(){return da(this.gridOptions.groupRemoveSingleChildren)},e.prototype.isGroupRemoveLowestSingleChildren=function(){return da(this.gridOptions.groupRemoveLowestSingleChildren)},e.prototype.isGroupIncludeFooter=function(){return da(this.gridOptions.groupIncludeFooter)},e.prototype.isGroupIncludeTotalFooter=function(){return da(this.gridOptions.groupIncludeTotalFooter)},e.prototype.isGroupSuppressBlankHeader=function(){return da(this.gridOptions.groupSuppressBlankHeader)},e.prototype.isSuppressRowClickSelection=function(){return da(this.gridOptions.suppressRowClickSelection)},e.prototype.isSuppressCellFocus=function(){return da(this.gridOptions.suppressCellFocus)},e.prototype.isSuppressMultiSort=function(){return da(this.gridOptions.suppressMultiSort)},e.prototype.isAlwaysMultiSort=function(){return da(this.gridOptions.alwaysMultiSort)},e.prototype.isMultiSortKeyCtrl=function(){return"ctrl"===this.gridOptions.multiSortKey},e.prototype.isPivotSuppressAutoColumn=function(){return da(this.gridOptions.pivotSuppressAutoColumn)},e.prototype.isSuppressDragLeaveHidesColumns=function(){return da(this.gridOptions.suppressDragLeaveHidesColumns)},e.prototype.isSuppressScrollOnNewData=function(){return da(this.gridOptions.suppressScrollOnNewData)},e.prototype.isSuppressScrollWhenPopupsAreOpen=function(){return da(this.gridOptions.suppressScrollWhenPopupsAreOpen)},e.prototype.isRowDragEntireRow=function(){return da(this.gridOptions.rowDragEntireRow)},e.prototype.isSuppressRowDrag=function(){return da(this.gridOptions.suppressRowDrag)},e.prototype.isRowDragManaged=function(){return da(this.gridOptions.rowDragManaged)},e.prototype.isSuppressMoveWhenRowDragging=function(){return da(this.gridOptions.suppressMoveWhenRowDragging)},e.prototype.isRowDragMultiRow=function(){return da(this.gridOptions.rowDragMultiRow)},e.prototype.getDomLayout=function(){var e=this.gridOptions.domLayout||oe.DOM_LAYOUT_NORMAL;return-1===[oe.DOM_LAYOUT_PRINT,oe.DOM_LAYOUT_AUTO_HEIGHT,oe.DOM_LAYOUT_NORMAL].indexOf(e)?(D((function(){return console.warn("AG Grid: "+e+" is not valid for DOM Layout, valid values are "+oe.DOM_LAYOUT_NORMAL+", "+oe.DOM_LAYOUT_AUTO_HEIGHT+" and "+oe.DOM_LAYOUT_PRINT)}),"warn about dom layout values"),oe.DOM_LAYOUT_NORMAL):e},e.prototype.isSuppressHorizontalScroll=function(){return da(this.gridOptions.suppressHorizontalScroll)},e.prototype.isSuppressMaxRenderedRowRestriction=function(){return da(this.gridOptions.suppressMaxRenderedRowRestriction)},e.prototype.isExcludeChildrenWhenTreeDataFiltering=function(){return da(this.gridOptions.excludeChildrenWhenTreeDataFiltering)},e.prototype.isAlwaysShowHorizontalScroll=function(){return da(this.gridOptions.alwaysShowHorizontalScroll)},e.prototype.isAlwaysShowVerticalScroll=function(){return da(this.gridOptions.alwaysShowVerticalScroll)},e.prototype.isDebounceVerticalScrollbar=function(){return da(this.gridOptions.debounceVerticalScrollbar)},e.prototype.isSuppressLoadingOverlay=function(){return da(this.gridOptions.suppressLoadingOverlay)},e.prototype.isSuppressNoRowsOverlay=function(){return da(this.gridOptions.suppressNoRowsOverlay)},e.prototype.isSuppressFieldDotNotation=function(){return da(this.gridOptions.suppressFieldDotNotation)},e.prototype.getPinnedTopRowData=function(){return this.gridOptions.pinnedTopRowData},e.prototype.getPinnedBottomRowData=function(){return this.gridOptions.pinnedBottomRowData},e.prototype.isFunctionsPassive=function(){return da(this.gridOptions.functionsPassive)},e.prototype.isSuppressChangeDetection=function(){return da(this.gridOptions.suppressChangeDetection)},e.prototype.isSuppressAnimationFrame=function(){return da(this.gridOptions.suppressAnimationFrame)},e.prototype.getQuickFilterText=function(){return this.gridOptions.quickFilterText},e.prototype.isCacheQuickFilter=function(){return da(this.gridOptions.cacheQuickFilter)},e.prototype.isUnSortIcon=function(){return da(this.gridOptions.unSortIcon)},e.prototype.isSuppressMenuHide=function(){return da(this.gridOptions.suppressMenuHide)},e.prototype.isEnterMovesDownAfterEdit=function(){return da(this.gridOptions.enterMovesDownAfterEdit)},e.prototype.isEnterMovesDown=function(){return da(this.gridOptions.enterMovesDown)},e.prototype.isUndoRedoCellEditing=function(){return da(this.gridOptions.undoRedoCellEditing)},e.prototype.getUndoRedoCellEditingLimit=function(){return ha(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.mergeGridCommonParams(this.gridOptions.getRowStyle)},e.prototype.getRowClassFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getRowClass)},e.prototype.rowClassRules=function(){return this.gridOptions.rowClassRules},e.prototype.getServerSideStoreType=function(){return this.gridOptions.serverSideStoreType},e.prototype.getServerSideStoreParamsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getServerSideStoreParams)},e.prototype.getCreateChartContainerFunc=function(){return this.mergeGridCommonParams(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.mergeGridCommonParams(this.gridOptions.postProcessPopup)},e.prototype.getPaginationNumberFormatterFunc=function(){return this.mergeGridCommonParams(this.gridOptions.paginationNumberFormatter)},e.prototype.getChildCountFunc=function(){return this.gridOptions.getChildCount},e.prototype.getIsApplyServerSideTransactionFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isApplyServerSideTransaction)},e.prototype.getInitialGroupOrderComparator=function(){var e=this.gridOptions,t=e.initialGroupOrderComparator,n=e.defaultGroupOrderComparator;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.nodeA,e.nodeB)}:void 0},e.prototype.getIsFullWidthCellFunc=function(){var e=this.gridOptions,t=e.isFullWidthRow,n=e.isFullWidthCell;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.rowNode)}:void 0},e.prototype.getFullWidthCellRendererParams=function(){return this.gridOptions.fullWidthCellRendererParams},e.prototype.isEmbedFullWidthRows=function(){return da(this.gridOptions.embedFullWidthRows)||da(this.gridOptions.deprecatedEmbedFullWidthRows)},e.prototype.isDetailRowAutoHeight=function(){return da(this.gridOptions.detailRowAutoHeight)},e.prototype.getSuppressKeyboardEventFunc=function(){return this.gridOptions.suppressKeyboardEvent},e.prototype.getBusinessKeyForNodeFunc=function(){return this.gridOptions.getBusinessKeyForNode},e.prototype.getApi=function(){return this.gridOptions.api},e.prototype.getColumnApi=function(){return this.gridOptions.columnApi},e.prototype.isReadOnlyEdit=function(){return da(this.gridOptions.readOnlyEdit)},e.prototype.isImmutableData=function(){var e=null!=this.gridOptions.getRowId,t=da(this.gridOptions.immutableData);return!da(this.gridOptions.resetRowDataOnUpdate)&&(e||t)},e.prototype.isEnsureDomOrder=function(){return da(this.gridOptions.ensureDomOrder)},e.prototype.isEnableCharts=function(){return!!da(this.gridOptions.enableCharts)&&re.assertRegistered(t.ModuleNames.GridChartsModule,"enableCharts")},e.prototype.getColResizeDefault=function(){return this.gridOptions.colResizeDefault},e.prototype.isSingleClickEdit=function(){return da(this.gridOptions.singleClickEdit)},e.prototype.isSuppressClickEdit=function(){return da(this.gridOptions.suppressClickEdit)},e.prototype.isStopEditingWhenCellsLoseFocus=function(){return da(this.gridOptions.stopEditingWhenCellsLoseFocus)},e.prototype.getGroupDefaultExpanded=function(){return this.gridOptions.groupDefaultExpanded},e.prototype.getMaxConcurrentDatasourceRequests=function(){var e=ha(this.gridOptions.maxConcurrentDatasourceRequests);return null==e?2:e<=0?void 0:e},e.prototype.getMaxBlocksInCache=function(){return this.gridOptions.maxBlocksInCache},e.prototype.getCacheOverflowSize=function(){return this.gridOptions.cacheOverflowSize},e.prototype.getPaginationPageSize=function(){return ha(this.gridOptions.paginationPageSize)},e.prototype.isPaginateChildRows=function(){return!(!this.isGroupRemoveSingleChildren()&&!this.isGroupRemoveLowestSingleChildren())||da(this.gridOptions.paginateChildRows)},e.prototype.getCacheBlockSize=function(){return fa(this.gridOptions.cacheBlockSize)},e.prototype.getInfiniteInitialRowCount=function(){return this.gridOptions.infiniteInitialRowCount},e.prototype.isPurgeClosedRowNodes=function(){return da(this.gridOptions.purgeClosedRowNodes)},e.prototype.isSuppressPaginationPanel=function(){return da(this.gridOptions.suppressPaginationPanel)},e.prototype.getRowData=function(){return this.gridOptions.rowData},e.prototype.isEnableRtl=function(){return da(this.gridOptions.enableRtl)},e.prototype.getRowGroupPanelShow=function(){return this.gridOptions.rowGroupPanelShow},e.prototype.getPivotPanelShow=function(){return this.gridOptions.pivotPanelShow},e.prototype.isAngularCompileRows=function(){return da(this.gridOptions.angularCompileRows)},e.prototype.isAngularCompileFilters=function(){return da(this.gridOptions.angularCompileFilters)},e.prototype.isDebug=function(){return da(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 da(this.gridOptions.accentedSort)},e.prototype.isEnableBrowserTooltips=function(){return da(this.gridOptions.enableBrowserTooltips)},e.prototype.isEnableCellExpressions=function(){return da(this.gridOptions.enableCellExpressions)},e.prototype.isEnableGroupEdit=function(){return da(this.gridOptions.enableGroupEdit)},e.prototype.isSuppressMiddleClickScrolls=function(){return da(this.gridOptions.suppressMiddleClickScrolls)},e.prototype.isPreventDefaultOnContextMenu=function(){return da(this.gridOptions.preventDefaultOnContextMenu)},e.prototype.isSuppressPreventDefaultOnMouseWheel=function(){return da(this.gridOptions.suppressPreventDefaultOnMouseWheel)},e.prototype.isSuppressColumnVirtualisation=function(){return da(this.gridOptions.suppressColumnVirtualisation)},e.prototype.isSuppressRowVirtualisation=function(){return da(this.gridOptions.suppressRowVirtualisation)},e.prototype.isSuppressContextMenu=function(){return da(this.gridOptions.suppressContextMenu)},e.prototype.isAllowContextMenuWithControlKey=function(){return da(this.gridOptions.allowContextMenuWithControlKey)},e.prototype.isSuppressCopyRowsToClipboard=function(){return da(this.gridOptions.suppressCopyRowsToClipboard)},e.prototype.isSuppressCopySingleCellRanges=function(){return da(this.gridOptions.suppressCopySingleCellRanges)},e.prototype.isCopyHeadersToClipboard=function(){return da(this.gridOptions.copyHeadersToClipboard)},e.prototype.isCopyGroupHeadersToClipboard=function(){return da(this.gridOptions.copyGroupHeadersToClipboard)},e.prototype.isSuppressClipboardPaste=function(){return da(this.gridOptions.suppressClipboardPaste)},e.prototype.isSuppressLastEmptyLineOnPaste=function(){return da(this.gridOptions.suppressLastEmptyLineOnPaste)},e.prototype.isPagination=function(){return da(this.gridOptions.pagination)},e.prototype.isSuppressEnterpriseResetOnNewColumns=function(){return da(this.gridOptions.suppressEnterpriseResetOnNewColumns)},e.prototype.getProcessDataFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processDataFromClipboard)},e.prototype.getAsyncTransactionWaitMillis=function(){return r(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:oe.BATCH_WAIT_MILLIS},e.prototype.isSuppressMovableColumns=function(){return da(this.gridOptions.suppressMovableColumns)},e.prototype.isAnimateRows=function(){return!this.isEnsureDomOrder()&&da(this.gridOptions.animateRows)},e.prototype.isSuppressColumnMoveAnimation=function(){return da(this.gridOptions.suppressColumnMoveAnimation)},e.prototype.isSuppressAggFuncInHeader=function(){return da(this.gridOptions.suppressAggFuncInHeader)},e.prototype.isSuppressAggAtRootLevel=function(){return da(this.gridOptions.suppressAggAtRootLevel)},e.prototype.isSuppressAggFilteredOnly=function(){return void 0!==this.getGroupAggFiltering()||da(this.gridOptions.suppressAggFilteredOnly)},e.prototype.isRemovePivotHeaderRowWhenSingleValueColumn=function(){return da(this.gridOptions.removePivotHeaderRowWhenSingleValueColumn)},e.prototype.isShowOpenedGroup=function(){return da(this.gridOptions.showOpenedGroup)},e.prototype.isReactUi=function(){return da(this.gridOptions.reactUi)},e.prototype.isSuppressReactUi=function(){return da(this.gridOptions.suppressReactUi)},e.prototype.isEnableRangeSelection=function(){return re.isRegistered(t.ModuleNames.RangeSelectionModule)&&da(this.gridOptions.enableRangeSelection)},e.prototype.isEnableRangeHandle=function(){return da(this.gridOptions.enableRangeHandle)},e.prototype.isEnableFillHandle=function(){return da(this.gridOptions.enableFillHandle)},e.prototype.getFillHandleDirection=function(){var e=this.gridOptions.fillHandleDirection;return e?"x"!==e&&"y"!==e&&"xy"!==e?(D((function(){return console.warn("AG Grid: valid values for fillHandleDirection are 'x', 'y' and 'xy'. Default to 'xy'.")}),"warn invalid fill direction"),"xy"):e:"xy"},e.prototype.getFillOperation=function(){return this.mergeGridCommonParams(this.gridOptions.fillOperation)},e.prototype.isSuppressMultiRangeSelection=function(){return da(this.gridOptions.suppressMultiRangeSelection)},e.prototype.isPaginationAutoPageSize=function(){return da(this.gridOptions.paginationAutoPageSize)},e.prototype.isRememberGroupStateWhenNewData=function(){return da(this.gridOptions.rememberGroupStateWhenNewData)},e.prototype.getIcons=function(){return this.gridOptions.icons},e.prototype.getGroupAggFiltering=function(){var e=this.gridOptions.groupAggFiltering;return"function"===typeof e?this.mergeGridCommonParams(e):da(e)?function(){return!0}:void 0},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!!da(this.gridOptions.masterDetail)&&re.assertRegistered(t.ModuleNames.MasterDetailModule,"masterDetail")},e.prototype.isKeepDetailRows=function(){return da(this.gridOptions.keepDetailRows)},e.prototype.getKeepDetailRowsCount=function(){var e=this.gridOptions.keepDetailRowsCount;return r(e)&&e>0?this.gridOptions.keepDetailRowsCount:10},e.prototype.getIsRowMasterFunc=function(){return this.gridOptions.isRowMaster},e.prototype.getIsRowSelectableFunc=function(){return this.gridOptions.isRowSelectable},e.prototype.getGroupRowRendererParams=function(){return this.gridOptions.groupRowRendererParams},e.prototype.getOverlayLoadingTemplate=function(){return this.gridOptions.overlayLoadingTemplate},e.prototype.getOverlayNoRowsTemplate=function(){return this.gridOptions.overlayNoRowsTemplate},e.prototype.isSuppressAutoSize=function(){return da(this.gridOptions.suppressAutoSize)},e.prototype.isEnableCellTextSelection=function(){return da(this.gridOptions.enableCellTextSelection)},e.prototype.isSuppressParentsInRowNodes=function(){return da(this.gridOptions.suppressParentsInRowNodes)},e.prototype.isSuppressClipboardApi=function(){return da(this.gridOptions.suppressClipboardApi)},e.prototype.isFunctionsReadOnly=function(){return da(this.gridOptions.functionsReadOnly)},e.prototype.isEnableCellTextSelect=function(){return da(this.gridOptions.enableCellTextSelection)},e.prototype.getDefaultColDef=function(){return this.gridOptions.defaultColDef},e.prototype.getDefaultColGroupDef=function(){return this.gridOptions.defaultColGroupDef},e.prototype.getDefaultExportParams=function(e){return this.gridOptions.defaultExportParams?(console.warn("AG Grid: Since v25.2 `defaultExportParams`  has been replaced by `default"+Ye(e)+"ExportParams`'"),this.gridOptions.defaultExportParams):"csv"===e&&this.gridOptions.defaultCsvExportParams?this.gridOptions.defaultCsvExportParams:"excel"===e&&this.gridOptions.defaultExcelExportParams?this.gridOptions.defaultExcelExportParams:void 0},e.prototype.isSuppressCsvExport=function(){return da(this.gridOptions.suppressCsvExport)},e.prototype.isAllowShowChangeAfterFilter=function(){return da(this.gridOptions.allowShowChangeAfterFilter)},e.prototype.isSuppressExcelExport=function(){return da(this.gridOptions.suppressExcelExport)},e.prototype.isSuppressMakeColumnVisibleAfterUnGroup=function(){return da(this.gridOptions.suppressMakeColumnVisibleAfterUnGroup)},e.prototype.getDataPathFunc=function(){return this.gridOptions.getDataPath},e.prototype.getIsServerSideGroupFunc=function(){return this.gridOptions.isServerSideGroup},e.prototype.getIsServerSideGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isServerSideGroupOpenByDefault)},e.prototype.getIsGroupOpenByDefaultFunc=function(){return this.mergeGridCommonParams(this.gridOptions.isGroupOpenByDefault)},e.prototype.getServerSideGroupKeyFunc=function(){return this.gridOptions.getServerSideGroupKey},e.prototype.getGroupRowAggFunc=function(){var e=this.gridOptions,t=e.getGroupRowAgg,n=e.groupRowAggNodes;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.nodes)}:void 0},e.prototype.getContextMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getContextMenuItems)},e.prototype.getMainMenuItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getMainMenuItems)},e.prototype.getRowIdFunc=function(){var e=this.gridOptions,t=e.getRowId,n=e.getRowNodeId;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.data)}:void 0},e.prototype.getNavigateToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextHeader)},e.prototype.getTabToNextHeaderFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextHeader)},e.prototype.getNavigateToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.navigateToNextCell)},e.prototype.getTabToNextCellFunc=function(){return this.mergeGridCommonParams(this.gridOptions.tabToNextCell)},e.prototype.getGridTabIndex=function(){return(this.gridOptions.tabIndex||0).toString()},e.prototype.isTreeData=function(){return!!da(this.gridOptions.treeData)&&re.assertRegistered(t.ModuleNames.RowGroupingModule,"Tree Data")},e.prototype.isValueCache=function(){return da(this.gridOptions.valueCache)},e.prototype.isValueCacheNeverExpires=function(){return da(this.gridOptions.valueCacheNeverExpires)},e.prototype.isDeltaSort=function(){return da(this.gridOptions.deltaSort)},e.prototype.isAggregateOnlyChangedColumns=function(){return da(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.mergeGridCommonParams(this.gridOptions.sendToClipboard)},e.prototype.getProcessRowPostCreateFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processRowPostCreate)},e.prototype.getProcessCellForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellForClipboard)},e.prototype.getProcessHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processHeaderForClipboard)},e.prototype.getProcessGroupHeaderForClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processGroupHeaderForClipboard)},e.prototype.getProcessCellFromClipboardFunc=function(){return this.mergeGridCommonParams(this.gridOptions.processCellFromClipboard)},e.prototype.getViewportRowModelPageSize=function(){return fa(this.gridOptions.viewportRowModelPageSize,5)},e.prototype.getViewportRowModelBufferSize=function(){return e=this.gridOptions.viewportRowModelBufferSize,t=5,e>=0?e:t;var e,t},e.prototype.isServerSideSortingAlwaysResets=function(){return da(this.gridOptions.serverSideSortingAlwaysResets)},e.prototype.isServerSideFilteringAlwaysResets=function(){return da(this.gridOptions.serverSideFilteringAlwaysResets)},e.prototype.getPostSortFunc=function(){var e=this.gridOptions,t=e.postSortRows,n=e.postSort;return t?this.mergeGridCommonParams(t):n?function(e){return n(e.nodes)}:void 0},e.prototype.getChartToolbarItemsFunc=function(){return this.mergeGridCommonParams(this.gridOptions.getChartToolbarItems)},e.prototype.getChartThemeOverrides=function(){return this.gridOptions.chartThemeOverrides},e.prototype.getCustomChartThemes=function(){return this.gridOptions.customChartThemes},e.prototype.getChartThemes=function(){return this.gridOptions.chartThemes||["ag-default","ag-material","ag-pastel","ag-vivid","ag-solar"]},e.prototype.getClipboardDelimiter=function(){return r(this.gridOptions.clipboardDelimiter)?this.gridOptions.clipboardDelimiter:"\t"},e.prototype.setProperty=function(e,t,n){void 0===n&&(n=!1);var o=this.gridOptions,r=o[e];if(n||r!==t){o[e]=t;var i={type:e,currentValue:t,previousValue:r};this.propertyEventService.dispatchEvent(i)}},e.prototype.addEventListener=function(e,t){this.propertyEventService.addEventListener(e,t)},e.prototype.removeEventListener=function(e,t){this.propertyEventService.removeEventListener(e,t)},e.prototype.isSkipHeaderOnAutoSize=function(){return!!this.gridOptions.skipHeaderOnAutoSize},e.prototype.getAutoSizePadding=function(){var e=this.gridOptions.autoSizePadding;return null!=e&&e>=0?e:20},e.prototype.getHeaderHeight=function(){return"number"===typeof this.gridOptions.headerHeight?this.gridOptions.headerHeight:this.getFromTheme(25,"headerHeight")},e.prototype.getFloatingFiltersHeight=function(){return"number"===typeof this.gridOptions.floatingFiltersHeight?this.gridOptions.floatingFiltersHeight:this.getFromTheme(25,"headerHeight")},e.prototype.getGroupHeaderHeight=function(){return"number"===typeof this.gridOptions.groupHeaderHeight?this.gridOptions.groupHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotHeaderHeight=function(){return"number"===typeof this.gridOptions.pivotHeaderHeight?this.gridOptions.pivotHeaderHeight:this.getHeaderHeight()},e.prototype.getPivotGroupHeaderHeight=function(){return"number"===typeof this.gridOptions.pivotGroupHeaderHeight?this.gridOptions.pivotGroupHeaderHeight:this.getGroupHeaderHeight()},e.prototype.isExternalFilterPresent=function(){return"function"===typeof this.gridOptions.isExternalFilterPresent&&this.gridOptions.isExternalFilterPresent({api:this.getApi(),columnApi:this.getColumnApi(),context:this.getContext()})},e.prototype.doesExternalFilterPass=function(e){return"function"===typeof this.gridOptions.doesExternalFilterPass&&this.gridOptions.doesExternalFilterPass(e)},e.prototype.getTooltipDelay=function(e){var t=this.gridOptions,n=t.tooltipShowDelay,o=t.tooltipHideDelay,i="show"===e?n:o,s=Ye(e);return r(i)?(i<0&&D((function(){return console.warn("ag-grid: tooltip"+s+"Delay should not be lower than 0")}),"tooltip"+s+"DelayWarn"),Math.max(200,i)):null},e.prototype.isTooltipMouseTrack=function(){return da(this.gridOptions.tooltipMouseTrack)},e.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(){return da(this.gridOptions.suppressModelUpdateAfterUpdateTransaction)},e.prototype.getDocument=function(){var e=null;return this.gridOptions.getDocument&&r(this.gridOptions.getDocument)?e=this.gridOptions.getDocument():this.eGridDiv&&(e=this.eGridDiv.ownerDocument),e&&r(e)?e:document},e.prototype.getMinColWidth=function(){var e=this.gridOptions.minColWidth;if(r(e)&&e>n.MIN_COL_WIDTH)return this.gridOptions.minColWidth;var t=this.getFromTheme(null,"headerCellMinWidth");return r(t)?Math.max(t,n.MIN_COL_WIDTH):n.MIN_COL_WIDTH},e.prototype.getMaxColWidth=function(){return this.gridOptions.maxColWidth&&this.gridOptions.maxColWidth>n.MIN_COL_WIDTH?this.gridOptions.maxColWidth:null},e.prototype.getColWidth=function(){return"number"!==typeof this.gridOptions.colWidth||this.gridOptions.colWidth<n.MIN_COL_WIDTH?200:this.gridOptions.colWidth},e.prototype.getRowBuffer=function(){var e=this.gridOptions.rowBuffer;return"number"===typeof e?e<0&&(D((function(){return console.warn("AG Grid: rowBuffer should not be negative")}),"warn rowBuffer negative"),this.gridOptions.rowBuffer=e=0):e=oe.ROW_BUFFER_SIZE,e},e.prototype.getRowBufferInPixels=function(){return this.getRowBuffer()*this.getRowHeightAsNumber()},e.prototype.getScrollbarWidth=function(){if(null==this.scrollbarWidth){var e="number"===typeof this.gridOptions.scrollbarWidth&&this.gridOptions.scrollbarWidth>=0?this.gridOptions.scrollbarWidth:zt();null!=e&&(this.scrollbarWidth=e,this.eventService.dispatchEvent({type:Ve.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},e.prototype.checkForDeprecated=function(){var e=this.gridOptions;e.deprecatedEmbedFullWidthRows&&console.warn("AG Grid: since v21.2, deprecatedEmbedFullWidthRows has been replaced with embedFullWidthRows."),e.rowDeselection&&console.warn("AG Grid: since v24.x, rowDeselection is deprecated and the behaviour is true by default. Please use `suppressRowDeselection` to prevent rows from being deselected."),e.enableMultiRowDragging&&(e.rowDragMultiRow=!0,delete e.enableMultiRowDragging,console.warn("AG Grid: since v26.1, `enableMultiRowDragging` is deprecated. Please use `rowDragMultiRow`."));var t=function(t,n,o){null!=e[t]&&(console.warn("AG Grid: since version "+o+", '"+t+"' is deprecated / renamed, please use the new property name '"+n+"' instead."),null==e[n]&&(e[n]=e[t]))};if(t("batchUpdateWaitMillis","asyncTransactionWaitMillis","23.1.x"),t("deltaRowDataMode","immutableData","23.1.x"),(e.immutableColumns||e.deltaColumnMode)&&console.warn("AG Grid: since v24.0, immutableColumns and deltaColumnMode properties are gone. The grid now works like this as default. To keep column order maintained, set grid property applyColumnDefOrder=true"),t("suppressSetColumnStateEvents","suppressColumnStateEvents","24.0.x"),e.groupRowInnerRenderer||e.groupRowInnerRendererParams||e.groupRowInnerRendererFramework){console.warn("AG Grid: since v24.0, grid properties groupRowInnerRenderer, groupRowInnerRendererFramework and groupRowInnerRendererParams are no longer used."),console.warn("  Instead use the grid properties groupRowRendererParams.innerRenderer, groupRowRendererParams.innerRendererFramework and groupRowRendererParams.innerRendererParams."),console.warn("  For example instead of this:"),console.warn('    groupRowInnerRenderer: "myRenderer"'),console.warn("    groupRowInnerRendererParams: {x: a}"),console.warn("  Replace with this:"),console.warn("    groupRowRendererParams: {"),console.warn('      innerRenderer: "myRenderer",'),console.warn("      innerRendererParams: {x: a}"),console.warn("    }"),console.warn("  We have copied the properties over for you. However to stop this error message, please change your application code."),e.groupRowRendererParams||(e.groupRowRendererParams={});var n=e.groupRowRendererParams;e.groupRowInnerRenderer&&(n.innerRenderer=e.groupRowInnerRenderer),e.groupRowInnerRendererParams&&(n.innerRendererParams=e.groupRowInnerRendererParams),e.groupRowInnerRendererFramework&&(n.innerRendererFramework=e.groupRowInnerRendererFramework)}if(e.rememberGroupStateWhenNewData&&console.warn("AG Grid: since v24.0, grid property rememberGroupStateWhenNewData is deprecated. This feature was provided before Transaction Updates worked (which keep group state). Now that transaction updates are possible and they keep group state, this feature is no longer needed."),e.detailCellRendererParams&&e.detailCellRendererParams.autoHeight&&(console.warn("AG Grid: since v24.1, grid property detailCellRendererParams.autoHeight is replaced with grid property detailRowAutoHeight. This allows this feature to work when you provide a custom DetailCellRenderer"),e.detailRowAutoHeight=!0),e.suppressKeyboardEvent&&console.warn("AG Grid: since v24.1 suppressKeyboardEvent in the gridOptions has been deprecated and will be removed in\n                 future versions of AG Grid. If you need this to be set for every column use the defaultColDef property."),e.suppressEnterpriseResetOnNewColumns&&console.warn("AG Grid: since v25, grid property suppressEnterpriseResetOnNewColumns is deprecated. This was a temporary property to allow changing columns in Server Side Row Model without triggering a reload. Now that it is possible to dynamically change columns in the grid, this is no longer needed."),e.suppressColumnStateEvents&&console.warn('AG Grid: since v25, grid property suppressColumnStateEvents no longer works due to a refactor that we did. It should be possible to achieve similar using event.source, which would be "api" if the event was due to setting column state via the API'),e.defaultExportParams&&console.warn("AG Grid: since v25.2, the grid property `defaultExportParams` has been replaced by `defaultCsvExportParams` and `defaultExcelExportParams`."),e.stopEditingWhenGridLosesFocus&&(console.warn("AG Grid: since v25.2.2, the grid property `stopEditingWhenGridLosesFocus` has been replaced by `stopEditingWhenCellsLoseFocus`."),e.stopEditingWhenCellsLoseFocus=!0),e.applyColumnDefOrder&&console.warn("AG Grid: since v26.0, the grid property `applyColumnDefOrder` is no longer needed, as this is the default behaviour. To turn this behaviour off, set maintainColumnOrder=true"),e.groupMultiAutoColumn&&(console.warn("AG Grid: since v26.0, the grid property `groupMultiAutoColumn` has been replaced by `groupDisplayType = 'multipleColumns'`"),e.groupDisplayType="multipleColumns"),e.groupUseEntireRow&&(console.warn("AG Grid: since v26.0, the grid property `groupUseEntireRow` has been replaced by `groupDisplayType = 'groupRows'`"),e.groupDisplayType="groupRows"),e.groupSuppressAutoColumn){var o=e.treeData?"treeDataDisplayType":"groupDisplayType";console.warn("AG Grid: since v26.0, the grid property `groupSuppressAutoColumn` has been replaced by `"+o+" = 'custom'`"),e.groupDisplayType="custom"}e.defaultGroupOrderComparator&&console.warn("AG Grid: since v27.2, the grid property `defaultGroupOrderComparator` is deprecated and has been replaced by `initialGroupOrderComparator` and now receives a single params object."),e.defaultGroupSortComparator&&(console.warn("AG Grid: since v26.0, the grid property `defaultGroupSortComparator` has been replaced by `initialGroupOrderComparator`"),e.defaultGroupOrderComparator=e.defaultGroupSortComparator),e.groupRowAggNodes&&console.warn("AG Grid: since v27.2, the grid property `groupRowAggNodes` is deprecated and has been replaced by `getGroupRowAgg` and now receives a single params object."),e.postSort&&console.warn("AG Grid: since v27.2, the grid property `postSort` is deprecated and has been replaced by `postSortRows` and now receives a single params object."),e.isFullWidthCell&&console.warn("AG Grid: since v27.2, the grid property `isFullWidthCell` is deprecated and has been replaced by `isFullWidthRow` and now receives a single params object."),e.localeTextFunc&&console.warn("AG Grid: since v27.2, the grid property `localeTextFunc` is deprecated and has been replaced by `getLocaleText` and now receives a single params object."),e.colWidth&&console.warn("AG Grid: since v26.1, the grid property `colWidth` is deprecated and should be set via `defaultColDef.width`."),e.minColWidth&&console.warn("AG Grid: since v26.1, the grid property `minColWidth` is deprecated and should be set via `defaultColDef.minWidth`."),e.maxColWidth&&console.warn("AG Grid: since v26.1, the grid property `maxColWidth` is deprecated and should be set via `defaultColDef.maxWidth`."),e.reactUi&&console.warn("AG Grid: since v27.0, React UI is on by default, so no need for reactUi=true. To turn it off, set suppressReactUi=true."),e.suppressReactUi&&console.warn("AG Grid: The legacy React rendering engine is deprecated and will be removed in the next major version of the grid."),e.suppressCellSelection&&(console.warn("AG Grid: since v27.0, `suppressCellSelection` has been replaced by `suppressCellFocus`."),e.suppressCellFocus=e.suppressCellSelection),e.getRowNodeId&&console.warn("AG Grid: since v27.1, `getRowNodeId` is deprecated and has been replaced by `getRowId`. The difference: if getRowId() is implemented then immutable data is enabled by default."),e.immutableData&&(e.getRowId?console.warn("AG Grid: since v27.1, `immutableData` is deprecated. With the `getRowId` callback implemented, immutable data is enabled by default so you can remove `immutableData=true`."):console.warn("AG Grid: since v27.1, `immutableData` is deprecated. To enable immutable data you must implement the `getRowId()` callback.")),e.clipboardDeliminator&&(console.warn("AG Grid: since v27.1, `clipboardDeliminator` has been replaced by `clipboardDelimiter`."),e.clipboardDelimiter=e.clipboardDeliminator)},e.prototype.checkForViolations=function(){this.isTreeData()&&this.treeDataViolations()},e.prototype.treeDataViolations=function(){this.isRowModelDefault()&&i(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()&&(i(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."),i(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(){var e=this,t=this.gridOptions,n=t.localeText,o=t.getLocaleText,r=t.localeTextFunc;return o?function(t,n,r){var i={key:t,defaultValue:n,variableValues:r,api:e.getApi(),columnApi:e.getColumnApi(),context:e.getContext()};return o(i)}:r||function(e,t,o){var r=n&&n[e];if(r&&o&&o.length)for(var i=0;!(i>=o.length);){if(-1===r.indexOf("${variable}"))break;r=r.replace("${variable}",o[i++])}return null!==r&&void 0!==r?r:t}},e.prototype.globalEventHandler=function(e,t){if(!this.destroyed){var n=yt.getCallbackForEvent(e);"function"===typeof this.gridOptions[n]&&this.gridOptions[n](t)}},e.prototype.setRowHeightVariable=function(e){var t=e+"px";this.eGridDiv.style.getPropertyValue("--ag-line-height").trim()!=t&&this.eGridDiv.style.setProperty("--ag-line-height",t)},e.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||i(this.gridOptions.rowHeight))return this.getDefaultRowHeight();var e=this.gridOptions.rowHeight;return e&&this.isNumeric(e)?(this.setRowHeightVariable(e),e):(console.warn("AG Grid row height must be a number if not using standard row model"),this.getDefaultRowHeight())},e.prototype.isGetRowHeightFunction=function(){return"function"===typeof this.gridOptions.getRowHeight},e.prototype.getRowHeightForNode=function(e,t,n){if(void 0===t&&(t=!1),null==n&&(n=this.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(t)return{height:n,estimated:!0};var o={node:e,data:e.data},r=this.mergeGridCommonParams(this.gridOptions.getRowHeight)(o);if(this.isNumeric(r))return 0===r&&D((function(){return console.warn("AG Grid: The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.")}),"invalidRowHeight"),{height:Math.max(1,r),estimated:!1}}return e.detail&&this.isMasterDetail()?this.isDetailRowAutoHeight()?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}:{height:this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:n,estimated:!1}},e.prototype.isDynamicRowHeight=function(){return"function"===typeof this.gridOptions.getRowHeight},e.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},e.prototype.chartMenuPanelWidth=function(){return this.environment.chartMenuPanelWidth()},e.prototype.isNumeric=function(e){return!isNaN(e)&&"number"===typeof e&&isFinite(e)},e.prototype.getFromTheme=function(e,t){var n=this.environment.getTheme().theme;return n&&0===n.indexOf("ag-theme")?this.environment.getSassVariable(n,t):e},e.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},e.prototype.matchesGroupDisplayType=function(e,t){var n=["groupRows","multipleColumns","custom","singleColumn"];return n.indexOf(t)<0?(console.warn("AG Grid: '"+t+"' is not a valid groupDisplayType value - possible values are: '"+n.join("', '")+"'"),!1):t===e},e.prototype.matchesTreeDataDisplayType=function(e,t){var n=["auto","custom"];return n.indexOf(t)<0?(console.warn("AG Grid: '"+t+"' is not a valid treeDataDisplayType value - possible values are: '"+n.join("', '")+"'"),!1):t===e},e.MIN_COL_WIDTH=10,e.PROP_HEADER_HEIGHT="headerHeight",e.PROP_GROUP_REMOVE_SINGLE_CHILDREN="groupRemoveSingleChildren",e.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN="groupRemoveLowestSingleChildren",e.PROP_PIVOT_HEADER_HEIGHT="pivotHeaderHeight",e.PROP_SUPPRESS_CLIPBOARD_PASTE="suppressClipboardPaste",e.PROP_GROUP_HEADER_HEIGHT="groupHeaderHeight",e.PROP_PIVOT_GROUP_HEADER_HEIGHT="pivotGroupHeaderHeight",e.PROP_NAVIGATE_TO_NEXT_CELL="navigateToNextCell",e.PROP_TAB_TO_NEXT_CELL="tabToNextCell",e.PROP_NAVIGATE_TO_NEXT_HEADER="navigateToNextHeader",e.PROP_TAB_TO_NEXT_HEADER="tabToNextHeader",e.PROP_IS_EXTERNAL_FILTER_PRESENT="isExternalFilterPresent",e.PROP_DOES_EXTERNAL_FILTER_PASS="doesExternalFilterPass",e.PROP_FLOATING_FILTERS_HEIGHT="floatingFiltersHeight",e.PROP_SUPPRESS_ROW_CLICK_SELECTION="suppressRowClickSelection",e.PROP_SUPPRESS_ROW_DRAG="suppressRowDrag",e.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG="suppressMoveWhenRowDragging",e.PROP_GET_ROW_CLASS="getRowClass",e.PROP_GET_ROW_STYLE="getRowStyle",e.PROP_GET_ROW_HEIGHT="getRowHeight",e.PROP_POPUP_PARENT="popupParent",e.PROP_DOM_LAYOUT="domLayout",e.PROP_ROW_CLASS="rowClass",e.PROP_FILL_HANDLE_DIRECTION="fillHandleDirection",e.PROP_GROUP_ROW_AGG_NODES="groupRowAggNodes",e.PROP_GET_GROUP_ROW_AGG="getGroupRowAgg",e.PROP_GET_BUSINESS_KEY_FOR_NODE="getBusinessKeyForNode",e.PROP_GET_CHILD_COUNT="getChildCount",e.PROP_PROCESS_ROW_POST_CREATE="processRowPostCreate",e.PROP_GET_ROW_NODE_ID="getRowNodeId",e.PROP_GET_ROW_ID="getRowId",e.PROP_IS_FULL_WIDTH_CELL="isFullWidthCell",e.PROP_IS_FULL_WIDTH_ROW="isFullWidthRow",e.PROP_IS_ROW_SELECTABLE="isRowSelectable",e.PROP_IS_ROW_MASTER="isRowMaster",e.PROP_POST_SORT="postSort",e.PROP_POST_SORT_ROWS="postSortRows",e.PROP_GET_DOCUMENT="getDocument",e.PROP_POST_PROCESS_POPUP="postProcessPopup",e.PROP_DEFAULT_GROUP_ORDER_COMPARATOR="defaultGroupOrderComparator",e.PROP_INITIAL_GROUP_ORDER_COMPARATOR="initialGroupOrderComparator",e.PROP_PAGINATION_NUMBER_FORMATTER="paginationNumberFormatter",e.PROP_GET_CONTEXT_MENU_ITEMS="getContextMenuItems",e.PROP_GET_MAIN_MENU_ITEMS="getMainMenuItems",e.PROP_PROCESS_CELL_FOR_CLIPBOARD="processCellForClipboard",e.PROP_PROCESS_CELL_FROM_CLIPBOARD="processCellFromClipboard",e.PROP_SEND_TO_CLIPBOARD="sendToClipboard",e.PROP_PROCESS_TO_SECONDARY_COLDEF="processSecondaryColDef",e.PROP_PROCESS_SECONDARY_COL_GROUP_DEF="processSecondaryColGroupDef",e.PROP_GET_CHART_TOOLBAR_ITEMS="getChartToolbarItems",e.PROP_GET_SERVER_SIDE_STORE_PARAMS="getServerSideStoreParams",e.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT="isServerSideGroupOpenByDefault",e.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION="isApplyServerSideTransaction",e.PROP_IS_SERVER_SIDE_GROUP="isServerSideGroup",e.PROP_GET_SERVER_SIDE_GROUP_KEY="getServerSideGroupKey",la([K("gridOptions")],e.prototype,"gridOptions",void 0),la([K("eventService")],e.prototype,"eventService",void 0),la([K("environment")],e.prototype,"environment",void 0),la([K("eGridDiv")],e.prototype,"eGridDiv",void 0),la([ua(0,Q("gridApi")),ua(1,Q("columnApi"))],e.prototype,"agWire",null),la([Z],e.prototype,"destroy",null),la([z],e.prototype,"init",null),e=n=la([Y("gridOptionsWrapper")],e)}(),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])},e(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)}}(),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};(ga=t.LayoutCssClasses||(t.LayoutCssClasses={})).AUTO_HEIGHT="ag-layout-auto-height",ga.NORMAL="ag-layout-normal",ga.PRINT="ag-layout-print";var Ca,wa=function(e){function n(t){var n=e.call(this)||this;return n.view=t,n}return va(n,e),n.prototype.postConstruct=function(){this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},n.prototype.updateLayoutClasses=function(){var e=this.gridOptionsWrapper.getDomLayout(),n={autoHeight:e===oe.DOM_LAYOUT_AUTO_HEIGHT,normal:e===oe.DOM_LAYOUT_NORMAL,print:e===oe.DOM_LAYOUT_PRINT},o=n.autoHeight?t.LayoutCssClasses.AUTO_HEIGHT:n.print?t.LayoutCssClasses.PRINT:t.LayoutCssClasses.NORMAL;this.view.updateLayoutClasses(o,n)},ya([K("gridOptionsWrapper")],n.prototype,"gridOptionsWrapper",void 0),ya([z],n.prototype,"postConstruct",null),n}(Fe),_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])},e(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)}}(),ba=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(e){function t(t){var n=e.call(this)||this;return n.scrollLeft=-1,n.nextScrollTop=-1,n.scrollTop=-1,n.eBodyViewport=t,n.resetLastHorizontalScrollElementDebounced=G(n.resetLastHorizontalScrollElement.bind(n),500),n}return _a(t,e),t.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady((function(t){e.centerRowContainerCtrl=t.centerRowContainerCtrl,e.onDisplayedColumnsWidthChanged(),e.addScrollListener()}))},t.prototype.addScrollListener=function(){var e=this.ctrlsService.getFakeHScrollCtrl();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onCenterViewportScroll.bind(this)),this.addManagedListener(e.getViewport(),"scroll",this.onFakeHorizontalScroll.bind(this));var t=this.gridOptionsWrapper.isDebounceVerticalScrollbar()?G(this.onVerticalScroll.bind(this),100):this.onVerticalScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",t)},t.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},t.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(e){if(!(null==this.centerRowContainerCtrl)){void 0===e&&(e=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var t=this.enableRtl?e:-e,n=this.ctrlsService.getTopCenterRowContainerCtrl(),o=this.ctrlsService.getBottomCenterRowContainerCtrl(),r=this.ctrlsService.getFakeHScrollCtrl();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(t),o.setContainerTranslateX(t),n.setContainerTranslateX(t),pn(this.lastHorizontalScrollElement===this.centerRowContainerCtrl.getViewportElement()?r.getViewport():this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl)}},t.prototype.isControllingScroll=function(e){return this.lastHorizontalScrollElement?e===this.lastHorizontalScrollElement:(this.lastHorizontalScrollElement=e,!0)},t.prototype.onFakeHorizontalScroll=function(){var e=this.ctrlsService.getFakeHScrollCtrl().getViewport();this.isControllingScroll(e)&&this.onBodyHorizontalScroll(e)},t.prototype.onCenterViewportScroll=function(){var e=this.centerRowContainerCtrl.getViewportElement();this.isControllingScroll(e)&&this.onBodyHorizontalScroll(e)},t.prototype.onBodyHorizontalScroll=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollLeft;this.shouldBlockScrollUpdate("horizontal",t,!0)||(this.doHorizontalScroll(Math.round(cn(e,this.enableRtl))),this.resetLastHorizontalScrollElementDebounced())},t.prototype.onVerticalScroll=function(){var e=this.eBodyViewport.scrollTop;this.shouldBlockScrollUpdate("vertical",e,!0)||(this.animationFrameService.setScrollTop(e),this.nextScrollTop=e,this.gridOptionsWrapper.isSuppressAnimationFrame()?(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()):this.animationFrameService.schedule())},t.prototype.resetLastHorizontalScrollElement=function(){this.lastHorizontalScrollElement=null},t.prototype.doHorizontalScroll=function(e){var t=cn(this.ctrlsService.getFakeHScrollCtrl().getViewport(),this.enableRtl);this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent("horizontal"),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.onHorizontalViewportChanged())},t.prototype.fireScrollEvent=function(e){var t=this,n={type:Ve.EVENT_BODY_SCROLL,api:this.gridApi,columnApi:this.columnApi,direction:e,left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(n),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout((function(){var e=Object.assign({},n,{type:Ve.EVENT_BODY_SCROLL_END});t.eventService.dispatchEvent(e)}),100)},t.prototype.shouldBlockScrollUpdate=function(e,t,n){if(void 0===n&&(n=!1),n&&!Wt())return!1;if("vertical"===e){var o=rn(this.eBodyViewport),r=this.eBodyViewport.scrollHeight;if(t<0||t+o>r)return!0}if("horizontal"===e){var i=this.centerRowContainerCtrl.getCenterWidth(),s=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&un()){if(t>0)return!0}else if(t<0)return!0;if(Math.abs(t)+i>s)return!0}return!1},t.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent("vertical")},t.prototype.onHorizontalViewportChanged=function(){this.centerRowContainerCtrl.onHorizontalViewportChanged()},t.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onBodyHorizontalScroll(this.centerRowContainerCtrl.getViewportElement())},t.prototype.executeAnimationFrameScroll=function(){var e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e},t.prototype.setHorizontalScrollPosition=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();this.shouldBlockScrollUpdate("horizontal",e)&&(e=this.enableRtl&&un()?e>0?0:t:Math.min(Math.max(e,0),t)),pn(this.centerRowContainerCtrl.getViewportElement(),Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)},t.prototype.setVerticalScrollPosition=function(e){this.eBodyViewport.scrollTop=e},t.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},t.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},t.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},t.prototype.scrollHorizontally=function(e){var t=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowContainerCtrl.getViewportElement().scrollLeft-t},t.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},t.prototype.ensureNodeVisible=function(e,t){void 0===t&&(t=null);for(var n=this.rowModel.getRowCount(),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.ensureIndexVisible(r,t)},t.prototype.ensureIndexVisible=function(e,t){if(this.gridOptionsWrapper.getDomLayout()!==oe.DOM_LAYOUT_PRINT){var n=this.paginationProxy.getRowCount();if("number"!==typeof e||e<0||e>=n)console.warn("invalid row index for ensureIndexVisible: "+e);else{this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()||this.paginationProxy.goToPageWithIndex(e);var 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.getDivStretchOffset(),d=c.top+p,h=c.bottom+p,f=h-d,g=this.heightScaler.getScrollPositionForPixel(l),m=this.heightScaler.getScrollPositionForPixel(u-f),v=Math.min((g+m)/2,l),y=null;"top"===t?y=g:"bottom"===t?y=m:"middle"===t?y=v:d>l?y=g:h<u&&(y=m),null!==y&&(this.eBodyViewport.scrollTop=y,this.rowRenderer.redrawAfterScroll()),o=i!==r.rowTop||s!==r.rowHeight}while(o);this.animationFrameService.flushAllFrames()}}},t.prototype.ensureColumnVisible=function(e,t){void 0===t&&(t="auto");var n=this.columnModel.getGridColumn(e);if(n&&!n.isPinned()&&this.columnModel.isColumnDisplayed(n)){var o=this.getPositionedHorizontalScroll(n,t);null!==o&&this.centerRowContainerCtrl.setCenterViewportScrollLeft(o),this.centerRowContainerCtrl.onHorizontalViewportChanged(),this.animationFrameService.flushAllFrames()}},t.prototype.getPositionedHorizontalScroll=function(e,t){var n=this.isColumnOutsideViewport(e),o=n.columnBeforeStart,r=n.columnAfterEnd,i=this.centerRowContainerCtrl.getCenterWidth()<e.getActualWidth(),s=this.centerRowContainerCtrl.getCenterWidth(),a=this.enableRtl,l=(a?o:r)||i,u=a?r:o;"auto"!==t&&(l="start"===t,u="end"===t);var c="middle"===t;if(l||u||c){var p=this.getColumnBounds(e),d=p.colLeft,h=p.colMiddle,f=p.colRight;return c?h-s/2:l?a?f:d:a?d-s:f-s}return null},t.prototype.isColumnOutsideViewport=function(e){var t=this.getViewportBounds(),n=t.start,o=t.end,r=this.getColumnBounds(e),i=r.colLeft,s=r.colRight,a=this.enableRtl;return{columnBeforeStart:a?n>s:o<s,columnAfterEnd:a?o<i:n>i}},t.prototype.getColumnBounds=function(e){var t=this.enableRtl,n=this.columnModel.getBodyContainerWidth(),o=e.getActualWidth(),r=e.getLeft(),i=t?-1:1,s=t?n-r:r;return{colLeft:s,colMiddle:s+o/2*i,colRight:s+o*i}},t.prototype.getViewportBounds=function(){var e=this.centerRowContainerCtrl.getCenterWidth(),t=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:t,end:e+t,width:e}},ba([K("ctrlsService")],t.prototype,"ctrlsService",void 0),ba([K("animationFrameService")],t.prototype,"animationFrameService",void 0),ba([K("columnApi")],t.prototype,"columnApi",void 0),ba([K("gridApi")],t.prototype,"gridApi",void 0),ba([K("paginationProxy")],t.prototype,"paginationProxy",void 0),ba([K("rowModel")],t.prototype,"rowModel",void 0),ba([K("rowContainerHeightService")],t.prototype,"heightScaler",void 0),ba([K("rowRenderer")],t.prototype,"rowRenderer",void 0),ba([K("columnModel")],t.prototype,"columnModel",void 0),ba([z],t.prototype,"postConstruct",null),t}(Fe),Sa=function(){function e(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=-1!==e.scrollAxis.indexOf("x"),this.scrollVertically=-1!==e.scrollAxis.indexOf("y"),this.scrollByTick=null!=e.scrollByTick?e.scrollByTick:20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||function(){return!1},this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||function(){return!1}}return e.prototype.check=function(e,t){void 0===t&&(t=!1);var n=t||this.shouldSkipVerticalScroll();if(!n||!this.shouldSkipHorizontalScroll()){var o=this.scrollContainer.getBoundingClientRect(),r=this.scrollByTick;this.tickLeft=e.clientX<o.left+r,this.tickRight=e.clientX>o.right-r,this.tickUp=e.clientY<o.top+r&&!n,this.tickDown=e.clientY>o.bottom-r&&!n,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},e.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},e.prototype.doTick=function(){var e;if(this.tickCount++,e=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){var n=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(n-e),this.tickRight&&this.setHorizontalPosition(n+e)}this.onScrollCallback&&this.onScrollCallback()},e.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},e}(),Ra=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Oa=function(){return Oa=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},Oa.apply(this,arguments)},Ta=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},Pa=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Aa=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Pa(arguments[t]));return e},Da=function(e){function n(t){var n=e.call(this)||this;return n.isMultiRowDrag=!1,n.isGridSorted=!1,n.isGridFiltered=!1,n.isRowGroupActive=!1,n.eContainer=t,n}return Ra(n,e),n.prototype.postConstruct=function(){var e=this;this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel);var t=function(){e.onSortChanged(),e.onFilterChanged(),e.onRowGroupChanged()};this.addManagedListener(this.eventService,Ve.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_MODEL_UPDATED,(function(){t()})),t(),this.ctrlsService.whenReady((function(){var t=e.ctrlsService.getGridBodyCtrl();e.autoScrollService=new Sa({scrollContainer:t.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:function(){return t.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(e){return t.getScrollFeature().setVerticalScrollPosition(e)},onScrollCallback:function(){e.onDragging(e.lastDraggingEvent)}})}))},n.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},n.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},n.prototype.onRowGroupChanged=function(){var e=this.columnModel.getRowGroupColumns();this.isRowGroupActive=!s(e)},n.prototype.getContainer=function(){return this.eContainer},n.prototype.isInterestedIn=function(e){return e===t.DragSourceType.RowDrag},n.prototype.getIconName=function(){return this.gridOptionsWrapper.isRowDragManaged()&&this.shouldPreventRowMove()?ts.ICON_NOT_ALLOWED:ts.ICON_MOVE},n.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},n.prototype.getRowNodes=function(e){var t=this;if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];var n=this.gridOptionsWrapper.isRowDragMultiRow(),o=Aa(this.selectionService.getSelectedNodes()).sort((function(e,n){return t.getRowIndexNumber(e)-t.getRowIndexNumber(n)})),r=e.dragItem.rowNode;return n&&-1!==o.indexOf(r)?(this.isMultiRowDrag=!0,o):(this.isMultiRowDrag=!1,[r])},n.prototype.onDragEnter=function(e){e.dragItem.rowNodes=this.getRowNodes(e),this.dispatchGridEvent(Ve.EVENT_ROW_DRAG_ENTER,e),this.getRowNodes(e).forEach((function(e){e.setDragging(!0)})),this.onEnterOrDragging(e)},n.prototype.onDragging=function(e){this.onEnterOrDragging(e)},n.prototype.isFromThisGrid=function(e){return e.dragSource.dragSourceDomDataKey===this.gridOptionsWrapper.getDomDataKey()},n.prototype.isDropZoneWithinThisGrid=function(e){var t=this.ctrlsService.getGridBodyCtrl().getGui(),n=e.dropZoneTarget;return!t.contains(n)},n.prototype.onEnterOrDragging=function(e){this.dispatchGridEvent(Ve.EVENT_ROW_DRAG_MOVE,e),this.lastDraggingEvent=e;var t=this.mouseEventService.getNormalisedPosition(e).y;this.gridOptionsWrapper.isRowDragManaged()&&this.doManagedDrag(e,t),this.autoScrollService.check(e.event)},n.prototype.doManagedDrag=function(e,t){var n=this.isFromThisGrid(e),o=this.gridOptionsWrapper.isRowDragManaged(),r=e.dragItem.rowNodes;o&&this.shouldPreventRowMove()||(this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()||!n?this.isDropZoneWithinThisGrid(e)||this.clientSideRowModel.highlightRowAtPixel(r[0],t):this.moveRows(r,t))},n.prototype.getRowIndexNumber=function(e){return parseInt(ue(e.getRowIndexString().split("-")),10)},n.prototype.moveRowAndClearHighlight=function(e){var n=this,o=this.clientSideRowModel.getLastHighlightedRowNode(),r=o&&o.highlighted===t.RowHighlightPosition.Below,i=this.mouseEventService.getNormalisedPosition(e).y,s=e.dragItem.rowNodes,a=r?1:0;if(this.isFromThisGrid(e))s.forEach((function(e){e.rowTop<i&&(a-=1)})),this.moveRows(s,i,a);else{var l=this.gridOptionsWrapper.getRowIdFunc(),u=this.clientSideRowModel.getRowIndexAtPixel(i)+1;this.clientSideRowModel.getHighlightPosition(i)===t.RowHighlightPosition.Above&&u--,this.clientSideRowModel.updateRowData({add:s.map((function(e){return e.data})).filter((function(e){return!n.clientSideRowModel.getRowNode(l?l({data:e,level:0}):e.id)})),addIndex:u})}this.clearRowHighlight()},n.prototype.clearRowHighlight=function(){this.clientSideRowModel.highlightRowAtPixel(null)},n.prototype.moveRows=function(e,t,n){void 0===n&&(n=0),this.clientSideRowModel.ensureRowsAtPixel(e,t,n)&&(this.focusService.clearFocusedCell(),this.rangeService&&this.rangeService.removeAllCellRanges())},n.prototype.addRowDropZone=function(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(Ve.EVENT_ROW_DRAG_ENTER,t))}),e.onDragLeave&&(o.onDragLeave=function(t){e.onDragLeave(n.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_LEAVE,t))}),e.onDragging&&(o.onDragging=function(t){e.onDragging(n.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_MOVE,t))}),e.onDragStop&&(o.onDragStop=function(t){e.onDragStop(n.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_END,t))})),this.dragAndDropService.addDropTarget(Oa({isInterestedIn:function(e){return e===t.DragSourceType.RowDrag},getIconName:function(){return ts.ICON_MOVE},external:!0},o))}else D((function(){return console.warn("AG Grid: addRowDropZone - A container target needs to be provided")}),"add-drop-zone-empty-target")},n.prototype.getRowDropZone=function(e){var t=this,n=this.getContainer.bind(this),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(Ve.EVENT_ROW_DRAG_ENTER,n))}:o,onDragLeave:e.onDragLeave?function(n){r(n),e.onDragLeave(t.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_LEAVE,n))}:r,onDragging:e.onDragging?function(n){i(n),e.onDragging(t.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_MOVE,n))}:i,onDragStop:e.onDragStop?function(n){s(n),e.onDragStop(t.draggingToRowDragEvent(Ve.EVENT_ROW_DRAG_END,n))}:s,fromGrid:!0}:{getContainer:n,onDragEnter:o,onDragLeave:r,onDragging:i,onDragStop:s,fromGrid:!0}},n.prototype.draggingToRowDragEvent=function(e,n){var o,r,i=this.mouseEventService.getNormalisedPosition(n).y,s=-1;switch(i>this.paginationProxy.getCurrentPageHeight()||(s=this.rowModel.getRowIndexAtPixel(i),o=this.rowModel.getRow(s)),n.vDirection){case t.VerticalDirection.Down:r="down";break;case t.VerticalDirection.Up:r="up";break;default:r=null}return{type:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),event:n.event,node:n.dragItem.rowNode,nodes:n.dragItem.rowNodes,overIndex:s,overNode:o,y:i,vDirection:r}},n.prototype.dispatchGridEvent=function(e,t){var n=this.draggingToRowDragEvent(e,t);this.eventService.dispatchEvent(n)},n.prototype.onDragLeave=function(e){this.dispatchGridEvent(Ve.EVENT_ROW_DRAG_LEAVE,e),this.stopDragging(e),this.gridOptionsWrapper.isRowDragManaged()&&this.clearRowHighlight(),this.isFromThisGrid(e)&&(this.isMultiRowDrag=!1)},n.prototype.onDragStop=function(e){this.dispatchGridEvent(Ve.EVENT_ROW_DRAG_END,e),this.stopDragging(e),!this.gridOptionsWrapper.isRowDragManaged()||!this.gridOptionsWrapper.isSuppressMoveWhenRowDragging()&&this.isFromThisGrid(e)||this.isDropZoneWithinThisGrid(e)||this.moveRowAndClearHighlight(e)},n.prototype.stopDragging=function(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach((function(e){e.setDragging(!1)}))},Ta([K("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Ta([K("rowModel")],n.prototype,"rowModel",void 0),Ta([K("paginationProxy")],n.prototype,"paginationProxy",void 0),Ta([K("columnModel")],n.prototype,"columnModel",void 0),Ta([K("focusService")],n.prototype,"focusService",void 0),Ta([K("sortController")],n.prototype,"sortController",void 0),Ta([K("filterManager")],n.prototype,"filterManager",void 0),Ta([K("selectionService")],n.prototype,"selectionService",void 0),Ta([K("mouseEventService")],n.prototype,"mouseEventService",void 0),Ta([K("ctrlsService")],n.prototype,"ctrlsService",void 0),Ta([q("rangeService")],n.prototype,"rangeService",void 0),Ta([K("columnApi")],n.prototype,"columnApi",void 0),Ta([K("gridApi")],n.prototype,"gridApi",void 0),Ta([z],n.prototype,"postConstruct",null),n}(Fe),xa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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};(Ca=t.RowAnimationCssClasses||(t.RowAnimationCssClasses={})).ANIMATION_ON="ag-row-animation",Ca.ANIMATION_OFF="ag-row-no-animation";var Ma,Ia,La="ag-selectable",Fa="ag-force-vertical-scroll",ka="ag-column-moving",Ga=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return xa(n,e),n.prototype.getScrollFeature=function(){return this.bodyScrollFeature},n.prototype.getBodyViewportElement=function(){return this.eBodyViewport},n.prototype.setComp=function(e,t,n,o,r){this.comp=e,this.eGridBody=t,this.eBodyViewport=n,this.eTop=o,this.eBottom=r,this.setCellTextSelection(this.gridOptionsWrapper.isEnableCellTextSelect()),this.createManagedBean(new wa(this.comp)),this.bodyScrollFeature=this.createManagedBean(new Ea(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([o,n,r]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.ctrlsService.registerGridBodyCtrl(this)},n.prototype.getComp=function(){return this.comp},n.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Ve.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_PINNED_ROW_DATA_CHANGED,this.setFloatingHeights.bind(this))},n.prototype.addFocusListeners=function(e){var t=this;e.forEach((function(e){t.addManagedListener(e,"focusin",(function(){e.classList.add("ag-has-focus")})),t.addManagedListener(e,"focusout",(function(t){e.contains(t.relatedTarget)||e.classList.remove("ag-has-focus")}))}))},n.prototype.setColumnMovingCss=function(e){this.comp.setColumnMovingCss(e?ka:null,e)},n.prototype.setCellTextSelection=function(e){void 0===e&&(e=!1);var t=e?La:null;this.comp.setCellSelectableCss(t,e)},n.prototype.onScrollVisibilityChanged=function(){var e=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(e)},n.prototype.onGridColumnsChanged=function(){var e=this.columnModel.getAllGridColumns();this.comp.setColumnCount(e?e.length:0)},n.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",(function(e){if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}))},n.prototype.addStopEditingWhenGridLosesFocus=function(){var e=this;if(this.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus()){var t=function(t){var o=t.relatedTarget;if(null!==jt(o)){var r=n.some((function(e){return e.contains(o)}))&&e.mouseEventService.isElementInThisGrid(o);if(!r){var i=e.popupService;r=i.getActivePopups().some((function(e){return e.contains(o)}))||i.isElementWithinCustomPopup(o)}r||e.rowRenderer.stopEditing()}else e.rowRenderer.stopEditing()},n=[this.eBodyViewport,this.eBottom,this.eTop];n.forEach((function(n){return e.addManagedListener(n,"focusout",t)}))}},n.prototype.updateRowCount=function(){var e=this.headerNavigationService.getHeaderRowCount(),t=this.paginationProxy.getType(),n=-1;t===oe.ROW_MODEL_TYPE_CLIENT_SIDE&&(n=0,this.paginationProxy.forEachNode((function(e){e.group||n++})));var o=-1===n?-1:e+n;this.comp.setRowCount(o)},n.prototype.registerBodyViewportResizeListener=function(e){this.comp.registerBodyViewportResizeListener(e)},n.prototype.setVerticalScrollPaddingVisible=function(e){var t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)},n.prototype.isVerticalScrollShowing=function(){var e=this.gridOptionsWrapper.isAlwaysShowVerticalScroll(),t=e?Fa:null;return this.comp.setAlwaysVerticalScrollClass(t,e),e||En(this.eBodyViewport)},n.prototype.setupRowAnimationCssClass=function(){var e=this,n=function(){var n=e.gridOptionsWrapper.isAnimateRows()&&!e.rowContainerHeightService.isStretching(),o=n?t.RowAnimationCssClasses.ANIMATION_ON:t.RowAnimationCssClasses.ANIMATION_OFF;e.comp.setRowAnimationCssOnBodyViewport(o,n)};n(),this.addManagedListener(this.eventService,Ve.EVENT_HEIGHT_SCALE_CHANGED,n)},n.prototype.getGridBodyElement=function(){return this.eGridBody},n.prototype.addBodyViewportListener=function(){var e=this;this.addManagedListener(this.eBodyViewport,"contextmenu",(function(t){e.gridOptionsWrapper.isPreventDefaultOnContextMenu()&&t.preventDefault();var n=t.target;n!==e.eBodyViewport&&n!==e.ctrlsService.getCenterRowContainerCtrl().getViewportElement()||e.contextMenuFactory&&e.contextMenuFactory.onContextMenu(t,null,null,null,null,e.eGridBody)})),this.addManagedListener(this.eBodyViewport,"wheel",this.onWheel.bind(this))},n.prototype.onWheel=function(e){this.gridOptionsWrapper.isSuppressScrollWhenPopupsAreOpen()&&this.popupService.hasAnchoredPopup()&&e.preventDefault()},n.prototype.getGui=function(){return this.eGridBody},n.prototype.scrollVertically=function(e){var t=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t},n.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new Da(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},n.prototype.getRowDragFeature=function(){return this.rowDragFeature},n.prototype.setFloatingHeights=function(){var e=this.pinnedRowModel,t=e.getPinnedTopTotalHeight();t&&(t+=1);var n=e.getPinnedBottomTotalHeight();n&&(n+=1),this.comp.setTopHeight(t),this.comp.setBottomHeight(n),this.comp.setTopDisplay(t?"inherit":"none"),this.comp.setBottomDisplay(n?"inherit":"none")},n.prototype.sizeColumnsToFit=function(e){var t=this,n=this.isVerticalScrollShowing()?this.gridOptionsWrapper.getScrollbarWidth():0,o=sn(this.eBodyViewport)-n;o>0?this.columnModel.sizeColumnsToFit(o,"sizeColumnsToFit"):void 0===e?window.setTimeout((function(){t.sizeColumnsToFit(100)}),0):100===e?window.setTimeout((function(){t.sizeColumnsToFit(500)}),100):500===e?window.setTimeout((function(){t.sizeColumnsToFit(-1)}),500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},n.prototype.addScrollEventListener=function(e){this.eBodyViewport.addEventListener("scroll",e)},n.prototype.removeScrollEventListener=function(e){this.eBodyViewport.removeEventListener("scroll",e)},Na([K("rowContainerHeightService")],n.prototype,"rowContainerHeightService",void 0),Na([K("ctrlsService")],n.prototype,"ctrlsService",void 0),Na([K("columnModel")],n.prototype,"columnModel",void 0),Na([K("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),Na([q("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),Na([K("headerNavigationService")],n.prototype,"headerNavigationService",void 0),Na([K("paginationProxy")],n.prototype,"paginationProxy",void 0),Na([K("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Na([K("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),Na([K("rowRenderer")],n.prototype,"rowRenderer",void 0),Na([K("popupService")],n.prototype,"popupService",void 0),Na([K("mouseEventService")],n.prototype,"mouseEventService",void 0),n}(Fe);(Ma=t.SelectionHandleType||(t.SelectionHandleType={}))[Ma.FILL=0]="FILL",Ma[Ma.RANGE=1]="RANGE",(Ia=t.CellRangeType||(t.CellRangeType={}))[Ia.VALUE=0]="VALUE",Ia[Ia.DIMENSION=1]="DIMENSION";var Ha,Ba="ag-cell-range-selected",Va=function(){function e(e,t){this.beans=e,this.cellCtrl=t}return e.prototype.setComp=function(e,t){this.cellComp=e,this.eGui=t,this.onRangeSelectionChanged()},e.prototype.onRangeSelectionChanged=function(){this.cellComp&&(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(Ba,0!==this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-1",1===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-2",2===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-3",3===this.rangeCount),this.cellComp.addOrRemoveCssClass("ag-cell-range-selected-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),lo(this.eGui,this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass("ag-cell-range-single-cell",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},e.prototype.updateRangeBorders=function(){var e=this.getRangeBorders(),t=this.isSingleCell(),n=!t&&e.top,o=!t&&e.right,r=!t&&e.bottom,i=!t&&e.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",n),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",o),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",r),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",i)},e.prototype.isSingleCell=function(){var e=this.beans.rangeService;return 1===this.rangeCount&&e&&!e.isMoreThanOneCell()},e.prototype.getHasChartRange=function(){var e=this.beans.rangeService;if(!this.rangeCount||!e)return!1;var n=e.getCellRanges();return n.length>0&&n.every((function(e){return me([t.CellRangeType.DIMENSION,t.CellRangeType.VALUE],e.type)}))},e.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},e.prototype.getRangeBorders=function(){var e,t,n=this,o=this.beans.gridOptionsWrapper.isEnableRtl(),r=!1,i=!1,s=!1,a=!1,l=this.cellCtrl.getCellPosition().column,u=this.beans,c=u.rangeService,p=u.columnModel;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.cellCtrl.getCellPosition(),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),m=c.getRangeEndRow(f);!r&&this.beans.rowPositionUtils.sameRow(g,this.cellCtrl.getCellPosition())&&(r=!0),!s&&this.beans.rowPositionUtils.sameRow(m,this.cellCtrl.getCellPosition())&&(s=!0),!a&&e&&f.columns.indexOf(e)<0&&(a=!0),!i&&t&&f.columns.indexOf(t)<0&&(i=!0)}return{top:r,right:i,bottom:s,left:a}},e.prototype.refreshHandle=function(){if(this.beans.rangeService){var e=this.shouldHaveSelectionHandle();this.selectionHandle&&!e&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),e&&this.addSelectionHandle(),this.cellComp.addOrRemoveCssClass("ag-cell-range-handle",!!this.selectionHandle)}},e.prototype.shouldHaveSelectionHandle=function(){var e=this.beans,n=e.gridOptionsWrapper,o=e.rangeService,r=o.getCellRanges(),i=r.length;if(this.rangeCount<1||i<1)return!1;var s=ue(r),a=this.cellCtrl.getCellPosition(),l=n.isEnableFillHandle()&&!this.cellCtrl.isSuppressFillHandle(),u=n.isEnableRangeHandle(),c=1===i&&!this.cellCtrl.isEditing()&&(l||u);if(this.hasChartRange){var p=r[0].type===t.CellRangeType.DIMENSION&&o.isCellInSpecificRange(a,r[0]);this.cellComp.addOrRemoveCssClass("ag-cell-range-chart-category",p),c=s.type===t.CellRangeType.VALUE}return c&&null!=s.endRow&&o.isContiguousRange(s)&&o.isBottomRightCell(s,a)},e.prototype.addSelectionHandle=function(){var e=this.beans,n=e.gridOptionsWrapper,o=ue(e.rangeService.getCellRanges()).type,r=n.isEnableFillHandle()&&i(o)?t.SelectionHandleType.FILL:t.SelectionHandleType.RANGE;this.selectionHandle&&this.selectionHandle.getType()!==r&&(this.selectionHandle=this.beans.context.destroyBean(this.selectionHandle)),this.selectionHandle||(this.selectionHandle=this.beans.selectionHandleFactory.createSelectionHandle(r)),this.selectionHandle.refresh(this.cellCtrl)},e.prototype.destroy=function(){this.beans.context.destroyBean(this.selectionHandle)},e}(),Wa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),ja=function(e){function t(t,n){var o=e.call(this)||this;return o.cellCtrl=t,o.beans=n,o.column=t.getColumn(),o.rowNode=t.getRowNode(),o.setupColSpan(),o.setupRowSpan(),o}return Wa(t,e),t.prototype.setupRowSpan=function(){this.rowSpan=this.column.getRowSpan(this.rowNode)},t.prototype.setComp=function(e){this.eGui=e,this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()},t.prototype.onDisplayColumnsChanged=function(){var e=this.getColSpanningList();ce(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())},t.prototype.setupColSpan=function(){null!=this.column.getColDef().colSpan&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListener(this.beans.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayColumnsChanged.bind(this)),this.addManagedListener(this.beans.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onWidthChanged.bind(this)))},t.prototype.onWidthChanged=function(){if(this.eGui){var e=this.getCellWidth();this.eGui.style.width=e+"px"}},t.prototype.getCellWidth=function(){return this.colsSpanning?this.colsSpanning.reduce((function(e,t){return e+t.getActualWidth()}),0):this.column.getActualWidth()},t.prototype.getColSpanningList=function(){var e=this.column.getColSpan(this.rowNode),t=[];if(1===e)t.push(this.column);else for(var n=this.column,o=this.column.getPinned(),r=0;n&&r<e&&(t.push(n),(n=this.beans.columnModel.getDisplayedColAfter(n))&&!i(n))&&o===n.getPinned();r++);return t},t.prototype.onLeftChanged=function(){if(this.eGui){var e=this.modifyLeftForPrintLayout(this.getCellLeft());this.eGui.style.left=e+"px"}},t.prototype.getCellLeft=function(){return(this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?ue(this.colsSpanning):this.column).getLeft()},t.prototype.modifyLeftForPrintLayout=function(e){if(!this.cellCtrl.isPrintLayout()||this.column.getPinned()===oe.PINNED_LEFT)return e;var t=this.beans.columnModel.getDisplayedColumnsLeftWidth();return this.column.getPinned()===oe.PINNED_RIGHT?t+this.beans.columnModel.getBodyContainerWidth()+(e||0):t+(e||0)},t.prototype.applyRowSpan=function(){if(1!==this.rowSpan){var e=this.beans.gridOptionsWrapper.getRowHeightAsNumber()*this.rowSpan;this.eGui.style.height=e+"px",this.eGui.style.zIndex="1"}},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Fe),Ua=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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,n){var o=e.call(this)||this;return o.staticClasses=[],o.cellCtrl=t,o.beans=n,o.column=t.getColumn(),o.rowNode=t.getRowNode(),o}return Ua(t,e),t.prototype.setComp=function(e){this.cellComp=e,this.applyUserStyles(),this.applyCellClassRules(),this.applyClassesFromColDef()},t.prototype.applyCellClassRules=function(){var e=this,t=this.column.getColDef(),n={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:t,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};this.beans.stylingService.processClassRules(t.cellClassRules,n,(function(t){return e.cellComp.addOrRemoveCssClass(t,!0)}),(function(t){return e.cellComp.addOrRemoveCssClass(t,!1)}))},t.prototype.applyUserStyles=function(){var e=this.column.getColDef();if(e.cellStyle){var t;if("function"===typeof e.cellStyle){var n={column:this.column,value:this.cellCtrl.getValue(),colDef:e,data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};t=(0,e.cellStyle)(n)}else t=e.cellStyle;this.cellComp.setUserStyles(t)}},t.prototype.applyClassesFromColDef=function(){var e=this,t=this.column.getColDef(),n={value:this.cellCtrl.getValue(),data:this.rowNode.data,node:this.rowNode,colDef:t,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()};this.staticClasses.length&&this.staticClasses.forEach((function(t){return e.cellComp.addOrRemoveCssClass(t,!1)})),this.staticClasses=this.beans.stylingService.getStaticCellClasses(t,n),this.staticClasses.length&&this.staticClasses.forEach((function(t){return e.cellComp.addOrRemoveCssClass(t,!0)}))},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Fe),Za=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Ya=function(e){function t(t,n){var o=e.call(this)||this;return o.ctrl=t,o.beans=n,o}return Za(t,e),t.prototype.setComp=function(e){this.comp=e,this.setupTooltip()},t.prototype.setupTooltip=function(){this.browserTooltips=this.beans.gridOptionsWrapper.isEnableBrowserTooltips(),this.updateTooltipText(),this.browserTooltips?this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0):this.createTooltipFeatureIfNeeded()},t.prototype.updateTooltipText=function(){this.tooltip=this.ctrl.getTooltipValue()},t.prototype.createTooltipFeatureIfNeeded=function(){var e=this;if(null==this.genericTooltipFeature){var t={getTooltipParams:function(){return e.getTooltipParams()},getGui:function(){return e.ctrl.getGui()}};this.genericTooltipFeature=this.createManagedBean(new Xo(t),this.beans.context)}},t.prototype.refreshToolTip=function(){this.updateTooltipText(),this.browserTooltips&&this.comp.setTitle(null!=this.tooltip?this.tooltip:void 0)},t.prototype.getTooltipParams=function(){var e=this.ctrl,t=e.getColumn?e.getColumn():void 0,n=e.getColDef?e.getColDef():void 0,o=e.getRowNode?e.getRowNode():void 0;return{location:e.getLocation(),colDef:n,column:t,rowIndex:e.getRowIndex?e.getRowIndex():void 0,node:o,data:o?o.data:void 0,value:this.getTooltipText(),valueFormatted:e.getValueFormatted?e.getValueFormatted():void 0}},t.prototype.getTooltipText=function(){return this.tooltip},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Fe),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},qa=function(){function e(){}return e.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail(),this.gridOptionsWrapper.isRowModelDefault()&&(this.clientSideRowModel=this.rowModel),this.gridOptionsWrapper.isRowModelServerSide()&&(this.serverSideRowModel=this.rowModel)},Ka([K("resizeObserverService")],e.prototype,"resizeObserverService",void 0),Ka([K("paginationProxy")],e.prototype,"paginationProxy",void 0),Ka([K("context")],e.prototype,"context",void 0),Ka([K("columnApi")],e.prototype,"columnApi",void 0),Ka([K("gridApi")],e.prototype,"gridApi",void 0),Ka([K("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Ka([K("expressionService")],e.prototype,"expressionService",void 0),Ka([K("rowRenderer")],e.prototype,"rowRenderer",void 0),Ka([K("templateService")],e.prototype,"templateService",void 0),Ka([K("valueService")],e.prototype,"valueService",void 0),Ka([K("eventService")],e.prototype,"eventService",void 0),Ka([K("columnModel")],e.prototype,"columnModel",void 0),Ka([K("headerNavigationService")],e.prototype,"headerNavigationService",void 0),Ka([K("navigationService")],e.prototype,"navigationService",void 0),Ka([K("columnAnimationService")],e.prototype,"columnAnimationService",void 0),Ka([q("rangeService")],e.prototype,"rangeService",void 0),Ka([K("focusService")],e.prototype,"focusService",void 0),Ka([q("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),Ka([K("popupService")],e.prototype,"popupService",void 0),Ka([K("valueFormatterService")],e.prototype,"valueFormatterService",void 0),Ka([K("stylingService")],e.prototype,"stylingService",void 0),Ka([K("columnHoverService")],e.prototype,"columnHoverService",void 0),Ka([K("userComponentFactory")],e.prototype,"userComponentFactory",void 0),Ka([K("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),Ka([K("animationFrameService")],e.prototype,"animationFrameService",void 0),Ka([K("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Ka([K("sortController")],e.prototype,"sortController",void 0),Ka([K("filterManager")],e.prototype,"filterManager",void 0),Ka([K("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),Ka([K("frameworkOverrides")],e.prototype,"frameworkOverrides",void 0),Ka([K("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),Ka([K("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),Ka([K("selectionService")],e.prototype,"selectionService",void 0),Ka([q("selectionHandleFactory")],e.prototype,"selectionHandleFactory",void 0),Ka([K("rowCssClassCalculator")],e.prototype,"rowCssClassCalculator",void 0),Ka([K("rowModel")],e.prototype,"rowModel",void 0),Ka([K("ctrlsService")],e.prototype,"ctrlsService",void 0),Ka([K("ctrlsFactory")],e.prototype,"ctrlsFactory",void 0),Ka([K("agStackComponentsRegistry")],e.prototype,"agStackComponentsRegistry",void 0),Ka([K("valueCache")],e.prototype,"valueCache",void 0),Ka([K("rowNodeEventThrottle")],e.prototype,"rowNodeEventThrottle",void 0),Ka([z],e.prototype,"postConstruct",null),e=Ka([Y("beans")],e)}(),Xa=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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){function t(t,n,o){var r=e.call(this)||this;return r.cellCtrl=t,r.beans=n,r.column=o,r}return Xa(t,e),t.prototype.onMouseEvent=function(e,t){if(!Te(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t)}},t.prototype.onCellClicked=function(e){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(e),void e.preventDefault();var t=this.beans,n=t.eventService,o=t.gridOptionsWrapper,r=this.cellCtrl.createEvent(e,Ve.EVENT_CELL_CLICKED);n.dispatchEvent(r);var i=this.column.getColDef();i.onCellClicked&&window.setTimeout((function(){return i.onCellClicked(r)}),0),(o.isSingleClickEdit()||i.singleClickEdit)&&!o.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit()},t.prototype.isDoubleClickOnIPad=function(){if(!Wt()||Pe("dblclick"))return!1;var e=(new Date).getTime(),t=e-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=e,t},t.prototype.onCellDoubleClicked=function(e){var t=this.column.getColDef(),n=this.cellCtrl.createEvent(e,Ve.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(n),"function"===typeof t.onCellDoubleClicked&&window.setTimeout((function(){return t.onCellDoubleClicked(n)}),0),!this.beans.gridOptionsWrapper.isSingleClickEdit()&&!this.beans.gridOptionsWrapper.isSuppressClickEdit()&&this.cellCtrl.startRowOrCellEdit(null,null,e)},t.prototype.onMouseDown=function(e){var t=e.ctrlKey,n=e.metaKey,o=e.shiftKey,r=e.target,i=this.beans,s=i.eventService,a=i.rangeService;if(!this.isRightClickInExistingRange(e)){var l=a&&0!=a.getCellRanges().length;if(!o||!l){var u=Gt()&&!this.cellCtrl.isEditing()&&!Jt(r);this.cellCtrl.focusCell(u)}if(o&&l&&e.preventDefault(),!this.containsWidget(r)){if(a){var c=this.cellCtrl.getCellPosition();if(o)a.extendLatestRangeToCell(c);else{var p=t||n;a.setRangeToCell(c,p)}}s.dispatchEvent(this.cellCtrl.createEvent(e,Ve.EVENT_CELL_MOUSE_DOWN))}}},t.prototype.isRightClickInExistingRange=function(e){var t=this.beans.rangeService;if(t&&(t.isCellInAnyRange(this.cellCtrl.getCellPosition())&&2===e.button))return!0;return!1},t.prototype.containsWidget=function(e){return nn(e,"ag-selection-checkbox",3)},t.prototype.onMouseOut=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,Ve.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.clearMouseOver()}},t.prototype.onMouseOver=function(e){if(!this.mouseStayingInsideCell(e)){var t=this.cellCtrl.createEvent(e,Ve.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(t),this.beans.columnHoverService.setMouseOver([this.column])}},t.prototype.mouseStayingInsideCell=function(e){if(!e.target||!e.relatedTarget)return!1;var t=this.cellCtrl.getGui(),n=t.contains(e.target),o=t.contains(e.relatedTarget);return n&&o},t.prototype.destroy=function(){},t}(qa),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])},e(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){function t(t,n,o,r,i){var s=e.call(this)||this;return s.cellCtrl=t,s.beans=n,s.rowNode=r,s.rowCtrl=i,s}return Ja(t,e),t.prototype.setComp=function(e){this.eGui=e},t.prototype.onKeyDown=function(e){var t=e.key;switch(t){case dr.ENTER:this.onEnterKeyDown(e);break;case dr.F2:this.onF2KeyDown(e);break;case dr.ESCAPE:this.onEscapeKeyDown(e);break;case dr.TAB:this.onTabKeyDown(e);break;case dr.BACKSPACE:case dr.DELETE:this.onBackspaceOrDeleteKeyPressed(t,e);break;case dr.DOWN:case dr.UP:case dr.RIGHT:case dr.LEFT:this.onNavigationKeyPressed(e,t)}},t.prototype.onNavigationKeyPressed=function(e,t){this.cellCtrl.isEditing()||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):this.beans.navigationService.navigateToNextCell(e,t,this.cellCtrl.getCellPosition(),!0),e.preventDefault())},t.prototype.onShiftRangeSelect=function(e){if(this.beans.rangeService){var t=this.beans.rangeService.extendLatestRangeInDirection(e);t&&this.beans.navigationService.ensureCellVisible(t)}},t.prototype.onTabKeyDown=function(e){this.beans.navigationService.onTabKeyDown(this.cellCtrl,e)},t.prototype.onBackspaceOrDeleteKeyPressed=function(e,t){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(e,void 0,t)},t.prototype.onEnterKeyDown=function(e){this.cellCtrl.isEditing()||this.rowCtrl.isEditing()?this.cellCtrl.stopEditingAndFocus():this.beans.gridOptionsWrapper.isEnterMovesDown()?this.beans.navigationService.navigateToNextCell(null,dr.DOWN,this.cellCtrl.getCellPosition(),!1):(this.cellCtrl.startRowOrCellEdit(dr.ENTER,void 0,e),this.cellCtrl.isEditing()&&e.preventDefault())},t.prototype.onF2KeyDown=function(e){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(dr.F2,void 0,e)},t.prototype.onEscapeKeyDown=function(e){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},t.prototype.onKeyPress=function(e){if(!(e.target!==this.eGui)&&!this.cellCtrl.isEditing()){var t=String.fromCharCode(e.charCode);" "===t?this.onSpaceKeyPressed(e):xo(e)&&(this.cellCtrl.startRowOrCellEdit(null,t,e),e.preventDefault())}},t.prototype.onSpaceKeyPressed=function(e){var t=this.beans.gridOptionsWrapper;if(!this.cellCtrl.isEditing()&&t.isRowSelection()){var n=this.rowNode.isSelected(),o=!n;if(o||!t.isSuppressRowDeselection()){var r=this.beans.gridOptionsWrapper.isGroupSelectsFiltered(),i=this.rowNode.setSelectedParams({newValue:o,rangeSelect:e.shiftKey,groupSelectsFiltered:r});void 0===n&&0===i&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:e.shiftKey,groupSelectsFiltered:r})}}e.preventDefault()},t.prototype.destroy=function(){},t}(Fe),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])},e(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,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},nl=function(e){function t(t,n,o,r){var i=e.call(this,'<div class="ag-drag-handle ag-row-drag" draggable="true"></div>')||this;return i.rowNode=t,i.column=n,i.beans=o,i.eCell=r,i}return el(t,e),t.prototype.postConstruct=function(){this.getGui().appendChild(Ao("rowDrag",this.beans.gridOptionsWrapper,null)),this.addGuiEventListener("mousedown",(function(e){e.stopPropagation()})),this.addDragSource(),this.checkVisibility()},t.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},t.prototype.onDragStart=function(e){var t=this,n=this.column.getColDef().dndSourceOnRowDrag;e.dataTransfer.setDragImage(this.eCell,0,0);n?n({rowNode:this.rowNode,dragEvent:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):function(){try{var n=JSON.stringify(t.rowNode.data);e.dataTransfer.setData("application/json",n),e.dataTransfer.setData("text/plain",n)}catch(o){}}()},t.prototype.checkVisibility=function(){var e=this.column.isDndSource(this.rowNode);this.setDisplayed(e)},tl([z],t.prototype,"postConstruct",null),t}(tr),ol=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),rl=function(){return rl=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},rl.apply(this,arguments)},il="ag-cell-not-inline-editing",sl=0,al=function(e){function t(t,n,o,r){var i=e.call(this)||this;return i.suppressRefreshCell=!1,i.column=t,i.rowNode=n,i.beans=o,i.rowCtrl=r,i.instanceId=t.getId()+"-"+sl++,i.createCellPosition(),i.addFeatures(),i}return ol(t,e),t.prototype.addFeatures=function(){var e=this;this.cellPositionFeature=new ja(this,this.beans),this.addDestroyFunc((function(){return e.cellPositionFeature.destroy()})),this.cellCustomStyleFeature=new za(this,this.beans),this.addDestroyFunc((function(){return e.cellCustomStyleFeature.destroy()})),this.cellMouseListenerFeature=new Qa(this,this.beans,this.column),this.addDestroyFunc((function(){return e.cellMouseListenerFeature.destroy()})),this.cellKeyboardListenerFeature=new $a(this,this.beans,this.column,this.rowNode,this.rowCtrl),this.addDestroyFunc((function(){return e.cellKeyboardListenerFeature.destroy()})),this.beans.rangeService&&this.beans.gridOptionsWrapper.isEnableRangeSelection()&&(this.cellRangeFeature=new Va(this.beans,this),this.addDestroyFunc((function(){return e.cellRangeFeature.destroy()}))),this.addTooltipFeature()},t.prototype.addTooltipFeature=function(){var e=this,t={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getRowIndex:function(){return e.cellPosition.rowIndex},getRowNode:function(){return e.rowNode},getGui:function(){return e.getGui()},getLocation:function(){return"cell"},getTooltipValue:function(){var t=e.column.getColDef(),n=e.rowNode.data;if(t.tooltipField&&r(n))return E(n,t.tooltipField,e.column.isTooltipFieldContainsDots());var o=t.tooltipValueGetter;return o?o({location:"cell",api:e.beans.gridOptionsWrapper.getApi(),columnApi:e.beans.gridOptionsWrapper.getColumnApi(),context:e.beans.gridOptionsWrapper.getContext(),colDef:e.column.getColDef(),column:e.column,rowIndex:e.cellPosition.rowIndex,node:e.rowNode,data:e.rowNode.data,value:e.value,valueFormatted:e.valueFormatted}):null},getValueFormatted:function(){return e.valueFormatted}};this.tooltipFeature=new Ya(t,this.beans),this.addDestroyFunc((function(){return e.tooltipFeature.destroy()}))},t.prototype.setComp=function(e,t,n,o,r){this.cellComp=e,this.gow=this.beans.gridOptionsWrapper,this.eGui=t,this.eCellWrapper=n,this.printLayout=o,this.updateAndFormatValue(!0),this.addDomData(),this.onCellFocused(),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(),this.setAriaColIndex(),this.gow.isSuppressCellFocus()||this.cellComp.setTabIndex(-1);var i=Ke(this.column.getId());this.cellComp.setColId(i),this.cellComp.setRole("gridcell"),this.cellPositionFeature.setComp(t),this.cellCustomStyleFeature.setComp(e),this.tooltipFeature.setComp(e),this.cellKeyboardListenerFeature.setComp(this.eGui),this.cellRangeFeature&&this.cellRangeFeature.setComp(e,t),r&&this.isCellEditable()?this.startEditing():this.showValue()},t.prototype.setupAutoHeight=function(){var e=this;if(this.column.isAutoHeight()){var t=this.eCellWrapper,n=t.parentElement,o=this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height,r=function r(i){if(!e.editing&&e.isAlive()){var s=on(n),a=s.paddingTop,l=s.paddingBottom,u=t.offsetHeight+a+l;if(i<5){var c=e.beans.gridOptionsWrapper.getDocument();if(!c||!c.contains(t)||0==u)return void e.beans.frameworkOverrides.setTimeout((function(){return r(i+1)}),0)}var p=Math.max(u,o);e.rowNode.setRowAutoHeight(p,e.column)}},i=function(){return r(0)};i();var s=this.beans.resizeObserverService.observeResize(t,i);this.addDestroyFunc((function(){s(),e.rowNode.setRowAutoHeight(void 0,e.column)}))}},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.showValue=function(e){void 0===e&&(e=!1);var t=null!=this.valueFormatted?this.valueFormatted:this.value,n=this.createCellRendererParams(),o=this.beans.userComponentFactory.getCellRendererDetails(this.column.getColDef(),n);this.cellComp.setRenderDetails(o,t,e),this.refreshHandle()},t.prototype.setupControlComps=function(){var e=this.column.getColDef();this.includeSelection=this.isIncludeControl(e.checkboxSelection),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.cellComp.setIncludeSelection(this.includeSelection),this.cellComp.setIncludeDndSource(this.includeDndSource),this.cellComp.setIncludeRowDrag(this.includeRowDrag)},t.prototype.isForceWrapper=function(){return this.beans.gridOptionsWrapper.isEnableCellTextSelection()||this.column.isAutoHeight()},t.prototype.isIncludeControl=function(e){return!(null!=this.rowNode.rowPinned)&&("function"===typeof e||!0===e)},t.prototype.refreshShouldDestroy=function(){var e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(e.checkboxSelection),n=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),o=this.includeDndSource!=this.isIncludeControl(e.dndSource);return t||n||o},t.prototype.startEditing=function(e,t,n,o){var r,i;if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=!1),void 0===o&&(o=null),this.isCellEditable()&&!this.editing){var s=this.createCellEditorParams(e,t,n),a=this.column.getColDef(),l=this.beans.userComponentFactory.getCellEditorDetails(a,s),u=null!=(null===(r=l)||void 0===r?void 0:r.popupFromSelector)?l.popupFromSelector:!!a.cellEditorPopup,c=null!=(null===(i=l)||void 0===i?void 0:i.popupPositionFromSelector)?l.popupPositionFromSelector:a.cellEditorPopupPosition;this.setEditing(!0,u),this.cellComp.setEditDetails(l,u,c);var p=this.createEvent(o,Ve.EVENT_CELL_EDITING_STARTED);this.beans.eventService.dispatchEvent(p)}},t.prototype.setEditing=function(e,t){void 0===t&&(t=!1),this.editing!==e&&(this.editing=e,this.editingInPopup=t,this.setInlineEditingClass())},t.prototype.stopRowOrCellEdit=function(e){void 0===e&&(e=!1),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowCtrl.stopRowEditing(e):this.stopEditing(e)},t.prototype.onPopupEditorClosed=function(){this.isEditing()&&this.stopEditingAndFocus()},t.prototype.takeValueFromCellEditor=function(e){var t={newValueExists:!1};if(e)return t;var n=this.cellComp.getCellEditor();return n?n.isCancelAfterEnd&&n.isCancelAfterEnd()?t:{newValue:n.getValue(),newValueExists:!0}:t},t.prototype.saveNewValue=function(e,t){if(t===e)return!1;if(this.beans.gridOptionsWrapper.isReadOnlyEdit())return this.dispatchEventForSaveValueReadOnly(e,t),!1;this.suppressRefreshCell=!0;var n=this.rowNode.setDataValue(this.column,t);return this.suppressRefreshCell=!1,n},t.prototype.dispatchEventForSaveValueReadOnly=function(e,t){var n=this.rowNode,o={type:Ve.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:this.column,api:this.beans.gridApi,columnApi:this.beans.columnApi,colDef:this.column.getColDef(),context:this.beans.gridOptionsWrapper.getContext(),data:n.data,node:n,oldValue:e,newValue:t,value:t,source:void 0};this.beans.eventService.dispatchEvent(o)},t.prototype.stopEditing=function(e){if(void 0===e&&(e=!1),!this.editing)return!1;var t=this.takeValueFromCellEditor(e),n=t.newValue,o=t.newValueExists,r=this.getValueFromValueService(),i=!1;return o&&(i=this.saveNewValue(r,n)),this.setEditing(!1),this.cellComp.setEditDetails(),this.updateAndFormatValue(),this.refreshCell({forceRefresh:!0,suppressFlash:!0}),this.dispatchEditingStoppedEvent(r,n),i},t.prototype.dispatchEditingStoppedEvent=function(e,t){var n=rl(rl({},this.createEvent(null,Ve.EVENT_CELL_EDITING_STOPPED)),{oldValue:e,newValue:t});this.beans.eventService.dispatchEvent(n)},t.prototype.setInlineEditingClass=function(){if(this.isAlive()){var e=this.editing&&!this.editingInPopup,t=this.editing&&this.editingInPopup;this.cellComp.addOrRemoveCssClass("ag-cell-inline-editing",e),this.cellComp.addOrRemoveCssClass(il,!e),this.cellComp.addOrRemoveCssClass("ag-cell-popup-editing",t),this.rowCtrl.setInlineEditingCss(this.editing)}},t.prototype.hackSayEditingInPopup=function(){this.editingInPopup||(this.editingInPopup=!0,this.setInlineEditingClass())},t.prototype.createCellEditorParams=function(e,t,n){return{value:this.getValueFromValueService(),key:e,eventKey:e,charPress:t,column:this.column,colDef:this.column.getColDef(),rowIndex:this.getCellPosition().rowIndex,node:this.rowNode,data:this.rowNode.data,api:this.beans.gridOptionsWrapper.getApi(),cellStartedEdit:n,columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),onKeyDown:this.onKeyDown.bind(this),stopEditing:this.stopEditingAndFocus.bind(this),eGridCell:this.getGui(),parseValue:this.parseValue.bind(this),formatValue:this.formatValue.bind(this)}},t.prototype.createCellRendererParams=function(){var e=this;return{value:this.value,valueFormatted:this.valueFormatted,getValue:this.getValueFromValueService.bind(this),setValue:function(t){return e.beans.valueService.setValue(e.rowNode,e.column,t)},formatValue:this.formatValue.bind(this),data:this.rowNode.data,node:this.rowNode,colDef:this.column.getColDef(),column:this.column,rowIndex:this.getCellPosition().rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),refreshCell:this.refreshCell.bind(this),eGridCell:this.getGui(),eParentOfValue:this.cellComp.getParentOfValue(),registerRowDragger:function(t,n,o,r){return e.registerRowDragger(t,n,r)},addRowCompListener:function(t,n){console.warn("AG Grid: since AG Grid v26, params.addRowCompListener() is deprecated. If you need this functionality, please contact AG Grid support and advise why so that we can revert with an appropriate workaround, as we dont have any valid use cases for it. This method was originally provided as a work around to know when cells were destroyed in AG Grid before custom Cell Renderers could be provided."),e.rowCtrl.addEventListener(t,n)}}},t.prototype.parseValue=function(e){var t=this.column.getColDef(),n={node:this.rowNode,data:this.rowNode.data,oldValue:this.getValue(),newValue:e,colDef:t,column:this.column,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext()},o=t.valueParser;return r(o)?this.beans.expressionService.evaluate(o,n):e},t.prototype.setFocusOutOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusOut&&e.focusOut()}},t.prototype.setFocusInOnEditor=function(){if(this.editing){var e=this.cellComp.getCellEditor();e&&e.focusIn?e.focusIn():this.focusCell(!0)}},t.prototype.onCellChanged=function(e){this.cellComp&&(e.column===this.column&&this.refreshCell({}))},t.prototype.refreshCell=function(e){if(!this.suppressRefreshCell&&!this.editing&&this.cellComp){var t=this.column.getColDef(),n=null!=e&&!!e.newData,o=null!=e&&!!e.suppressFlash||!!t.suppressCellFlash,r=null==t.field&&null==t.valueGetter&&null==t.showRowGroup,i=e&&e.forceRefresh||r||n,s=this.updateAndFormatValue();if(i||s){this.showValue(n);var a=this.beans.filterManager.isSuppressFlashingCellsBecauseFiltering();!o&&!a&&(this.beans.gridOptionsWrapper.isEnableCellChangeFlash()||t.enableCellChangeFlash)&&this.flashCell(),this.cellCustomStyleFeature.applyUserStyles(),this.cellCustomStyleFeature.applyClassesFromColDef()}this.refreshToolTip(),this.cellCustomStyleFeature.applyCellClassRules()}},t.prototype.stopEditingAndFocus=function(e){void 0===e&&(e=!1),this.stopRowOrCellEdit(),this.focusCell(!0),e||this.navigateAfterEdit()},t.prototype.navigateAfterEdit=function(){this.beans.gridOptionsWrapper.isFullRowEdit()||this.beans.gridOptionsWrapper.isEnterMovesDownAfterEdit()&&this.beans.navigationService.navigateToNextCell(null,dr.DOWN,this.getCellPosition(),!1)},t.prototype.flashCell=function(e){var t=e&&e.flashDelay,n=e&&e.fadeDelay;this.animateCell("data-changed",t,n)},t.prototype.animateCell=function(e,t,n){var o=this,i="ag-cell-"+e,s="ag-cell-"+e+"-animation",a=this.beans.gridOptionsWrapper;t||(t=a.getCellFlashDelay()),r(n)||(n=a.getCellFadeDelay()),this.cellComp.addOrRemoveCssClass(i,!0),this.cellComp.addOrRemoveCssClass(s,!1),window.setTimeout((function(){o.cellComp.addOrRemoveCssClass(i,!1),o.cellComp.addOrRemoveCssClass(s,!0),o.eGui.style.transition="background-color "+n+"ms",window.setTimeout((function(){o.cellComp.addOrRemoveCssClass(s,!1),o.eGui.style.transition=""}),n)}),t)},t.prototype.onFlashCells=function(e){if(this.cellComp){var t=this.beans.cellPositionUtils.createId(this.getCellPosition());e.cells[t]&&this.animateCell("highlight")}},t.prototype.isCellEditable=function(){return this.column.isCellEditable(this.rowNode)},t.prototype.isSuppressFillHandle=function(){return this.column.isSuppressFillHandle()},t.prototype.formatValue=function(e){var t=this.callValueFormatter(e);return null!=t?t:e},t.prototype.callValueFormatter=function(e){return this.beans.valueFormatterService.formatValue(this.column,this.rowNode,e)},t.prototype.updateAndFormatValue=function(e){void 0===e&&(e=!1);var t=this.value,n=this.valueFormatted;return this.value=this.getValueFromValueService(),this.valueFormatted=this.callValueFormatter(this.value),!!e||(!this.valuesAreEqual(t,this.value)||this.valueFormatted!=n)},t.prototype.valuesAreEqual=function(e,t){var n=this.column.getColDef();return n.equals?n.equals(e,t):e===t},t.prototype.getComp=function(){return this.cellComp},t.prototype.getValueFromValueService=function(){var e=this.rowNode.leafGroup&&this.beans.columnModel.isPivotMode(),t=this.rowNode.group&&this.rowNode.expanded&&!this.rowNode.footer&&!e,n=this.beans.gridOptionsWrapper.isGroupIncludeFooter(),o=this.beans.gridOptionsWrapper.isGroupSuppressBlankHeader(),r=t&&n&&!o;return this.beans.valueService.getValue(this.column,this.rowNode,!1,r)},t.prototype.getValue=function(){return this.value},t.prototype.getValueFormatted=function(){return this.valueFormatted},t.prototype.addDomData=function(){var e=this,n=this.getGui();this.beans.gridOptionsWrapper.setDomData(n,t.DOM_DATA_KEY_CELL_CTRL,this),this.addDestroyFunc((function(){return e.beans.gridOptionsWrapper.setDomData(n,t.DOM_DATA_KEY_CELL_CTRL,null)}))},t.prototype.createEvent=function(e,t){return{type:t,node:this.rowNode,data:this.rowNode.data,value:this.value,column:this.column,colDef:this.column.getColDef(),context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridApi,columnApi:this.beans.columnApi,rowPinned:this.rowNode.rowPinned,event:e,rowIndex:this.rowNode.rowIndex}},t.prototype.onKeyPress=function(e){this.cellKeyboardListenerFeature.onKeyPress(e)},t.prototype.onKeyDown=function(e){this.cellKeyboardListenerFeature.onKeyDown(e)},t.prototype.onMouseEvent=function(e,t){this.cellMouseListenerFeature.onMouseEvent(e,t)},t.prototype.getGui=function(){return this.eGui},t.prototype.refreshToolTip=function(){this.tooltipFeature.refreshToolTip()},t.prototype.getColSpanningList=function(){return this.cellPositionFeature.getColSpanningList()},t.prototype.onLeftChanged=function(){this.cellComp&&this.cellPositionFeature.onLeftChanged()},t.prototype.onDisplayedColumnsChanged=function(){this.eGui&&this.setAriaColIndex()},t.prototype.setAriaColIndex=function(){var e=this.beans.columnModel.getAriaColumnIndex(this.column);ro(this.getGui(),e)},t.prototype.isSuppressNavigable=function(){return this.column.isSuppressNavigable(this.rowNode)},t.prototype.onWidthChanged=function(){return this.cellPositionFeature.onWidthChanged()},t.prototype.getColumn=function(){return this.column},t.prototype.getRowNode=function(){return this.rowNode},t.prototype.getBeans=function(){return this.beans},t.prototype.isPrintLayout=function(){return this.printLayout},t.prototype.appendChild=function(e){this.eGui.appendChild(e)},t.prototype.refreshHandle=function(){this.editing||this.cellRangeFeature&&this.cellRangeFeature.refreshHandle()},t.prototype.getCellPosition=function(){return this.cellPosition},t.prototype.isEditing=function(){return this.editing},t.prototype.startRowOrCellEdit=function(e,t,n){void 0===n&&(n=null),this.beans.gridOptionsWrapper.isFullRowEdit()?this.rowCtrl.startRowEditing(e,t,this):this.startEditing(e,t,!0,n)},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getRowPosition=function(){return{rowIndex:this.cellPosition.rowIndex,rowPinned:this.cellPosition.rowPinned}},t.prototype.updateRangeBordersIfRangeCount=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.updateRangeBordersIfRangeCount()},t.prototype.onRangeSelectionChanged=function(){this.cellComp&&this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},t.prototype.isRangeSelectionEnabled=function(){return null!=this.cellRangeFeature},t.prototype.focusCell=function(e){void 0===e&&(e=!1),this.beans.focusService.setFocusedCell(this.getCellPosition().rowIndex,this.column,this.rowNode.rowPinned,e)},t.prototype.onRowIndexChanged=function(){this.createCellPosition(),this.onCellFocused(),this.cellRangeFeature&&this.cellRangeFeature.onRangeSelectionChanged()},t.prototype.onFirstRightPinnedChanged=function(){if(this.cellComp){var e=this.column.isFirstRightPinned();this.cellComp.addOrRemoveCssClass("ag-cell-first-right-pinned",e)}},t.prototype.onLastLeftPinnedChanged=function(){if(this.cellComp){var e=this.column.isLastLeftPinned();this.cellComp.addOrRemoveCssClass("ag-cell-last-left-pinned",e)}},t.prototype.onCellFocused=function(e){if(this.cellComp&&!this.gow.isSuppressCellFocus()){var t=this.beans.focusService.isCellFocused(this.cellPosition);if(this.cellComp.addOrRemoveCssClass("ag-cell-focus",t),t&&e&&e.forceBrowserFocus)this.cellComp.getFocusableElement().focus();var n=this.beans.gridOptionsWrapper.isFullRowEdit();t||n||!this.editing||this.stopRowOrCellEdit()}},t.prototype.createCellPosition=function(){this.cellPosition={rowIndex:this.rowNode.rowIndex,rowPinned:o(this.rowNode.rowPinned),column:this.column}},t.prototype.applyStaticCssClasses=function(){this.cellComp.addOrRemoveCssClass("ag-cell",!0),this.cellComp.addOrRemoveCssClass(il,!0);var e=1==this.column.isAutoHeight();this.cellComp.addOrRemoveCssClass("ag-cell-auto-height",e),this.cellComp.addOrRemoveCssClass("ag-cell-normal-height",!e)},t.prototype.onColumnHover=function(){if(this.cellComp&&this.beans.gridOptionsWrapper.isColumnHoverHighlight()){var e=this.beans.columnHoverService.isHovered(this.column);this.cellComp.addOrRemoveCssClass("ag-column-hover",e)}},t.prototype.onNewColumnsLoaded=function(){this.cellComp&&(this.setWrapText(),this.editing||this.refreshCell({forceRefresh:!0,suppressFlash:!0}))},t.prototype.setWrapText=function(){var e=1==this.column.getColDef().wrapText;this.cellComp.addOrRemoveCssClass("ag-cell-wrap-text",e)},t.prototype.dispatchCellContextMenuEvent=function(e){var t=this.column.getColDef(),n=this.createEvent(e,Ve.EVENT_CELL_CONTEXT_MENU);this.beans.eventService.dispatchEvent(n),t.onCellContextMenu&&window.setTimeout((function(){return t.onCellContextMenu(n)}),0)},t.prototype.getCellRenderer=function(){return this.cellComp?this.cellComp.getCellRenderer():null},t.prototype.getCellEditor=function(){return this.cellComp?this.cellComp.getCellEditor():null},t.prototype.destroy=function(){e.prototype.destroy.call(this)},t.prototype.createSelectionCheckbox=function(){var e=new Xi;return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e},t.prototype.createDndSource=function(){var e=new nl(this.rowNode,this.column,this.beans,this.eGui);return this.beans.context.createBean(e),e},t.prototype.registerRowDragger=function(e,t,n){var o=this;if(this.customRowDragComp)this.customRowDragComp.setDragElement(e,t);else{var r=this.createRowDragComp(e,t,n);r&&(this.customRowDragComp=r,this.addDestroyFunc((function(){return o.beans.context.destroyBean(r)})))}},t.prototype.createRowDragComp=function(e,t,n){var o=this,r=this.beans.gridOptionsWrapper.isPagination(),i=this.beans.gridOptionsWrapper.isRowDragManaged(),s=this.beans.gridOptionsWrapper.isRowModelDefault();if(i){if(!s)return void D((function(){return console.warn("AG Grid: managed row dragging is only allowed in the Client Side Row Model")}),"CellComp.addRowDragging");if(r)return void D((function(){return console.warn("AG Grid: managed row dragging is not possible when doing pagination")}),"CellComp.addRowDragging")}var a=new rs((function(){return o.value}),this.rowNode,this.column,e,t,n);return this.beans.context.createBean(a),a},t.DOM_DATA_KEY_CELL_CTRL="cellCtrl",t}(Fe),ll=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),ul=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},cl=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ul(arguments[t]));return e};!function(e){e.Normal="Normal",e.FullWidth="FullWidth",e.FullWidthLoading="FullWidthLoading",e.FullWidthGroup="FullWidthGroup",e.FullWidthDetail="FullWidthDetail"}(Ha||(Ha={}));var pl,dl,hl=0,fl=function(e){function n(t,n,o,r,i){var s=e.call(this)||this;return s.allRowGuis=[],s.active=!0,s.centerCellCtrls={list:[],map:{}},s.leftCellCtrls={list:[],map:{}},s.rightCellCtrls={list:[],map:{}},s.lastMouseDownOnDragger=!1,s.updateColumnListsPending=!1,s.beans=n,s.rowNode=t,s.paginationPage=s.beans.paginationProxy.getCurrentPage(),s.useAnimationFrameForCreate=r,s.printLayout=i,s.instanceId=t.id+"-"+hl++,s.setAnimateFlags(o),s.rowFocused=s.beans.focusService.isRowFocused(s.rowNode.rowIndex,s.rowNode.rowPinned),s.rowLevel=s.beans.rowCssClassCalculator.calculateRowLevel(s.rowNode),s.setRowType(),s.addListeners(),s.setInitialRowTop(),s}return ll(n,e),n.prototype.getBeans=function(){return this.beans},n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.setComp=function(e,n,o){var r={rowComp:e,element:n,containerType:o};this.allRowGuis.push(r),o===t.RowContainerType.LEFT?this.leftGui=r:o===t.RowContainerType.RIGHT?this.rightGui=r:o===t.RowContainerType.FULL_WIDTH?this.fullWidthGui=r:this.centerGui=r;var i=null!=this.leftGui&&null!=this.rightGui&&null!=this.centerGui,s=null!=this.fullWidthGui;(i||s)&&this.initialiseRowComps()},n.prototype.isCacheable=function(){return this.rowType===Ha.FullWidthDetail&&this.beans.gridOptionsWrapper.isKeepDetailRows()},n.prototype.setCached=function(e){var t=e?"none":"";this.allRowGuis.forEach((function(e){return e.element.style.display=t}))},n.prototype.initialiseRowComps=function(){var e=this,t=this.beans.gridOptionsWrapper;this.onRowHeightChanged(),this.updateRowIndexes(),this.setFocusedClasses(),this.setStylesFromGridOptions(),t.isRowSelection()&&this.rowNode.selectable&&this.onRowSelected(),this.updateColumnLists(!this.useAnimationFrameForCreate),this.slideRowIn&&F(this.onTopChanged.bind(this)),this.fadeRowIn&&F((function(){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)}))}));var o=this.getRowBusinessKey(),r=Ke(this.rowNode.id),i=Ke(o);this.allRowGuis.forEach((function(o){var s=o.rowComp;s.setRole("row"),e.getInitialRowClasses(o.containerType).forEach((function(e){return s.addOrRemoveCssClass(e,!0)})),e.rowNode.group&&Xn(o.element,1==e.rowNode.expanded),null!=r&&s.setRowId(r),null!=i&&s.setRowBusinessKey(i),e.isFullWidth()&&!e.beans.gridOptionsWrapper.isSuppressCellFocus()&&s.setTabIndex(-1),t.setDomData(o.element,n.DOM_DATA_KEY_ROW_CTRL,e),e.addDestroyFunc((function(){return t.setDomData(o.element,n.DOM_DATA_KEY_ROW_CTRL,null)})),e.useAnimationFrameForCreate?e.beans.animationFrameService.createTask(e.addHoverFunctionality.bind(e,o.element),e.rowNode.rowIndex,"createTasksP2"):e.addHoverFunctionality(o.element),e.isFullWidth()&&e.setupFullWidth(o),t.isRowDragEntireRow()&&e.addRowDraggerToRow(o),e.useAnimationFrameForCreate&&e.beans.animationFrameService.addDestroyTask((function(){e.isAlive()&&o.rowComp.addOrRemoveCssClass("ag-after-created",!0)}))})),this.executeProcessRowPostCreateFunc()},n.prototype.addRowDraggerToRow=function(e){if(this.beans.gridOptionsWrapper.isEnableRangeSelection())D((function(){console.warn("AG Grid: Setting `rowDragEntireRow: true` in the gridOptions doesn't work with `enableRangeSelection: true`")}),"rowDragAndRangeSelectionEnabled");else{var t=new rs((function(){return"1 row"}),this.rowNode,void 0,e.element,void 0,!0);this.createManagedBean(t,this.beans.context)}},n.prototype.setupFullWidth=function(e){var n=this.getPinnedForContainer(e.containerType),o=this.createFullWidthParams(e.element,n),r=re.isRegistered(t.ModuleNames.MasterDetailModule);if(this.rowType!=Ha.FullWidthDetail||r){var i;switch(this.rowType){case Ha.FullWidthDetail:i=this.beans.userComponentFactory.getFullWidthDetailCellRendererDetails(o);break;case Ha.FullWidthGroup:i=this.beans.userComponentFactory.getFullWidthGroupCellRendererDetails(o);break;case Ha.FullWidthLoading:i=this.beans.userComponentFactory.getFullWidthLoadingCellRendererDetails(o);break;default:i=this.beans.userComponentFactory.getFullWidthCellRendererDetails(o)}e.rowComp.showFullWidth(i)}else re.isPackageBased()?console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with ag-grid-enterprise package."):console.warn("AG Grid: cell renderer 'agDetailCellRenderer' (for master detail) not found. Can only be used with AG Grid Enterprise Module "+t.ModuleNames.MasterDetailModule)},n.prototype.isPrintLayout=function(){return this.printLayout},n.prototype.getCellElement=function(e){var t=this.getCellCtrl(e);return t?t.getGui():null},n.prototype.executeProcessRowPostCreateFunc=function(){var e=this.beans.gridOptionsWrapper.getProcessRowPostCreateFunc();e&&e({eRow:this.centerGui?this.centerGui.element:void 0,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)})},n.prototype.setRowType=function(){var e=this.rowNode.stub,t=this.rowNode.isFullWidthCell(),n=this.beans.doingMasterDetail&&this.rowNode.detail,o=this.beans.columnModel.isPivotMode(),r=!!this.rowNode.group&&!this.rowNode.footer&&this.beans.gridOptionsWrapper.isGroupUseEntireRow(o);this.rowType=e?Ha.FullWidthLoading:n?Ha.FullWidthDetail:t?Ha.FullWidth:r?Ha.FullWidthGroup:Ha.Normal},n.prototype.updateColumnLists=function(e){var t=this;(void 0===e&&(e=!1),this.isFullWidth())||(e||this.beans.gridOptionsWrapper.isSuppressAnimationFrame()||this.printLayout?this.updateColumnListsImpl():this.updateColumnListsPending||(this.beans.animationFrameService.createTask((function(){t.active&&t.updateColumnListsImpl()}),this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0))},n.prototype.createCellCtrls=function(e,t,n){var o=this;void 0===n&&(n=null);var r={list:[],map:{}},i=function(e,t){r.list.push(t),r.map[e]=t};return t.forEach((function(t){var n=t.getInstanceId(),r=e.map[n];r||(r=new al(t,o.rowNode,o.beans,o)),i(n,r)})),e.list.forEach((function(e){null!=r.map[e.getColumn().getInstanceId()]||(!o.isCellEligibleToBeRemoved(e,n)?i(e.getColumn().getInstanceId(),e):e.destroy())})),r},n.prototype.updateColumnListsImpl=function(){var e=this;this.updateColumnListsPending=!1;var n=this.beans.columnModel;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,n.getAllDisplayedColumns()),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{var o=n.getViewportCenterColumnsForRow(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,o);var r=n.getDisplayedLeftColumnsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,r,oe.PINNED_LEFT);var i=n.getDisplayedRightColumnsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,i,oe.PINNED_RIGHT)}this.allRowGuis.forEach((function(n){var o=n.containerType===t.RowContainerType.LEFT?e.leftCellCtrls:n.containerType===t.RowContainerType.RIGHT?e.rightCellCtrls:e.centerCellCtrls;n.rowComp.setCellCtrls(o.list)}))},n.prototype.isCellEligibleToBeRemoved=function(e,t){var n=!0;if(e.getColumn().getPinned()!=t)return n;var o=e.isEditing(),r=this.beans.focusService.isCellFocused(e.getCellPosition());if(o||r){var i=e.getColumn();return!(this.beans.columnModel.getAllDisplayedColumns().indexOf(i)>=0)&&n}return n},n.prototype.setAnimateFlags=function(e){if(e){var t=r(this.rowNode.oldRowTop);this.slideRowIn=t,this.fadeRowIn=!t}else this.slideRowIn=!1,this.fadeRowIn=!1},n.prototype.isEditing=function(){return this.editingRow},n.prototype.stopRowEditing=function(e){this.stopEditing(e)},n.prototype.isFullWidth=function(){return this.rowType!==Ha.Normal},n.prototype.getRowType=function(){return this.rowType},n.prototype.refreshFullWidth=function(){var e=this,t=function(t,n){if(!t)return!0;var o=t.rowComp.getFullWidthCellRenderer();if(!o)return!1;if(!o.refresh)return!1;var r=e.createFullWidthParams(t.element,n);return o.refresh(r)},n=t(this.fullWidthGui,null),o=t(this.centerGui,null),r=t(this.leftGui,oe.PINNED_LEFT),i=t(this.rightGui,oe.PINNED_RIGHT);return n&&o&&r&&i},n.prototype.addListeners=function(){this.addManagedListener(this.rowNode,Yi.EVENT_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_ROW_SELECTED,this.onRowSelected.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,Yi.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var e=this.beans.eventService;this.addManagedListener(e,Ve.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(e,Ve.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(e,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(e,Ve.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(e,Ve.EVENT_CELL_FOCUSED,this.onCellFocusChanged.bind(this)),this.addManagedListener(e,Ve.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(e,Ve.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(e,Ve.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},n.prototype.onColumnMoved=function(){this.updateColumnLists()},n.prototype.addListenersForCellComps=function(){var e=this;this.addManagedListener(this.rowNode,Yi.EVENT_ROW_INDEX_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,Yi.EVENT_CELL_CHANGED,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onCellChanged(t)}))}))},n.prototype.onRowNodeDataChanged=function(e){this.getAllCellCtrls().forEach((function(t){return t.refreshCell({suppressFlash:!e.update,newData:!e.update})})),this.onRowSelected(),this.postProcessCss()},n.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},n.prototype.postProcessCss=function(){this.setStylesFromGridOptions(),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},n.prototype.onRowNodeHighlightChanged=function(){var e=this.rowNode.highlighted;this.allRowGuis.forEach((function(n){var o=e===t.RowHighlightPosition.Above,r=e===t.RowHighlightPosition.Below;n.rowComp.addOrRemoveCssClass("ag-row-highlight-above",o),n.rowComp.addOrRemoveCssClass("ag-row-highlight-below",r)}))},n.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},n.prototype.postProcessRowDragging=function(){var e=this.rowNode.dragging;this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-dragging",e)}))},n.prototype.updateExpandedCss=function(){var e=this.rowNode.isExpandable(),t=1==this.rowNode.expanded;this.allRowGuis.forEach((function(n){n.rowComp.addOrRemoveCssClass("ag-row-group",e),n.rowComp.addOrRemoveCssClass("ag-row-group-expanded",e&&t),n.rowComp.addOrRemoveCssClass("ag-row-group-contracted",e&&!t),Xn(n.element,e&&t)}))},n.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},n.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists()},n.prototype.getRowPosition=function(){return{rowPinned:o(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},n.prototype.onKeyboardNavigate=function(e){var t=this.allRowGuis.find((function(t){return t.element.contains(e.target)}));if((t?t.element:null)===e.target){var n=this.rowNode,o=this.beans.focusService.getFocusedCell(),r={rowIndex:n.rowIndex,rowPinned:n.rowPinned,column:o&&o.column};this.beans.navigationService.navigateToNextCell(e,e.key,r,!0),e.preventDefault()}},n.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented&&!Te(e)){var t=this.allRowGuis.find((function(t){return t.element.contains(e.target)})),n=t?t.element:null,o=n===e.target,r=null;o||(r=this.beans.focusService.findNextFocusableElement(n,!1,e.shiftKey)),(this.isFullWidth()&&o||!r)&&this.beans.navigationService.onTabKeyDown(this,e)}},n.prototype.onFullWidthRowFocused=function(e){var t,n=this.rowNode,o=this.isFullWidth()&&e.rowIndex===n.rowIndex&&e.rowPinned==n.rowPinned,r=this.fullWidthGui?this.fullWidthGui.element:null===(t=this.centerGui)||void 0===t?void 0:t.element;r&&(r.classList.toggle("ag-full-width-focus",o),o&&r.focus({preventScroll:!0}))},n.prototype.refreshCell=function(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),this.updateColumnLists()},n.prototype.removeCellCtrl=function(e,t){var n={list:[],map:{}};return e.list.forEach((function(e){e!==t&&(n.list.push(e),n.map[e.getInstanceId()]=e)})),n},n.prototype.onMouseEvent=function(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"touchstart":case"mousedown":this.onRowMouseDown(t)}},n.prototype.createRowEvent=function(e,t){return{type:e,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.beans.gridOptionsWrapper.getContext(),api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),event:t}},n.prototype.createRowEventWithSource=function(e,t){var n=this.createRowEvent(e,t);return n.source=this,n},n.prototype.onRowDblClick=function(e){if(!Te(e)){var t=this.createRowEventWithSource(Ve.EVENT_ROW_DOUBLE_CLICKED,e);this.beans.eventService.dispatchEvent(t)}},n.prototype.onRowMouseDown=function(e){if(this.lastMouseDownOnDragger=nn(e.target,"ag-row-drag",3),this.isFullWidth()){var t=this.rowNode,n=this.beans.columnModel;this.beans.focusService.setFocusedCell(t.rowIndex,n.getAllDisplayedColumns()[0],t.rowPinned,!0)}},n.prototype.onRowClick=function(e){if(!(Te(e)||this.lastMouseDownOnDragger)){var t=this.createRowEventWithSource(Ve.EVENT_ROW_CLICKED,e);this.beans.eventService.dispatchEvent(t);var n=e.ctrlKey||e.metaKey,o=e.shiftKey;if(!(this.beans.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.beans.gridOptionsWrapper.isRowSelection()||this.beans.gridOptionsWrapper.isSuppressRowClickSelection())){var r=this.beans.gridOptionsWrapper.isRowMultiSelectWithClick(),i=!this.beans.gridOptionsWrapper.isSuppressRowDeselection();if(this.rowNode.isSelected())r?this.rowNode.setSelectedParams({newValue:!1}):n?i&&this.rowNode.setSelectedParams({newValue:!1}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!o,rangeSelect:o});else{var s=!r&&!n;this.rowNode.setSelectedParams({newValue:!0,clearSelection:s,rangeSelect:o})}}}},n.prototype.setupDetailRowAutoHeight=function(e){var t=this;if(this.rowType===Ha.FullWidthDetail&&this.beans.gridOptionsWrapper.isDetailRowAutoHeight()){var n=function(){var n=e.clientHeight;if(null!=n&&n>0){t.beans.frameworkOverrides.setTimeout((function(){t.rowNode.setRowHeight(n),t.beans.clientSideRowModel?t.beans.clientSideRowModel.onRowHeightChanged():t.beans.serverSideRowModel&&t.beans.serverSideRowModel.onRowHeightChanged()}),0)}},o=this.beans.resizeObserverService.observeResize(e,n);this.addDestroyFunc(o),n()}},n.prototype.createFullWidthParams=function(e,t){var n=this;return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,api:this.beans.gridOptionsWrapper.getApi(),columnApi:this.beans.gridOptionsWrapper.getColumnApi(),context:this.beans.gridOptionsWrapper.getContext(),eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(e,t,o,r){return n.addFullWidthRowDragging(e,t,o,r)}}},n.prototype.addFullWidthRowDragging=function(e,t,n,o){if(void 0===n&&(n=""),this.isFullWidth()){var r=new rs((function(){return n}),this.rowNode,void 0,e,t,o);this.createManagedBean(r,this.beans.context)}},n.prototype.onUiLevelChanged=function(){var e=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=e){var t="ag-row-level-"+e,n="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach((function(e){e.rowComp.addOrRemoveCssClass(t,!0),e.rowComp.addOrRemoveCssClass(n,!1)}))}this.rowLevel=e},n.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},n.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},n.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},n.prototype.refreshFirstAndLastRowStyles=function(){var e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-first",e)}))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-row-last",t)})))},n.prototype.stopEditing=function(e){void 0===e&&(e=!1);var t=this.getAllCellCtrls().map((function(t){return t.stopEditing(e)}));if(this.editingRow){if(!e&&t.some((function(e){return e}))){var n=this.createRowEvent(Ve.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(n)}this.setEditingRow(!1)}},n.prototype.setInlineEditingCss=function(e){this.allRowGuis.forEach((function(t){t.rowComp.addOrRemoveCssClass("ag-row-inline-editing",e),t.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!e)}))},n.prototype.setEditingRow=function(e){this.editingRow=e,this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-editing",e)}));var t=e?this.createRowEvent(Ve.EVENT_ROW_EDITING_STARTED):this.createRowEvent(Ve.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(t)},n.prototype.startRowEditing=function(e,t,n,o){void 0===e&&(e=null),void 0===t&&(t=null),void 0===n&&(n=null),void 0===o&&(o=null),this.editingRow||(this.getAllCellCtrls().forEach((function(r){var i=r===n;i?r.startEditing(e,t,i,o):r.startEditing(null,null,i,o)})),this.setEditingRow(!0))},n.prototype.getAllCellCtrls=function(){return cl(this.centerCellCtrls.list,this.leftCellCtrls.list,this.rightCellCtrls.list)},n.prototype.postProcessClassesFromGridOptions=function(){var e=this,t=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);t&&t.length&&t.forEach((function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!0)}))}))},n.prototype.postProcessRowClassRules=function(){var e=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,(function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!0)}))}),(function(t){e.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass(t,!1)}))}))},n.prototype.setStylesFromGridOptions=function(){var e=this.processStylesFromGridOptions();this.allRowGuis.forEach((function(t){return t.rowComp.setUserStyles(e)}))},n.prototype.getRowBusinessKey=function(){var e=this.beans.gridOptionsWrapper.getBusinessKeyForNodeFunc();if("function"===typeof e)return e(this.rowNode)},n.prototype.getPinnedForContainer=function(e){return e===t.RowContainerType.LEFT?oe.PINNED_LEFT:e===t.RowContainerType.RIGHT?oe.PINNED_RIGHT:null},n.prototype.getInitialRowClasses=function(e){var t=this.getPinnedForContainer(e),n={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeRowIn,rowIsEven:this.rowNode.rowIndex%2===0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),pinned:t};return this.beans.rowCssClassCalculator.getInitialRowClasses(n)},n.prototype.processStylesFromGridOptions=function(){var e=this.beans.gridOptionsWrapper.getRowStyle();if(!e||"function"!==typeof e){var t,n=this.beans.gridOptionsWrapper.getRowStyleFunc();if(n)t=n({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex});return Object.assign({},e,t)}console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},n.prototype.onRowSelected=function(){var e=this,t=!!this.rowNode.isSelected();this.allRowGuis.forEach((function(n){n.rowComp.addOrRemoveCssClass("ag-row-selected",t),lo(n.element,!!t||void 0);var o=e.createAriaLabel();Un(n.element,null==o?"":o)}))},n.prototype.createAriaLabel=function(){var e=this.rowNode.isSelected();if(!e||!this.beans.gridOptionsWrapper.isSuppressRowDeselection())return this.beans.gridOptionsWrapper.getLocaleTextFunc()(e?"ariaRowDeselect":"ariaRowSelect","Press SPACE to "+(e?"deselect":"select")+" this row.")},n.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},n.prototype.addHoverFunctionality=function(e){var t=this;this.active&&(this.addManagedListener(e,"mouseenter",(function(){return t.rowNode.onMouseEnter()})),this.addManagedListener(e,"mouseleave",(function(){return t.rowNode.onMouseLeave()})),this.addManagedListener(this.rowNode,Yi.EVENT_MOUSE_ENTER,(function(){t.beans.gridOptionsWrapper.isSuppressRowHoverHighlight()||e.classList.add("ag-row-hover")})),this.addManagedListener(this.rowNode,Yi.EVENT_MOUSE_LEAVE,(function(){e.classList.remove("ag-row-hover")})))},n.prototype.roundRowTopToBounds=function(e){var t=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().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(null!=this.rowNode.rowHeight){var e=this.rowNode.rowHeight,t=this.beans.gridOptionsWrapper.getDefaultRowHeight(),n=this.beans.gridOptionsWrapper.isGetRowHeightFunction()?this.beans.gridOptionsWrapper.getRowHeightForNode(this.rowNode).height:void 0,o=n?Math.min(t,n)-2+"px":void 0;this.allRowGuis.forEach((function(t){t.element.style.height=e+"px",o&&t.element.style.setProperty("--ag-line-height",o)}))}},n.prototype.addEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=Ve.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved is now called "+Ve.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.addEventListener.call(this,t,n)},n.prototype.removeEventListener=function(t,n){"renderedRowRemoved"!==t&&"rowRemoved"!==t||(t=Ve.EVENT_VIRTUAL_ROW_REMOVED,console.warn("AG Grid: Since version 11, event renderedRowRemoved and rowRemoved is now called "+Ve.EVENT_VIRTUAL_ROW_REMOVED)),e.prototype.removeEventListener.call(this,t,n)},n.prototype.destroyFirstPass=function(){this.active=!1,this.setupRemoveAnimation();var t=this.createRowEvent(Ve.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(t),this.beans.eventService.dispatchEvent(t),e.prototype.destroy.call(this)},n.prototype.setupRemoveAnimation=function(){if(null!=this.rowNode.rowTop){var e=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(e)}else this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)}))},n.prototype.destroySecondPass=function(){this.allRowGuis.length=0;var e=function(e){return e.list.forEach((function(e){return e.destroy()})),{list:[],map:{}}};this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)},n.prototype.setFocusedClasses=function(){var e=this;this.allRowGuis.forEach((function(t){t.rowComp.addOrRemoveCssClass("ag-row-focus",e.rowFocused),t.rowComp.addOrRemoveCssClass("ag-row-no-focus",!e.rowFocused)}))},n.prototype.onCellFocusChanged=function(){var e=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);e!==this.rowFocused&&(this.rowFocused=e,this.setFocusedClasses()),!e&&this.editingRow&&this.stopEditing(!1)},n.prototype.onPaginationChanged=function(){var e=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},n.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},n.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},n.prototype.applyPaginationOffset=function(e,t){return void 0===t&&(t=!1),this.rowNode.isRowPinned()?e:e+this.beans.paginationProxy.getPixelOffset()*(t?1:-1)},n.prototype.setRowTop=function(e){if(!this.printLayout&&r(e)){var t=this.applyPaginationOffset(e),n=(this.rowNode.isRowPinned()?t:this.beans.rowContainerHeightService.getRealPixelPosition(t))+"px";this.setRowTopStyle(n)}},n.prototype.getInitialRowTop=function(){return this.initialTop},n.prototype.getInitialTransform=function(){return this.initialTransform},n.prototype.setInitialRowTop=function(){if(this.printLayout)return"";var e=this.slideRowIn?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,t=this.applyPaginationOffset(e),n=(this.rowNode.isRowPinned()?t:this.beans.rowContainerHeightService.getRealPixelPosition(t))+"px";this.beans.gridOptionsWrapper.isSuppressRowTransform()?this.initialTop=n:this.initialTransform="translateY("+n+")"},n.prototype.setRowTopStyle=function(e){var t=this.beans.gridOptionsWrapper.isSuppressRowTransform();this.allRowGuis.forEach((function(n){return t?n.rowComp.setTop(e):n.rowComp.setTransform("translateY("+e+")")}))},n.prototype.getRowNode=function(){return this.rowNode},n.prototype.getCellCtrl=function(e){var t=null;return this.getAllCellCtrls().forEach((function(n){n.getColumn()==e&&(t=n)})),null!=t||this.getAllCellCtrls().forEach((function(n){n.getColSpanningList().indexOf(e)>=0&&(t=n)})),t},n.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},n.prototype.updateRowIndexes=function(){var e=this.rowNode.getRowIndexString(),t=this.beans.headerNavigationService.getHeaderRowCount(),n=this.rowNode.rowIndex%2===0,o=t+this.rowNode.rowIndex+1;this.allRowGuis.forEach((function(t){t.rowComp.setRowIndex(e),t.rowComp.addOrRemoveCssClass("ag-row-even",n),t.rowComp.addOrRemoveCssClass("ag-row-odd",!n),no(t.element,o)}))},n.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},n.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},n.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},n.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},n.DOM_DATA_KEY_ROW_CTRL="renderedRow",n}(Fe),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])},e(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)}}(),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},vl=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},yl=function(e){function n(t){var n=e.call(this)||this;return n.element=t,n}return gl(n,e),n.prototype.postConstruct=function(){this.addMouseListeners(),this.mockContextMenuForIPad(),this.addKeyboardEvents()},n.prototype.addKeyboardEvents=function(){var e=this;["keydown","keypress"].forEach((function(t){var n=e.processKeyboardEvent.bind(e,t);e.addManagedListener(e.element,t,n)}))},n.prototype.addMouseListeners=function(){var e=this;["dblclick","contextmenu","mouseover","mouseout","click",Pe("touchstart")?"touchstart":"mousedown"].forEach((function(t){var n=e.processMouseEvent.bind(e,t);e.addManagedListener(e.element,t,n)}))},n.prototype.processMouseEvent=function(e,t){if(this.mouseEventService.isEventFromThisGrid(t)&&!Te(t)){var n=this.getRowForEvent(t),o=this.mouseEventService.getRenderedCellForEvent(t);"contextmenu"===e?this.handleContextMenuMouseEvent(t,null,n,o):(o&&o.onMouseEvent(e,t),n&&n.onMouseEvent(e,t))}},n.prototype.mockContextMenuForIPad=function(){var e=this;if(Wt()){var t=new mi(this.element);this.addManagedListener(t,mi.EVENT_LONG_TAP,(function(t){var n=e.getRowForEvent(t.touchEvent),o=e.mouseEventService.getRenderedCellForEvent(t.touchEvent);e.handleContextMenuMouseEvent(null,t.touchEvent,n,o)})),this.addDestroyFunc((function(){return t.destroy()}))}},n.prototype.getRowForEvent=function(e){for(var t=e.target;t;){var n=this.gridOptionsWrapper.getDomData(t,fl.DOM_DATA_KEY_ROW_CTRL);if(n)return n;t=t.parentElement}return null},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)}var l=this.ctrlsService.getGridBodyCtrl(),u=o?o.getGui():l.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(e,t,r,i,s,u)},n.prototype.processKeyboardEvent=function(e,t){var n=Ae(this.gridOptionsWrapper,t,al.DOM_DATA_KEY_CELL_CTRL),o=Ae(this.gridOptionsWrapper,t,fl.DOM_DATA_KEY_ROW_CTRL);t.defaultPrevented||(n?this.processCellKeyboardEvent(n,e,t):o&&o.isFullWidth()&&this.processFullWidthRowKeyboardEvent(o,e,t))},n.prototype.processCellKeyboardEvent=function(e,t,n){var o=e.getRowNode(),r=e.getColumn(),i=e.isEditing();if(!No(this.gridOptionsWrapper,n,o,r,i))switch(t){case"keydown":!i&&this.navigationService.handlePageScrollingKey(n)||e.onKeyDown(n),this.doGridOperations(n,e.isEditing());break;case"keypress":e.onKeyPress(n)}if("keydown"===t){var s=e.createEvent(n,Ve.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(s)}if("keypress"===t){var a=e.createEvent(n,Ve.EVENT_CELL_KEY_PRESS);this.eventService.dispatchEvent(a)}},n.prototype.processFullWidthRowKeyboardEvent=function(e,t,n){var o=e.getRowNode(),r=this.focusService.getFocusedCell(),i=r&&r.column;if(!No(this.gridOptionsWrapper,n,o,i,!1)){var s=n.key;if("keydown"===t)switch(s){case dr.UP:case dr.DOWN:e.onKeyboardNavigate(n);break;case dr.TAB:e.onTabKeyDown(n)}}if("keydown"===t){var a=e.createRowEvent(Ve.EVENT_CELL_KEY_DOWN,n);this.eventService.dispatchEvent(a)}if("keypress"===t){var l=e.createRowEvent(Ve.EVENT_CELL_KEY_PRESS,n);this.eventService.dispatchEvent(l)}},n.prototype.doGridOperations=function(e,t){if((e.ctrlKey||e.metaKey)&&!t&&this.mouseEventService.isEventFromThisGrid(e))switch(e.code){case dr.A:return this.onCtrlAndA(e);case dr.C:return this.onCtrlAndC(e);case dr.V:return this.onCtrlAndV();case dr.D:return this.onCtrlAndD(e);case dr.Z:return e.shiftKey?this.undoRedoService.redo():this.undoRedoService.undo();case dr.Y:return this.undoRedoService.redo()}},n.prototype.onCtrlAndA=function(e){var t=this,n=t.pinnedRowModel,o=t.paginationProxy,r=t.rangeService,i=oe.PINNED_BOTTOM,a=oe.PINNED_TOP;if(r&&o.isRowsToRender()){var l=vl([n.isEmpty(a),n.isEmpty(i)],2),u=l[0]?null:a,c=void 0,p=void 0;l[1]?(c=null,p=this.paginationProxy.getRowCount()-1):(c=i,p=n.getPinnedBottomRowData().length-1);var d=this.columnModel.getAllDisplayedColumns();if(s(d))return;r.setCellRange({rowStartIndex:0,rowStartPinned:u,rowEndIndex:p,rowEndPinned:c,columnStart:d[0],columnEnd:ue(d)})}e.preventDefault()},n.prototype.onCtrlAndC=function(e){this.clipboardService&&!this.gridOptionsWrapper.isEnableCellTextSelection()&&(this.clipboardService.copyToClipboard(),e.preventDefault())},n.prototype.onCtrlAndV=function(){re.isRegistered(t.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.pasteFromClipboard()},n.prototype.onCtrlAndD=function(e){re.isRegistered(t.ModuleNames.ClipboardModule)&&!this.gridOptionsWrapper.isSuppressClipboardPaste()&&this.clipboardService.copyRangeDown(),e.preventDefault()},ml([K("mouseEventService")],n.prototype,"mouseEventService",void 0),ml([K("valueService")],n.prototype,"valueService",void 0),ml([q("contextMenuFactory")],n.prototype,"contextMenuFactory",void 0),ml([K("ctrlsService")],n.prototype,"ctrlsService",void 0),ml([K("navigationService")],n.prototype,"navigationService",void 0),ml([K("focusService")],n.prototype,"focusService",void 0),ml([K("undoRedoService")],n.prototype,"undoRedoService",void 0),ml([K("columnModel")],n.prototype,"columnModel",void 0),ml([K("paginationProxy")],n.prototype,"paginationProxy",void 0),ml([K("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),ml([q("rangeService")],n.prototype,"rangeService",void 0),ml([q("clipboardService")],n.prototype,"clipboardService",void 0),ml([z],n.prototype,"postConstruct",null),n}(Fe),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])},e(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)}}(),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},_l=function(e){function t(t){var n=e.call(this)||this;return n.centerContainerCtrl=t,n}return Cl(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.listenForResize()})),this.addManagedListener(this.eventService,Ve.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},t.prototype.listenForResize=function(){var e=this,t=function(){return e.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(t),this.gridBodyCtrl.registerBodyViewportResizeListener(t)},t.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},t.prototype.onCenterViewportResized=function(){if(this.centerContainerCtrl.isViewportVisible()){this.checkViewportAndScrolls();var e=this.centerContainerCtrl.getCenterWidth();e!==this.centerWidth&&(this.centerWidth=e,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},t.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()},t.prototype.getBodyHeight=function(){return this.bodyHeight},t.prototype.checkBodyHeight=function(){var e=rn(this.gridBodyCtrl.getBodyViewportElement());if(this.bodyHeight!==e){this.bodyHeight=e;var t={type:Ve.EVENT_BODY_HEIGHT_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},t.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},t.prototype.updateScrollVisibleServiceImpl=function(){var e={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(e),this.gridBodyCtrl.setVerticalScrollPaddingVisible(e.verticalScrollShowing)},t.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||this.centerContainerCtrl.isViewportHScrollShowing()},t.prototype.onHorizontalViewportChanged=function(){var e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},wl([K("ctrlsService")],t.prototype,"ctrlsService",void 0),wl([K("columnModel")],t.prototype,"columnModel",void 0),wl([K("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),wl([K("columnApi")],t.prototype,"columnApi",void 0),wl([K("gridApi")],t.prototype,"gridApi",void 0),wl([z],t.prototype,"postConstruct",null),t}(Fe),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])},e(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)}}(),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},Sl=function(e){function t(t){var n=e.call(this)||this;return n.element=t,n}return bl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ve.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},t.prototype.onPinnedLeftWidthChanged=function(){var e=this.pinnedWidthService.getPinnedLeftWidth(),t=e>0;$t(this.element,t),t&&Rn(this.element,e)},El([K("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),El([z],t.prototype,"postConstruct",null),t}(Fe),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])},e(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,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},Tl=function(e){function t(t){var n=e.call(this)||this;return n.element=t,n}return Rl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ve.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},t.prototype.onPinnedRightWidthChanged=function(){var e=this.pinnedWidthService.getPinnedRightWidth(),t=e>0;$t(this.element,t),t&&Rn(this.element,e)},Ol([K("pinnedWidthService")],t.prototype,"pinnedWidthService",void 0),Ol([z],t.prototype,"postConstruct",null),t}(Fe),Pl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Al=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(t,n){var o=e.call(this)||this;return o.eContainer=t,o.eWrapper=n,o}return Pl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ve.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},t.prototype.onHeightChanged=function(){var e=this.maxDivHeightScaler.getUiContainerHeight(),t=null!=e?e+"px":"";this.eContainer.style.height=t,this.eWrapper&&(this.eWrapper.style.height=t)},Al([K("rowContainerHeightService")],t.prototype,"maxDivHeightScaler",void 0),Al([z],t.prototype,"postConstruct",null),t}(Fe),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])},e(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)}}(),Nl=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},Ml=function(e){function t(t){var n=e.call(this)||this;return n.eContainer=t,n}return xl(t,e),t.prototype.postConstruct=function(){var e=this;if(this.gridOptionsWrapper.isEnableRangeSelection()&&!i(this.rangeService)){var t={dragStartPixels:0,eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)};this.dragService.addDragSource(t),this.addDestroyFunc((function(){return e.dragService.removeDragSource(t)}))}},Nl([q("rangeService")],t.prototype,"rangeService",void 0),Nl([K("dragService")],t.prototype,"dragService",void 0),Nl([z],t.prototype,"postConstruct",null),t}(Fe),Il=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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},Fl=function(e){function t(t){var n=e.call(this)||this;return n.callback=t,n}return Il(t,e),t.prototype.postConstruct=function(){var e=this.setWidth.bind(this);this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,e),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.setWidth()},t.prototype.setWidth=function(){var e=this.columnModel,t=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT,n=e.getBodyContainerWidth(),o=e.getDisplayedColumnsLeftWidth(),r=e.getDisplayedColumnsRightWidth(),i=t?n+o+r:n;this.callback(i)},Ll([K("columnModel")],t.prototype,"columnModel",void 0),Ll([z],t.prototype,"postConstruct",null),t}(Fe),kl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),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},Hl=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Bl=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Hl(arguments[t]));return e};function Vl(e){switch(e){case t.RowContainerName.CENTER:case t.RowContainerName.TOP_CENTER:case t.RowContainerName.BOTTOM_CENTER:return t.RowContainerType.CENTER;case t.RowContainerName.LEFT:case t.RowContainerName.TOP_LEFT:case t.RowContainerName.BOTTOM_LEFT:return t.RowContainerType.LEFT;case t.RowContainerName.RIGHT:case t.RowContainerName.TOP_RIGHT:case t.RowContainerName.BOTTOM_RIGHT:return t.RowContainerType.RIGHT;case t.RowContainerName.FULL_WIDTH:case t.RowContainerName.TOP_FULL_WIDTH:case t.RowContainerName.BOTTOM_FULL_WIDTH:return t.RowContainerType.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}(pl=t.RowContainerName||(t.RowContainerName={})).LEFT="left",pl.RIGHT="right",pl.CENTER="center",pl.FULL_WIDTH="fullWidth",pl.TOP_LEFT="topLeft",pl.TOP_RIGHT="topRight",pl.TOP_CENTER="topCenter",pl.TOP_FULL_WIDTH="topFullWidth",pl.BOTTOM_LEFT="bottomLeft",pl.BOTTOM_RIGHT="bottomRight",pl.BOTTOM_CENTER="bottomCenter",pl.BOTTOM_FULL_WIDTH="bottomFullWidth",(dl=t.RowContainerType||(t.RowContainerType={})).LEFT="left",dl.RIGHT="right",dl.CENTER="center",dl.FULL_WIDTH="fullWidth";var Wl=Qe([[t.RowContainerName.CENTER,"ag-center-cols-container"],[t.RowContainerName.LEFT,"ag-pinned-left-cols-container"],[t.RowContainerName.RIGHT,"ag-pinned-right-cols-container"],[t.RowContainerName.FULL_WIDTH,"ag-full-width-container"],[t.RowContainerName.TOP_CENTER,"ag-floating-top-container"],[t.RowContainerName.TOP_LEFT,"ag-pinned-left-floating-top"],[t.RowContainerName.TOP_RIGHT,"ag-pinned-right-floating-top"],[t.RowContainerName.TOP_FULL_WIDTH,"ag-floating-top-full-width-container"],[t.RowContainerName.BOTTOM_CENTER,"ag-floating-bottom-container"],[t.RowContainerName.BOTTOM_LEFT,"ag-pinned-left-floating-bottom"],[t.RowContainerName.BOTTOM_RIGHT,"ag-pinned-right-floating-bottom"],[t.RowContainerName.BOTTOM_FULL_WIDTH,"ag-floating-bottom-full-width-container"]]),jl=Qe([[t.RowContainerName.CENTER,"ag-center-cols-viewport"],[t.RowContainerName.TOP_CENTER,"ag-floating-top-viewport"],[t.RowContainerName.BOTTOM_CENTER,"ag-floating-bottom-viewport"]]),Ul=Qe([[t.RowContainerName.CENTER,"ag-center-cols-clipper"]]),zl=function(e){function n(t){var n=e.call(this)||this;return n.name=t,n}return kl(n,e),n.getRowContainerCssClasses=function(e){return{container:Wl.get(e),viewport:jl.get(e),wrapper:Ul.get(e)}},n.getPinned=function(e){switch(e){case t.RowContainerName.BOTTOM_LEFT:case t.RowContainerName.TOP_LEFT:case t.RowContainerName.LEFT:return oe.PINNED_LEFT;case t.RowContainerName.BOTTOM_RIGHT:case t.RowContainerName.TOP_RIGHT:case t.RowContainerName.RIGHT:return oe.PINNED_RIGHT;default:return null}},n.prototype.postConstruct=function(){var e=this;this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.embedFullWidthRows=this.gridOptionsWrapper.isEmbedFullWidthRows(),this.forContainers([t.RowContainerName.CENTER],(function(){return e.viewportSizeFeature=e.createManagedBean(new _l(e))}))},n.prototype.registerWithCtrlsService=function(){switch(this.name){case t.RowContainerName.CENTER:this.ctrlsService.registerCenterRowContainerCtrl(this);break;case t.RowContainerName.LEFT:this.ctrlsService.registerLeftRowContainerCtrl(this);break;case t.RowContainerName.RIGHT:this.ctrlsService.registerRightRowContainerCtrl(this);break;case t.RowContainerName.TOP_CENTER:this.ctrlsService.registerTopCenterRowContainerCtrl(this);break;case t.RowContainerName.TOP_LEFT:this.ctrlsService.registerTopLeftRowContainerCon(this);break;case t.RowContainerName.TOP_RIGHT:this.ctrlsService.registerTopRightRowContainerCtrl(this);break;case t.RowContainerName.BOTTOM_CENTER:this.ctrlsService.registerBottomCenterRowContainerCtrl(this);break;case t.RowContainerName.BOTTOM_LEFT:this.ctrlsService.registerBottomLeftRowContainerCtrl(this);break;case t.RowContainerName.BOTTOM_RIGHT:this.ctrlsService.registerBottomRightRowContainerCtrl(this)}},n.prototype.forContainers=function(e,t){e.indexOf(this.name)>=0&&t()},n.prototype.getContainerElement=function(){return this.eContainer},n.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},n.prototype.setComp=function(e,n,o,r){var i=this;this.comp=e,this.eContainer=n,this.eViewport=o,this.eWrapper=r,this.createManagedBean(new yl(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var s=[t.RowContainerName.TOP_CENTER,t.RowContainerName.TOP_LEFT,t.RowContainerName.TOP_RIGHT],a=[t.RowContainerName.BOTTOM_CENTER,t.RowContainerName.BOTTOM_LEFT,t.RowContainerName.BOTTOM_RIGHT],l=[t.RowContainerName.CENTER,t.RowContainerName.LEFT,t.RowContainerName.RIGHT],u=Bl(s,a,l),c=[t.RowContainerName.CENTER,t.RowContainerName.LEFT,t.RowContainerName.RIGHT,t.RowContainerName.FULL_WIDTH],p=[t.RowContainerName.CENTER,t.RowContainerName.TOP_CENTER,t.RowContainerName.BOTTOM_CENTER],d=[t.RowContainerName.LEFT,t.RowContainerName.BOTTOM_LEFT,t.RowContainerName.TOP_LEFT],h=[t.RowContainerName.RIGHT,t.RowContainerName.BOTTOM_RIGHT,t.RowContainerName.TOP_RIGHT];this.forContainers(d,(function(){return i.createManagedBean(new Sl(i.eContainer))})),this.forContainers(h,(function(){return i.createManagedBean(new Tl(i.eContainer))})),this.forContainers(c,(function(){return i.createManagedBean(new Dl(i.eContainer,i.eWrapper))})),this.forContainers(u,(function(){return i.createManagedBean(new Ml(i.eContainer))})),this.forContainers(p,(function(){return i.createManagedBean(new Fl((function(e){return i.comp.setContainerWidth(e+"px")})))})),this.addListeners(),this.registerWithCtrlsService()},n.prototype.addListeners=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_SCROLL_VISIBILITY_CHANGED,(function(){return e.onScrollVisibilityChanged()})),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){return e.onDisplayedColumnsChanged()})),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){return e.onDisplayedColumnsWidthChanged()})),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_ROWS_CHANGED,(function(){return e.onDisplayedRowsChanged()})),this.onScrollVisibilityChanged(),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},n.prototype.listenOnDomOrder=function(){var e=this,t=function(){return e.comp.setDomOrder(e.gridOptionsWrapper.isEnsureDomOrder())};this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,t),t()},n.prototype.stopHScrollOnPinnedRows=function(){var e=this;this.forContainers([t.RowContainerName.TOP_CENTER,t.RowContainerName.BOTTOM_CENTER],(function(){e.addManagedListener(e.eViewport,"scroll",(function(){return e.eViewport.scrollLeft=0}))}))},n.prototype.onDisplayedColumnsChanged=function(){var e=this;this.forContainers([t.RowContainerName.CENTER],(function(){return e.onHorizontalViewportChanged()}))},n.prototype.onDisplayedColumnsWidthChanged=function(){var e=this;this.forContainers([t.RowContainerName.CENTER],(function(){return e.onHorizontalViewportChanged()}))},n.prototype.onScrollVisibilityChanged=function(){if(this.name===t.RowContainerName.CENTER){var e=this.scrollVisibleService.isHorizontalScrollShowing()&&this.gridOptionsWrapper.getScrollbarWidth()||0,n=0==e?"100%":"calc(100% + "+e+"px)";this.comp.setViewportHeight(n)}},n.prototype.addPreventScrollWhileDragging=function(){var e=this,t=function(t){e.dragService.isDragging()&&t.cancelable&&t.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc((function(){return e.eContainer.removeEventListener("touchmove",t)}))},n.prototype.onHorizontalViewportChanged=function(){var e=this.getCenterWidth(),t=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(e,t)},n.prototype.getCenterWidth=function(){return sn(this.eViewport)},n.prototype.getCenterViewportScrollLeft=function(){return cn(this.eViewport,this.enableRtl)},n.prototype.registerViewportResizeListener=function(e){var t=this.resizeObserverService.observeResize(this.eViewport,e);this.addDestroyFunc((function(){return t()}))},n.prototype.isViewportVisible=function(){return fn(this.eViewport)},n.prototype.isViewportHScrollShowing=function(){return bn(this.eViewport)},n.prototype.getViewportScrollLeft=function(){return cn(this.eViewport,this.enableRtl)},n.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsWrapper.isAlwaysShowHorizontalScroll()||bn(this.eViewport)},n.prototype.getViewportElement=function(){return this.eViewport},n.prototype.setContainerTranslateX=function(e){this.eContainer.style.transform="translateX("+e+"px)"},n.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},n.prototype.setCenterViewportScrollLeft=function(e){pn(this.eViewport,e,this.enableRtl)},n.prototype.onDisplayedRowsChanged=function(){var e=this,n=this.name===t.RowContainerName.TOP_FULL_WIDTH||this.name===t.RowContainerName.BOTTOM_FULL_WIDTH||this.name===t.RowContainerName.FULL_WIDTH,o=this.getRowCtrls().filter((function(t){var o=t.isFullWidth(),r=e.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT,i=e.embedFullWidthRows||r;return n?!i&&o:i||!o}));this.comp.setRowCtrls(o)},n.prototype.getRowCtrls=function(){switch(this.name){case t.RowContainerName.TOP_CENTER:case t.RowContainerName.TOP_LEFT:case t.RowContainerName.TOP_RIGHT:case t.RowContainerName.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case t.RowContainerName.BOTTOM_CENTER:case t.RowContainerName.BOTTOM_LEFT:case t.RowContainerName.BOTTOM_RIGHT:case t.RowContainerName.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getRowCtrls()}},Gl([K("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),Gl([K("dragService")],n.prototype,"dragService",void 0),Gl([K("ctrlsService")],n.prototype,"ctrlsService",void 0),Gl([K("columnModel")],n.prototype,"columnModel",void 0),Gl([K("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Gl([K("rowRenderer")],n.prototype,"rowRenderer",void 0),Gl([z],n.prototype,"postConstruct",null),n}(Fe),Zl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Yl=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='<div class="ag-root ag-unselectable" role="grid">\n        <ag-header-root ref="gridHeader"></ag-header-root>\n        <div class="ag-floating-top" ref="eTop" role="presentation">\n            <ag-row-container ref="topLeftContainer" name="'+t.RowContainerName.TOP_LEFT+'"></ag-row-container>\n            <ag-row-container ref="topCenterContainer" name="'+t.RowContainerName.TOP_CENTER+'"></ag-row-container>\n            <ag-row-container ref="topRightContainer" name="'+t.RowContainerName.TOP_RIGHT+'"></ag-row-container>\n            <ag-row-container ref="topFullWidthContainer" name="'+t.RowContainerName.TOP_FULL_WIDTH+'"></ag-row-container>\n        </div>\n        <div class="ag-body-viewport" ref="eBodyViewport" role="presentation">\n            <ag-row-container ref="leftContainer" name="'+t.RowContainerName.LEFT+'"></ag-row-container>\n            <ag-row-container ref="centerContainer" name="'+t.RowContainerName.CENTER+'"></ag-row-container>\n            <ag-row-container ref="rightContainer" name="'+t.RowContainerName.RIGHT+'"></ag-row-container>\n            <ag-row-container ref="fullWidthContainer" name="'+t.RowContainerName.FULL_WIDTH+'"></ag-row-container>\n        </div>\n        <div class="ag-floating-bottom" ref="eBottom" role="presentation">\n            <ag-row-container ref="bottomLeftContainer" name="'+t.RowContainerName.BOTTOM_LEFT+'"></ag-row-container>\n            <ag-row-container ref="bottomCenterContainer" name="'+t.RowContainerName.BOTTOM_CENTER+'"></ag-row-container>\n            <ag-row-container ref="bottomRightContainer" name="'+t.RowContainerName.BOTTOM_RIGHT+'"></ag-row-container>\n            <ag-row-container ref="bottomFullWidthContainer" name="'+t.RowContainerName.BOTTOM_FULL_WIDTH+'"></ag-row-container>\n        </div>\n        <ag-fake-horizontal-scroll></ag-fake-horizontal-scroll>\n        <ag-overlay-wrapper></ag-overlay-wrapper>\n    </div>',ql=function(e){function n(){return e.call(this,Kl)||this}return Zl(n,e),n.prototype.init=function(){var e=this,n=function(e,t){var n=e+"px";t.style.minHeight=n,t.style.height=n},o={setRowAnimationCssOnBodyViewport:function(t,n){return e.setRowAnimationCssOnBodyViewport(t,n)},setColumnCount:function(t){return oo(e.getGui(),t)},setRowCount:function(t){return to(e.getGui(),t)},setTopHeight:function(t){return n(t,e.eTop)},setBottomHeight:function(t){return n(t,e.eBottom)},setTopDisplay:function(t){return e.eTop.style.display=t},setBottomDisplay:function(t){return e.eBottom.style.display=t},setColumnMovingCss:function(t,n){return e.addOrRemoveCssClass(ka,n)},updateLayoutClasses:function(n,o){var r=e.eBodyViewport.classList;r.toggle(t.LayoutCssClasses.AUTO_HEIGHT,o.autoHeight),r.toggle(t.LayoutCssClasses.NORMAL,o.normal),r.toggle(t.LayoutCssClasses.PRINT,o.print),e.addOrRemoveCssClass(t.LayoutCssClasses.AUTO_HEIGHT,o.autoHeight),e.addOrRemoveCssClass(t.LayoutCssClasses.NORMAL,o.normal),e.addOrRemoveCssClass(t.LayoutCssClasses.PRINT,o.print)},setAlwaysVerticalScrollClass:function(t,n){return e.eBodyViewport.classList.toggle(Fa,n)},registerBodyViewportResizeListener:function(t){var n=e.resizeObserverService.observeResize(e.eBodyViewport,t);e.addDestroyFunc((function(){return n()}))},setPinnedTopBottomOverflowY:function(t){return e.eTop.style.overflowY=e.eBottom.style.overflowY=t},setCellSelectableCss:function(t,n){[e.eTop,e.eBodyViewport,e.eBottom].forEach((function(e){return e.classList.toggle(La,n)}))}};this.ctrl=this.createManagedBean(new Ga),this.ctrl.setComp(o,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom),(this.rangeService||this.gridOptionsWrapper.isRowSelectionMulti())&&eo(this.getGui(),!0)},n.prototype.setRowAnimationCssOnBodyViewport=function(e,n){var o=this.eBodyViewport.classList;o.toggle(t.RowAnimationCssClasses.ANIMATION_ON,n),o.toggle(t.RowAnimationCssClasses.ANIMATION_OFF,!n)},n.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},Yl([K("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Yl([q("rangeService")],n.prototype,"rangeService",void 0),Yl([nr("eBodyViewport")],n.prototype,"eBodyViewport",void 0),Yl([nr("eTop")],n.prototype,"eTop",void 0),Yl([nr("eBottom")],n.prototype,"eBottom",void 0),Yl([nr("gridHeader")],n.prototype,"headerRootComp",void 0),Yl([z],n.prototype,"init",null),n}(tr),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])},e(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},Jl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xl(t,e),t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},t.prototype.onDisplayedColumnsChanged=function(){this.update()},t.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},t.prototype.update=function(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},t.prototype.updateImpl=function(){var e=this.ctrlsService.getCenterRowContainerCtrl();if(e){var t={horizontalScrollShowing:e.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(t)}},t.prototype.setScrollsVisible=function(e){if(this.horizontalScrollShowing!==e.horizontalScrollShowing||this.verticalScrollShowing!==e.verticalScrollShowing){this.horizontalScrollShowing=e.horizontalScrollShowing,this.verticalScrollShowing=e.verticalScrollShowing;var t={type:Ve.EVENT_SCROLL_VISIBILITY_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)}},t.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},t.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},Ql([K("columnApi")],t.prototype,"columnApi",void 0),Ql([K("gridApi")],t.prototype,"gridApi",void 0),Ql([K("ctrlsService")],t.prototype,"ctrlsService",void 0),Ql([z],t.prototype,"postConstruct",null),t=Ql([Y("scrollVisibleService")],t)}(Fe),$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])},e(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},tu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.gridInstanceId=n.gridInstanceSequence.next(),t}var n;return $l(t,e),n=t,t.prototype.stampTopLevelGridCompWithGridInstance=function(e){e[n.GRID_DOM_KEY]=this.gridInstanceId},t.prototype.getRenderedCellForEvent=function(e){return Ae(this.gridOptionsWrapper,e,al.DOM_DATA_KEY_CELL_CTRL)},t.prototype.isEventFromThisGrid=function(e){return this.isElementInThisGrid(e.target)},t.prototype.isElementInThisGrid=function(e){for(var t=e;t;){var o=t[n.GRID_DOM_KEY];if(r(o))return o===this.gridInstanceId;t=t.parentElement}return!1},t.prototype.getCellPositionForEvent=function(e){var t=this.getRenderedCellForEvent(e);return t?t.getCellPosition():null},t.prototype.getNormalisedPosition=function(e){var t,n,o=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_NORMAL,r=e;if(null!=r.clientX||null!=r.clientY?(t=r.clientX,n=r.clientY):(t=r.x,n=r.y),o){var i=this.ctrlsService.getGridBodyCtrl(),s=i.getScrollFeature().getVScrollPosition();t+=i.getScrollFeature().getHScrollPosition().left,n+=s.top}return{x:t,y:n}},t.gridInstanceSequence=new jo,t.GRID_DOM_KEY="__ag_grid_instance",eu([K("ctrlsService")],t.prototype,"ctrlsService",void 0),t=n=eu([Y("mouseEventService")],t)}(Fe),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])},e(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)}}(),ou=function(){return ou=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},ou.apply(this,arguments)},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(e){function t(){var t=e.call(this)||this;return t.onPageDown=H(t.onPageDown,100),t.onPageUp=H(t.onPageUp,100),t}return nu(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridBodyCon=t.gridBodyCtrl}))},t.prototype.handlePageScrollingKey=function(e){var t=e.key,n=e.altKey,o=e.ctrlKey||e.metaKey,r=!!this.rangeService&&e.shiftKey,i=this.mouseEventService.getCellPositionForEvent(e);if(!i)return!1;var s=!1;switch(t){case dr.PAGE_HOME:case dr.PAGE_END:o||n||(this.onHomeOrEndKey(t),s=!0);break;case dr.LEFT:case dr.RIGHT:case dr.UP:case dr.DOWN:!o||n||r||(this.onCtrlUpDownLeftRight(t,i),s=!0);break;case dr.PAGE_DOWN:o||n||(this.onPageDown(i),s=!0);break;case dr.PAGE_UP:o||n||(this.onPageUp(i),s=!0)}return s&&e.preventDefault(),s},t.prototype.navigateTo=function(e){var t=e.scrollIndex,n=e.scrollType,o=e.scrollColumn,i=e.focusIndex,s=e.focusColumn;if(r(o)&&!o.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(o),r(t)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t,n),this.animationFrameService.flushAllFrames(),this.focusService.setFocusedCell(i,s,null,!0),this.rangeService){var a={rowIndex:i,rowPinned:null,column:s};this.rangeService.setRangeToCell(a)}},t.prototype.onPageDown=function(e){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.getViewportHeight(),o=this.paginationProxy.getPixelOffset(),r=t.top+n,i=this.paginationProxy.getRowIndexAtPixel(r+o);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,i):this.navigateToNextPage(e,i)},t.prototype.onPageUp=function(e){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),n=this.paginationProxy.getPixelOffset(),o=t.top,r=this.paginationProxy.getRowIndexAtPixel(o+n);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(e,r,!0):this.navigateToNextPage(e,r,!0)},t.prototype.navigateToNextPage=function(e,t,n){var o,r;void 0===n&&(n=!1);var i,s=this.getViewportHeight(),a=this.paginationProxy.getPageFirstRow(),l=this.paginationProxy.getPageLastRow(),u=this.paginationProxy.getPixelOffset(),c=this.paginationProxy.getRow(e.rowIndex),p=n?(null===(o=c)||void 0===o?void 0:o.rowHeight)-s-u:s-u,d=(null===(r=c)||void 0===r?void 0:r.rowTop)+p,h=this.paginationProxy.getRowIndexAtPixel(d+u);if(h===e.rowIndex){var f=n?-1:1;t=h=e.rowIndex+f}n?(i="bottom",h<a&&(h=a),t<a&&(t=a)):(i="top",h>l&&(h=l),t>l&&(t=l)),this.isRowTallerThanView(h)&&(t=h,i="top"),this.navigateTo({scrollIndex:t,scrollType:i,scrollColumn:null,focusIndex:h,focusColumn:e.column})},t.prototype.navigateToNextPageWithAutoHeight=function(e,t,n){var o=this;void 0===n&&(n=!1),this.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:t,focusColumn:e.column}),setTimeout((function(){var r=o.getNextFocusIndexForAutoHeight(e,n);o.navigateTo({scrollIndex:t,scrollType:n?"bottom":"top",scrollColumn:null,focusIndex:r,focusColumn:e.column})}),50)},t.prototype.getNextFocusIndexForAutoHeight=function(e,t){var n;void 0===t&&(t=!1);for(var o=t?-1:1,r=this.getViewportHeight(),i=this.paginationProxy.getPageLastRow(),s=0,a=e.rowIndex;a>=0&&a<=i;){var l=this.paginationProxy.getRow(a);if(l){var u=null!==(n=l.rowHeight)&&void 0!==n?n:0;if(s+u>r)break;s+=u}a+=o}return Math.max(0,Math.min(a,i))},t.prototype.getViewportHeight=function(){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),t=this.gridOptionsWrapper.getScrollbarWidth(),n=e.bottom-e.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(n-=t),n},t.prototype.isRowTallerThanView=function(e){var t=this.paginationProxy.getRow(e);if(!t)return!1;var n=t.rowHeight;return"number"===typeof n&&n>this.getViewportHeight()},t.prototype.onCtrlUpDownLeftRight=function(e,t){var n=this.cellNavigationService.getNextCellToFocus(e,t,!0),o=n.rowIndex,r=n.column;this.navigateTo({scrollIndex:o,scrollType:null,scrollColumn:r,focusIndex:o,focusColumn:r})},t.prototype.onHomeOrEndKey=function(e){var t=e===dr.PAGE_HOME,n=this.columnModel.getAllDisplayedColumns(),o=t?n[0]:ue(n),r=t?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:r,scrollType:null,scrollColumn:o,focusIndex:r,focusColumn:o})},t.prototype.onTabKeyDown=function(e,t){var n=t.shiftKey;if(this.tabToNextCellCommon(e,n,t))t.preventDefault();else if(n){var o=e.getRowPosition(),r=o.rowIndex;(o.rowPinned?0===r:r===this.paginationProxy.getPageFirstRow())&&(t.preventDefault(),this.focusService.focusLastHeader(t))}else e instanceof al&&e.focusCell(!0),this.focusService.focusNextGridCoreContainer(n)&&t.preventDefault()},t.prototype.tabToNextCell=function(e,t){var n=this.focusService.getFocusedCell();if(!n)return!1;var o=this.getCellByPosition(n);return!!(o||(o=this.rowRenderer.getRowByPosition(n))&&o.isFullWidth())&&this.tabToNextCellCommon(o,e,t)},t.prototype.tabToNextCellCommon=function(e,t,n){var o=e.isEditing();if(!o&&e instanceof al){var r=e.getRowCtrl();r&&(o=r.isEditing())}return(o?this.gridOptionsWrapper.isFullRowEdit()?this.moveToNextEditingRow(e,t,n):this.moveToNextEditingCell(e,t,n):this.moveToNextCellNotEditing(e,t))||!!this.focusService.getFocusedHeader()},t.prototype.moveToNextEditingCell=function(e,t,n){void 0===n&&(n=null);var o=e.getCellPosition();e.stopEditing();var r=this.findNextCellToFocusOn(o,t,!0);return null!=r&&(r.startEditing(null,null,!0,n),r.focusCell(!1),!0)},t.prototype.moveToNextEditingRow=function(e,t,n){void 0===n&&(n=null);var o=e.getCellPosition(),r=this.findNextCellToFocusOn(o,t,!0);if(null==r)return!1;var i=r.getCellPosition(),s=this.isCellEditable(o),a=this.isCellEditable(i),l=i&&o.rowIndex===i.rowIndex&&o.rowPinned===i.rowPinned;(s&&e.setFocusOutOnEditor(),l)||(e.getRowCtrl().stopEditing(),r.getRowCtrl().startRowEditing(void 0,void 0,void 0,n));return a?(r.setFocusInOnEditor(),r.focusCell()):r.focusCell(!0),!0},t.prototype.moveToNextCellNotEditing=function(e,t){var n,o=this.columnModel.getAllDisplayedColumns();n=e instanceof fl?ou(ou({},e.getRowPosition()),{column:t?o[0]:ue(o)}):e.getCellPosition();var i=this.findNextCellToFocusOn(n,t,!1);if(i instanceof al)i.focusCell(!0);else if(i)return this.tryToFocusFullWidthRow(i.getRowPosition(),t);return r(i)},t.prototype.findNextCellToFocusOn=function(e,t,n){for(var o=e;;){e!==o&&(e=o),t||(o=this.getLastCellOfColSpan(o)),o=this.cellNavigationService.getNextTabbedCell(o,t);var i=this.gridOptionsWrapper.getTabToNextCellFunc();if(r(i)){var s=i({backwards:t,editing:n,previousCellPosition:e,nextCellPosition:o||null});r(s)?(s.floating&&(D((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),s.rowPinned=s.floating),o={rowIndex:s.rowIndex,column:s.column,rowPinned:s.rowPinned}):o=null}if(!o)return null;if(o.rowIndex<0){var a=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:a+o.rowIndex,column:o.column}}),null}var l=this.gridOptionsWrapper.isFullRowEdit();if(n&&!l)if(!this.isCellEditable(o))continue;this.ensureCellVisible(o);var u=this.getCellByPosition(o);if(u){if(!u.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(o),u}else{var c=this.rowRenderer.getRowByPosition(o);if(c&&c.isFullWidth())return c}}},t.prototype.isCellEditable=function(e){var t=this.lookupRowNodeForCell(e);return!!t&&e.column.isCellEditable(t)},t.prototype.getCellByPosition=function(e){var t=this.rowRenderer.getRowByPosition(e);return t?t.getCellCtrl(e.column):null},t.prototype.lookupRowNodeForCell=function(e){return e.rowPinned===oe.PINNED_TOP?this.pinnedRowModel.getPinnedTopRow(e.rowIndex):e.rowPinned===oe.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRow(e.rowIndex):this.paginationProxy.getRow(e.rowIndex)},t.prototype.navigateToNextCell=function(e,t,n,o){for(var s=n,a=!1;s&&(s===n||!this.isValidNavigateCell(s));)this.gridOptionsWrapper.isEnableRtl()?t===dr.LEFT&&(s=this.getLastCellOfColSpan(s)):t===dr.RIGHT&&(s=this.getLastCellOfColSpan(s)),a=i(s=this.cellNavigationService.getNextCellToFocus(t,s));if(a&&e&&e.key===dr.UP&&(s={rowIndex:-1,rowPinned:null,column:n.column}),o){var l=this.gridOptionsWrapper.getNavigateToNextCellFunc();if(r(l)){var u=l({key:t,previousCellPosition:n,nextCellPosition:s||null,event:e});r(u)?(u.floating&&(D((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),u.rowPinned=u.floating),s={rowPinned:u.rowPinned,rowIndex:u.rowIndex,column:u.column}):s=null}}if(s)if(s.rowIndex<0){var c=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:c+s.rowIndex,column:n.column},event:e||void 0})}else{var p=this.getNormalisedPosition(s);p?this.focusPosition(p):this.tryToFocusFullWidthRow(s)}},t.prototype.getNormalisedPosition=function(e){this.ensureCellVisible(e);var t=this.getCellByPosition(e);return t?(e=t.getCellPosition(),this.ensureCellVisible(e),e):null},t.prototype.tryToFocusFullWidthRow=function(e,t){void 0===t&&(t=!1);var n=this.columnModel.getAllDisplayedColumns(),o=this.rowRenderer.getRowByPosition(e);if(!o||!o.isFullWidth())return!1;var r=this.focusService.getFocusedCell(),i={rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:e.column||(t?ue(n):n[0])};this.focusPosition(i);var s=null!=r&&this.rowPositionUtils.before(i,r),a={type:Ve.EVENT_FULL_WIDTH_ROW_FOCUSED,api:this.gridApi,columnApi:this.columnApi,rowIndex:i.rowIndex,rowPinned:i.rowPinned,column:i.column,isFullWidthCell:!0,floating:i.rowPinned,fromBelow:s};return this.eventService.dispatchEvent(a),!0},t.prototype.focusPosition=function(e){this.focusService.setFocusedCell(e.rowIndex,e.column,e.rowPinned,!0),this.rangeService&&this.rangeService.setRangeToCell(e)},t.prototype.isValidNavigateCell=function(e){return!!this.rowPositionUtils.getRowNode(e)},t.prototype.getLastCellOfColSpan=function(e){var t=this.getCellByPosition(e);if(!t)return e;var n=t.getColSpanningList();return 1===n.length?e:{rowIndex:e.rowIndex,column:ue(n),rowPinned:e.rowPinned}},t.prototype.ensureCellVisible=function(e){i(e.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e.rowIndex),e.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(e.column),this.gridBodyCon.getScrollFeature().horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()},ru([K("columnApi")],t.prototype,"columnApi",void 0),ru([K("gridApi")],t.prototype,"gridApi",void 0),ru([K("mouseEventService")],t.prototype,"mouseEventService",void 0),ru([K("paginationProxy")],t.prototype,"paginationProxy",void 0),ru([K("focusService")],t.prototype,"focusService",void 0),ru([K("animationFrameService")],t.prototype,"animationFrameService",void 0),ru([q("rangeService")],t.prototype,"rangeService",void 0),ru([K("columnModel")],t.prototype,"columnModel",void 0),ru([K("ctrlsService")],t.prototype,"ctrlsService",void 0),ru([K("rowRenderer")],t.prototype,"rowRenderer",void 0),ru([K("headerNavigationService")],t.prototype,"headerNavigationService",void 0),ru([K("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),ru([K("cellNavigationService")],t.prototype,"cellNavigationService",void 0),ru([K("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),ru([z],t.prototype,"postConstruct",null),t=ru([Y("navigationService")],t)}(Fe),su=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),au=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(e){function t(t){var n=e.call(this,'<div class="ag-popup-editor" tabindex="-1"/>')||this;return n.params=t,n}return su(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.setDomData(this.getGui(),t.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},t.prototype.addKeyDownListener=function(){var e=this,t=this.getGui(),n=this.params;this.addManagedListener(t,"keydown",(function(t){No(e.gridOptionsWrapper,t,n.node,n.column,!0)||n.onKeyDown(t)}))},t.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",au([z],t.prototype,"postConstruct",null),t}(Si),uu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),cu=function(e){function t(t,n,o,r,i){var s=e.call(this)||this;s.rendererVersion=0,s.editorVersion=0,s.beans=t,s.column=n.getColumn(),s.rowNode=n.getRowNode(),s.rowCtrl=n.getRowCtrl(),s.eRow=r,s.setTemplate('<div comp-id="'+s.getCompId()+'"/>');var a=s.getGui();s.forceWrapper=n.isForceWrapper(),s.refreshWrapper(!1);var l=function(e,t,n){var o=n||a;null!=t&&""!=t?o.setAttribute(e,t):o.removeAttribute(e)},u={addOrRemoveCssClass:function(e,t){return s.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return _n(a,e)},getFocusableElement:function(){return s.getFocusableElement()},setTabIndex:function(e){return l("tabindex",e.toString())},setRole:function(e){return Bn(a,e)},setColId:function(e){return l("col-id",e)},setTitle:function(e){return l("title",e)},setIncludeSelection:function(e){return s.includeSelection=e},setIncludeRowDrag:function(e){return s.includeRowDrag=e},setIncludeDndSource:function(e){return s.includeDndSource=e},setRenderDetails:function(e,t,n){return s.setRenderDetails(e,t,n)},setEditDetails:function(e,t,n){return s.setEditDetails(e,t,n)},getCellEditor:function(){return s.cellEditor||null},getCellRenderer:function(){return s.cellRenderer||null},getParentOfValue:function(){return s.getParentOfValue()}};return s.cellCtrl=n,n.setComp(u,s.getGui(),s.eCellWrapper,o,i),s}return uu(t,e),t.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},t.prototype.setRenderDetails=function(e,t,n){if(!(this.cellEditor&&!this.cellEditorPopupWrapper)){this.firstRender=null==this.firstRender;var o=this.refreshWrapper(!1);if(e)!(n||o)&&this.refreshCellRenderer(e)||(this.destroyRenderer(),this.createCellRendererInstance(e));else this.destroyRenderer(),this.insertValueWithoutCellRenderer(t)}},t.prototype.setEditDetails=function(e,t,n){e?this.createCellEditorInstance(e,t,n):this.destroyEditor()},t.prototype.removeControls=function(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)},t.prototype.refreshWrapper=function(e){var t=this.includeRowDrag||this.includeDndSource||this.includeSelection,n=t||this.forceWrapper,o=n&&null==this.eCellWrapper;o&&(this.eCellWrapper=gn('<div class="ag-cell-wrapper" role="presentation"></div>'),this.getGui().appendChild(this.eCellWrapper));var r=!n&&null!=this.eCellWrapper;r&&(hn(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!n);var i=!e&&n,s=i&&null==this.eCellValue;s&&(this.eCellValue=gn('<span class="ag-cell-value" role="presentation"></span>'),this.eCellWrapper.appendChild(this.eCellValue));var a=!i&&null!=this.eCellValue;a&&(hn(this.eCellValue),this.eCellValue=void 0);var l=o||r||s||a;return l&&this.removeControls(),!e&&t&&this.addControls(),l},t.prototype.addControls=function(){var e=this.eCellValue.id="cell-"+this.getCompId(),t=[];this.includeRowDrag&&null==this.rowDraggingComp&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&null==this.dndSourceComp&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&(null==this.checkboxSelectionComp&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue)),t.push(this.checkboxSelectionComp.getCheckboxId())),t.push(e),Yn(this.getGui(),t.join(" "))},t.prototype.createCellEditorInstance=function(e,t,n){var o=this,r=this.editorVersion,s=e.newAgStackInstance();if(s){var a=e.params;s.then((function(e){return o.afterCellEditorCreated(r,e,a,t,n)})),i(this.cellEditor)&&a.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},t.prototype.insertValueWithoutCellRenderer=function(e){var t=this.getParentOfValue();dn(t);var n=null!=e?Ke(e):null;null!=n&&(t.innerHTML=n)},t.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},t.prototype.destroyRenderer=function(){var e=this.beans.context;this.cellRenderer=e.destroyBean(this.cellRenderer),hn(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},t.prototype.destroyEditor=function(){var e=this.beans.context;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=e.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=e.destroyBean(this.cellEditorPopupWrapper),hn(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},t.prototype.refreshCellRenderer=function(e){if(null==this.cellRenderer||null==this.cellRenderer.refresh)return!1;if(this.cellRendererClass!==e.componentClass)return!1;var t=this.cellRenderer.refresh(e.params);return!0===t||void 0===t},t.prototype.createCellRendererInstance=function(e){var t=this,n=this.beans.gridOptionsWrapper.isAngularCompileRows(),o=this.beans.gridOptionsWrapper.isSuppressAnimationFrame(),r=!n&&!o,i=this.rendererVersion,s=e.componentClass,a=function(){if(!(t.rendererVersion!==i||!t.isAlive())){var n=e.newAgStackInstance(),o=t.afterCellRendererCreated.bind(t,i,s);n&&n.then(o)}};r&&this.firstRender?this.beans.animationFrameService.createTask(a,this.rowNode.rowIndex,"createTasksP2"):a()},t.prototype.getCtrl=function(){return this.cellCtrl},t.prototype.getRowCtrl=function(){return this.rowCtrl},t.prototype.getCellRenderer=function(){return this.cellRenderer},t.prototype.getCellEditor=function(){return this.cellEditor},t.prototype.afterCellRendererCreated=function(e,t,n){if(!this.isAlive()||e!==this.rendererVersion)this.beans.context.destroyBean(n);else if(this.cellRenderer=n,this.cellRendererClass=t,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var o=this.getParentOfValue();dn(o),o.appendChild(this.cellRendererGui)}},t.prototype.afterCellEditorCreated=function(e,t,n,o,r){if(e!==this.editorVersion)this.beans.context.destroyBean(t);else{if(t.isCancelBeforeStart&&t.isCancelBeforeStart())return this.beans.context.destroyBean(t),void this.cellCtrl.stopEditing();if(!t.getGui)return console.warn("AG Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),void this.beans.context.destroyBean(t);this.cellEditor=t,this.cellEditorGui=t.getGui(),o||void 0!==t.isPopup&&t.isPopup()?(o||this.cellCtrl.hackSayEditingInPopup(),this.addPopupCellEditor(n,r)):this.addInCellEditor(),t.afterGuiAttached&&t.afterGuiAttached()}},t.prototype.addInCellEditor=function(){var e=this.getGui(),t=this.beans.gridOptionsWrapper.getDocument();(e.contains(t.activeElement)&&e.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui)&&this.getParentOfValue().appendChild(this.cellEditorGui)},t.prototype.addPopupCellEditor=function(e,t){var n=this;this.beans.gridOptionsWrapper.isFullRowEdit()&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var o=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new lu(e));var r=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&r.appendChild(this.cellEditorGui);var i=this.beans.popupService,s=this.beans.gridOptionsWrapper.isStopEditingWhenCellsLoseFocus(),a=null!=t?t:o.getPopupPosition?o.getPopupPosition():"over",l={column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),ePopup:r,keepWithinBounds:!0},u="under"===a?i.positionPopupUnderComponent.bind(i,l):i.positionPopupOverComponent.bind(i,l),c=this.beans.gridOptionsWrapper.getLocaleTextFunc(),p=i.addPopup({modal:s,eChild:r,closeOnEsc:!0,closedCallback:function(){n.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:u,ariaLabel:c("ariaLabelCellEditor","Cell Editor")});p&&(this.hideEditorPopup=p.hideFunc)},t.prototype.detach=function(){this.eRow.removeChild(this.getGui())},t.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),e.prototype.destroy.call(this)},t.prototype.clearParentOfValue=function(){var e=this.getGui(),t=this.beans.gridOptionsWrapper.getDocument();e.contains(t.activeElement)&&e.focus({preventScroll:!0}),dn(this.getParentOfValue())},t}(tr),pu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),du=function(e){function t(t,n,o){var r=e.call(this)||this;r.cellComps={},r.beans=n,r.rowCtrl=t,r.setTemplate('<div comp-id="'+r.getCompId()+'" style="'+r.getInitialStyle()+'"/>');var i=r.getGui(),s=i.style,a={setDomOrder:function(e){return r.domOrder=e},setCellCtrls:function(e){return r.setCellCtrls(e)},showFullWidth:function(e){return r.showFullWidth(e)},getFullWidthCellRenderer:function(){return r.getFullWidthCellRenderer()},addOrRemoveCssClass:function(e,t){return r.addOrRemoveCssClass(e,t)},setUserStyles:function(e){return _n(i,e)},setTop:function(e){return s.top=e},setTransform:function(e){return s.transform=e},setRowIndex:function(e){return i.setAttribute("row-index",e)},setRole:function(e){return Bn(i,e)},setRowId:function(e){return i.setAttribute("row-id",e)},setRowBusinessKey:function(e){return i.setAttribute("row-business-key",e)},setTabIndex:function(e){return i.setAttribute("tabindex",e.toString())}};return t.setComp(a,r.getGui(),o),r}return pu(t,e),t.prototype.getInitialStyle=function(){var e=this.rowCtrl.getInitialTransform(),t=this.rowCtrl.getInitialRowTop();return e?"transform: "+e:"top: "+t},t.prototype.showFullWidth=function(e){var t=this,n=e.newAgStackInstance();n&&n.then((function(e){if(t.isAlive()){var n=e.getGui();t.getGui().appendChild(n),t.rowCtrl.setupDetailRowAutoHeight(n),t.setFullWidthRowComp(e)}else t.beans.context.destroyBean(e)}))},t.prototype.setCellCtrls=function(e){var t=this,n=Object.assign({},this.cellComps);e.forEach((function(e){var o=e.getInstanceId();null==t.cellComps[o]?t.newCellComp(e):n[o]=null}));var o=_(n).filter((function(e){return null!=e}));this.destroyCells(o),this.ensureDomOrder(e)},t.prototype.ensureDomOrder=function(e){var t=this;if(this.domOrder){var n=[];e.forEach((function(e){var o=t.cellComps[e.getInstanceId()];o&&n.push(o.getGui())})),Cn(this.getGui(),n)}},t.prototype.newCellComp=function(e){var t=new cu(this.beans,e,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[e.getInstanceId()]=t,this.getGui().appendChild(t.getGui())},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.destroyAllCells()},t.prototype.destroyAllCells=function(){var e=_(this.cellComps).filter((function(e){return null!=e}));this.destroyCells(e)},t.prototype.setFullWidthRowComp=function(e){var t=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=e,this.addDestroyFunc((function(){t.fullWidthCellRenderer=t.beans.context.destroyBean(t.fullWidthCellRenderer)}))},t.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},t.prototype.destroyCells=function(e){var t=this;e.forEach((function(e){if(e){var n=e.getCtrl().getInstanceId();t.cellComps[n]===e&&(e.detach(),e.destroy(),t.cellComps[n]=null)}}))},t}(tr),hu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),fu=function(){return fu=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},fu.apply(this,arguments)},gu=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};var mu,vu=function(e){function n(){var n=e.call(this,function(){var e=tr.elementGettingCreated.getAttribute("name"),n=zl.getRowContainerCssClasses(e),o=e===t.RowContainerName.CENTER,r=e===t.RowContainerName.TOP_CENTER||e===t.RowContainerName.BOTTOM_CENTER;return o?'<div class="'+n.wrapper+'" ref="eWrapper" role="presentation">\n                <div class="'+n.viewport+'" ref="eViewport" role="presentation">\n                    <div class="'+n.container+'" ref="eContainer"></div>\n                </div>\n            </div>':r?'<div class="'+n.viewport+'" ref="eViewport" role="presentation">\n                <div class="'+n.container+'" ref="eContainer"></div>\n            </div>':'<div class="'+n.container+'" ref="eContainer"></div>'}())||this;return n.rowComps={},n.name=tr.elementGettingCreated.getAttribute("name"),n.type=Vl(n.name),n}return hu(n,e),n.prototype.postConstruct=function(){var e=this,t={setViewportHeight:function(t){return e.eViewport.style.height=t},setRowCtrls:function(t){return e.setRowCtrls(t)},setDomOrder:function(t){e.domOrder=t},setContainerWidth:function(t){return e.eContainer.style.width=t}};this.createManagedBean(new zl(this.name)).setComp(t,this.eContainer,this.eViewport,this.eWrapper)},n.prototype.preDestroy=function(){this.setRowCtrls([])},n.prototype.setRowCtrls=function(e){var t=this,n=fu({},this.rowComps);this.rowComps={},this.lastPlacedElement=null;e.forEach((function(e){var o=e.getInstanceId(),r=n[o];if(r)t.rowComps[o]=r,delete n[o],t.ensureDomOrder(r.getGui());else{var i=t.newRowComp(e);t.rowComps[o]=i,t.appendRow(i.getGui())}})),_(n).forEach((function(e){t.eContainer.removeChild(e.getGui()),e.destroy()})),Bn(this.eContainer,e.length?"rowgroup":"presentation")},n.prototype.appendRow=function(e){this.domOrder?wn(this.eContainer,e,this.lastPlacedElement):this.eContainer.appendChild(e),this.lastPlacedElement=e},n.prototype.ensureDomOrder=function(e){this.domOrder&&(yn(this.eContainer,e,this.lastPlacedElement),this.lastPlacedElement=e)},n.prototype.newRowComp=function(e){zl.getPinned(this.name);return new du(e,this.beans,this.type)},gu([K("beans")],n.prototype,"beans",void 0),gu([nr("eViewport")],n.prototype,"eViewport",void 0),gu([nr("eContainer")],n.prototype,"eContainer",void 0),gu([nr("eWrapper")],n.prototype,"eWrapper",void 0),gu([z],n.prototype,"postConstruct",null),gu([Z],n.prototype,"preDestroy",null),n}(tr),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(){function e(e){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=e}return e.prototype.onDragEnter=function(e){var t=this;if(this.clearColumnsList(),!this.gridOptionsWrapper.isFunctionsReadOnly()){var n=e.dragItem.columns;n&&n.forEach((function(e){e.isPrimary()&&(e.isAnyFunctionActive()||(e.isAllowValue()?t.columnsToAggregate.push(e):e.isAllowRowGroup()?t.columnsToGroup.push(e):e.isAllowPivot()&&t.columnsToPivot.push(e)))}))}},e.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?ts.ICON_PINNED:ts.ICON_MOVE:null},e.prototype.onDragLeave=function(e){this.clearColumnsList()},e.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},e.prototype.onDragging=function(e){},e.prototype.onDragStop=function(e){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},yu([K("columnModel")],e.prototype,"columnModel",void 0),yu([K("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e}(),wu=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},_u=function(){function e(e,t){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.pinned=e,this.eContainer=t,this.centerContainer=!r(e)}return e.prototype.init=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCon=e.ctrlsService.getGridBodyCtrl()}))},e.prototype.getIconName=function(){return this.pinned?ts.ICON_PINNED:ts.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.columnModel.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.columnModel.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.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),e},e.prototype.checkCenterForScrolling=function(e){if(this.centerContainer){var t=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),n=t+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsWrapper.isEnableRtl()?(this.needToMoveRight=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,!i(e.hDirection)){var o=this.normaliseX(e.x);t||this.checkCenterForScrolling(o);var r=this.normaliseDirection(e.hDirection),s=e.dragSource.type,a=e.dragSource.getDragItem().columns;a=a.filter((function(e){return!e.getColDef().lockPinned||e.getPinned()==n.pinned})),this.attemptMoveColumns(s,a,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.columnModel.getAllGridColumns(),n=pe(e.map((function(e){return t.indexOf(e)}))),o=n[0];return ue(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=n.slice();this.columnModel.sortColumnsLikeGridColumns(l);var u=this.calculateValidMoves(l,a,r),c=this.calculateOldIndex(l);if(0!==u.length){var p=u[0],d=null!==c&&!i;if(e==t.DragSourceType.HeaderCell&&(d=null!==c),d){if(s&&p>=c)return;if(a&&p<=c)return}for(var h=0;h<u.length;h++){var f=u[h];if(this.columnModel.doesMovePassRules(l,f))return void this.columnModel.moveColumns(l,f,"uiColumnDragged")}}},e.prototype.calculateValidMoves=function(e,t,n){var o=this.gridOptionsWrapper.isSuppressMovableColumns()||e.some((function(e){return e.getColDef().suppressMovable}));if(o)return[];var r,i=this.columnModel.getDisplayedColumns(this.pinned),s=this.columnModel.getAllGridColumns(),a=i.filter((function(t){return me(e,t)})),l=i.filter((function(t){return!me(e,t)})),u=s.filter((function(t){return!me(e,t)})),c=0,p=n;if(t){var d=0;a.forEach((function(e){return d+=e.getActualWidth()})),p-=d}if(p>0){for(var h=0;h<l.length;h++){if((p-=l[h].getActualWidth())<0)break;c++}t&&c++}if(c>0){var f=l[c-1];r=u.indexOf(f)+1}else-1===(r=u.indexOf(l[0]))&&(r=0);var g=[r],m=function(e,t){return e-t};if(t){for(var v=r+1,y=s.length-1;v<=y;)g.push(v),v++;g.sort(m)}else{v=r,y=s.length-1;for(var C=s[v];v<=y&&this.isColumnHidden(i,C);)v++,g.push(v),C=s[v];v=r-1;for(;v>=0;)g.push(v),v--;g.sort(m).reverse()}return g},e.prototype.isColumnHidden=function(e,t){return e.indexOf(t)<0},e.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(ts.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(ts.ICON_RIGHT,!0))},e.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(ts.ICON_MOVE))},e.prototype.moveInterval=function(){var e;this.intervalCount++,(e=10+5*this.intervalCount)>100&&(e=100);var t=null,n=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?t=n.scrollHorizontally(-e):this.needToMoveRight&&(t=n.scrollHorizontally(e)),0!==t)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var o=this.lastDraggingEvent.dragItem.columns.filter((function(e){return!e.getColDef().lockPinned}));if(o.length>0&&(this.dragAndDropService.setGhostIcon(ts.ICON_PINNED),this.failedMoveAttempts>7)){var r=this.needToMoveLeft?oe.PINNED_LEFT:oe.PINNED_RIGHT;this.setColumnsPinned(o,r,"uiColumnDragged"),this.dragAndDropService.nudge()}}},wu([K("columnModel")],e.prototype,"columnModel",void 0),wu([K("dragAndDropService")],e.prototype,"dragAndDropService",void 0),wu([K("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),wu([K("ctrlsService")],e.prototype,"ctrlsService",void 0),wu([z],e.prototype,"init",null),e}(),bu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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},Su=function(e){function n(t,n){var o=e.call(this)||this;return o.pinned=t,o.eContainer=n,o}return bu(n,e),n.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){switch(e.pinned){case oe.PINNED_LEFT:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.leftRowContainerCtrl.getContainerElement()],[t.bottomLeftRowContainerCtrl.getContainerElement()],[t.topLeftRowContainerCtrl.getContainerElement()]];break;case oe.PINNED_RIGHT:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.rightRowContainerCtrl.getContainerElement()],[t.bottomRightRowContainerCtrl.getContainerElement()],[t.topRightRowContainerCtrl.getContainerElement()]];break;default:e.eSecondaryContainers=[[t.gridBodyCtrl.getBodyViewportElement(),t.centerRowContainerCtrl.getViewportElement()],[t.bottomCenterRowContainerCtrl.getViewportElement()],[t.topCenterRowContainerCtrl.getViewportElement()]]}}))},n.prototype.isInterestedIn=function(e){return e===t.DragSourceType.HeaderCell||e===t.DragSourceType.ToolPanel&&this.gridOptionsWrapper.isAllowDragFromColumnsToolPanel()},n.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},n.prototype.getContainer=function(){return this.eContainer},n.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new _u(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new Cu(this.pinned)),this.dragAndDropService.addDropTarget(this)},n.prototype.getIconName=function(){return this.currentDropListener.getIconName()},n.prototype.isDropColumnInPivotMode=function(e){return this.columnModel.isPivotMode()&&e.dragSource.type===t.DragSourceType.ToolPanel},n.prototype.onDragEnter=function(e){this.currentDropListener=this.isDropColumnInPivotMode(e)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(e)},n.prototype.onDragLeave=function(e){this.currentDropListener.onDragLeave(e)},n.prototype.onDragging=function(e){this.currentDropListener.onDragging(e)},n.prototype.onDragStop=function(e){this.currentDropListener.onDragStop(e)},Eu([K("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Eu([K("columnModel")],n.prototype,"columnModel",void 0),Eu([K("ctrlsService")],n.prototype,"ctrlsService",void 0),Eu([z],n.prototype,"postConstruct",null),Eu([z],n.prototype,"init",null),n}(Fe),Ru=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Ou=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ru(arguments[t]));return e},Tu=function(){function e(){}return e.getHeaderClassesFromColDef=function(e,t,n,o){return i(e)?[]:this.getColumnClassesFromCollDef(e.headerClass,e,t,n,o)},e.getToolPanelClassesFromColDef=function(e,t,n,o){return i(e)?[]:this.getColumnClassesFromCollDef(e.toolPanelClass,e,t,n,o)},e.getClassParams=function(e,t,n,o){return{colDef:e,column:n,columnGroup:o,api:t.getApi(),columnApi:t.getColumnApi(),context:t.getContext()}},e.getColumnClassesFromCollDef=function(e,t,n,o,r){if(i(e))return[];var s;"function"===typeof e?s=e(this.getClassParams(t,n,o,r)):s=e;return"string"===typeof s?[s]:Array.isArray(s)?Ou(s):[]},e}(),Pu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Au=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(e){function t(n){var o=e.call(this,t.TEMPLATE,n)||this;return o.headerCompVersion=0,o.column=n.getColumnGroupChild(),o.pinned=n.getPinned(),o}return Pu(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),n=function(e,n,o){var r=o||t;null!=n&&""!=n?r.setAttribute(e,n):r.removeAttribute(e)},o={setWidth:function(e){return t.style.width=e},addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setColId:function(e){return n("col-id",e)},setTitle:function(e){return n("title",e)},setAriaDescription:function(e){return Zn(t,e)},setAriaSort:function(e){return e?so(t,e):ao(t)},setUserCompDetails:function(t){return e.setUserCompDetails(t)},getUserCompInstance:function(){return e.headerComp}};this.ctrl.setComp(o,this.getGui(),this.eResize);var r=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",r)},t.prototype.destroyHeaderComp=function(){this.headerComp&&(this.getGui().removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},t.prototype.setUserCompDetails=function(e){var t=this;this.headerCompVersion++;var n=this.headerCompVersion;e.newAgStackInstance().then((function(e){return t.afterCompCreated(n,e)}))},t.prototype.afterCompCreated=function(e,t){e==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=t,this.headerCompGui=t.getGui(),this.getGui().appendChild(this.headerCompGui),this.ctrl.setDragSource(this.headerCompGui)):this.destroyBean(t)},t.TEMPLATE='<div class="ag-header-cell" role="columnheader" tabindex="-1">\n            <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n        </div>',Au([nr("eResize")],t.prototype,"eResize",void 0),Au([z],t.prototype,"postConstruct",null),Au([Z],t.prototype,"destroyHeaderComp",null),t}(na),xu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Nu=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},Mu=function(e){function t(n){return e.call(this,t.TEMPLATE,n)||this}return xu(t,e),t.prototype.postConstruct=function(){var e=this,t=this.getGui(),n=function(e,n){return void 0!=n?t.setAttribute(e,n):t.removeAttribute(e)},o={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},addOrRemoveResizableCssClass:function(t,n){return e.eResize.classList.toggle(t,n)},setWidth:function(e){return t.style.width=e},setColId:function(e){return t.setAttribute("col-id",e)},setAriaExpanded:function(e){return n("aria-expanded",e)},setTitle:function(e){return n("title",e)},setUserCompDetails:function(t){return e.setUserCompDetails(t)}};this.ctrl.setComp(o,t,this.eResize)},t.prototype.setUserCompDetails=function(e){var t=this;e.newAgStackInstance().then((function(e){return t.afterHeaderCompCreated(e)}))},t.prototype.afterHeaderCompCreated=function(e){var t=this,n=function(){return t.destroyBean(e)};this.isAlive()?(this.getGui().appendChild(e.getGui()),this.addDestroyFunc(n),this.ctrl.setDragSource(e.getGui())):n()},t.TEMPLATE='<div class="ag-header-group-cell" role="columnheader" tabindex="-1">\n            <div ref="eResize" class="ag-header-cell-resize" role="presentation"></div>\n        </div>',Nu([K("userComponentFactory")],t.prototype,"userComponentFactory",void 0),Nu([nr("eResize")],t.prototype,"eResize",void 0),Nu([z],t.prototype,"postConstruct",null),t}(na),Iu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),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};(mu=t.HeaderRowType||(t.HeaderRowType={})).COLUMN_GROUP="group",mu.COLUMN="column",mu.FLOATING_FILTER="filter";var Fu,ku=function(e){function n(n){var o=e.call(this)||this;o.headerComps={};var r=n.getType()==t.HeaderRowType.COLUMN_GROUP?"ag-header-row-column-group":n.getType()==t.HeaderRowType.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return o.setTemplate('<div class="ag-header-row '+r+'" role="row"></div>'),o.ctrl=n,o}return Iu(n,e),n.prototype.init=function(){var e=this,t={setTransform:function(t){return e.getGui().style.transform=t},setHeight:function(t){return e.getGui().style.height=t},setTop:function(t){return e.getGui().style.top=t},setHeaderCtrls:function(t){return e.setHeaderCtrls(t)},setWidth:function(t){return e.getGui().style.width=t},setAriaRowIndex:function(t){return no(e.getGui(),t)}};this.ctrl.setComp(t)},n.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([])},n.prototype.setHeaderCtrls=function(e){var t=this;if(this.isAlive()){var n=this.headerComps;if(this.headerComps={},e.forEach((function(e){var o=e.getInstanceId(),r=n[o];delete n[o],null==r&&(r=t.createHeaderComp(e),t.getGui().appendChild(r.getGui())),t.headerComps[o]=r})),f(n,(function(e,n){t.getGui().removeChild(n.getGui()),t.destroyBean(n)})),this.gridOptionsWrapper.isEnsureDomOrder()){var o=_(this.headerComps);o.sort((function(e,t){return e.getCtrl().getColumnGroupChild().getLeft()-t.getCtrl().getColumnGroupChild().getLeft()}));var r=o.map((function(e){return e.getGui()}));Cn(this.getGui(),r)}}},n.prototype.createHeaderComp=function(e){var n;switch(this.ctrl.getType()){case t.HeaderRowType.COLUMN_GROUP:n=new Mu(e);break;case t.HeaderRowType.FLOATING_FILTER:n=new ia(e);break;default:n=new Du(e)}return this.createBean(n),n.setParentComponent(this),n},Lu([z],n.prototype,"init",null),Lu([Z],n.prototype,"destroyHeaderCtrls",null),n}(tr),Gu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Hu=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=0,Vu=function(e){function t(t,n){var o=e.call(this)||this;return o.lastFocusEvent=null,o.columnGroupChild=t,o.parentRowCtrl=n,o.instanceId=t.getUniqueId()+"-"+Bu++,o}return Gu(t,e),t.prototype.shouldStopEventPropagation=function(e){var t=this.focusService.getFocusedHeader(),n=t.headerRowIndex,o=t.column;return Mo(this.gridOptionsWrapper,e,n,o)},t.prototype.setGui=function(e){this.eGui=e,this.addDomData()},t.prototype.addDomData=function(){var e=this,n=t.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsWrapper.setDomData(this.eGui,n,this),this.addDestroyFunc((function(){return e.gridOptionsWrapper.setDomData(e.eGui,n,null)}))},t.prototype.getGui=function(){return this.eGui},t.prototype.focus=function(e){return!!this.eGui&&(this.lastFocusEvent=e||null,this.eGui.focus(),!0)},t.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},t.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},t.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.getColumnGroupChild=function(){return this.columnGroupChild},t.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",Hu([K("focusService")],t.prototype,"focusService",void 0),t}(Fe);(Fu=t.ClientSideRowModelSteps||(t.ClientSideRowModelSteps={})).EVERYTHING="group",Fu.FILTER="filter",Fu.SORT="sort",Fu.MAP="map",Fu.AGGREGATE="aggregate",Fu.FILTER_AGGREGATES="filter_aggregates",Fu.PIVOT="pivot",Fu.NOTHING="nothing";var Wu=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 ju(e){var t=e;return null!=t&&null!=t.getFrameworkComponentInstance?t.getFrameworkComponentInstance():e}var Uu,zu=function(){function e(){this.detailGridInfoMap={},this.destroyCalled=!1}return e.prototype.registerOverlayWrapperComp=function(e){this.overlayWrapperComp=e},e.prototype.registerSideBarComp=function(e){this.sideBarComp=e},e.prototype.init=function(){var e=this;switch(this.rowModel.getType()){case oe.ROW_MODEL_TYPE_CLIENT_SIDE:this.clientSideRowModel=this.rowModel;break;case oe.ROW_MODEL_TYPE_INFINITE:this.infiniteRowModel=this.rowModel;break;case oe.ROW_MODEL_TYPE_SERVER_SIDE:this.serverSideRowModel=this.rowModel}this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl()}))},e.prototype.__getAlignedGridService=function(){return this.alignedGridsService},e.prototype.__getContext=function(){return this.context},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;f(this.detailGridInfoMap,(function(n,o){r(o)&&(e(o,t),t++)}))},e.prototype.getDataAsCsv=function(e){if(re.assertRegistered(t.ModuleNames.CsvExportModule,"api.getDataAsCsv"))return this.csvCreator.getDataAsCsv(e)},e.prototype.exportDataAsCsv=function(e){re.assertRegistered(t.ModuleNames.CsvExportModule,"api.exportDataAsCSv")&&this.csvCreator.exportDataAsCsv(e)},e.prototype.getExcelExportMode=function(e){var t=this.gridOptionsWrapper.getDefaultExportParams("excel");return Object.assign({exportMode:"xlsx"},t,e).exportMode},e.prototype.getDataAsExcel=function(e){if(re.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getDataAsExcel")){var n=this.getExcelExportMode(e);if(this.excelCreator.getFactoryMode(n)!==t.ExcelFactoryMode.MULTI_SHEET)return this.excelCreator.getDataAsExcel(e);console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`")}},e.prototype.exportDataAsExcel=function(e){if(re.assertRegistered(t.ModuleNames.ExcelExportModule,"api.exportDataAsExcel")){var n=this.getExcelExportMode(e);this.excelCreator.getFactoryMode(n)!==t.ExcelFactoryMode.MULTI_SHEET?this.excelCreator.exportDataAsExcel(e):console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling `api.getMultipleSheetAsExcel()` or `api.exportMultipleSheetsAsExcel()`")}},e.prototype.getSheetDataForExcel=function(e){if(re.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getSheetDataForExcel")){var n=this.getExcelExportMode(e);return this.excelCreator.setFactoryMode(t.ExcelFactoryMode.MULTI_SHEET,n),this.excelCreator.getSheetDataForExcel(e)}},e.prototype.getMultipleSheetsAsExcel=function(e){if(re.assertRegistered(t.ModuleNames.ExcelExportModule,"api.getMultipleSheetsAsExcel"))return this.excelCreator.getMultipleSheetsAsExcel(e)},e.prototype.exportMultipleSheetsAsExcel=function(e){if(re.assertRegistered(t.ModuleNames.ExcelExportModule,"api.exportMultipleSheetsAsExcel"))return this.excelCreator.exportMultipleSheetsAsExcel(e)},e.prototype.setEnterpriseDatasource=function(e){console.warn("AG Grid: since version 18.x, api.setEnterpriseDatasource() should be replaced with api.setServerSideDatasource()"),this.setServerSideDatasource(e)},e.prototype.setGridAriaProperty=function(e,t){if(e){var n=this.ctrlsService.getGridBodyCtrl().getGui(),o="aria-"+e;null===t?n.removeAttribute(o):n.setAttribute(o,t)}},e.prototype.setServerSideDatasource=function(e){this.serverSideRowModel?this.serverSideRowModel.setDatasource(e):console.warn("AG Grid: you can only use an enterprise datasource when gridOptions.rowModelType is '"+oe.ROW_MODEL_TYPE_SERVER_SIDE+"'")},e.prototype.setDatasource=function(e){this.gridOptionsWrapper.isRowModelInfinite()?this.rowModel.setDatasource(e):console.warn("AG Grid: you can only use a datasource when gridOptions.rowModelType is '"+oe.ROW_MODEL_TYPE_INFINITE+"'")},e.prototype.setViewportDatasource=function(e){this.gridOptionsWrapper.isRowModelViewport()?this.rowModel.setViewportDatasource(e):console.warn("AG Grid: you can only use a viewport datasource when gridOptions.rowModelType is '"+oe.ROW_MODEL_TYPE_VIEWPORT+"'")},e.prototype.setRowData=function(e){null==this.immutableService?console.warn("AG Grid: you can only set rowData when using the Client Side Row Model"):this.immutableService.isActive()?this.immutableService.setRowData(e):(this.selectionService.reset(),this.clientSideRowModel.setRowData(e))},e.prototype.setFloatingTopRowData=function(e){console.warn("AG Grid: since v12, api.setFloatingTopRowData() is now api.setPinnedTopRowData()"),this.setPinnedTopRowData(e)},e.prototype.setFloatingBottomRowData=function(e){console.warn("AG Grid: since v12, api.setFloatingBottomRowData() is now api.setPinnedBottomRowData()"),this.setPinnedBottomRowData(e)},e.prototype.getFloatingTopRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingTopRowCount() is now api.getPinnedTopRowCount()"),this.getPinnedTopRowCount()},e.prototype.getFloatingBottomRowCount=function(){return console.warn("AG Grid: since v12, api.getFloatingBottomRowCount() is now api.getPinnedBottomRowCount()"),this.getPinnedBottomRowCount()},e.prototype.getFloatingTopRow=function(e){return console.warn("AG Grid: since v12, api.getFloatingTopRow() is now api.getPinnedTopRow()"),this.getPinnedTopRow(e)},e.prototype.getFloatingBottomRow=function(e){return console.warn("AG Grid: since v12, api.getFloatingBottomRow() is now api.getPinnedBottomRow()"),this.getPinnedBottomRow(e)},e.prototype.setPinnedTopRowData=function(e){this.pinnedRowModel.setPinnedTopRowData(e)},e.prototype.setPinnedBottomRowData=function(e){this.pinnedRowModel.setPinnedBottomRowData(e)},e.prototype.getPinnedTopRowCount=function(){return this.pinnedRowModel.getPinnedTopRowCount()},e.prototype.getPinnedBottomRowCount=function(){return this.pinnedRowModel.getPinnedBottomRowCount()},e.prototype.getPinnedTopRow=function(e){return this.pinnedRowModel.getPinnedTopRow(e)},e.prototype.getPinnedBottomRow=function(e){return this.pinnedRowModel.getPinnedBottomRow(e)},e.prototype.setColumnDefs=function(e,t){void 0===t&&(t="api"),this.columnModel.setColumnDefs(e,t)},e.prototype.setAutoGroupColumnDef=function(e,t){this.gridOptionsWrapper.setProperty("autoGroupColumnDef",e,!0)},e.prototype.setDefaultColDef=function(e,t){this.gridOptionsWrapper.setProperty("defaultColDef",e,!0)},e.prototype.expireValueCache=function(){this.valueCache.expire()},e.prototype.getVerticalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getVScrollPosition()},e.prototype.getHorizontalPixelRange=function(){return this.gridBodyCtrl.getScrollFeature().getHScrollPosition()},e.prototype.setAlwaysShowHorizontalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowHorizontalScroll",e)},e.prototype.setAlwaysShowVerticalScroll=function(e){this.gridOptionsWrapper.setProperty("alwaysShowVerticalScroll",e)},e.prototype.refreshToolPanel=function(){this.sideBarComp&&this.sideBarComp.refresh()},e.prototype.refreshCells=function(e){void 0===e&&(e={}),Array.isArray(e)?console.warn("since AG Grid v11.1, refreshCells() now takes parameters, please see the documentation."):this.rowRenderer.refreshCells(e)},e.prototype.flashCells=function(e){void 0===e&&(e={}),this.rowRenderer.flashCells(e)},e.prototype.redrawRows=function(e){void 0===e&&(e={});var t=e?e.rowNodes:void 0;this.rowRenderer.redrawRows(t)},e.prototype.setFunctionsReadOnly=function(e){this.gridOptionsWrapper.setProperty("functionsReadOnly",e)},e.prototype.refreshHeader=function(){this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(e){return e.refresh()}))},e.prototype.isAnyFilterPresent=function(){return this.filterManager.isAnyFilterPresent()},e.prototype.isColumnFilterPresent=function(){return this.filterManager.isColumnFilterPresent()||this.filterManager.isAggregateFilterPresent()},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){i(this.clientSideRowModel)&&console.warn("AG Grid: cannot call onGroupExpandedOrCollapsed unless using normal row model"),r(e)&&console.warn("AG Grid: api.onGroupExpandedOrCollapsed - refreshFromIndex parameter is no longer used, the grid will refresh all rows"),this.clientSideRowModel.refreshModel({step:t.ClientSideRowModelSteps.MAP})},e.prototype.refreshInMemoryRowModel=function(e){console.warn("ag-grid: since version 18.x, api.refreshInMemoryRowModel() should be replaced with api.refreshClientSideRowModel()"),this.refreshClientSideRowModel(e)},e.prototype.refreshClientSideRowModel=function(e){i(this.clientSideRowModel)&&console.warn("cannot call refreshClientSideRowModel unless using normal row model");var n=t.ClientSideRowModelSteps.EVERYTHING,o={group:t.ClientSideRowModelSteps.EVERYTHING,filter:t.ClientSideRowModelSteps.FILTER,map:t.ClientSideRowModelSteps.MAP,aggregate:t.ClientSideRowModelSteps.AGGREGATE,sort:t.ClientSideRowModelSteps.SORT,pivot:t.ClientSideRowModelSteps.PIVOT};if(r(e)&&(n=o[e]),i(n))console.error("AG Grid: invalid step "+e+", available steps are "+Object.keys(o).join(", "));else{var s={step:n,keepRenderedRows:!0,keepEditingRows:!0,animate:!this.gridOptionsWrapper.isSuppressAnimationFrame()};this.clientSideRowModel.refreshModel(s)}},e.prototype.isAnimationFrameQueueEmpty=function(){return this.animationFrameService.isQueueEmpty()},e.prototype.flushAllAnimationFrames=function(){this.animationFrameService.flushAllFrames()},e.prototype.getRowNode=function(e){return this.rowModel.getRowNode(e)},e.prototype.getSizesForCurrentTheme=function(){return{rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),headerHeight:this.gridOptionsWrapper.getHeaderHeight()}},e.prototype.expandAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!0):this.serverSideRowModel?this.serverSideRowModel.expandAll(!0):console.warn("AG Grid: expandAll only works with Client Side Row Model and Server Side Row Model")},e.prototype.collapseAll=function(){this.clientSideRowModel?this.clientSideRowModel.expandOrCollapseAll(!1):this.serverSideRowModel?this.serverSideRowModel.expandAll(!1):console.warn("AG Grid: collapseAll only works with Client Side Row Model and Server Side Row Model")},e.prototype.getToolPanelInstance=function(e){if(this.sideBarComp)return ju(this.sideBarComp.getToolPanelInstance(e));console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.addVirtualRowListener=function(e,t,n){"string"!==typeof e&&console.warn("AG Grid: addVirtualRowListener is deprecated, please use addRenderedRowListener."),this.addRenderedRowListener(e,t,n)},e.prototype.addRenderedRowListener=function(e,t,n){"virtualRowSelected"===e&&console.warn("AG Grid: event virtualRowSelected is deprecated, to register for individual row\n                selection events, add a listener directly to the row node."),this.rowRenderer.addRenderedRowListener(e,t,n)},e.prototype.setQuickFilter=function(e){this.filterManager.setQuickFilter(e)},e.prototype.selectIndex=function(e,t,n){console.warn("AG Grid: do not use api for selection, call node.setSelected(value) instead"),n&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.selectIndex(e,t)},e.prototype.deselectIndex=function(e,t){void 0===t&&(t=!1),console.warn("AG Grid: do not use api for selection, call node.setSelected(value) instead"),t&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),this.selectionService.deselectIndex(e)},e.prototype.selectNode=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),console.warn("AG Grid: API for selection is deprecated, call node.setSelected(value) instead"),n&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!0,clearSelection:!t})},e.prototype.deselectNode=function(e,t){void 0===t&&(t=!1),console.warn("AG Grid: API for selection is deprecated, call node.setSelected(value) instead"),t&&console.warn("AG Grid: suppressEvents is no longer supported, stop listening for the event if you no longer want it"),e.setSelectedParams({newValue:!1})},e.prototype.selectAll=function(){this.selectionService.selectAllRowNodes()},e.prototype.deselectAll=function(){this.selectionService.deselectAllRowNodes()},e.prototype.selectAllFiltered=function(){this.selectionService.selectAllRowNodes(!0)},e.prototype.deselectAllFiltered=function(){this.selectionService.deselectAllRowNodes(!0)},e.prototype.recomputeAggregates=function(){i(this.clientSideRowModel)&&console.warn("cannot call recomputeAggregates unless using normal row model"),console.warn("recomputeAggregates is deprecated, please call api.refreshClientSideRowModel('aggregate') instead"),this.clientSideRowModel.refreshModel({step:t.ClientSideRowModelSteps.AGGREGATE})},e.prototype.sizeColumnsToFit=function(){this.gridBodyCtrl.sizeColumnsToFit()},e.prototype.showLoadingOverlay=function(){this.overlayWrapperComp.showLoadingOverlay()},e.prototype.showNoRowsOverlay=function(){this.overlayWrapperComp.showNoRowsOverlay()},e.prototype.hideOverlay=function(){this.overlayWrapperComp.hideOverlay()},e.prototype.isNodeSelected=function(e){return console.warn("AG Grid: no need to call api.isNodeSelected(), just call node.isSelected() instead"),e.isSelected()},e.prototype.getSelectedNodesById=function(){return console.error("AG Grid: since version 3.4, getSelectedNodesById no longer exists, use getSelectedNodes() instead"),null},e.prototype.getSelectedNodes=function(){return this.selectionService.getSelectedNodes()},e.prototype.getSelectedRows=function(){return this.selectionService.getSelectedRows()},e.prototype.getBestCostNodeSelection=function(){return this.selectionService.getBestCostNodeSelection()},e.prototype.getRenderedNodes=function(){return this.rowRenderer.getRenderedNodes()},e.prototype.ensureColIndexVisible=function(e){console.warn("AG Grid: ensureColIndexVisible(index) no longer supported, use ensureColumnVisible(colKey) instead.")},e.prototype.ensureColumnVisible=function(e,t){void 0===t&&(t="auto"),this.gridBodyCtrl.getScrollFeature().ensureColumnVisible(e,t)},e.prototype.ensureIndexVisible=function(e,t){this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(e,t)},e.prototype.ensureNodeVisible=function(e,t){void 0===t&&(t=null),this.gridBodyCtrl.getScrollFeature().ensureNodeVisible(e,t)},e.prototype.forEachLeafNode=function(e){i(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){i(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilter unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilter(e)},e.prototype.forEachNodeAfterFilterAndSort=function(e){i(this.clientSideRowModel)&&console.warn("cannot call forEachNodeAfterFilterAndSort unless using normal row model"),this.clientSideRowModel.forEachNodeAfterFilterAndSort(e)},e.prototype.getFilterInstance=function(e,t){var n=this.getFilterInstanceImpl(e,(function(e){if(t){var n=ju(e);t(n)}}));return ju(n)},e.prototype.getFilterInstanceImpl=function(e,t){var n=this.columnModel.getPrimaryColumn(e);if(n){var o=this.filterManager.getFilterComponent(n,"NO_UI"),r=o&&o.resolveNow(null,(function(e){return e}));return r?setTimeout(t,0,r):o&&o.then((function(e){t(e)})),r}},e.prototype.destroyFilter=function(e){var t=this.columnModel.getPrimaryColumn(e);if(t)return this.filterManager.destroyFilter(t,"filterDestroyed")},e.prototype.getStatusPanel=function(e){if(this.statusBarService)return ju(this.statusBarService.getStatusPanel(e))},e.prototype.getColumnDef=function(e){var t=this.columnModel.getPrimaryColumn(e);return t?t.getColDef():null},e.prototype.getColumnDefs=function(){return this.columnModel.getColumnDefs()},e.prototype.onFilterChanged=function(){this.filterManager.onFilterChanged()},e.prototype.onSortChanged=function(){this.sortController.onSortChanged("api")},e.prototype.setFilterModel=function(e){this.filterManager.setFilterModel(e)},e.prototype.getFilterModel=function(){return this.filterManager.getFilterModel()},e.prototype.getFocusedCell=function(){return this.focusService.getFocusedCell()},e.prototype.clearFocusedCell=function(){return this.focusService.clearFocusedCell()},e.prototype.setFocusedCell=function(e,t,n){this.focusService.setFocusedCell(e,t,n,!0)},e.prototype.setSuppressRowDrag=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_SUPPRESS_ROW_DRAG,e)},e.prototype.setSuppressMoveWhenRowDragging=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG,e)},e.prototype.setSuppressRowClickSelection=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_SUPPRESS_ROW_CLICK_SELECTION,e)},e.prototype.addRowDropZone=function(e){this.gridBodyCtrl.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.gridBodyCtrl.getRowDragFeature().getRowDropZone(e)},e.prototype.setHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_HEADER_HEIGHT,e)},e.prototype.setDomLayout=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_DOM_LAYOUT,e)},e.prototype.setEnableCellTextSelection=function(e){this.gridBodyCtrl.setCellTextSelection(e)},e.prototype.setFillHandleDirection=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_FILL_HANDLE_DIRECTION,e)},e.prototype.setGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GROUP_HEADER_HEIGHT,e)},e.prototype.setFloatingFiltersHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_FLOATING_FILTERS_HEIGHT,e)},e.prototype.setPivotHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PIVOT_HEADER_HEIGHT,e)},e.prototype.setPivotGroupHeaderHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PIVOT_GROUP_HEADER_HEIGHT,e)},e.prototype.setIsExternalFilterPresent=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_EXTERNAL_FILTER_PRESENT,e)},e.prototype.setDoesExternalFilterPass=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_DOES_EXTERNAL_FILTER_PASS,e)},e.prototype.setNavigateToNextCell=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_NAVIGATE_TO_NEXT_CELL,e)},e.prototype.setTabToNextCell=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_TAB_TO_NEXT_CELL,e)},e.prototype.setTabToNextHeader=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_TAB_TO_NEXT_HEADER,e)},e.prototype.setNavigateToNextHeader=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_NAVIGATE_TO_NEXT_HEADER,e)},e.prototype.setGroupRowAggNodes=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GROUP_ROW_AGG_NODES,e)},e.prototype.setGetGroupRowAgg=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_GROUP_ROW_AGG,e)},e.prototype.setGetBusinessKeyForNode=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_BUSINESS_KEY_FOR_NODE,e)},e.prototype.setGetChildCount=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_CHILD_COUNT,e)},e.prototype.setProcessRowPostCreate=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PROCESS_ROW_POST_CREATE,e)},e.prototype.setGetRowNodeId=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_ROW_NODE_ID,e)},e.prototype.setGetRowId=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_ROW_ID,e)},e.prototype.setGetRowClass=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_ROW_CLASS,e)},e.prototype.setIsFullWidthCell=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_FULL_WIDTH_CELL,e)},e.prototype.setIsFullWidthRow=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_FULL_WIDTH_ROW,e)},e.prototype.setIsRowSelectable=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_ROW_SELECTABLE,e)},e.prototype.setIsRowMaster=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_ROW_MASTER,e)},e.prototype.setPostSort=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_POST_SORT,e)},e.prototype.setPostSortRows=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_POST_SORT_ROWS,e)},e.prototype.setGetDocument=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_DOCUMENT,e)},e.prototype.setGetContextMenuItems=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_CONTEXT_MENU_ITEMS,e)},e.prototype.setGetMainMenuItems=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_MAIN_MENU_ITEMS,e)},e.prototype.setProcessCellForClipboard=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PROCESS_CELL_FOR_CLIPBOARD,e)},e.prototype.setSendToClipboard=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_SEND_TO_CLIPBOARD,e)},e.prototype.setProcessCellFromClipboard=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PROCESS_CELL_FROM_CLIPBOARD,e)},e.prototype.setProcessSecondaryColDef=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PROCESS_TO_SECONDARY_COLDEF,e)},e.prototype.setProcessSecondaryColGroupDef=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PROCESS_SECONDARY_COL_GROUP_DEF,e)},e.prototype.setPostProcessPopup=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_POST_PROCESS_POPUP,e)},e.prototype.setDefaultGroupOrderComparator=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_DEFAULT_GROUP_ORDER_COMPARATOR,e)},e.prototype.setInitialGroupOrderComparator=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_INITIAL_GROUP_ORDER_COMPARATOR,e)},e.prototype.setGetChartToolbarItems=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_CHART_TOOLBAR_ITEMS,e)},e.prototype.setPaginationNumberFormatter=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_PAGINATION_NUMBER_FORMATTER,e)},e.prototype.setGetServerSideStoreParams=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_SERVER_SIDE_STORE_PARAMS,e)},e.prototype.setIsServerSideGroupOpenByDefault=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_SERVER_SIDE_GROUPS_OPEN_BY_DEFAULT,e)},e.prototype.setIsApplyServerSideTransaction=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_APPLY_SERVER_SIDE_TRANSACTION,e)},e.prototype.setIsServerSideGroup=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_IS_SERVER_SIDE_GROUP,e)},e.prototype.setGetServerSideGroupKey=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_SERVER_SIDE_GROUP_KEY,e)},e.prototype.setGetRowStyle=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_ROW_STYLE,e)},e.prototype.setGetRowHeight=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GET_ROW_HEIGHT,e)},e.prototype.isSideBarVisible=function(){return!!this.sideBarComp&&this.sideBarComp.isDisplayed()},e.prototype.setSideBarVisible=function(e){this.sideBarComp?this.sideBarComp.setDisplayed(e):e&&console.warn("AG Grid: sideBar is not loaded")},e.prototype.setSideBarPosition=function(e){this.sideBarComp?this.sideBarComp.setSideBarPosition(e):console.warn("AG Grid: sideBar is not loaded")},e.prototype.openToolPanel=function(e){this.sideBarComp?this.sideBarComp.openToolPanel(e):console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.closeToolPanel=function(){this.sideBarComp?this.sideBarComp.close():console.warn("AG Grid: toolPanel is only available in AG Grid Enterprise")},e.prototype.getOpenedToolPanel=function(){return this.sideBarComp?this.sideBarComp.openedItem():null},e.prototype.getSideBar=function(){return this.gridOptionsWrapper.getSideBar()},e.prototype.setSideBar=function(e){this.gridOptionsWrapper.setProperty("sideBar",sa.parse(e))},e.prototype.setSuppressClipboardPaste=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_SUPPRESS_CLIPBOARD_PASTE,e)},e.prototype.isToolPanelShowing=function(){return this.sideBarComp.isToolPanelShowing()},e.prototype.doLayout=function(){D((function(){return console.warn("AG Grid - since version 25.1, doLayout was taken out, as it's not needed. The grid responds to grid size changes automatically")}),"doLayoutDeprecated")},e.prototype.resetRowHeights=function(){if(r(this.clientSideRowModel)){if(this.columnModel.isAutoRowHeightActive())return void console.warn("AG Grid: calling gridApi.resetRowHeights() makes no sense when using Auto Row Height.");this.clientSideRowModel.resetRowHeights()}},e.prototype.setGroupRemoveSingleChildren=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GROUP_REMOVE_SINGLE_CHILDREN,e)},e.prototype.setGroupRemoveLowestSingleChildren=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,e)},e.prototype.onRowHeightChanged=function(){this.clientSideRowModel?this.clientSideRowModel.onRowHeightChanged():this.serverSideRowModel&&this.serverSideRowModel.onRowHeightChanged()},e.prototype.getValue=function(e,t){var n=this.columnModel.getPrimaryColumn(e);return i(n)&&(n=this.columnModel.getGridColumn(e)),i(n)?null:this.valueService.getValue(n,t)},e.prototype.addEventListener=function(e,t){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addEventListener(e,t,n)},e.prototype.addGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.addGlobalListener(e,t)},e.prototype.removeEventListener=function(e,t){var n=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeEventListener(e,t,n)},e.prototype.removeGlobalListener=function(e){var t=this.gridOptionsWrapper.useAsyncEvents();this.eventService.removeGlobalListener(e,t)},e.prototype.dispatchEvent=function(e){this.eventService.dispatchEvent(e)},e.prototype.destroy=function(){if(!this.destroyCalled){this.destroyCalled=!0;var e=this.ctrlsService.getGridCtrl();e&&e.destroyGridUi(),this.context.destroy()}},e.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(S.bind(window,this,"Grid API"),100)},e.prototype.warnIfDestroyed=function(e){return this.destroyCalled&&console.warn("AG Grid: Grid API method "+e+" was called on a grid that was destroyed."),this.destroyCalled},e.prototype.resetQuickFilter=function(){this.warnIfDestroyed("resetQuickFilter")||this.rowModel.forEachNode((function(e){return e.quickFilterAggregateText=null}))},e.prototype.getRangeSelections=function(){return console.warn("AG Grid: in v20.1.x, api.getRangeSelections() is gone, please use getCellRanges() instead.\n        We had to change how cell selections works a small bit to allow charting to integrate. The return type of\n        getCellRanges() is a bit different, please check the AG Grid documentation."),null},e.prototype.getCellRanges=function(){return this.rangeService?this.rangeService.getCellRanges():(console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),null)},e.prototype.camelCaseToHumanReadable=function(e){return qe(e)},e.prototype.addRangeSelection=function(e){console.warn("AG Grid: As of version 21.x, range selection changed slightly to allow charting integration. Please call api.addCellRange() instead of api.addRangeSelection()")},e.prototype.addCellRange=function(e){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.addCellRange(e)},e.prototype.clearRangeSelection=function(){this.rangeService||console.warn("AG Grid: cell range selection is only available in AG Grid Enterprise"),this.rangeService.removeAllCellRanges()},e.prototype.undoCellEditing=function(){this.undoRedoService.undo()},e.prototype.redoCellEditing=function(){this.undoRedoService.redo()},e.prototype.getCurrentUndoSize=function(){return this.undoRedoService.getCurrentUndoStackSize()},e.prototype.getCurrentRedoSize=function(){return this.undoRedoService.getCurrentRedoStackSize()},e.prototype.getChartModels=function(){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.getChartModels")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.getChartModels"))return this.chartService.getChartModels()},e.prototype.getChartRef=function(e){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.getChartRef")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.getChartRef"))return this.chartService.getChartRef(e)},e.prototype.getChartImageDataURL=function(e){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.getChartImageDataURL")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.getChartImageDataURL"))return this.chartService.getChartImageDataURL(e)},e.prototype.createRangeChart=function(e){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createRangeChart")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.createRangeChart"))return this.chartService.createRangeChart(e)},e.prototype.createCrossFilterChart=function(e){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createCrossFilterChart")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.createCrossFilterChart"))return this.chartService.createCrossFilterChart(e)},e.prototype.restoreChart=function(e,n){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.restoreChart")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.restoreChart"))return this.chartService.restoreChart(e,n)},e.prototype.createPivotChart=function(e){if(re.assertRegistered(t.ModuleNames.RangeSelectionModule,"api.createPivotChart")&&re.assertRegistered(t.ModuleNames.GridChartsModule,"api.createPivotChart"))return this.chartService.createPivotChart(e)},e.prototype.copySelectedRowsToClipboard=function(e){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRowsToClipboard(e)},e.prototype.copySelectedRangeToClipboard=function(e){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copySelectedRangeToClipboard(e)},e.prototype.copySelectedRangeDown=function(){this.clipboardService||console.warn("AG Grid: clipboard is only available in AG Grid Enterprise"),this.clipboardService.copyRangeDown()},e.prototype.showColumnMenuAfterButtonClick=function(e,t){var n=this.columnModel.getGridColumn(e);this.menuFactory.showMenuAfterButtonClick(n,t,"columnMenu")},e.prototype.showColumnMenuAfterMouseClick=function(e,t){var n=this.columnModel.getGridColumn(e);n||(n=this.columnModel.getPrimaryColumn(e)),n?this.menuFactory.showMenuAfterMouseEvent(n,t):console.error("AG Grid: column '"+e+"' not found")},e.prototype.hidePopupMenu=function(){this.contextMenuFactory&&this.contextMenuFactory.hideActiveMenu(),this.menuFactory.hideActiveMenu()},e.prototype.setPopupParent=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_POPUP_PARENT,e)},e.prototype.tabToNextCell=function(e){return this.navigationService.tabToNextCell(!1,e)},e.prototype.tabToPreviousCell=function(e){return this.navigationService.tabToNextCell(!0,e)},e.prototype.getCellRendererInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellRendererInstances(e).map(ju)},e.prototype.getCellEditorInstances=function(e){return void 0===e&&(e={}),this.rowRenderer.getCellEditorInstances(e).map(ju)},e.prototype.getEditingCells=function(){return this.rowRenderer.getEditingCells()},e.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.rowRenderer.stopEditing(e)},e.prototype.startEditingCell=function(e){var t=this.columnModel.getGridColumn(e.colKey);if(t){var n={rowIndex:e.rowIndex,rowPinned:e.rowPinned||null,column:t};null==e.rowPinned&&this.gridBodyCtrl.getScrollFeature().ensureIndexVisible(e.rowIndex);var o=this.navigationService.getCellByPosition(n);o&&o.startRowOrCellEdit(e.key,e.charPress)}else console.warn("AG Grid: no column found for "+e.colKey)},e.prototype.addAggFunc=function(e,t){this.aggFuncService&&this.aggFuncService.addAggFunc(e,t)},e.prototype.addAggFuncs=function(e){this.aggFuncService&&this.aggFuncService.addAggFuncs(e)},e.prototype.clearAggFuncs=function(){this.aggFuncService&&this.aggFuncService.clear()},e.prototype.applyServerSideTransaction=function(e){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransaction(e);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},e.prototype.applyServerSideTransactionAsync=function(e,t){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.applyTransactionAsync(e,t);console.warn("AG Grid: Cannot apply Server Side Transaction if not using the Server Side Row Model.")},e.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():console.warn("AG Grid: API retryServerSideLoads() can only be used when using Server-Side Row Model.")},e.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();console.warn("AG Grid: Cannot flush Server Side Transaction if not using the Server Side Row Model.")},e.prototype.applyTransaction=function(e){if(this.clientSideRowModel){var t=this.clientSideRowModel.updateRowData(e);return this.rowRenderer.refreshFullWidthRows(t.update),this.gridOptionsWrapper.isSuppressChangeDetection()||this.rowRenderer.refreshCells(),t}console.error("AG Grid: updateRowData() only works with ClientSideRowModel. Working with InfiniteRowModel was deprecated in v23.1 and removed in v24.1")},e.prototype.setDeltaSort=function(e){this.gridOptionsWrapper.setProperty("deltaSort",e)},e.prototype.updateRowData=function(e){return D((function(){return console.warn("AG Grid: as of v23.1, grid API updateRowData(transaction) is now called applyTransaction(transaction). updateRowData is deprecated and will be removed in a future major release.")}),"updateRowData deprecated"),this.applyTransaction(e)},e.prototype.applyTransactionAsync=function(e,t){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(e,t):console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},e.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():console.error("AG Grid: api.applyTransactionAsync() only works with ClientSideRowModel.")},e.prototype.batchUpdateRowData=function(e,t){D((function(){return console.warn("AG Grid: as of v23.1, grid API batchUpdateRowData(transaction, callback) is now called applyTransactionAsync(transaction, callback). batchUpdateRowData is deprecated and will be removed in a future major release.")}),"batchUpdateRowData deprecated"),this.applyTransactionAsync(e,t)},e.prototype.insertItemsAtIndex=function(e,t,n){console.warn("AG Grid: insertItemsAtIndex() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:t,addIndex:e,update:null,remove:null})},e.prototype.removeItems=function(e,t){console.warn("AG Grid: removeItems() is deprecated, use updateRowData(transaction) instead.");var n=e.map((function(e){return e.data}));this.updateRowData({add:null,addIndex:null,update:null,remove:n})},e.prototype.addItems=function(e,t){console.warn("AG Grid: addItems() is deprecated, use updateRowData(transaction) instead."),this.updateRowData({add:e,addIndex:null,update:null,remove:null})},e.prototype.refreshVirtualPageCache=function(){console.warn("AG Grid: refreshVirtualPageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfinitePageCache=function(){console.warn("AG Grid: refreshInfinitePageCache() is now called refreshInfiniteCache(), please call refreshInfiniteCache() instead"),this.refreshInfiniteCache()},e.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():console.warn("AG Grid: api.refreshInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeVirtualPageCache=function(){console.warn("AG Grid: purgeVirtualPageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfinitePageCache()},e.prototype.purgeInfinitePageCache=function(){console.warn("AG Grid: purgeInfinitePageCache() is now called purgeInfiniteCache(), please call purgeInfiniteCache() instead"),this.purgeInfiniteCache()},e.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():console.warn("AG Grid: api.purgeInfiniteCache is only available when rowModelType='infinite'.")},e.prototype.purgeEnterpriseCache=function(e){console.warn("ag-grid: since version 18.x, api.purgeEnterpriseCache() should be replaced with api.purgeServerSideCache()"),this.purgeServerSideCache(e)},e.prototype.purgeServerSideCache=function(e){void 0===e&&(e=[]),this.serverSideRowModel?(console.warn("AG Grid: since v25.0, api.purgeServerSideCache is deprecated. Please use api.refreshServerSideStore({purge: true}) instead."),this.refreshServerSideStore({route:e,purge:!0})):console.warn("AG Grid: api.purgeServerSideCache is only available when rowModelType='serverSide'.")},e.prototype.refreshServerSideStore=function(e){this.serverSideRowModel?this.serverSideRowModel.refreshStore(e):console.warn("AG Grid: api.refreshServerSideStore is only available when rowModelType='serverSide'.")},e.prototype.getServerSideStoreState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(console.warn("AG Grid: api.getServerSideStoreState is only available when rowModelType='serverSide'."),[])},e.prototype.getVirtualRowCount=function(){return console.warn("AG Grid: getVirtualRowCount() is now called getInfiniteRowCount(), please call getInfiniteRowCount() instead"),this.getInfiniteRowCount()},e.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();console.warn("AG Grid: api.getVirtualRowCount is only available when rowModelType='virtual'.")},e.prototype.isMaxRowFound=function(){return console.warn("AG Grid: api.isLastRowIndexKnown is deprecated, please use api.isLastRowIndexKnown()"),this.isLastRowIndexKnown()},e.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();console.warn("AG Grid: api.isMaxRowFound is only available when rowModelType='virtual'.")},e.prototype.setVirtualRowCount=function(e,t){console.warn("AG Grid: setVirtualRowCount() is now called setInfiniteRowCount(), please call setInfiniteRowCount() instead"),this.setRowCount(e,t)},e.prototype.setInfiniteRowCount=function(e,t){console.warn("AG Grid: setInfiniteRowCount() is now called setRowCount(), please call setRowCount() instead"),this.setRowCount(e,t)},e.prototype.setRowCount=function(e,t){this.infiniteRowModel?this.infiniteRowModel.setRowCount(e,t):console.warn("AG Grid: api.setRowCount is only available for Infinite Row Model.")},e.prototype.getVirtualPageState=function(){return console.warn("AG Grid: getVirtualPageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getInfinitePageState=function(){return console.warn("AG Grid: getInfinitePageState() is now called getCacheBlockState(), please call getCacheBlockState() instead"),this.getCacheBlockState()},e.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},e.prototype.checkGridSize=function(){console.warn("in AG Grid v25.2.0, checkGridSize() was removed, as it was legacy and didn't do anything uesful.")},e.prototype.getFirstRenderedRow=function(){return console.warn("in AG Grid v12, getFirstRenderedRow() was renamed to getFirstDisplayedRow()"),this.getFirstDisplayedRow()},e.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},e.prototype.getLastRenderedRow=function(){return console.warn("in AG Grid v12, getLastRenderedRow() was renamed to getLastDisplayedRow()"),this.getLastDisplayedRow()},e.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},e.prototype.getDisplayedRowAtIndex=function(e){return this.rowModel.getRow(e)},e.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},e.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},e.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},e.prototype.paginationSetPageSize=function(e){this.gridOptionsWrapper.setProperty("paginationPageSize",e)},e.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},e.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},e.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},e.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},e.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},e.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},e.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},e.prototype.paginationGoToPage=function(e){this.paginationProxy.goToPage(e)},e.prototype.setRowClass=function(e){this.gridOptionsWrapper.setProperty(ma.PROP_ROW_CLASS,e)},Wu([q("immutableService")],e.prototype,"immutableService",void 0),Wu([q("csvCreator")],e.prototype,"csvCreator",void 0),Wu([q("excelCreator")],e.prototype,"excelCreator",void 0),Wu([K("rowRenderer")],e.prototype,"rowRenderer",void 0),Wu([K("navigationService")],e.prototype,"navigationService",void 0),Wu([K("filterManager")],e.prototype,"filterManager",void 0),Wu([K("columnModel")],e.prototype,"columnModel",void 0),Wu([K("selectionService")],e.prototype,"selectionService",void 0),Wu([K("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Wu([K("valueService")],e.prototype,"valueService",void 0),Wu([K("alignedGridsService")],e.prototype,"alignedGridsService",void 0),Wu([K("eventService")],e.prototype,"eventService",void 0),Wu([K("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Wu([K("context")],e.prototype,"context",void 0),Wu([K("rowModel")],e.prototype,"rowModel",void 0),Wu([K("sortController")],e.prototype,"sortController",void 0),Wu([K("paginationProxy")],e.prototype,"paginationProxy",void 0),Wu([K("focusService")],e.prototype,"focusService",void 0),Wu([K("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Wu([q("rangeService")],e.prototype,"rangeService",void 0),Wu([q("clipboardService")],e.prototype,"clipboardService",void 0),Wu([q("aggFuncService")],e.prototype,"aggFuncService",void 0),Wu([K("menuFactory")],e.prototype,"menuFactory",void 0),Wu([q("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),Wu([K("valueCache")],e.prototype,"valueCache",void 0),Wu([K("animationFrameService")],e.prototype,"animationFrameService",void 0),Wu([q("statusBarService")],e.prototype,"statusBarService",void 0),Wu([q("chartService")],e.prototype,"chartService",void 0),Wu([q("undoRedoService")],e.prototype,"undoRedoService",void 0),Wu([q("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),Wu([q("ssrmTransactionManager")],e.prototype,"serverSideTransactionManager",void 0),Wu([K("ctrlsService")],e.prototype,"ctrlsService",void 0),Wu([q("frameworkComponentWrapper")],e.prototype,"frameworkComponentWrapper",void 0),Wu([z],e.prototype,"init",null),Wu([Z],e.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),e=Wu([Y("gridApi")],e)}(),Zu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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},Ku=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}return Zu(t,e),t.prototype.setColsSpanning=function(e){this.colsSpanning=e,this.onLeftChanged()},t.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsWrapper.isEnableRtl()&&this.colsSpanning?ue(this.colsSpanning):this.columnOrGroup},t.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,ae.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedListener(this.beans.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,this.onLeftChanged.bind(this))},t.prototype.setLeftFirstTime=function(){var e=this.beans.gridOptionsWrapper.isSuppressColumnMoveAnimation(),t=r(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&t&&!e?this.animateInLeft():this.onLeftChanged()},t.prototype.animateInLeft=function(){var e=this,t=this.getColumnOrGroup(),n=t.getLeft(),o=t.getOldLeft(),r=this.modifyLeftForPrintLayout(t,o),i=this.modifyLeftForPrintLayout(t,n);this.setLeft(r),this.actualLeft=i,this.beans.columnAnimationService.executeNextVMTurn((function(){e.actualLeft===i&&e.setLeft(i)}))},t.prototype.onLeftChanged=function(){var e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)},t.prototype.modifyLeftForPrintLayout=function(e,t){if(!(this.beans.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT))return t;if(e.getPinned()===oe.PINNED_LEFT)return t;var n=this.beans.columnModel.getDisplayedColumnsLeftWidth();return e.getPinned()===oe.PINNED_RIGHT?n+this.beans.columnModel.getBodyContainerWidth()+t:n+t},t.prototype.setLeft=function(e){var t;if(r(e)&&(this.eCell.style.left=e+"px"),this.columnOrGroup instanceof ae)t=this.columnOrGroup;else{var n=this.columnOrGroup.getLeafColumns();if(!n.length)return;n.length>1&&io(this.ariaEl,n.length),t=n[0]}var o=this.beans.columnModel.getAriaColumnIndex(t);ro(this.ariaEl,o)},Yu([z],t.prototype,"postConstruct",null),t}(Fe),qu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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},Qu=function(e){function t(t,n){var o=e.call(this)||this;return o.columns=t,o.element=n,o}return qu(t,e),t.prototype.postConstruct=function(){this.gridOptionsWrapper.isColumnHoverHighlight()&&this.addMouseHoverListeners()},t.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},t.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},t.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},Xu([K("columnHoverService")],t.prototype,"columnHoverService",void 0),Xu([z],t.prototype,"postConstruct",null),t}(Fe),Ju=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),$u=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},ec=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o.column=t,o}return Ju(t,e),t.prototype.setComp=function(t,n,o,r){e.prototype.setGui.call(this,n),this.comp=t,this.eButtonShowMainFilter=o,this.eFloatingFilterBody=r;var i=this.column.getColDef(),s=!!i.filter||!!i.filterFramework,a=!!i.floatingFilter;this.active=s&&a,this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this))},t.prototype.setupUi=function(){if(this.comp.addOrRemoveButtonWrapperCssClass("ag-hidden",!this.active||this.suppressFilterButton),this.active){this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton);var e=Ao("filter",this.gridOptionsWrapper,this.column);e&&this.eButtonShowMainFilter.appendChild(e)}},t.prototype.setupFocus=function(){this.createManagedBean(new mr(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},t.prototype.onTabKeyDown=function(e){if(!(this.gridOptionsWrapper.getDocument().activeElement===this.eGui)){var t=this.focusService.findNextFocusableElement(this.eGui,null,e.shiftKey);if(t)return this.beans.headerNavigationService.scrollToColumn(this.column),e.preventDefault(),void t.focus();var n=this.findNextColumnWithFloatingFilter(e.shiftKey);n&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:n},event:e})&&e.preventDefault()}},t.prototype.findNextColumnWithFloatingFilter=function(e){var t=this.beans.columnModel,n=this.column;do{if(!(n=e?t.getDisplayedColBefore(n):t.getDisplayedColAfter(n)))break}while(!n.getColDef().filter||!n.getColDef().floatingFilter);return n},t.prototype.handleKeyDown=function(e){var t=this.gridOptionsWrapper.getDocument().activeElement===this.eGui;switch(e.key){case dr.UP:case dr.DOWN:t||e.preventDefault();case dr.LEFT:case dr.RIGHT:if(t)return;e.stopPropagation();case dr.ENTER:t&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case dr.ESCAPE:t||this.eGui.focus()}},t.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var t=!!e.relatedTarget&&!e.relatedTarget.classList.contains("ag-floating-filter"),n=!!e.relatedTarget&&nn(e.relatedTarget,"ag-floating-filter");if(t&&n&&e.target===this.eGui){var o=this.lastFocusEvent,r=!(!o||o.key!==dr.TAB);if(o&&r){var i=o.shiftKey;this.focusService.focusInto(this.eGui,i)}}var s=this.getRowIndex();this.beans.focusService.setFocusedHeader(s,this.column)}},t.prototype.setupHover=function(){var e=this;this.createManagedBean(new Qu([this.column],this.eGui));var t=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var t=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",t)}};this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_HOVER_CHANGED,t),t()},t.prototype.setupLeft=function(){var e=new Ku(this.column,this.eGui,this.beans);this.createManagedBean(e)},t.prototype.setupUserComp=function(){var e=this;if(this.active){var t=this.column.getColDef(),n=this.filterManager.createFilterParams(this.column,t),o=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(t,Fs,n),r=this.userComponentFactory.getDefaultFloatingFilterType(t);null==r&&(r="agReadOnlyFloatingFilter");var i={column:this.column,filterParams:o,currentParentModel:function(){return e.currentParentModel()},parentFilterInstance:function(t){return e.parentFilterInstance(t)},showParentFilter:function(){return e.showParentFilter()},suppressFilterButton:!1};this.suppressFilterButton=!!t.floatingFilterComponentParams&&!!t.floatingFilterComponentParams.suppressFilterButton;var s=this.userComponentFactory.getFloatingFilterCompDetails(t,i,r);s&&this.comp.setCompDetails(s)}},t.prototype.currentParentModel=function(){var e=this.getFilterComponent(!1);return e?e.resolveNow(null,(function(e){return e&&e.getModel()})):null},t.prototype.getFilterComponent=function(e){return void 0===e&&(e=!0),this.filterManager.getFilterComponent(this.column,"NO_UI",e)},t.prototype.parentFilterInstance=function(e){var t=this.getFilterComponent();null!=t&&t.then((function(t){e(ju(t))}))},t.prototype.showParentFilter=function(){var e=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,e,"floatingFilter","filterMenuTab",["filterMenuTab"])},t.prototype.setupSyncWithFilter=function(){var e=this;if(this.active){var t=function(t){var n=e.comp.getFloatingFilterComp();if(n){var o=e.currentParentModel();n.then((function(e){e&&e.onParentModelChanged(o,t)}))}};this.addManagedListener(this.column,ae.EVENT_FILTER_CHANGED,t),this.filterManager.isFilterActive(this.column)&&t(null)}},t.prototype.setupWidth=function(){var e=this,t=function(){var t=e.column.getActualWidth()+"px";e.comp.setWidth(t)};this.addManagedListener(this.column,ae.EVENT_WIDTH_CHANGED,t),t()},$u([K("userComponentFactory")],t.prototype,"userComponentFactory",void 0),$u([K("filterManager")],t.prototype,"filterManager",void 0),$u([K("columnHoverService")],t.prototype,"columnHoverService",void 0),$u([K("gridApi")],t.prototype,"gridApi",void 0),$u([K("menuFactory")],t.prototype,"menuFactory",void 0),$u([K("beans")],t.prototype,"beans",void 0),t}(Vu),tc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),nc=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},oc=function(e){function t(t,n,o,r,i){var s=e.call(this)||this;return s.pinned=t,s.column=n,s.eResize=o,s.comp=r,s.ctrl=i,s}return tc(t,e),t.prototype.postConstruct=function(){var e,t,n=this,o=this.column.getColDef(),r=[],i=function(){r.forEach((function(e){return e()})),r.length=0},s=function(){var s=n.column.isResizable(),a=!n.gridOptionsWrapper.isSuppressAutoSize()&&!o.suppressAutoSize;(s!==e||a!==t)&&(e=s,t=a,i(),function(){if($t(n.eResize,e),e){var o=n.horizontalResizeService.addResizeBar({eResizeBar:n.eResize,onResizeStart:n.onResizeStart.bind(n),onResizing:n.onResizing.bind(n,!1),onResizeEnd:n.onResizing.bind(n,!0)});if(r.push(o),t){var i=n.gridOptionsWrapper.isSkipHeaderOnAutoSize(),s=function(){n.columnModel.autoSizeColumn(n.column,i,"uiColumnResized")};n.eResize.addEventListener("dblclick",s);var a=new mi(n.eResize);a.addEventListener(mi.EVENT_DOUBLE_TAP,s),n.addDestroyFunc((function(){n.eResize.removeEventListener("dblclick",s),a.removeEventListener(mi.EVENT_DOUBLE_TAP,s),a.destroy()}))}}}())};s(),this.addDestroyFunc(i),this.ctrl.addRefreshFunction(s)},t.prototype.onResizing=function(e,t){var n=this.normaliseResizeAmount(t),o=[{key:this.column,newWidth:this.resizeStartWidth+n}];this.columnModel.setColumnWidths(o,this.resizeWithShiftKey,e,"uiColumnDragged"),e&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.onResizeStart=function(e){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=e,this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.normaliseResizeAmount=function(e){var t=e,n=this.pinned!==oe.PINNED_LEFT,o=this.pinned===oe.PINNED_RIGHT;return this.gridOptionsWrapper.isEnableRtl()?n&&(t*=-1):o&&(t*=-1),t},nc([K("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),nc([K("columnModel")],t.prototype,"columnModel",void 0),nc([z],t.prototype,"postConstruct",null),t}(Fe),rc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),ic=function(e){function t(t,n,o){void 0===n&&(n="ag-checkbox"),void 0===o&&(o="checkbox");var r=e.call(this,t,n,o)||this;return r.labelAlignment="right",r.selected=!1,r.readOnly=!1,r.passive=!1,r}return rc(t,e),t.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},t.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},t.prototype.setPassive=function(e){this.passive=e},t.prototype.isReadOnly=function(){return this.readOnly},t.prototype.setReadOnly=function(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e},t.prototype.setDisabled=function(t){return this.eWrapper.classList.toggle("ag-disabled",t),e.prototype.setDisabled.call(this,t)},t.prototype.toggle=function(){if(!this.eInput.disabled){var e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}},t.prototype.getValue=function(){return this.isSelected()},t.prototype.setValue=function(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this},t.prototype.setName=function(e){return this.getInputElement().name=e,this},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e,t){this.isSelected()!==e&&(this.previousValue=this.isSelected(),e=this.selected="boolean"===typeof e?e:void 0,this.eInput.checked=e,this.eInput.indeterminate=void 0===e,t||this.dispatchChange(this.selected,this.previousValue))},t.prototype.dispatchChange=function(e,n,o){this.dispatchEvent({type:t.EVENT_CHANGED,selected:e,previousValue:n,event:o});var r=this.getInputElement(),i={type:Ve.EVENT_CHECKBOX_CHANGED,id:r.id,name:r.name,selected:e,previousValue:n};this.eventService.dispatchEvent(i)},t.prototype.onCheckboxClick=function(e){if(!this.passive&&!this.eInput.disabled){var t=this.isSelected(),n=this.selected=e.target.checked;this.refreshSelectedClass(n),this.dispatchChange(n,t,e)}},t.prototype.refreshSelectedClass=function(e){this.eWrapper.classList.toggle("ag-checked",!0===e),this.eWrapper.classList.toggle("ag-indeterminate",null==e)},t}(Fr),sc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),ac=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},lc=function(e){function t(t){var n=e.call(this)||this;n.cbSelectAllVisible=!1,n.processingEventFromCheckbox=!1,n.column=t;var o=t.getColDef();return n.filteredOnly=!!o&&!!o.headerCheckboxSelectionFilteredOnly,n}return sc(t,e),t.prototype.onSpaceKeyPressed=function(e){var t=this.cbSelectAll,n=this.gridOptionsWrapper.getDocument();t.isDisplayed()&&!t.getGui().contains(n.activeElement)&&(e.preventDefault(),t.setValue(!t.getValue()))},t.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},t.prototype.setComp=function(e){this.headerCellCtrl=e,this.cbSelectAll=this.createManagedBean(new ic),this.cbSelectAll.addCssClass("ag-header-select-all"),Bn(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,ic.EVENT_CHANGED,this.onCbSelectAll.bind(this)),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},t.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible),this.cbSelectAllVisible&&(this.checkRightRowModelType(),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},t.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},t.prototype.getNextCheckboxState=function(e){return(0!==e.selected||0!==e.notSelected)&&(e.selected>0&&e.notSelected>0?null:e.selected>0)},t.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var e=this.getSelectionCount(),t=this.getNextCheckboxState(e);this.cbSelectAll.setValue(t),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},t.prototype.refreshSelectAllLabel=function(){if(this.cbSelectAllVisible){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=this.cbSelectAll.getValue()?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),n=e("ariaRowSelectAll","Press Space to toggle all rows selection");this.headerCellCtrl.setAriaDescriptionProperty("selectAll",n+" ("+t+")")}else this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null);this.headerCellCtrl.refreshAriaDescription()},t.prototype.getSelectionCount=function(){var e=this,t=0,n=0,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===oe.ROW_MODEL_TYPE_CLIENT_SIDE||console.warn("AG Grid: selectAllCheckbox is only available if using normal row model, you are using "+e)},t.prototype.onCbSelectAll=function(){this.processingEventFromCheckbox||this.cbSelectAllVisible&&(this.cbSelectAll.getValue()?this.selectionService.selectAllRowNodes(this.filteredOnly):this.selectionService.deselectAllRowNodes(this.filteredOnly))},t.prototype.isCheckboxSelection=function(){var e=this.column.getColDef().headerCheckboxSelection;"function"===typeof e&&(e=e({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi,context:this.gridOptionsWrapper.getContext()}));return!!e&&(this.gridOptionsWrapper.isRowModelServerSide()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Server Side Row Model"),!1):this.gridOptionsWrapper.isRowModelInfinite()?(console.warn("AG Grid: headerCheckboxSelection is not supported for Infinite Row Model"),!1):!this.gridOptionsWrapper.isRowModelViewport()||(console.warn("AG Grid: headerCheckboxSelection is not supported for Viewport Row Model"),!1))},ac([K("gridApi")],t.prototype,"gridApi",void 0),ac([K("columnApi")],t.prototype,"columnApi",void 0),ac([K("rowModel")],t.prototype,"rowModel",void 0),ac([K("selectionService")],t.prototype,"selectionService",void 0),t}(Fe),uc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),cc=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},pc=function(e){function n(t,n){var o=e.call(this,t,n)||this;return o.refreshFunctions=[],o.userHeaderClasses=new Set,o.ariaDescriptionProperties=new Map,o.column=t,o}return uc(n,e),n.prototype.setComp=function(t,n,o){var r=this;e.prototype.setGui.call(this,n),this.comp=t,this.colDefVersion=this.columnModel.getColDefVersion(),this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.addColumnHoverListener(),this.setupFilterCss(),this.setupColId(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.createManagedBean(new oc(this.getPinned(),this.column,o,t,this)),this.createManagedBean(new Qu([this.column],n)),this.createManagedBean(new Ku(this.column,n,this.beans)),this.createManagedBean(new mr(n,{shouldStopEventPropagation:function(e){return r.shouldStopEventPropagation(e)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this))},n.prototype.setupUserComp=function(){var e=this.lookupUserCompDetails();this.setCompDetails(e)},n.prototype.setCompDetails=function(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)},n.prototype.lookupUserCompDetails=function(){var e=this.createParams(),t=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(t,e)},n.prototype.createParams=function(){var e=this,t=this.column.getColDef();return{column:this.column,displayName:this.displayName,enableSorting:t.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(t){e.gridApi.showColumnMenuAfterButtonClick(e.column,t)},progressSort:function(t){e.sortController.progressSort(e.column,!!t,"uiColumnSorted")},setSort:function(t,n){e.sortController.setSortForColumn(e.column,t,!!n,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext(),eGridHeader:this.getGui()}},n.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new lc(this.column)),this.selectAllFeature.setComp(this)},n.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},n.prototype.handleKeyDown=function(e){e.key===dr.SPACE&&this.selectAllFeature.onSpaceKeyPressed(e),e.key===dr.ENTER&&this.onEnterKeyPressed(e)},n.prototype.onEnterKeyPressed=function(e){var t=this.comp.getUserCompInstance();if(t)if(e.ctrlKey||e.metaKey)this.menuEnabled&&t.showMenu&&(e.preventDefault(),t.showMenu());else if(this.sortable){var n=e.shiftKey;this.sortController.progressSort(this.column,n,"uiColumnSorted")}},n.prototype.isMenuEnabled=function(){return this.menuEnabled},n.prototype.onFocusIn=function(e){if(!this.getGui().contains(e.relatedTarget)){var t=this.getRowIndex();this.focusService.setFocusedHeader(t,this.column)}this.setActiveHeader(!0)},n.prototype.onFocusOut=function(e){this.getGui().contains(e.relatedTarget)||this.setActiveHeader(!1)},n.prototype.setupTooltip=function(){var e=this,t={getColumn:function(){return e.column},getColDef:function(){return e.column.getColDef()},getGui:function(){return e.eGui},getLocation:function(){return"header"},getTooltipValue:function(){return e.column.getColDef().headerTooltip}},n=this.createManagedBean(new Ya(t,this.beans));n.setComp(this.comp),this.refreshFunctions.push((function(){return n.refreshToolTip()}))},n.prototype.setupClassesFromColDef=function(){var e=this,t=function(){var t=e.column.getColDef(),n=e.gridOptionsWrapper,o=Tu.getHeaderClassesFromColDef(t,n,e.column,null),r=e.userHeaderClasses;e.userHeaderClasses=new Set(o),o.forEach((function(t){r.has(t)?r.delete(t):e.comp.addOrRemoveCssClass(t,!0)})),r.forEach((function(t){return e.comp.addOrRemoveCssClass(t,!1)}))};this.refreshFunctions.push(t),t()},n.prototype.setDragSource=function(e){var n=this;this.dragSourceElement=e,this.removeDragSource(),e&&this.draggable&&(this.moveDragSource={type:t.DragSourceType.HeaderCell,eElement:e,defaultIconName:ts.ICON_HIDE,getDragItem:function(){return n.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){return n.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return n.column.setMoving(!1,"uiColumnMoved")}},this.dragAndDropService.addDragSource(this.moveDragSource,!0))},n.prototype.createDragItem=function(){var e={};return e[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:e}},n.prototype.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},n.prototype.onNewColumnsLoaded=function(){var e=this.columnModel.getColDefVersion();e!=this.colDefVersion&&(this.colDefVersion=e,this.refresh())},n.prototype.updateState=function(){var e=this.column.getColDef();this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!e.suppressMenu,this.sortable=e.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},n.prototype.addRefreshFunction=function(e){this.refreshFunctions.push(e)},n.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach((function(e){return e()}))},n.prototype.refreshHeaderComp=function(){var e=this.lookupUserCompDetails();!!(null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==e.componentClass)&&this.attemptHeaderCompRefresh(e.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)},n.prototype.attemptHeaderCompRefresh=function(e){var t=this.comp.getUserCompInstance();return!!t&&(!!t.refresh&&t.refresh(e))},n.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},n.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},n.prototype.workOutDraggable=function(){var e=this.column.getColDef();return!!(!this.gridOptionsWrapper.isSuppressMovableColumns()&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot},n.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},n.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},n.prototype.onColumnValueChanged=function(){this.checkDisplayName()},n.prototype.setupWidth=function(){var e=this,t=function(){e.comp.setWidth(e.column.getActualWidth()+"px")};this.addManagedListener(this.column,ae.EVENT_WIDTH_CHANGED,t),t()},n.prototype.setupMovingCss=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.column.isMoving())};this.addManagedListener(this.column,ae.EVENT_MOVING_CHANGED,t),t()},n.prototype.setupMenuClass=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-column-menu-visible",e.column.isMenuVisible())};this.addManagedListener(this.column,ae.EVENT_MENU_VISIBLE_CHANGED,t),t()},n.prototype.setupSortableClass=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!e.sortable)};t(),this.addRefreshFunction(t),this.addManagedListener(this.column,ae.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},n.prototype.refreshAriaSort=function(){if(this.sortable){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.comp.setAriaSort(Vn(this.column)),this.setAriaDescriptionProperty("sort",e("ariaSortableColumn","Press ENTER to sort."))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},n.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var e=this.gridOptionsWrapper.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",e("ariaMenuColumn","Press CTRL ENTER to open column menu."))}else this.setAriaDescriptionProperty("menu",null)},n.prototype.setAriaDescriptionProperty=function(e,t){null!=t?this.ariaDescriptionProperties.set(e,t):this.ariaDescriptionProperties.delete(e)},n.prototype.refreshAriaDescription=function(){var e=Array.from(this.ariaDescriptionProperties.values());this.comp.setAriaDescription(e.length?e.join(" "):void 0)},n.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaDescription()},n.prototype.addColumnHoverListener=function(){var e=this,t=function(){if(e.gridOptionsWrapper.isColumnHoverHighlight()){var t=e.columnHoverService.isHovered(e.column);e.comp.addOrRemoveCssClass("ag-column-hover",t)}};this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_HOVER_CHANGED,t),t()},n.prototype.setupFilterCss=function(){var e=this,t=function(){e.comp.addOrRemoveCssClass("ag-header-cell-filtered",e.column.isFilterActive())};this.addManagedListener(this.column,ae.EVENT_FILTER_ACTIVE_CHANGED,t),t()},n.prototype.setupColId=function(){this.comp.setColId(this.column.getColId())},n.prototype.addActiveHeaderMouseListeners=function(){var e=this,t=function(t){return e.setActiveHeader("mouseenter"===t.type)};this.addManagedListener(this.getGui(),"mouseenter",t),this.addManagedListener(this.getGui(),"mouseleave",t)},n.prototype.setActiveHeader=function(e){this.comp.addOrRemoveCssClass("ag-header-active",e)},cc([K("columnModel")],n.prototype,"columnModel",void 0),cc([K("columnHoverService")],n.prototype,"columnHoverService",void 0),cc([K("beans")],n.prototype,"beans",void 0),cc([K("sortController")],n.prototype,"sortController",void 0),cc([K("menuFactory")],n.prototype,"menuFactory",void 0),cc([K("dragAndDropService")],n.prototype,"dragAndDropService",void 0),cc([K("gridApi")],n.prototype,"gridApi",void 0),cc([K("columnApi")],n.prototype,"columnApi",void 0),cc([K("userComponentFactory")],n.prototype,"userComponentFactory",void 0),cc([Z],n.prototype,"removeDragSource",null),n}(Vu),dc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),hc=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},fc=function(e){function t(t,n,o,r){var i=e.call(this)||this;return i.eResize=n,i.comp=t,i.pinned=o,i.columnGroup=r,i}return dc(t,e),t.prototype.postConstruct=function(){var e=this;if(this.columnGroup.isResizable()){var t=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(t),!this.gridOptionsWrapper.isSuppressAutoSize()){var n=this.gridOptionsWrapper.isSkipHeaderOnAutoSize();this.eResize.addEventListener("dblclick",(function(){var t=[];e.columnGroup.getDisplayedLeafColumns().forEach((function(e){e.getColDef().suppressAutoSize||t.push(e.getColId())})),t.length>0&&e.columnModel.autoSizeColumns({columns:t,skipHeader:n,stopAtGroup:e.columnGroup,source:"uiColumnResized"}),e.resizeLeafColumnsToFit()}))}}else this.comp.addOrRemoveResizableCssClass("ag-hidden",!0)},t.prototype.onResizeStart=function(e){var t=this;this.calculateInitialValues();var n=null;if(e&&(n=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),n){var o=n.getDisplayedLeafColumns();this.resizeTakeFromCols=o.filter((function(e){return e.isResizable()})),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromStartWidth+=e.getActualWidth()})),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach((function(e){return t.resizeTakeFromRatios.push(e.getActualWidth()/t.resizeTakeFromStartWidth)}))}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},t.prototype.onResizing=function(e,t){var n=this.normaliseDragChange(t),o=this.resizeStartWidth+n;this.resizeColumns(o,e)},t.prototype.resizeLeafColumnsToFit=function(){var e=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);this.calculateInitialValues(),e>this.resizeStartWidth&&this.resizeColumns(e,!0)},t.prototype.resizeColumns=function(e,t){void 0===t&&(t=!0);var n=[];if(n.push({columns:this.resizeCols,ratios:this.resizeRatios,width:e}),this.resizeTakeFromCols){var o=e-this.resizeStartWidth;n.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-o})}this.columnModel.resizeColumnSets({resizeSets:n,finished:t,source:"uiColumnDragged"}),t&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},t.prototype.calculateInitialValues=function(){var e=this,t=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=t.filter((function(e){return e.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(t){return e.resizeStartWidth+=t.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(t){return e.resizeRatios.push(t.getActualWidth()/e.resizeStartWidth)}))},t.prototype.normaliseDragChange=function(e){var t=e;return this.gridOptionsWrapper.isEnableRtl()?this.pinned!==oe.PINNED_LEFT&&(t*=-1):this.pinned===oe.PINNED_RIGHT&&(t*=-1),t},hc([K("horizontalResizeService")],t.prototype,"horizontalResizeService",void 0),hc([K("autoWidthCalculator")],t.prototype,"autoWidthCalculator",void 0),hc([K("columnModel")],t.prototype,"columnModel",void 0),hc([z],t.prototype,"postConstruct",null),t}(Fe),gc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),mc=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},vc=function(e){function t(t,n){var o=e.call(this)||this;return o.removeChildListenersFuncs=[],o.columnGroup=n,o.comp=t,o}return gc(t,e),t.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,we.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},t.prototype.addListenersToChildrenColumns=function(){var e=this;this.removeListenersOnChildrenColumns();var t=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(n){n.addEventListener(ae.EVENT_WIDTH_CHANGED,t),n.addEventListener(ae.EVENT_VISIBLE_CHANGED,t),e.removeChildListenersFuncs.push((function(){n.removeEventListener(ae.EVENT_WIDTH_CHANGED,t),n.removeEventListener(ae.EVENT_VISIBLE_CHANGED,t)}))}))},t.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach((function(e){return e()})),this.removeChildListenersFuncs=[]},t.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},t.prototype.onWidthChanged=function(){this.comp.setWidth(this.columnGroup.getActualWidth()+"px")},mc([z],t.prototype,"postConstruct",null),t}(Fe),yc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Cc=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},wc=function(e){function n(t,n){var o=e.call(this,t,n)||this;return o.columnGroup=t,o}return yc(n,e),n.prototype.setComp=function(t,n,o){e.prototype.setGui.call(this,n),this.comp=t,this.displayName=this.columnModel.getDisplayNameForColumnGroup(this.columnGroup,"header"),this.addClasses(),this.addAttributes(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var r=this.getParentRowCtrl().getPinned(),i=this.columnGroup.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new Qu(i,n)),this.createManagedBean(new Ku(this.columnGroup,n,this.beans)),this.createManagedBean(new vc(t,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new fc(t,o,r,this.columnGroup)),this.createManagedBean(new mr(n,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},n.prototype.resizeLeafColumnsToFit=function(){this.groupResizeFeature.onResizeStart(!1),this.groupResizeFeature.resizeLeafColumnsToFit()},n.prototype.setupUserComp=function(){var e=this,t=this.displayName,n={displayName:this.displayName,columnGroup:this.columnGroup,setExpanded:function(t){e.columnModel.setColumnGroupOpened(e.columnGroup.getProvidedColumnGroup(),t,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsWrapper.getContext()};if(!t){for(var o=this.columnGroup,r=o.getLeafColumns();o.getParent()&&o.getParent().getLeafColumns().length===r.length;)o=o.getParent();var i=o.getColGroupDef();i&&(t=i.headerName),t||(t=r?this.columnModel.getDisplayNameForColumn(r[0],"header",!0):"")}var s=this.userComponentFactory.getHeaderGroupCompDetails(n);this.comp.setUserCompDetails(s)},n.prototype.setupTooltip=function(){var e=this,t=this.columnGroup.getColGroupDef(),n={getColumn:function(){return e.columnGroup},getGui:function(){return e.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return t&&t.headerTooltip}};t&&(n.getColDef=function(){return t}),this.createManagedBean(new Ya(n,this.beans)).setComp(this.comp)},n.prototype.setupExpandable=function(){var e=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(e,_e.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(e,_e.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},n.prototype.refreshExpanded=function(){var e=this.columnGroup;this.expandable=e.isExpandable();var t=e.isExpanded();this.expandable?this.comp.setAriaExpanded(t?"true":"false"):this.comp.setAriaExpanded(void 0)},n.prototype.addAttributes=function(){this.comp.setColId(this.columnGroup.getUniqueId())},n.prototype.addClasses=function(){var e=this,t=this.columnGroup.getColGroupDef(),n=Tu.getHeaderClassesFromColDef(t,this.gridOptionsWrapper,null,this.columnGroup);n.push(this.columnGroup.isPadding()?"ag-header-group-cell-no-group":"ag-header-group-cell-with-group"),n.forEach((function(t){return e.comp.addOrRemoveCssClass(t,!0)}))},n.prototype.setupMovingCss=function(){var e=this,t=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),n=function(){return e.comp.addOrRemoveCssClass("ag-header-cell-moving",e.columnGroup.isMoving())};t.forEach((function(t){e.addManagedListener(t,ae.EVENT_MOVING_CHANGED,n)})),n()},n.prototype.onFocusIn=function(e){if(!this.eGui.contains(e.relatedTarget)){var t=this.getRowIndex();this.beans.focusService.setFocusedHeader(t,this.columnGroup)}},n.prototype.handleKeyDown=function(e){var t=this.gridOptionsWrapper.getDocument().activeElement===this.eGui;if(this.expandable&&t&&e.key===dr.ENTER){var n=this.columnGroup,o=!n.isExpanded();this.columnModel.setColumnGroupOpened(n.getProvidedColumnGroup(),o,"uiColumnExpanded")}},n.prototype.setDragSource=function(e){var n=this;if(!this.isSuppressMoving()){var o=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),r={type:t.DragSourceType.HeaderCell,eElement:e,defaultIconName:ts.ICON_HIDE,dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){return o.forEach((function(e){return e.setMoving(!0,"uiColumnDragged")}))},onDragStopped:function(){return o.forEach((function(e){return e.setMoving(!1,"uiColumnDragged")}))}};this.dragAndDropService.addDragSource(r,!0),this.addDestroyFunc((function(){return n.dragAndDropService.removeDragSource(r)}))}},n.prototype.getDragItemForGroup=function(){var e=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),t={};e.forEach((function(e){return t[e.getId()]=e.isVisible()}));var n=[];return this.columnModel.getAllDisplayedColumns().forEach((function(t){e.indexOf(t)>=0&&(n.push(t),de(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()},Cc([K("beans")],n.prototype,"beans",void 0),Cc([K("columnModel")],n.prototype,"columnModel",void 0),Cc([K("dragAndDropService")],n.prototype,"dragAndDropService",void 0),Cc([K("userComponentFactory")],n.prototype,"userComponentFactory",void 0),Cc([K("gridApi")],n.prototype,"gridApi",void 0),Cc([K("columnApi")],n.prototype,"columnApi",void 0),n}(Vu),_c=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),bc=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},Ec=0,Sc=function(e){function n(t,n,o){var r=e.call(this)||this;return r.instanceId=Ec++,r.headerCellCtrls={},r.rowIndex=t,r.pinned=n,r.type=o,r}return _c(n,e),n.prototype.getInstanceId=function(){return this.instanceId},n.prototype.setComp=function(e){this.comp=e,this.onRowHeightChanged(),this.onVirtualColumnsChanged(),this.setWidth(),this.addEventListeners(),Ht()&&this.comp.setTransform("translateZ(0)"),e.setAriaRowIndex(this.rowIndex+1)},n.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_PIVOT_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_PIVOT_GROUP_HEADER_HEIGHT,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_FLOATING_FILTERS_HEIGHT,this.onRowHeightChanged.bind(this))},n.prototype.getHeaderCellCtrl=function(e){return p(this.headerCellCtrls).find((function(t){return t.getColumnGroupChild()===e}))},n.prototype.onDisplayedColumnsChanged=function(){this.onVirtualColumnsChanged(),this.setWidth()},n.prototype.getType=function(){return this.type},n.prototype.onColumnResized=function(){this.setWidth()},n.prototype.setWidth=function(){var e=this.getWidthForRow();this.comp.setWidth(e+"px")},n.prototype.getWidthForRow=function(){return this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT?null!=this.pinned?0:this.columnModel.getContainerWidth(oe.PINNED_RIGHT)+this.columnModel.getContainerWidth(oe.PINNED_LEFT)+this.columnModel.getContainerWidth(null):this.columnModel.getContainerWidth(this.pinned)},n.prototype.onRowHeightChanged=function(){var e,t,n=this.columnModel.getHeaderRowCount(),o=[],r=0;this.columnModel.hasFloatingFilters()&&(n++,r=1),this.columnModel.isPivotMode()?(e=this.gridOptionsWrapper.getPivotGroupHeaderHeight(),t=this.gridOptionsWrapper.getPivotHeaderHeight()):(e=this.gridOptionsWrapper.getGroupHeaderHeight(),t=this.gridOptionsWrapper.getHeaderHeight());for(var i=n-(1+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.rowIndex;s++)a+=o[s];this.comp.setTop(a+"px"),this.comp.setHeight(o[this.rowIndex]+"px")},n.prototype.getPinned=function(){return this.pinned},n.prototype.getRowIndex=function(){return this.rowIndex},n.prototype.onVirtualColumnsChanged=function(){var e=this,n=this.headerCellCtrls;this.headerCellCtrls={},this.getColumnsInViewport().forEach((function(o){if(!o.isEmptyGroup()){var r=o.getUniqueId(),i=n[r];if(delete n[r],i&&i.getColumnGroupChild()!=o&&(e.destroyBean(i),i=void 0),null==i)switch(e.type){case t.HeaderRowType.FLOATING_FILTER:i=e.createBean(new ec(o,e));break;case t.HeaderRowType.COLUMN_GROUP:i=e.createBean(new wc(o,e));break;default:i=e.createBean(new pc(o,e))}e.headerCellCtrls[r]=i}}));f(n,(function(t,n){var o;(o=n,!!e.focusService.isHeaderWrapperFocused(o)&&e.columnModel.isDisplayed(o.getColumnGroupChild()))?e.headerCellCtrls[t]=n:e.destroyBean(n)}));var o=_(this.headerCellCtrls);this.comp.setHeaderCtrls(o)},n.prototype.destroyCtrls=function(){var e=this;f(this.headerCellCtrls,(function(t,n){e.destroyBean(n)})),this.headerCellCtrls={}},n.prototype.getColumnsInViewport=function(){return this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()},n.prototype.getColumnsInViewportPrintLayout=function(){var e=this;if(null!=this.pinned)return[];var t=[],n=this.getActualDepth();return[oe.PINNED_LEFT,null,oe.PINNED_RIGHT].forEach((function(o){var r=e.columnModel.getVirtualHeaderGroupRow(o,n);t=t.concat(r)})),t},n.prototype.getActualDepth=function(){return this.type==t.HeaderRowType.FLOATING_FILTER?this.rowIndex-1:this.rowIndex},n.prototype.getColumnsInViewportNormalLayout=function(){return this.columnModel.getVirtualHeaderGroupRow(this.pinned,this.getActualDepth())},n.prototype.focusHeader=function(e,t){var n=_(this.headerCellCtrls).find((function(t){return t.getColumnGroupChild()==e}));return!!n&&(n.focus(t),!0)},bc([K("columnModel")],n.prototype,"columnModel",void 0),bc([K("focusService")],n.prototype,"focusService",void 0),bc([Z],n.prototype,"destroyCtrls",null),n}(Fe),Rc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Oc=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},Tc=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Pc=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Tc(arguments[t]));return e},Ac=function(e){function n(t){var n=e.call(this)||this;return n.groupsRowCtrls=[],n.pinned=t,n}return Rc(n,e),n.prototype.setComp=function(e,t){this.comp=e,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(t),this.addManagedListener(this.eventService,Ve.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},n.prototype.setupDragAndDrop=function(e){var t=new Su(this.pinned,e);this.createManagedBean(t)},n.prototype.refresh=function(e){var n=this;void 0===e&&(e=!1);var o=new jo,r=this.focusService.getFocusHeaderToUseAfterRefresh();!function(){var e=n.columnModel.getHeaderRowCount()-1;n.groupsRowCtrls=n.destroyBeans(n.groupsRowCtrls);for(var r=0;r<e;r++){var i=n.createBean(new Sc(o.next(),n.pinned,t.HeaderRowType.COLUMN_GROUP));n.groupsRowCtrls.push(i)}}(),function(){var r=o.next();(null==n.columnsRowCtrl||!e||n.columnsRowCtrl.getRowIndex()!==r)&&(n.destroyBean(n.columnsRowCtrl),n.columnsRowCtrl=n.createBean(new Sc(r,n.pinned,t.HeaderRowType.COLUMN)))}(),function(){var r=function(){n.filtersRowCtrl=n.destroyBean(n.filtersRowCtrl)};if(n.columnModel.hasFloatingFilters()){var i=o.next();if(n.filtersRowCtrl){var s=n.filtersRowCtrl.getRowIndex()!==i;e&&!s||r()}n.filtersRowCtrl||(n.filtersRowCtrl=n.createBean(new Sc(i,n.pinned,t.HeaderRowType.FLOATING_FILTER)))}else r()}();var i=this.getAllCtrls();this.comp.setCtrls(i),this.restoreFocusOnHeader(r)},n.prototype.restoreFocusOnHeader=function(e){null!=e&&e.column.getPinned()==this.pinned&&this.focusService.focusHeaderPosition({headerPosition:e})},n.prototype.getAllCtrls=function(){var e=Pc(this.groupsRowCtrls,[this.columnsRowCtrl]);return this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e},n.prototype.onGridColumnsChanged=function(){this.refresh(!0)},n.prototype.setupCenterWidth=function(){var e=this;null==this.pinned&&this.createManagedBean(new Fl((function(t){return e.comp.setCenterWidth(t+"px")})))},n.prototype.setHorizontalScroll=function(e){this.comp.setContainerTransform("translateX("+e+"px)")},n.prototype.setupPinnedWidth=function(){var e=this;if(null!=this.pinned){var t=this.pinned===oe.PINNED_LEFT,n=this.pinned===oe.PINNED_RIGHT,o=function(){var o=t?e.pinnedWidthService.getPinnedLeftWidth():e.pinnedWidthService.getPinnedRightWidth();if(null!=o){var r=0==o,i=e.gridOptionsWrapper.isEnableRtl(),s=e.gridOptionsWrapper.getScrollbarWidth(),a=e.scrollVisibleService.isVerticalScrollShowing()&&(i&&t||!i&&n)?o+s:o;e.comp.setPinnedContainerWidth(a+"px"),e.comp.addOrRemoveCssClass("ag-hidden",r)}};this.addManagedListener(this.eventService,Ve.EVENT_LEFT_PINNED_WIDTH_CHANGED,o),this.addManagedListener(this.eventService,Ve.EVENT_RIGHT_PINNED_WIDTH_CHANGED,o),this.addManagedListener(this.eventService,Ve.EVENT_SCROLL_VISIBILITY_CHANGED,o),this.addManagedListener(this.eventService,Ve.EVENT_SCROLLBAR_WIDTH_CHANGED,o)}},n.prototype.getHeaderCtrlForColumn=function(e){if(e instanceof ae){if(!this.columnsRowCtrl)return;return this.columnsRowCtrl.getHeaderCellCtrl(e)}if(0!==this.groupsRowCtrls.length)for(var t=0;t<this.groupsRowCtrls.length;t++){var n=this.groupsRowCtrls[t].getHeaderCellCtrl(e);if(n)return n}},n.prototype.getHtmlElementForColumnHeader=function(e){var t=this.getHeaderCtrlForColumn(e);return t?t.getGui():null},n.prototype.getRowType=function(e){var t=this.getAllCtrls()[e];return t?t.getType():void 0},n.prototype.focusHeader=function(e,t,n){var o=this.getAllCtrls()[e];return!!o&&o.focusHeader(t,n)},n.prototype.getRowCount=function(){return this.getAllCtrls().length},Oc([K("ctrlsService")],n.prototype,"ctrlsService",void 0),Oc([K("scrollVisibleService")],n.prototype,"scrollVisibleService",void 0),Oc([K("pinnedWidthService")],n.prototype,"pinnedWidthService",void 0),Oc([K("columnModel")],n.prototype,"columnModel",void 0),Oc([K("focusService")],n.prototype,"focusService",void 0),n}(Fe),Dc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),xc=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},Nc=function(e){function t(t){var n=e.call(this)||this;return n.headerRowComps={},n.rowCompsList=[],n.pinned=t,n}return Dc(t,e),t.prototype.init=function(){var e=this;this.selectAndSetTemplate();var t={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setCtrls:function(t){return e.setCtrls(t)},setCenterWidth:function(t){return e.eCenterContainer.style.width=t},setContainerTransform:function(t){return e.eCenterContainer.style.transform=t},setPinnedContainerWidth:function(t){var n=e.getGui();n.style.width=t,n.style.maxWidth=t,n.style.minWidth=t}};this.createManagedBean(new Ac(this.pinned)).setComp(t,this.getGui())},t.prototype.selectAndSetTemplate=function(){var e=this.pinned==oe.PINNED_LEFT,n=this.pinned==oe.PINNED_RIGHT,o=e?t.PINNED_LEFT_TEMPLATE:n?t.PINNED_RIGHT_TEMPLATE:t.CENTER_TEMPLATE;this.setTemplate(o),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},t.prototype.destroyRowComps=function(){this.setCtrls([])},t.prototype.destroyRowComp=function(e){this.destroyBean(e),this.eRowContainer.removeChild(e.getGui())},t.prototype.setCtrls=function(e){var t,n=this,o=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];e.forEach((function(e){var r=e.getInstanceId(),i=o[r];delete o[r];var s=i||n.createBean(new ku(e));n.headerRowComps[r]=s,n.rowCompsList.push(s),function(e){var o=e.getGui();o.parentElement!=n.eRowContainer&&n.eRowContainer.appendChild(o),t&&yn(n.eRowContainer,o,t),t=o}(s)})),_(o).forEach((function(e){return n.destroyRowComp(e)}))},t.PINNED_LEFT_TEMPLATE='<div class="ag-pinned-left-header" role="presentation"/>',t.PINNED_RIGHT_TEMPLATE='<div class="ag-pinned-right-header" role="presentation"/>',t.CENTER_TEMPLATE='<div class="ag-header-viewport" role="presentation">\n            <div class="ag-header-container" ref="eCenterContainer" role="rowgroup"></div>\n        </div>',xc([nr("eCenterContainer")],t.prototype,"eCenterContainer",void 0),xc([z],t.prototype,"init",null),xc([Z],t.prototype,"destroyRowComps",null),t}(tr),Mc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Ic=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=t.HeaderNavigationDirection||(t.HeaderNavigationDirection={}))[Uu.UP=0]="UP",Uu[Uu.DOWN=1]="DOWN",Uu[Uu.LEFT=2]="LEFT",Uu[Uu.RIGHT=3]="RIGHT";var Lc=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Mc(n,e),n.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridBodyCon=t.gridBodyCtrl}))},n.prototype.getHeaderRowCount=function(){var e=this.ctrlsService.getHeaderRowContainerCtrl();return e?e.getRowCount():0},n.prototype.getHeaderRowType=function(e){var t=this.ctrlsService.getHeaderRowContainerCtrl();if(t)return t.getRowType(e)},n.prototype.navigateVertically=function(e,n,o){if(n||(n=this.focusService.getFocusedHeader()),!n)return!1;var r=n.headerRowIndex,i=n.column,s=this.getHeaderRowCount(),a=e===t.HeaderNavigationDirection.UP,l=a?r-1:r+1,u=null,c=!1;l<0&&(l=0,u=i,c=!0),l>=s&&(l=-1);var p=this.getHeaderRowType(r);if(!c){if(p===t.HeaderRowType.COLUMN_GROUP){var d=i;u=a?i.getParent():d.getDisplayedChildren()[0]}else if(p===t.HeaderRowType.FLOATING_FILTER)u=i;else{d=i;u=a?d.getParent():d}if(!u)return!1}return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:l,column:u},allowUserOverride:!0,event:o})},n.prototype.navigateHorizontally=function(e,n,o){void 0===n&&(n=!1);var r,i,s=this.focusService.getFocusedHeader();return e===t.HeaderNavigationDirection.LEFT!==this.gridOptionsWrapper.isEnableRtl()?(i="Before",r=this.headerPositionUtils.findHeader(s,i)):(i="After",r=this.headerPositionUtils.findHeader(s,i)),r?this.focusService.focusHeaderPosition({headerPosition:r,direction:i,fromTab:n,allowUserOverride:!0,event:o}):!n||this.focusNextHeaderRow(s,i,o)},n.prototype.focusNextHeaderRow=function(e,t,n){var o,r=e.headerRowIndex,i=null;return"Before"===t?r>0&&(o=r-1,i=this.headerPositionUtils.findColAtEdgeForHeaderRow(o,"end")):(o=r+1,i=this.headerPositionUtils.findColAtEdgeForHeaderRow(o,"start")),this.focusService.focusHeaderPosition({headerPosition:i,direction:t,fromTab:!0,allowUserOverride:!0,event:n})},n.prototype.scrollToColumn=function(e,t){if(void 0===t&&(t="After"),!e.getPinned()){var n;if(e instanceof we){var o=e.getDisplayedLeafColumns();n="Before"===t?ue(o):o[0]}else n=e;this.gridBodyCon.getScrollFeature().ensureColumnVisible(n),this.gridBodyCon.getScrollFeature().horizontallyScrollHeaderCenterAndFloatingCenter(),this.animationFrameService.flushAllFrames()}},Ic([K("focusService")],n.prototype,"focusService",void 0),Ic([K("headerPositionUtils")],n.prototype,"headerPositionUtils",void 0),Ic([K("animationFrameService")],n.prototype,"animationFrameService",void 0),Ic([K("ctrlsService")],n.prototype,"ctrlsService",void 0),Ic([z],n.prototype,"postConstruct",null),n=Ic([Y("headerNavigationService")],n)}(Fe),Fc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),kc=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},Gc=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Fc(n,e),n.prototype.setComp=function(e,t,n){this.comp=e,this.eGui=t,this.createManagedBean(new mr(n,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},n.prototype.setupHeaderHeight=function(){var e=this.setHeaderHeight.bind(this);e(),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_PIVOT_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_PIVOT_GROUP_HEADER_HEIGHT,e),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_FLOATING_FILTERS_HEIGHT,e),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,e)},n.prototype.setHeaderHeight=function(){var e,t,n,o=this.columnModel,r=this.gridOptionsWrapper,i=0,s=o.getHeaderRowCount();o.hasFloatingFilters()&&(s++,i=1),o.isPivotMode()?(t=r.getPivotGroupHeaderHeight(),n=r.getPivotHeaderHeight()):(t=r.getGroupHeaderHeight(),n=r.getHeaderHeight());var a=s-(1+i);e=i*r.getFloatingFiltersHeight(),e+=a*t;var l=(e+=n)+1+"px";this.comp.setHeightAndMinHeight(l)},n.prototype.onPivotModeChanged=function(){var e=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",e),this.comp.addOrRemoveCssClass("ag-pivot-off",!e)},n.prototype.onTabKeyDown=function(e){var n=this.gridOptionsWrapper.isEnableRtl(),o=e.shiftKey!==n?t.HeaderNavigationDirection.LEFT:t.HeaderNavigationDirection.RIGHT;(this.headerNavigationService.navigateHorizontally(o,!0,e)||this.focusService.focusNextGridCoreContainer(e.shiftKey))&&e.preventDefault()},n.prototype.handleKeyDown=function(e){var n=null;switch(e.key){case dr.LEFT:n=t.HeaderNavigationDirection.LEFT;case dr.RIGHT:r(n)||(n=t.HeaderNavigationDirection.RIGHT),this.headerNavigationService.navigateHorizontally(n,!1,e);break;case dr.UP:n=t.HeaderNavigationDirection.UP;case dr.DOWN:r(n)||(n=t.HeaderNavigationDirection.DOWN),this.headerNavigationService.navigateVertically(n,null,e)&&e.preventDefault();break;default:return}},n.prototype.onFocusOut=function(e){var t=this.gridOptionsWrapper.getDocument(),n=e.relatedTarget;!n&&this.eGui.contains(t.activeElement)||this.eGui.contains(n)||this.focusService.clearFocusedHeader()},kc([K("headerNavigationService")],n.prototype,"headerNavigationService",void 0),kc([K("focusService")],n.prototype,"focusService",void 0),kc([K("columnModel")],n.prototype,"columnModel",void 0),kc([K("ctrlsService")],n.prototype,"ctrlsService",void 0),n}(Fe),Hc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Bc=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},Vc=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return Hc(t,e),t.prototype.postConstruct=function(){var e=this,t={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setHeightAndMinHeight:function(t){e.getGui().style.height=t,e.getGui().style.minHeight=t}};this.createManagedBean(new Gc).setComp(t,this.getGui(),this.getFocusableElement());var n=function(t){e.createManagedBean(t),e.appendChild(t)};n(new Nc(oe.PINNED_LEFT)),n(new Nc(null)),n(new Nc(oe.PINNED_RIGHT))},t.TEMPLATE='<div class="ag-header" role="presentation"/>',Bc([z],t.prototype,"postConstruct",null),t}(tr),Wc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),jc=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},Uc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Wc(t,e),t.prototype.addResizeBar=function(e){var t=this,n={dragStartPixels:e.dragStartPixels||0,eElement:e.eResizeBar,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this,e),onDragging:this.onDragging.bind(this,e)};this.dragService.addDragSource(n,!0);return function(){return t.dragService.removeDragSource(n)}},t.prototype.onDragStart=function(e,t){this.dragStartX=t.clientX,this.setResizeIcons();var n=t instanceof MouseEvent&&!0===t.shiftKey;e.onResizeStart(n)},t.prototype.setResizeIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!0),e.disableUserSelect(!0)},t.prototype.onDragStop=function(e,t){e.onResizeEnd(this.resizeAmount),this.resetIcons()},t.prototype.resetIcons=function(){var e=this.ctrlsService.getGridCtrl();e.setResizeCursor(!1),e.disableUserSelect(!1)},t.prototype.onDragging=function(e,t){this.resizeAmount=t.clientX-this.dragStartX,e.onResizing(this.resizeAmount)},jc([K("dragService")],t.prototype,"dragService",void 0),jc([K("ctrlsService")],t.prototype,"ctrlsService",void 0),t=jc([Y("horizontalResizeService")],t)}(Fe),zc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Zc=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},Yc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zc(t,e),t.prototype.hideActiveMenu=function(){this.hidePopup&&this.hidePopup()},t.prototype.showMenuAfterMouseEvent=function(e,t){var n=this;this.showPopup(e,(function(o){n.popupService.positionPopupUnderMouseEvent({column:e,type:"columnMenu",mouseEvent:t,ePopup:o})}),t.target)},t.prototype.showMenuAfterButtonClick=function(e,t,n){var o=this;this.showPopup(e,(function(r){o.popupService.positionPopupUnderComponent({type:n,eventSource:t,ePopup:r,keepWithinBounds:!0,column:e})}),t)},t.prototype.showPopup=function(e,t,n){var o=this,r=this.filterManager.getOrCreateFilterWrapper(e,"COLUMN_MENU");if(!r)throw new Error("AG Grid - unable to show popup filter, filter instantiation failed");var i,s=document.createElement("div");Bn(s,"presentation"),s.classList.add("ag-menu"),this.tabListener=this.addManagedListener(s,"keydown",(function(e){return o.trapFocusWithin(e,s)})),r.guiPromise.then((function(e){return s.appendChild(e)}));var a=n||this.ctrlsService.getGridBodyCtrl().getGui(),l=this.gridOptionsWrapper.getLocaleTextFunc(),u=this.popupService.addPopup({modal:!0,eChild:s,closeOnEsc:!0,closedCallback:function(t){e.setMenuVisible(!1,"contextMenu");var r=t instanceof KeyboardEvent;if(o.tabListener&&(o.tabListener=o.tabListener()),r&&n&&fn(n)){var i=o.focusService.findTabbableParent(n);i&&i.focus()}},positionCallback:function(){return t(s)},anchorToElement:a,ariaLabel:l("ariaLabelColumnMenu","Column Menu")});u&&(this.hidePopup=i=u.hideFunc),r.filterPromise.then((function(e){t(s),e.afterGuiAttached&&e.afterGuiAttached({container:"columnMenu",hidePopup:i})})),e.setMenuVisible(!0,"contextMenu")},t.prototype.trapFocusWithin=function(e,t){e.key!==dr.TAB||e.defaultPrevented||this.focusService.findNextFocusableElement(t,!1,e.shiftKey)||(e.preventDefault(),this.focusService.focusInto(t,e.shiftKey))},t.prototype.isMenuEnabled=function(e){return e.isFilterAllowed()},Zc([K("filterManager")],t.prototype,"filterManager",void 0),Zc([K("popupService")],t.prototype,"popupService",void 0),Zc([K("focusService")],t.prototype,"focusService",void 0),Zc([K("ctrlsService")],t.prototype,"ctrlsService",void 0),t=Zc([Y("menuFactory")],t)}(Fe),Kc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),qc=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},Xc=function(e){function t(n){var o=e.call(this,t.getTemplate(n.cssClass))||this;return o.items=[],o.tabbedItemScrollMap=new Map,o.params=n,n.items&&n.items.forEach((function(e){return o.addItem(e)})),o}return Kc(t,e),t.prototype.postConstruct=function(){this.createManagedBean(new mr(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)}))},t.getTemplate=function(e){return'<div class="ag-tabs '+e+'">\n            <div ref="eHeader" role="tablist" class="ag-tabs-header '+(e?e+"-header":"")+'"></div>\n            <div ref="eBody" role="presentation" class="ag-tabs-body '+(e?e+"-body":"")+'"></div>\n        </div>'},t.prototype.handleKeyDown=function(e){var t=this.gridOptionsWrapper.getDocument();switch(e.key){case dr.RIGHT:case dr.LEFT:if(!this.eHeader.contains(t.activeElement))return;var n=this.items.indexOf(this.activeItem),o=e.key===dr.RIGHT?Math.min(n+1,this.items.length-1):Math.max(n-1,0);if(n===o)return;e.preventDefault();var r=this.items[o];this.showItemWrapper(r),r.eHeaderButton.focus();break;case dr.UP:case dr.DOWN:e.stopPropagation()}},t.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented){var t=this,n=t.focusService,o=t.eHeader,r=t.eBody,i=t.activeItem,s=this.gridOptionsWrapper.getDocument().activeElement;if(e.preventDefault(),o.contains(s))n.focusInto(r,e.shiftKey);else if(n.isFocusUnderManagedComponent(r))i.eHeaderButton.focus();else{var a=n.findNextFocusableElement(r,!1,e.shiftKey);a?a.focus():i.eHeaderButton.focus()}}},t.prototype.setAfterAttachedParams=function(e){this.afterAttachedParams=e},t.prototype.showFirstItem=function(){this.items.length>0&&this.showItemWrapper(this.items[0])},t.prototype.addItem=function(e){var t=document.createElement("span");Bn(t,"tab"),t.setAttribute("tabIndex","-1"),t.appendChild(e.title),t.classList.add("ag-tab"),this.eHeader.appendChild(t),Un(t,e.titleLabel);var n={tabbedItem:e,eHeaderButton:t};this.items.push(n),t.addEventListener("click",this.showItemWrapper.bind(this,n))},t.prototype.showItem=function(e){var t=this.items.find((function(t){return t.tabbedItem===e}));t&&this.showItemWrapper(t)},t.prototype.showItemWrapper=function(e){var t=this,n=e.tabbedItem,o=e.eHeaderButton;this.params.onItemClicked&&this.params.onItemClicked({item:n}),this.activeItem!==e?(this.lastScrollListener&&(this.lastScrollListener=this.lastScrollListener()),dn(this.eBody),n.bodyPromise.then((function(e){t.eBody.appendChild(e);var o=!t.focusService.isKeyboardMode();if(t.focusService.focusInto(t.eBody,!1,o),n.afterAttachedCallback&&n.afterAttachedCallback(t.afterAttachedParams),t.params.keepScrollPosition){var r=n.getScrollableContainer&&n.getScrollableContainer()||e;t.lastScrollListener=t.addManagedListener(r,"scroll",(function(){t.tabbedItemScrollMap.set(n.name,r.scrollTop)}));var i=t.tabbedItemScrollMap.get(n.name);void 0!==i&&setTimeout((function(){r.scrollTop=i}),0)}})),this.activeItem&&this.activeItem.eHeaderButton.classList.remove("ag-tab-selected"),o.classList.add("ag-tab-selected"),this.activeItem=e):V(this.params.onActiveItemClicked)},qc([K("focusService")],t.prototype,"focusService",void 0),qc([nr("eHeader")],t.prototype,"eHeader",void 0),qc([nr("eBody")],t.prototype,"eBody",void 0),qc([z],t.prototype,"postConstruct",null),t}(tr);var Qc,Jc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),$c=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},ep=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.polyfillFunctions=[],t}return Jc(t,e),t.prototype.observeResize=function(e,t){var n=this,o=this.gridOptionsWrapper.getDocument().defaultView||window,r=G(t,50),i=this.gridOptionsWrapper.isSuppressBrowserResizeObserver();return!!o.ResizeObserver&&!i?function(){var t=new o.ResizeObserver(r);return t.observe(e),function(){return t.disconnect()}}():function(){var o=vn(e),r=mn(e),i=!0;return function s(){if(i){var a=vn(e),l=mn(e);(a!==o||l!==r)&&(o=a,r=l,t()),n.doNextPolyfillTurn(s)}}(),function(){return i=!1}}()},t.prototype.doNextPolyfillTurn=function(e){this.polyfillFunctions.push(e),this.schedulePolyfill()},t.prototype.schedulePolyfill=function(){var e=this;if(!this.polyfillScheduled){this.polyfillScheduled=!0,this.getFrameworkOverrides().setTimeout((function(){var t=e.polyfillFunctions;e.polyfillScheduled=!1,e.polyfillFunctions=[],t.forEach((function(e){return e()}))}),50)}},t=$c([Y("resizeObserverService")],t)}(Fe),tp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),np=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},op=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createTasksP1={list:[],sorted:!1},t.createTasksP2={list:[],sorted:!1},t.destroyTasks=[],t.ticking=!1,t.scrollGoingDown=!0,t.lastScrollTop=0,t.taskCount=0,t.cancelledTasks=new Set,t}return tp(t,e),t.prototype.setScrollTop=function(e){this.scrollGoingDown=e>this.lastScrollTop,this.lastScrollTop=e},t.prototype.init=function(){this.useAnimationFrame=!this.gridOptionsWrapper.isSuppressAnimationFrame()},t.prototype.isOn=function(){return this.useAnimationFrame},t.prototype.verifyAnimationFrameOn=function(e){!1===this.useAnimationFrame&&console.warn("AG Grid: AnimationFrameService."+e+" called but animation frames are off")},t.prototype.createTask=function(e,t,n){this.verifyAnimationFrameOn(n);var o={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[n],o),this.schedule()},t.prototype.cancelTask=function(e){this.cancelledTasks.add(e)},t.prototype.addTaskToList=function(e,t){e.list.push(t),e.sorted=!1},t.prototype.sortTaskList=function(e){if(!e.sorted){var t=this.scrollGoingDown?1:-1;e.list.sort((function(e,n){return e.index!==n.index?t*(n.index-e.index):n.createOrder-e.createOrder})),e.sorted=!0}},t.prototype.addDestroyTask=function(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()},t.prototype.executeFrame=function(e){this.verifyAnimationFrameOn("executeFrame");for(var t=this.createTasksP1,n=t.list,o=this.createTasksP2,r=o.list,i=this.destroyTasks,s=(new Date).getTime(),a=(new Date).getTime()-s,l=e<=0,u=this.ctrlsService.getGridBodyCtrl();l||a<e;){if(!u.getScrollFeature().executeAnimationFrameScroll()){var c=void 0;if(n.length)this.sortTaskList(t),c=n.pop().task;else if(r.length)this.sortTaskList(o),c=r.pop().task;else{if(!i.length){this.cancelledTasks.clear();break}c=i.pop()}this.cancelledTasks.has(c)||c()}a=(new Date).getTime()-s}n.length||r.length||i.length?this.requestFrame():this.stopTicking()},t.prototype.stopTicking=function(){this.ticking=!1},t.prototype.flushAllFrames=function(){this.useAnimationFrame&&this.executeFrame(-1)},t.prototype.schedule=function(){this.useAnimationFrame&&(this.ticking||(this.ticking=!0,this.requestFrame()))},t.prototype.requestFrame=function(){var e=this.executeFrame.bind(this,60),t=this.gridOptionsWrapper.getDocument().defaultView||window;t.requestAnimationFrame?t.requestAnimationFrame(e):t.webkitRequestAnimationFrame?t.webkitRequestAnimationFrame(e):t.setTimeout(e,0)},t.prototype.isQueueEmpty=function(){return!this.ticking},t.prototype.debounce=function(e){var t=this,n=!1;return function(){t.isOn()?n||(n=!0,t.addDestroyTask((function(){n=!1,e()}))):t.getFrameworkOverrides().setTimeout(e,0)}},np([K("ctrlsService")],t.prototype,"ctrlsService",void 0),np([z],t.prototype,"init",null),t=np([Y("animationFrameService")],t)}(Fe),rp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),ip=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},sp=function(e){function t(t,n){var o=e.call(this)||this;return o.element=t,o.dragStartPosition={x:0,y:0},o.position={x:0,y:0},o.lastSize={width:-1,height:-1},o.positioned=!1,o.resizersAdded=!1,o.resizeListeners=[],o.boundaryEl=null,o.isResizing=!1,o.isMoving=!1,o.resizable={},o.movable=!1,o.currentResizer=null,o.config=Object.assign({},{popup:!1},n),o}return rp(t,e),t.prototype.center=function(){var e=this.offsetParent,t=e.clientHeight,n=e.clientWidth/2-this.getWidth()/2,o=t/2-this.getHeight()/2;this.offsetElement(n,o)},t.prototype.initialisePosition=function(){var e=this.config,t=e.centered,n=e.forcePopupParentAsOffsetParent,o=e.minWidth,r=e.width,i=e.minHeight,s=e.height,a=e.x,l=e.y;this.offsetParent||this.setOffsetParent();var u=0,c=0,p=!!this.element.offsetParent;if(p){var d=this.findBoundaryElement(),h=window.getComputedStyle(d);if(null!=h.minWidth){var f=d.offsetWidth-this.element.offsetWidth;c=parseInt(h.minWidth,10)-f}if(null!=h.minHeight){var g=d.offsetHeight-this.element.offsetHeight;u=parseInt(h.minHeight,10)-g}}if(this.minHeight=i||u,this.minWidth=o||c,r&&this.setWidth(r),s&&this.setHeight(s),r&&s||this.refreshSize(),t)this.center();else if(a||l)this.offsetElement(a,l);else if(p&&n&&this.boundaryEl){var m=parseFloat(this.boundaryEl.style.top),v=parseFloat(this.boundaryEl.style.left);this.offsetElement(isNaN(v)?0:v,isNaN(m)?0:m)}this.positioned=!!this.offsetParent},t.prototype.isPositioned=function(){return this.positioned},t.prototype.getPosition=function(){return this.position},t.prototype.setMovable=function(e,t){if(this.config.popup&&e!==this.movable){this.movable=e;var n=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?(this.dragService.addDragSource(n),this.moveElementDragListener=n):(this.dragService.removeDragSource(n),this.moveElementDragListener=void 0)}},t.prototype.setResizable=function(e){var t=this;if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),"boolean"===typeof e){if(!1===e)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach((function(n){var o=!!e[n],r=t.getResizerElement(n),i={dragStartPixels:0,eElement:r,onDragStart:function(e){return t.onResizeStart(e,n)},onDragging:t.onResize.bind(t),onDragStop:function(e){return t.onResizeEnd(e,n)}};!!t.resizable[n]===o&&(t.isAlive()||o)||(o?(t.dragService.addDragSource(i),t.resizeListeners.push(i),r.style.pointerEvents="all"):r.style.pointerEvents="none")}))},t.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},t.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var e=this.lastSize,t=e.height,n=e.width;-1!==n&&(this.element.style.width=n+"px"),-1!==t&&(this.element.style.height=t+"px")},t.prototype.getHeight=function(){return this.element.offsetHeight},t.prototype.setHeight=function(e){var t=this.config.popup,n=this.element,o=!1;if("string"===typeof e&&-1!==e.indexOf("%"))On(n,e),e=an(n),o=!0;else if(this.positioned){var r=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect();e=Math.max(this.minHeight,e);var s=this.offsetParent.clientHeight,a=t?this.position.y:r.top,l=t?0:i.top;s&&e+a>s+l&&(e=s-a)}this.getHeight()!==e&&(o?(n.style.maxHeight="unset",n.style.minHeight="unset"):t?On(n,e):(n.style.height=e+"px",n.style.flex="0 0 auto",this.lastSize.height="number"===typeof e?e:parseFloat(e)))},t.prototype.getWidth=function(){return this.element.offsetWidth},t.prototype.setWidth=function(e){var t=this.element,n=this.config.popup,o=!1;if("string"===typeof e&&-1!==e.indexOf("%"))Rn(t,e),e=ln(t),o=!0;else if(this.positioned){e=Math.max(this.minWidth,e);var r=this.offsetParent.clientWidth,i=n?this.position.x:this.element.getBoundingClientRect().left;r&&e+i>r&&(e=r-i)}this.getWidth()!==e&&(o?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?Rn(t,e):(t.style.width=e+"px",t.style.flex=" unset",this.lastSize.width="number"===typeof e?e:parseFloat(e)))},t.prototype.offsetElement=function(e,t){void 0===e&&(e=0),void 0===t&&(t=0);var n=this.config.forcePopupParentAsOffsetParent?this.boundaryEl:this.element;this.popupService.positionPopup({ePopup:n,x:e,y:t,keepWithinBounds:!0}),this.setPosition(parseFloat(n.style.left),parseFloat(n.style.top))},t.prototype.setPosition=function(e,t){this.position.x=e,this.position.y=t},t.prototype.updateDragStartPosition=function(e,t){this.dragStartPosition={x:e,y:t}},t.prototype.calculateMouseMovement=function(e){var t=e.e,n=e.isLeft,o=e.isTop,r=e.anywhereWithin,i=e.topBuffer,s=t.clientX-this.dragStartPosition.x,a=t.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(t,!!n,!!r,s)?0:s,movementY:this.shouldSkipY(t,!!o,i,a)?0:a}},t.prototype.shouldSkipX=function(e,t,n,o){var r=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:r.left,l=a<=0&&i.left>=e.clientX||i.right<=e.clientX&&i.right<=s.right;return!!l||(l=t?o<0&&e.clientX>a+i.left||o>0&&e.clientX<a+i.left:n?o<0&&e.clientX>s.right||o>0&&e.clientX<a+i.left:o<0&&e.clientX>s.right||o>0&&e.clientX<s.right)},t.prototype.shouldSkipY=function(e,t,n,o){void 0===n&&(n=0);var r=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.y:r.top,l=a<=0&&i.top>=e.clientY||i.bottom<=e.clientY&&i.bottom<=s.bottom;return!!l||(l=t?o<0&&e.clientY>a+i.top+n||o>0&&e.clientY<a+i.top:o<0&&e.clientY>s.bottom||o>0&&e.clientY<s.bottom)},t.prototype.createResizeMap=function(){var e=this.element;this.resizerMap={topLeft:{element:e.querySelector("[ref=eTopLeftResizer]")},top:{element:e.querySelector("[ref=eTopResizer]")},topRight:{element:e.querySelector("[ref=eTopRightResizer]")},right:{element:e.querySelector("[ref=eRightResizer]")},bottomRight:{element:e.querySelector("[ref=eBottomRightResizer]")},bottom:{element:e.querySelector("[ref=eBottomResizer]")},bottomLeft:{element:e.querySelector("[ref=eBottomLeftResizer]")},left:{element:e.querySelector("[ref=eLeftResizer]")}}},t.prototype.addResizers=function(){if(!this.resizersAdded){var e=this.element;if(e){var t=(new DOMParser).parseFromString('<div class="ag-resizer-wrapper">\n        <div ref="eTopLeftResizer" class="ag-resizer ag-resizer-topLeft"></div>\n        <div ref="eTopResizer" class="ag-resizer ag-resizer-top"></div>\n        <div ref="eTopRightResizer" class="ag-resizer ag-resizer-topRight"></div>\n        <div ref="eRightResizer" class="ag-resizer ag-resizer-right"></div>\n        <div ref="eBottomRightResizer" class="ag-resizer ag-resizer-bottomRight"></div>\n        <div ref="eBottomResizer" class="ag-resizer ag-resizer-bottom"></div>\n        <div ref="eBottomLeftResizer" class="ag-resizer ag-resizer-bottomLeft"></div>\n        <div ref="eLeftResizer" class="ag-resizer ag-resizer-left"></div>\n    </div>',"text/html").body;e.appendChild(t.firstChild),this.createResizeMap(),this.resizersAdded=!0}}},t.prototype.removeResizers=function(){this.resizerMap=void 0;var e=this.element.querySelector(".ag-resizer-wrapper");e&&this.element.removeChild(e),this.resizersAdded=!1},t.prototype.getResizerElement=function(e){return this.resizerMap[e].element},t.prototype.onResizeStart=function(e,t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.currentResizer={isTop:!!t.match(/top/i),isRight:!!t.match(/right/i),isBottom:!!t.match(/bottom/i),isLeft:!!t.match(/left/i)},this.element.classList.add("ag-resizing"),this.resizerMap[t].element.classList.add("ag-active");var n=this.config,o=n.popup,r=n.forcePopupParentAsOffsetParent;o||r||this.applySizeToSiblings(this.currentResizer.isBottom||this.currentResizer.isTop),this.isResizing=!0,this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.getSiblings=function(){var e=this.element.parentElement;return e?Array.prototype.slice.call(e.children).filter((function(e){return!e.classList.contains("ag-hidden")})):null},t.prototype.getMinSizeOfSiblings=function(){for(var e=this.getSiblings()||[],t=0,n=0,o=0;o<e.length;o++){var r=e[o],i=!!r.style.flex&&"0 0 auto"!==r.style.flex;if(r!==this.element){var s=this.minHeight||0,a=this.minWidth||0;if(i){var l=window.getComputedStyle(r);l.minHeight&&(s=parseInt(l.minHeight,10)),l.minWidth&&(a=parseInt(l.minWidth,10))}else s=r.offsetHeight,a=r.offsetWidth;t+=s,n+=a}}return{height:t,width:n}},t.prototype.applySizeToSiblings=function(e){var t=null,n=this.getSiblings();if(n){for(var o=0;o<n.length;o++){var r=n[o];r!==t&&(e?r.style.height=r.offsetHeight+"px":r.style.width=r.offsetWidth+"px",r.style.flex="0 0 auto",r===this.element&&(t=n[o+1]))}t&&(t.style.removeProperty("height"),t.style.removeProperty("min-height"),t.style.removeProperty("max-height"),t.style.flex="1 1 auto")}},t.prototype.onResize=function(e){if(this.isResizing&&this.currentResizer){var t=this.config,n=t.popup,o=t.forcePopupParentAsOffsetParent,r=this.currentResizer,i=r.isTop,s=r.isRight,a=r.isBottom,l=r.isLeft,u=s||l,c=a||i,p=this.calculateMouseMovement({e:e,isLeft:l,isTop:i}),d=p.movementX,h=p.movementY,f=this.position.x,g=this.position.y,m=0,v=0;if(u&&d){var y=l?-1:1,C=this.getWidth(),w=C+d*y,_=!1;l&&(f+(m=C-w)<=0||w<=this.minWidth)&&(_=!0,m=0),_||this.setWidth(w)}if(c&&h){y=i?-1:1;var b=this.getHeight(),E=b+h*y,S=!1;i?(g+(v=b-E)<=0||E<=this.minHeight)&&(S=!0,v=0):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&b<E&&this.getMinSizeOfSiblings().height+E>this.element.parentElement.offsetHeight&&(S=!0),S||this.setHeight(E)}this.updateDragStartPosition(e.clientX,e.clientY),((n||o)&&m||v)&&this.offsetElement(f+m,g+v)}},t.prototype.onResizeEnd=function(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var n={type:"resize",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi()};this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchEvent(n)},t.prototype.refreshSize=function(){var e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))},t.prototype.onMoveStart=function(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)},t.prototype.onMove=function(e){if(this.isMoving){var t,n=this.position,o=n.x,r=n.y;this.config.calculateTopBuffer&&(t=this.config.calculateTopBuffer());var i=this.calculateMouseMovement({e:e,isTop:!0,anywhereWithin:!0,topBuffer:t}),s=i.movementX,a=i.movementY;this.offsetElement(o+s,r+a),this.updateDragStartPosition(e.clientX,e.clientY)}},t.prototype.onMoveEnd=function(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")},t.prototype.setOffsetParent=function(){this.config.forcePopupParentAsOffsetParent?this.offsetParent=this.popupService.getPopupParent():this.offsetParent=this.element.offsetParent},t.prototype.findBoundaryElement=function(){for(var e=this.element;e;){if("static"!==window.getComputedStyle(e).position)return e;e=e.parentElement}return this.element},t.prototype.clearResizeListeners=function(){for(;this.resizeListeners.length;){var e=this.resizeListeners.pop();this.dragService.removeDragSource(e)}},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.clearResizeListeners(),this.removeResizers()},ip([K("popupService")],t.prototype,"popupService",void 0),ip([K("dragService")],t.prototype,"dragService",void 0),t}(Fe),ap=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),lp=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},up=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ap(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.centerRowContainerCtrl=t.centerRowContainerCtrl}))},t.prototype.getPreferredWidthForColumn=function(e,t){var n=this.getHeaderCellForColumn(e);if(!n)return-1;var o=this.rowRenderer.getAllCellsForColumn(e);return t||o.push(n),this.addElementsToContainerAndGetWidth(o)},t.prototype.getPreferredWidthForColumnGroup=function(e){var t=this.getHeaderCellForColumn(e);return t?this.addElementsToContainerAndGetWidth([t]):-1},t.prototype.addElementsToContainerAndGetWidth=function(e){var t=this,n=document.createElement("span");n.style.position="fixed";var o=this.centerRowContainerCtrl.getContainerElement();o.appendChild(n),e.forEach((function(e){return t.cloneItemIntoDummy(e,n)}));var r=n.offsetWidth;return o.removeChild(n),r+this.gridOptionsWrapper.getAutoSizePadding()},t.prototype.getHeaderCellForColumn=function(e){var t=null;return this.ctrlsService.getHeaderRowContainerCtrls().forEach((function(n){var o=n.getHtmlElementForColumnHeader(e);null!=o&&(t=o)})),t},t.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"),r=o.classList;["ag-header-cell","ag-header-group-cell"].some((function(e){return n.classList.contains(e)}))?(r.add("ag-header","ag-header-row"),o.style.position="static"):r.add("ag-row");for(var i=e.parentElement;i;){if(["ag-header-row","ag-row"].some((function(e){return i.classList.contains(e)}))){for(var s=0;s<i.classList.length;s++){var a=i.classList[s];"ag-row-position-absolute"!=a&&r.add(a)}break}i=i.parentElement}o.appendChild(n),t.appendChild(o)},lp([K("rowRenderer")],t.prototype,"rowRenderer",void 0),lp([K("ctrlsService")],t.prototype,"ctrlsService",void 0),lp([K("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),lp([z],t.prototype,"postConstruct",null),t=lp([Y("autoWidthCalculator")],t)}(Fe),cp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),pp=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},dp=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},hp=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(dp(arguments[t]));return e},fp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.destroyFuncsForColumnListeners=[],t.rowCtrlsByRowIndex={},t.zombieRowCtrls={},t.allRowCtrls=[],t.topRowCtrls=[],t.bottomRowCtrls=[],t.refreshInProgress=!1,t}return cp(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(){e.gridBodyCtrl=e.ctrlsService.getGridBodyCtrl(),e.initialise()}))},t.prototype.initialise=function(){this.addManagedListener(this.eventService,Ve.EVENT_PAGINATION_CHANGED,this.onPageLoaded.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_BODY_SCROLL,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_BODY_HEIGHT_CHANGED,this.redrawAfterScroll.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,this.onDomLayoutChanged.bind(this)),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_ROW_CLASS,this.redrawRows.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.registerCellEventListeners(),this.initialiseCache(),this.printLayout=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT,this.embedFullWidthRows=this.printLayout||this.gridOptionsWrapper.isEmbedFullWidthRows(),this.redrawAfterModelUpdate()},t.prototype.initialiseCache=function(){if(this.gridOptionsWrapper.isKeepDetailRows()){var e=this.gridOptionsWrapper.getKeepDetailRowsCount(),t=null!=e?e:3;this.cachedRowCtrls=new gp(t)}},t.prototype.getRowCtrls=function(){return this.allRowCtrls},t.prototype.updateAllRowCtrls=function(){var e=_(this.rowCtrlsByRowIndex);this.gridOptionsWrapper.isEnsureDomOrder()&&e.sort((function(e,t){return e.getRowNode().rowIndex-t.getRowNode.rowIndex}));var t=_(this.zombieRowCtrls),n=this.cachedRowCtrls?this.cachedRowCtrls.getEntries():[];this.allRowCtrls=hp(e,t,n)},t.prototype.registerCellEventListeners=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_CELL_FOCUSED,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onCellFocused(t)})),e.getFullWidthRowCtrls().forEach((function(e){e.onFullWidthRowFocused(t)}))})),this.addManagedListener(this.eventService,Ve.EVENT_FLASH_CELLS,(function(t){e.getAllCellCtrls().forEach((function(e){return e.onFlashCells(t)}))})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_HOVER_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onColumnHover()}))})),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onDisplayedColumnsChanged()}))})),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){e.printLayout&&e.getAllCellCtrls().forEach((function(e){return e.onLeftChanged()}))})),this.gridOptionsWrapper.isEnableRangeSelection()&&(this.addManagedListener(this.eventService,Ve.EVENT_RANGE_SELECTION_CHANGED,(function(){e.getAllCellCtrls().forEach((function(e){return e.onRangeSelectionChanged()}))})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_MOVED,(function(){e.getAllCellCtrls().forEach((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PINNED,(function(){e.getAllCellCtrls().forEach((function(e){return e.updateRangeBordersIfRangeCount()}))})),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_VISIBLE,(function(){e.getAllCellCtrls().forEach((function(e){return e.updateRangeBordersIfRangeCount()}))}))),this.refreshListenersToColumnsForCellComps(),this.addManagedListener(this.eventService,Ve.EVENT_GRID_COLUMNS_CHANGED,this.refreshListenersToColumnsForCellComps.bind(this)),this.addDestroyFunc(this.removeGridColumnListeners.bind(this))},t.prototype.removeGridColumnListeners=function(){this.destroyFuncsForColumnListeners.forEach((function(e){return e()})),this.destroyFuncsForColumnListeners.length=0},t.prototype.refreshListenersToColumnsForCellComps=function(){var e=this;this.removeGridColumnListeners();var t=this.columnModel.getAllGridColumns();t&&t.forEach((function(t){var n=function(n){e.getAllCellCtrls().forEach((function(e){e.getColumn()===t&&n(e)}))},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(ae.EVENT_LEFT_CHANGED,o),t.addEventListener(ae.EVENT_WIDTH_CHANGED,r),t.addEventListener(ae.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.addEventListener(ae.EVENT_LAST_LEFT_PINNED_CHANGED,s),e.destroyFuncsForColumnListeners.push((function(){t.removeEventListener(ae.EVENT_LEFT_CHANGED,o),t.removeEventListener(ae.EVENT_WIDTH_CHANGED,r),t.removeEventListener(ae.EVENT_FIRST_RIGHT_PINNED_CHANGED,i),t.removeEventListener(ae.EVENT_LAST_LEFT_PINNED_CHANGED,s)}))}))},t.prototype.onDomLayoutChanged=function(){var e=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT,t=e||this.gridOptionsWrapper.isEmbedFullWidthRows(),n=t!==this.embedFullWidthRows||this.printLayout!==e;this.printLayout=e,this.embedFullWidthRows=t,n&&this.redrawAfterModelUpdate()},t.prototype.datasourceChanged=function(){this.firstRenderedRow=0,this.lastRenderedRow=-1;var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},t.prototype.onPageLoaded=function(e){var t={recycleRows:e.keepRenderedRows,animate:e.animate,newData:e.newData,newPage:e.newPage,onlyBody:!0};this.redrawAfterModelUpdate(t)},t.prototype.getAllCellsForColumn=function(e){var t=[];return this.getAllRowCtrls().forEach((function(n){var o=n.getCellElement(e);o&&t.push(o)})),t},t.prototype.refreshFloatingRowComps=function(){this.refreshFloatingRows(this.topRowCtrls,this.pinnedRowModel.getPinnedTopRowData()),this.refreshFloatingRows(this.bottomRowCtrls,this.pinnedRowModel.getPinnedBottomRowData())},t.prototype.getTopRowCtrls=function(){return this.topRowCtrls},t.prototype.getBottomRowCtrls=function(){return this.bottomRowCtrls},t.prototype.refreshFloatingRows=function(e,t){var n=this;e.forEach((function(e){e.destroyFirstPass(),e.destroySecondPass()})),e.length=0,t&&t.forEach((function(t){var o=new fl(t,n.beans,!1,!1,n.printLayout);e.push(o)}))},t.prototype.onPinnedRowDataChanged=function(){this.redrawAfterModelUpdate({recycleRows:!0})},t.prototype.getRenderedIndexesForRowNodes=function(e){var t=[];return i(e)||f(this.rowCtrlsByRowIndex,(function(n,o){var r=o.getRowNode();e.indexOf(r)>=0&&t.push(n)})),t},t.prototype.redrawRows=function(e){var t=null!=e&&e.length>0;if(t){var n=this.getRenderedIndexesForRowNodes(e);this.removeRowCtrls(n)}this.redrawAfterModelUpdate({recycleRows:t})},t.prototype.getCellToRestoreFocusToAfterRefresh=function(e){var t=e.suppressKeepFocus?null:this.focusService.getFocusCellToUseAfterRefresh();if(null==t)return null;var n=this.gridOptionsWrapper.getDocument().activeElement,o=this.gridOptionsWrapper.getDomData(n,al.DOM_DATA_KEY_CELL_CTRL),r=this.gridOptionsWrapper.getDomData(n,fl.DOM_DATA_KEY_ROW_CTRL);return o||r?t:null},t.prototype.redrawAfterModelUpdate=function(e){void 0===e&&(e={}),this.getLockOnRefresh();var t=this.getCellToRestoreFocusToAfterRefresh(e);this.updateContainerHeights(),this.scrollToTopIfNewData(e);var n=!this.printLayout&&!!e.recycleRows,o=e.animate&&this.gridOptionsWrapper.isAnimateRows(),r=n?this.recycleRows():null;n||this.removeAllRowComps();var i=function(){if(null==t||null==r)return!1;var e=!1;return f(r,(function(n,o){var r=o.getRowNode(),i=r.rowIndex==t.rowIndex,s=r.rowPinned==t.rowPinned;i&&s&&(e=!0)})),e}();this.redraw(r,o),e.onlyBody||this.refreshFloatingRowComps(),this.dispatchDisplayedRowsChanged(),i||this.restoreFocusedCell(t),this.releaseLockOnRefresh()},t.prototype.scrollToTopIfNewData=function(e){var t=e.newData||e.newPage,n=this.gridOptionsWrapper.isSuppressScrollOnNewData();t&&!n&&this.gridBodyCtrl.getScrollFeature().scrollToTop()},t.prototype.updateContainerHeights=function(){if(this.printLayout)this.rowContainerHeightService.setModelHeight(null);else{var e=this.paginationProxy.getCurrentPageHeight();0===e&&(e=1),this.rowContainerHeightService.setModelHeight(e)}},t.prototype.getLockOnRefresh=function(){if(this.refreshInProgress)throw new Error("AG Grid: cannot get grid to draw rows when it is in the middle of drawing rows. Your code probably called a grid API method while the grid was in the render stage. To overcome this, put the API call into a timeout, e.g. instead of api.redrawRows(), call setTimeout(function() { api.redrawRows(); }, 0). To see what part of your code that caused the refresh check this stacktrace.");this.refreshInProgress=!0},t.prototype.releaseLockOnRefresh=function(){this.refreshInProgress=!1},t.prototype.isRefreshInProgress=function(){return this.refreshInProgress},t.prototype.restoreFocusedCell=function(e){e&&this.focusService.setFocusedCell(e.rowIndex,e.column,e.rowPinned,!0)},t.prototype.stopEditing=function(e){void 0===e&&(e=!1),this.getAllRowCtrls().forEach((function(t){t.stopEditing(e)}))},t.prototype.onNewColumnsLoaded=function(){this.getAllCellCtrls().forEach((function(e){return e.onNewColumnsLoaded()}))},t.prototype.getAllCellCtrls=function(){var e=[];return this.getAllRowCtrls().forEach((function(t){return e=e.concat(t.getAllCellCtrls())})),e},t.prototype.getAllRowCtrls=function(){var e=this,t=hp(this.topRowCtrls,this.bottomRowCtrls);return Object.keys(this.rowCtrlsByRowIndex).forEach((function(n){return t.push(e.rowCtrlsByRowIndex[n])})),t},t.prototype.addRenderedRowListener=function(e,t,n){var o=this.rowCtrlsByRowIndex[t];o&&o.addEventListener(e,n)},t.prototype.flashCells=function(e){void 0===e&&(e={});var t=e.flashDelay,n=e.fadeDelay;this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){return e.flashCell({flashDelay:t,fadeDelay:n})}))},t.prototype.refreshCells=function(e){void 0===e&&(e={});var t={forceRefresh:e.force,newData:!1,suppressFlash:e.suppressFlash};this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){if(e.refreshShouldDestroy()){var n=e.getRowCtrl();n&&n.refreshCell(e)}else e.refreshCell(t)})),this.getFullWidthRowCtrls(e.rowNodes).forEach((function(e){e.refreshFullWidth()}))},t.prototype.getCellRendererInstances=function(e){return this.getCellCtrls(e.rowNodes,e.columns).map((function(e){return e.getCellRenderer()})).filter((function(e){return null!=e}))},t.prototype.getCellEditorInstances=function(e){var t=[];return this.getCellCtrls(e.rowNodes,e.columns).forEach((function(e){var n=e.getCellEditor();n&&t.push(n)})),t},t.prototype.getEditingCells=function(){var e=[];return this.getAllCellCtrls().forEach((function(t){if(t.isEditing()){var n=t.getCellPosition();e.push(n)}})),e},t.prototype.mapRowNodes=function(e){if(e){var t={top:{},bottom:{},normal:{}};return e.forEach((function(e){var n=e.id;e.rowPinned===oe.PINNED_TOP?t.top[n]=e:e.rowPinned===oe.PINNED_BOTTOM?t.bottom[n]=e:t.normal[n]=e})),t}},t.prototype.isRowInMap=function(e,t){var n=e.id,o=e.rowPinned;return o===oe.PINNED_BOTTOM?null!=t.bottom[n]:o===oe.PINNED_TOP?null!=t.top[n]:null!=t.normal[n]},t.prototype.getCellCtrls=function(e,t){var n,o=this,i=this.mapRowNodes(e),s=[];r(t)&&(n={},t.forEach((function(e){var t=o.columnModel.getGridColumn(e);r(t)&&(n[t.getId()]=!0)})));var a=function(e){var t=e.getRowNode();(null==i||o.isRowInMap(t,i))&&e.getAllCellCtrls().forEach((function(e){var t=e.getColumn().getId();n&&!n[t]||s.push(e)}))};return f(this.rowCtrlsByRowIndex,(function(e,t){a(t)})),this.topRowCtrls&&this.topRowCtrls.forEach(a),this.bottomRowCtrls&&this.bottomRowCtrls.forEach(a),s},t.prototype.destroy=function(){this.removeAllRowComps(),e.prototype.destroy.call(this)},t.prototype.removeAllRowComps=function(){var e=Object.keys(this.rowCtrlsByRowIndex);this.removeRowCtrls(e)},t.prototype.recycleRows=function(){var e=[];f(this.rowCtrlsByRowIndex,(function(t,n){null==n.getRowNode().id&&e.push(t)})),this.removeRowCtrls(e);var t={};return f(this.rowCtrlsByRowIndex,(function(e,n){var o=n.getRowNode();t[o.id]=n})),this.rowCtrlsByRowIndex={},t},t.prototype.removeRowCtrls=function(e){var t=this;e.forEach((function(e){var n=t.rowCtrlsByRowIndex[e];n&&(n.destroyFirstPass(),n.destroySecondPass()),delete t.rowCtrlsByRowIndex[e]}))},t.prototype.redrawAfterScroll=function(){this.getLockOnRefresh(),this.redraw(null,!1,!0),this.releaseLockOnRefresh(),this.dispatchDisplayedRowsChanged()},t.prototype.removeRowCompsNotToDraw=function(e){var t={};e.forEach((function(e){return t[e]=!0}));var n=Object.keys(this.rowCtrlsByRowIndex).filter((function(e){return!t[e]}));this.removeRowCtrls(n)},t.prototype.calculateIndexesToDraw=function(e){var t=this,n=ho(this.firstRenderedRow,this.lastRenderedRow),o=function(e,o){var r=o.getRowNode().rowIndex;null!=r&&(r<t.firstRenderedRow||r>t.lastRenderedRow)&&t.doNotUnVirtualiseRow(o)&&n.push(r)};return f(this.rowCtrlsByRowIndex,o),f(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.rowContainerHeightService.updateOffset(),this.workOutFirstAndLastRowsToRender();var i=this.calculateIndexesToDraw(e);(this.removeRowCompsNotToDraw(i),this.printLayout&&(t=!1),i.forEach((function(i){r(o.createOrUpdateRowCtrl(i,e,t,n))})),e)&&(n&&!this.gridOptionsWrapper.isSuppressAnimationFrame()&&!this.printLayout?this.beans.animationFrameService.addDestroyTask((function(){o.destroyRowCtrls(e,t),o.updateAllRowCtrls(),o.dispatchDisplayedRowsChanged()})):this.destroyRowCtrls(e,t));this.updateAllRowCtrls(),this.gridBodyCtrl.updateRowCount()},t.prototype.dispatchDisplayedRowsChanged=function(){var e={type:Ve.EVENT_DISPLAYED_ROWS_CHANGED};this.eventService.dispatchEvent(e)},t.prototype.onDisplayedColumnsChanged=function(){var e=this.columnModel.isPinningLeft(),t=this.columnModel.isPinningRight();(this.pinningLeft!==e||t!==this.pinningRight)&&(this.pinningLeft=e,this.pinningRight=t,this.embedFullWidthRows&&this.redrawFullWidthEmbeddedRows())},t.prototype.redrawFullWidthEmbeddedRows=function(){var e=[];this.getFullWidthRowCtrls().forEach((function(t){var n=t.getRowNode().rowIndex;e.push(n.toString())})),this.refreshFloatingRowComps(),this.removeRowCtrls(e),this.redrawAfterScroll()},t.prototype.getFullWidthRowCtrls=function(e){var t=this,n=this.mapRowNodes(e);return _(this.rowCtrlsByRowIndex).filter((function(e){if(!e.isFullWidth())return!1;var o=e.getRowNode();return!(null!=n&&!t.isRowInMap(o,n))}))},t.prototype.refreshFullWidthRows=function(e){var t=[],n=!!e,o=n?{}:void 0;n&&o&&e.forEach((function(e){return o[e.id]=!0})),this.getFullWidthRowCtrls().forEach((function(e){var r=e.getRowNode();if(n&&o){var i=r.level>0&&r.parent?r.parent.id:void 0;if(!o[r.id]&&!o[i])return}if(!e.refreshFullWidth()){var s=e.getRowNode().rowIndex;t.push(s.toString())}})),this.removeRowCtrls(t),this.redrawAfterScroll()},t.prototype.createOrUpdateRowCtrl=function(e,t,n,o){var i,s=this.rowCtrlsByRowIndex[e];if(s||r(i=this.paginationProxy.getRow(e))&&r(t)&&t[i.id]&&i.alreadyRendered&&(s=t[i.id],t[i.id]=null),!s){if(i||(i=this.paginationProxy.getRow(e)),!r(i))return;s=this.createRowCon(i,n,o)}return i&&(i.alreadyRendered=!0),this.rowCtrlsByRowIndex[e]=s,s},t.prototype.destroyRowCtrls=function(e,t){var n=this,o=[];f(e,(function(e,r){r&&(n.cachedRowCtrls&&r.isCacheable()?n.cachedRowCtrls.addRow(r):(r.destroyFirstPass(),t?(n.zombieRowCtrls[r.getInstanceId()]=r,o.push((function(){r.destroySecondPass(),delete n.zombieRowCtrls[r.getInstanceId()]}))):r.destroySecondPass()))})),t&&(o.push((function(){n.updateAllRowCtrls(),n.dispatchDisplayedRowsChanged()})),M(o))},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.gridOptionsWrapper.getRowBufferInPixels(),r=this.ctrlsService.getGridBodyCtrl(),i=this.gridOptionsWrapper.isSuppressRowVirtualisation(),s=!1,a=void 0,l=void 0;do{var u=this.paginationProxy.getPixelOffset(),c=this.paginationProxy.getCurrentPagePixelRange(),p=c.pageFirstPixel,d=c.pageLastPixel,h=this.rowContainerHeightService.getDivStretchOffset();if(i)a=p+h,l=d+h;else{var f=r.getScrollFeature().getVScrollPosition(),g=f.top,m=f.bottom;a=Math.max(g+u-o,p)+h,l=Math.min(m+u+o,d)+h}s=this.ensureAllRowsInRangeHaveHeightsCalculated(a,l)}while(s);var v=this.paginationProxy.getRowIndexAtPixel(a),y=this.paginationProxy.getRowIndexAtPixel(l),C=this.paginationProxy.getPageFirstRow(),w=this.paginationProxy.getPageLastRow();v<C&&(v=C),y>w&&(y=w),e=v,t=y}else e=0,t=-1;var _=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_NORMAL,b=this.gridOptionsWrapper.isSuppressMaxRenderedRowRestriction(),E=Math.max(this.gridOptionsWrapper.getRowBuffer(),500);_&&!b&&t-e>E&&(t=e+E);var S=e!==this.firstRenderedRow,R=t!==this.lastRenderedRow;if(S||R){this.firstRenderedRow=e,this.lastRenderedRow=t;var O={type:Ve.EVENT_VIEWPORT_CHANGED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(O)}if(this.paginationProxy.isRowsToRender()){var T={type:Ve.EVENT_FIRST_DATA_RENDERED,firstRow:e,lastRow:t,api:this.gridApi,columnApi:this.columnApi};window.setTimeout((function(){return n.eventService.dispatchEventOnce(T)}),50)}},t.prototype.ensureAllRowsInRangeHaveHeightsCalculated=function(e,t){var n=this.paginationProxy.ensureRowHeightsValid(e,t,-1,-1);return n&&this.updateContainerHeights(),n},t.prototype.getFirstVirtualRenderedRow=function(){return this.firstRenderedRow},t.prototype.getLastVirtualRenderedRow=function(){return this.lastRenderedRow},t.prototype.doNotUnVirtualiseRow=function(e){var t=e.getRowNode(),n=this.focusService.isRowNodeFocused(t),o=e.isEditing(),r=t.detail;return!!(n||o||r)&&!!this.paginationProxy.isRowPresent(t)},t.prototype.createRowCon=function(e,t,n){var o=this.cachedRowCtrls?this.cachedRowCtrls.getRow(e):null;if(o)return o;var r=this.gridOptionsWrapper.isSuppressAnimationFrame(),i=n&&!r&&!this.printLayout;return new fl(e,this.beans,t,i,this.printLayout)},t.prototype.getRenderedNodes=function(){var e=this.rowCtrlsByRowIndex;return Object.keys(e).map((function(t){return e[t].getRowNode()}))},t.prototype.getRowByPosition=function(e){var t;switch(e.rowPinned){case oe.PINNED_TOP:t=this.topRowCtrls[e.rowIndex];break;case oe.PINNED_BOTTOM:t=this.bottomRowCtrls[e.rowIndex];break;default:t=this.rowCtrlsByRowIndex[e.rowIndex]}return t},t.prototype.getRowNode=function(e){switch(e.rowPinned){case oe.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case oe.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.isRangeInRenderedViewport=function(e,t){if(null==e||null==t)return!1;var n=e>this.lastRenderedRow;return!(t<this.firstRenderedRow)&&!n},pp([K("paginationProxy")],t.prototype,"paginationProxy",void 0),pp([K("columnModel")],t.prototype,"columnModel",void 0),pp([K("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),pp([K("rowModel")],t.prototype,"rowModel",void 0),pp([K("focusService")],t.prototype,"focusService",void 0),pp([K("columnApi")],t.prototype,"columnApi",void 0),pp([K("gridApi")],t.prototype,"gridApi",void 0),pp([K("beans")],t.prototype,"beans",void 0),pp([K("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),pp([q("ctrlsService")],t.prototype,"ctrlsService",void 0),pp([z],t.prototype,"postConstruct",null),t=pp([Y("rowRenderer")],t)}(Fe),gp=function(){function e(e){this.entriesMap={},this.entriesList=[],this.maxCount=e}return e.prototype.addRow=function(e){if(this.entriesMap[e.getRowNode().id]=e,this.entriesList.push(e),e.setCached(!0),this.entriesList.length>this.maxCount){var t=this.entriesList[0];t.destroyFirstPass(),t.destroySecondPass(),this.removeFromCache(t)}},e.prototype.getRow=function(e){if(null==e||null==e.id)return null;var t=this.entriesMap[e.id];return t?(this.removeFromCache(t),t.setCached(!1),t.getRowNode()!=e?null:t):null},e.prototype.removeFromCache=function(e){var t=e.getRowNode().id;delete this.entriesMap[t],de(this.entriesList,e)},e.prototype.getEntries=function(){return this.entriesList},e}(),mp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),vp=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},yp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mp(t,e),t.prototype.formatValue=function(e,t,n,o,r){void 0===r&&(r=!0);var i,s=null,a=e.getColDef();if(o?i=o:r&&(i=t&&t.rowPinned&&a.pinnedRowValueFormatter?a.pinnedRowValueFormatter:a.valueFormatter),i){var l={value:n,node:t,data:t?t.data:null,colDef:a,column:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};s=this.expressionService.evaluate(i,l)}else if(a.refData)return a.refData[n]||"";return null==s&&Array.isArray(n)&&(s=n.join(", ")),s},vp([K("expressionService")],t.prototype,"expressionService",void 0),t=vp([Y("valueFormatterService")],t)}(Fe),Cp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),wp=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},_p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Cp(t,e),t.prototype.init=function(){this.setPinnedTopRowData(this.gridOptionsWrapper.getPinnedTopRowData()),this.setPinnedBottomRowData(this.gridOptionsWrapper.getPinnedBottomRowData())},t.prototype.isEmpty=function(e){return s(e===oe.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows)},t.prototype.isRowsToRender=function(e){return!this.isEmpty(e)},t.prototype.getRowAtPixel=function(e,t){var n=t===oe.PINNED_TOP?this.pinnedTopRows:this.pinnedBottomRows;if(s(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},t.prototype.setPinnedTopRowData=function(e){this.pinnedTopRows=this.createNodesFromData(e,!0);var t={type:Ve.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.setPinnedBottomRowData=function(e){this.pinnedBottomRows=this.createNodesFromData(e,!1);var t={type:Ve.EVENT_PINNED_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.createNodesFromData=function(e,t){var n=this,o=[];if(e){var r=0;e.forEach((function(e,i){var s=new Yi(n.beans);s.data=e;var a=t?Yi.ID_PREFIX_TOP_PINNED:Yi.ID_PREFIX_BOTTOM_PINNED;s.id=a+i,s.rowPinned=t?oe.PINNED_TOP:oe.PINNED_BOTTOM,s.setRowTop(r),s.setRowHeight(n.gridOptionsWrapper.getRowHeightForNode(s).height),s.setRowIndex(i),r+=s.rowHeight,o.push(s)}))}return o},t.prototype.getPinnedTopRowData=function(){return this.pinnedTopRows},t.prototype.getPinnedBottomRowData=function(){return this.pinnedBottomRows},t.prototype.getPinnedTopTotalHeight=function(){return this.getTotalHeight(this.pinnedTopRows)},t.prototype.getPinnedTopRowCount=function(){return this.pinnedTopRows?this.pinnedTopRows.length:0},t.prototype.getPinnedBottomRowCount=function(){return this.pinnedBottomRows?this.pinnedBottomRows.length:0},t.prototype.getPinnedTopRow=function(e){return this.pinnedTopRows[e]},t.prototype.getPinnedBottomRow=function(e){return this.pinnedBottomRows[e]},t.prototype.forEachPinnedTopRow=function(e){s(this.pinnedTopRows)||this.pinnedTopRows.forEach(e)},t.prototype.forEachPinnedBottomRow=function(e){s(this.pinnedBottomRows)||this.pinnedBottomRows.forEach(e)},t.prototype.getPinnedBottomTotalHeight=function(){return this.getTotalHeight(this.pinnedBottomRows)},t.prototype.getTotalHeight=function(e){if(!e||0===e.length)return 0;var t=ue(e);return t.rowTop+t.rowHeight},wp([K("columnApi")],t.prototype,"columnApi",void 0),wp([K("gridApi")],t.prototype,"gridApi",void 0),wp([K("beans")],t.prototype,"beans",void 0),wp([z],t.prototype,"init",null),t=wp([Y("pinnedRowModel")],t)}(Fe);(Qc=t.ServerSideTransactionResultStatus||(t.ServerSideTransactionResultStatus={})).Applied="Applied",Qc.StoreNotFound="StoreNotFound",Qc.StoreLoading="StoreLoading",Qc.StoreWaitingToLoad="StoreWaitingToLoad",Qc.StoreLoadingFailed="StoreLoadingFailed",Qc.StoreWrongType="StoreWrongType",Qc.Cancelled="Cancelled";var bp,Ep=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}(),Sp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Rp=function(e){function t(n){var o=e.call(this)||this;return o.state=t.STATE_WAITING_TO_LOAD,o.version=0,o.id=n,o}return Sp(t,e),t.prototype.getId=function(){return this.id},t.prototype.load=function(){this.state=t.STATE_LOADING,this.loadFromDatasource()},t.prototype.getVersion=function(){return this.version},t.prototype.setStateWaitingToLoad=function(){this.version++,this.state=t.STATE_WAITING_TO_LOAD},t.prototype.getState=function(){return this.state},t.prototype.pageLoadFailed=function(e){this.isRequestMostRecentAndLive(e)&&(this.state=t.STATE_FAILED,this.processServerFail()),this.dispatchLoadCompleted(!1)},t.prototype.success=function(e,t){this.successCommon(e,t)},t.prototype.pageLoaded=function(e,t,n){this.successCommon(e,{rowData:t,rowCount:n})},t.prototype.isRequestMostRecentAndLive=function(e){var t=e===this.version,n=this.isAlive();return t&&n},t.prototype.successCommon=function(e,n){this.dispatchLoadCompleted(),this.isRequestMostRecentAndLive(e)&&(this.state=t.STATE_LOADED,this.processServerResult(n))},t.prototype.dispatchLoadCompleted=function(e){void 0===e&&(e=!0);var n={type:t.EVENT_LOAD_COMPLETE,success:e,block:this};this.dispatchEvent(n)},t.EVENT_LOAD_COMPLETE="loadComplete",t.STATE_WAITING_TO_LOAD="needsLoading",t.STATE_LOADING="loading",t.STATE_LOADED="loaded",t.STATE_FAILED="failed",t}(Fe),Op=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Tp=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},Pp=function(e,t){return function(n,o){t(n,o,e)}},Ap=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activeBlockLoadsCount=0,t.blocks=[],t.active=!0,t}var n;return Op(t,e),n=t,t.prototype.postConstruct=function(){this.maxConcurrentRequests=this.gridOptionsWrapper.getMaxConcurrentDatasourceRequests();var e=this.gridOptionsWrapper.getBlockLoadDebounceMillis();e&&e>0&&(this.checkBlockToLoadDebounce=Wo.debounce(this.performCheckBlocksToLoad.bind(this),e))},t.prototype.setBeans=function(e){this.logger=e.create("RowNodeBlockLoader")},t.prototype.addBlock=function(e){this.blocks.push(e),e.addEventListener(Rp.EVENT_LOAD_COMPLETE,this.loadComplete.bind(this)),this.checkBlockToLoad()},t.prototype.removeBlock=function(e){Wo.removeFromArray(this.blocks,e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.active=!1},t.prototype.loadComplete=function(){this.activeBlockLoadsCount--,this.checkBlockToLoad(),0==this.activeBlockLoadsCount&&this.dispatchEvent({type:n.BLOCK_LOADER_FINISHED_EVENT})},t.prototype.checkBlockToLoad=function(){this.checkBlockToLoadDebounce?this.checkBlockToLoadDebounce():this.performCheckBlocksToLoad()},t.prototype.performCheckBlocksToLoad=function(){if(this.active)if(this.printCacheStatus(),null!=this.maxConcurrentRequests&&this.activeBlockLoadsCount>=this.maxConcurrentRequests)this.logger.log("checkBlockToLoad: max loads exceeded");else{var e=null;this.blocks.forEach((function(t){t.getState()===Rp.STATE_WAITING_TO_LOAD&&(e=t)})),e&&(e.load(),this.activeBlockLoadsCount++,this.printCacheStatus())}},t.prototype.getBlockState=function(){var e={};return this.blocks.forEach((function(t){var n=t.getBlockStateJson(),o=n.id,r=n.state;e[o]=r})),e},t.prototype.printCacheStatus=function(){this.logger.isLogging()&&this.logger.log("printCacheStatus: activePageLoadsCount = "+this.activeBlockLoadsCount+", blocks = "+JSON.stringify(this.getBlockState()))},t.prototype.isLoading=function(){return this.activeBlockLoadsCount>0},t.BLOCK_LOADER_FINISHED_EVENT="blockLoaderFinished",Tp([z],t.prototype,"postConstruct",null),Tp([Pp(0,Q("loggerFactory"))],t.prototype,"setBeans",null),t=n=Tp([Y("rowNodeBlockLoader")],t)}(Fe),Dp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),xp=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},Np=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 Dp(t,e),t.prototype.postConstruct=function(){this.active=this.gridOptionsWrapper.isPagination(),this.paginateChildRows=this.gridOptionsWrapper.isPaginateChildRows(),this.addManagedListener(this.eventService,Ve.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(this.gridOptionsWrapper,"paginationPageSize",this.onPaginationPageSizeChanged.bind(this)),this.onModelUpdated()},t.prototype.ensureRowHeightsValid=function(e,t,n,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:Ve.EVENT_PAGINATION_CHANGED,animate:!!e&&e.animate,newData:!!e&&e.newData,newPage:!!e&&e.newPage,keepRenderedRows:!!e&&e.keepRenderedRows,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.onPaginationPageSizeChanged=function(){this.calculatePages();var e={type:Ve.EVENT_PAGINATION_CHANGED,animate:!1,newData:!1,newPage:!1,keepRenderedRows:!0,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(e)},t.prototype.goToPage=function(e){if(this.active&&this.currentPage!==e){this.currentPage=e;var t={type:Ve.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 i(this.topRowBounds)||i(this.bottomRowBounds)?0:Math.max(this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight-this.topRowBounds.rowTop,0)},t.prototype.getCurrentPagePixelRange=function(){return{pageFirstPixel:this.topRowBounds?this.topRowBounds.rowTop:0,pageLastPixel:this.bottomRowBounds?this.bottomRowBounds.rowTop+this.bottomRowBounds.rowHeight:0}},t.prototype.isRowPresent=function(e){return!!this.rowModel.isRowPresent(e)&&(e.rowIndex>=this.topDisplayedRowIndex&&e.rowIndex<=this.bottomDisplayedRowIndex)},t.prototype.isEmpty=function(){return this.rowModel.isEmpty()},t.prototype.isRowsToRender=function(){return this.rowModel.isRowsToRender()},t.prototype.getNodesInRangeForSelection=function(e,t){return this.rowModel.getNodesInRangeForSelection(e,t)},t.prototype.forEachNode=function(e){return this.rowModel.forEachNode(e)},t.prototype.getType=function(){return this.rowModel.getType()},t.prototype.getRowBounds=function(e){var t=this.rowModel.getRowBounds(e);return t.rowIndex=e,t},t.prototype.getPageFirstRow=function(){return this.topRowBounds?this.topRowBounds.rowIndex:-1},t.prototype.getPageLastRow=function(){return this.bottomRowBounds?this.bottomRowBounds.rowIndex:-1},t.prototype.getRowCount=function(){return this.rowModel.getRowCount()},t.prototype.getPageForIndex=function(e){return Math.floor(e/this.pageSize)},t.prototype.goToPageWithIndex=function(e){if(this.active){var t=this.getPageForIndex(e);this.goToPage(t)}},t.prototype.isRowInPage=function(e){return!this.active||this.getPageForIndex(e.rowIndex)===this.currentPage},t.prototype.isLastPageFound=function(){return this.rowModel.isLastRowIndexKnown()},t.prototype.getCurrentPage=function(){return this.currentPage},t.prototype.goToNextPage=function(){this.goToPage(this.currentPage+1)},t.prototype.goToPreviousPage=function(){this.goToPage(this.currentPage-1)},t.prototype.goToFirstPage=function(){this.goToPage(0)},t.prototype.goToLastPage=function(){var e=this.rowModel.getRowCount(),t=Math.floor(e/this.pageSize);this.goToPage(t)},t.prototype.getPageSize=function(){return this.pageSize},t.prototype.getTotalPages=function(){return this.totalPages},t.prototype.setPageSize=function(){this.pageSize=this.gridOptionsWrapper.getPaginationPageSize(),(null==this.pageSize||this.pageSize<1)&&(this.pageSize=100)},t.prototype.calculatePages=function(){this.active?(this.setPageSize(),this.paginateChildRows?this.calculatePagesAllRows():this.calculatePagesMasterRowsOnly()):this.calculatedPagesNotActive(),this.topRowBounds=this.rowModel.getRowBounds(this.topDisplayedRowIndex),this.topRowBounds&&(this.topRowBounds.rowIndex=this.topDisplayedRowIndex),this.bottomRowBounds=this.rowModel.getRowBounds(this.bottomDisplayedRowIndex),this.bottomRowBounds&&(this.bottomRowBounds.rowIndex=this.bottomDisplayedRowIndex),this.setPixelOffset(r(this.topRowBounds)?this.topRowBounds.rowTop:0)},t.prototype.setPixelOffset=function(e){this.pixelOffset!==e&&(this.pixelOffset=e,this.eventService.dispatchEvent({type:Ve.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED}))},t.prototype.setZeroRows=function(){this.masterRowCount=0,this.topDisplayedRowIndex=0,this.bottomDisplayedRowIndex=-1,this.currentPage=0,this.totalPages=0},t.prototype.calculatePagesMasterRowsOnly=function(){if(this.masterRowCount=this.rowModel.getTopLevelRowCount(),this.masterRowCount<=0)this.setZeroRows();else{var e=this.masterRowCount-1;this.totalPages=Math.floor(e/this.pageSize)+1,this.currentPage>=this.totalPages&&(this.currentPage=this.totalPages-1),(!fo(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}}},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),(!fo(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},xp([K("rowModel")],t.prototype,"rowModel",void 0),xp([K("columnApi")],t.prototype,"columnApi",void 0),xp([K("gridApi")],t.prototype,"gridApi",void 0),xp([z],t.prototype,"postConstruct",null),t=xp([Y("paginationProxy")],t)}(Fe),Mp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Ip=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},Lp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Mp(t,e),t.prototype.processAllCellClasses=function(e,t,n,o){this.processClassRules(e.cellClassRules,t,n,o),this.processStaticCellClasses(e,t,n)},t.prototype.processClassRules=function(e,t,n,o){if(null!=e){for(var r=Object.keys(e),i={},s={},a=function(n){var o,a=r[n],u=e[a];"string"===typeof u?o=l.expressionService.evaluate(u,t):"function"===typeof u&&(o=u(t)),a.split(" ").forEach((function(e){null!=e&&""!=e.trim()&&(o?i[e]=!0:s[e]=!0)}))},l=this,u=0;u<r.length;u++)a(u);o&&Object.keys(s).forEach(o),Object.keys(i).forEach(n)}},t.prototype.getStaticCellClasses=function(e,t){var n,o=e.cellClass;if(!o)return[];"function"===typeof o?n=o(t):n=o;return"string"===typeof n&&(n=[n]),n||[]},t.prototype.processStaticCellClasses=function(e,t,n){this.getStaticCellClasses(e,t).forEach((function(e){n(e)}))},Ip([K("expressionService")],t.prototype,"expressionService",void 0),t=Ip([Y("stylingService")],t)}(Fe),Fp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),kp=function(e){function t(t){return e.call(this,t,"ag-radio-button","radio")||this}return Fp(t,e),t.prototype.isSelected=function(){return this.eInput.checked},t.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},t.prototype.addInputListeners=function(){e.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,Ve.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}(ic),Gp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Hp=function(e){function t(t){return e.call(this,t,"ag-toggle-button")||this}return Gp(t,e),t.prototype.setValue=function(t,n){return e.prototype.setValue.call(this,t,n),this.addOrRemoveCssClass("ag-selected",this.getValue()),this},t}(ic),Bp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Vp=function(e){function t(t,n,o){return void 0===n&&(n="ag-text-field"),void 0===o&&(o="text"),e.call(this,t,n,o)||this}return Bp(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},t.prototype.setValue=function(t,n){var o=e.prototype.setValue.call(this,t,n);return this.eInput.value!==t&&(this.eInput.value=r(t)?t:""),o},t.prototype.preventDisallowedCharacters=function(){var e=new RegExp("["+this.config.allowedCharPattern+"]");this.addManagedListener(this.eInput,"keypress",(function(t){t.key&&!e.test(t.key)&&t.preventDefault()})),this.addManagedListener(this.eInput,"paste",(function(t){var n,o=null===(n=t.clipboardData)||void 0===n?void 0:n.getData("text");o&&o.split("").some((function(t){return!e.test(t)}))&&t.preventDefault()}))},t}(Fr),Wp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),jp=function(e){function t(t){return e.call(this,t,"ag-text-area",null,"textarea")||this}return Wp(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}(Fr),Up=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),zp=function(e){function t(t){return e.call(this,t,"ag-number-field","number")||this}return Up(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",(function(){var e=parseFloat(t.eInput.value),n=isNaN(e)?"":t.normalizeValue(e.toString());t.value!==n&&t.setValue(n)})),this.eInput.step="any"},t.prototype.normalizeValue=function(e){if(""===e)return"";this.precision&&(e=this.adjustPrecision(e));var t=parseFloat(e);return null!=this.min&&t<this.min?e=this.min.toString():null!=this.max&&t>this.max&&(e=this.max.toString()),e},t.prototype.adjustPrecision=function(e){if(this.precision){var t=parseFloat(e).toFixed(this.precision);e=parseFloat(t).toString()}return e},t.prototype.setMin=function(e){return this.min===e||(this.min=e,Mn(this.eInput,"min",e)),this},t.prototype.setMax=function(e){return this.max===e||(this.max=e,Mn(this.eInput,"max",e)),this},t.prototype.setPrecision=function(e){return this.precision=e,this},t.prototype.setStep=function(e){return this.step===e||(this.step=e,Mn(this.eInput,"step",e)),this},t.prototype.setValue=function(t,n){return(t=this.adjustPrecision(t))!=this.normalizeValue(t)?this:e.prototype.setValue.call(this,t,n)},t}(Vp),Zp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Yp=function(e){function t(t){return e.call(this,t,"ag-range-field","range")||this}return Zp(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;this.addManagedListener(this.eInput,"input",(function(t){var n=t.target.value;e.setValue(n)}))},t.prototype.setMinValue=function(e){return this.min=e,this.eInput.setAttribute("min",e.toString()),this},t.prototype.setMaxValue=function(e){return this.max=e,this.eInput.setAttribute("max",e.toString()),this},t.prototype.setStep=function(e){return this.eInput.setAttribute("step",e.toString()),this},t.prototype.setValue=function(t,n){null!=this.min&&(t=Math.max(parseFloat(t),this.min).toString()),null!=this.max&&(t=Math.min(parseFloat(t),this.max).toString());var o=e.prototype.setValue.call(this,t,n);return this.eInput.value=t,o},t}(Fr),Kp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),qp=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},Xp=function(e){function t(n){var o=e.call(this,n,t.TEMPLATE)||this;return o.labelAlignment="top",o}return Kp(t,e),t.prototype.init=function(){this.eSlider.addCssClass("ag-slider-field")},t.prototype.onValueChange=function(e){var t=this,n=Sr.EVENT_CHANGED;return this.addManagedListener(this.eText,n,(function(){var n=parseFloat(t.eText.getValue());t.eSlider.setValue(n.toString(),!0),e(n||0)})),this.addManagedListener(this.eSlider,n,(function(){var n=t.eSlider.getValue();t.eText.setValue(n,!0),e(parseFloat(n))})),this},t.prototype.setSliderWidth=function(e){return this.eSlider.setWidth(e),this},t.prototype.setTextFieldWidth=function(e){return this.eText.setWidth(e),this},t.prototype.setMinValue=function(e){return this.eSlider.setMinValue(e),this.eText.setMin(e),this},t.prototype.setMaxValue=function(e){return this.eSlider.setMaxValue(e),this.eText.setMax(e),this},t.prototype.getValue=function(){return this.eText.getValue()},t.prototype.setValue=function(e){return this.getValue()===e||(this.eText.setValue(e,!0),this.eSlider.setValue(e,!0),this.dispatchEvent({type:Sr.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>',qp([nr("eLabel")],t.prototype,"eLabel",void 0),qp([nr("eSlider")],t.prototype,"eSlider",void 0),qp([nr("eText")],t.prototype,"eText",void 0),qp([z],t.prototype,"init",null),t}(br),Qp=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Jp=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},$p=function(e){function t(n){var o=e.call(this,n,t.TEMPLATE)||this;return o.radius=0,o.offsetX=0,o.offsetY=0,o}return Qp(t,e),t.prototype.postConstruct=function(){var t=this;e.prototype.postConstruct.call(this),this.dragListener={eElement:this.eParentCircle,dragStartPixels:0,onDragStart:function(e){t.parentCircleRect=t.eParentCircle.getBoundingClientRect()},onDragging:function(e){return t.calculateAngleDrag(e)},onDragStop:function(){}},this.dragService.addDragSource(this.dragListener),this.eAngleValue.setLabel("").setLabelWidth(5).setInputWidth(45).setMin(0).setMax(360).setValue(""+this.degrees).onValueChange((function(e){null!=e&&""!==e||(e="0"),e=t.eAngleValue.normalizeValue(e);var n=parseFloat(e);n>180&&(n-=360),t.setValue(n)})),this.updateNumberInput(),r(this.getValue())&&this.eAngleValue.setValue(this.normalizeNegativeValue(this.getValue()).toString()),this.addManagedListener(this,Sr.EVENT_CHANGED,(function(){var e=t.gridOptionsWrapper.getDocument();t.eAngleValue.getInputElement().contains(e.activeElement)||t.updateNumberInput()}))},t.prototype.updateNumberInput=function(){var e=this.normalizeNegativeValue(this.getValue());this.eAngleValue.setValue(e.toString())},t.prototype.positionChildCircle=function(e){var t=this.parentCircleRect||{width:24,height:24},n=this.eChildCircle,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.addManagedListener(this,Sr.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:Sr.EVENT_CHANGED})),this},t.prototype.setWidth=function(e){return Rn(this.getGui(),e),this},t.prototype.destroy=function(){this.dragService.removeDragSource(this.dragListener),e.prototype.destroy.call(this)},t.TEMPLATE='<div class="ag-angle-select">\n            <div ref="eLabel"></div>\n            <div class="ag-wrapper ag-angle-select-wrapper">\n                <div ref="eAngleSelectField" class="ag-angle-select-field">\n                    <div ref="eParentCircle" class="ag-angle-select-parent-circle">\n                        <div ref="eChildCircle" class="ag-angle-select-child-circle"></div>\n                    </div>\n                </div>\n                <ag-input-number-field ref="eAngleValue"></ag-input-number-field>\n            </div>\n        </div>',Jp([nr("eLabel")],t.prototype,"eLabel",void 0),Jp([nr("eParentCircle")],t.prototype,"eParentCircle",void 0),Jp([nr("eChildCircle")],t.prototype,"eChildCircle",void 0),Jp([nr("eAngleValue")],t.prototype,"eAngleValue",void 0),Jp([K("dragService")],t.prototype,"dragService",void 0),t}(br),ed=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),td=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},nd=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},od=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 ed(t,e),t.prototype.postConstruct=function(){var e=this.getGui();this.initRecentColors(),this.addManagedListener(this.spectrumVal,"mousedown",this.onSpectrumDraggerDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumDraggerMove.bind(this)),this.addManagedListener(this.spectrumHue,"mousedown",this.onSpectrumHueDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumHueMove.bind(this)),this.addManagedListener(this.spectrumAlpha,"mousedown",this.onSpectrumAlphaDown.bind(this)),this.addManagedListener(e,"mousemove",this.onSpectrumAlphaMove.bind(this)),this.addManagedListener(document,"mouseup",this.onMouseUp.bind(this)),this.addManagedListener(this.recentColors,"click",this.onRecentColorClick.bind(this))},t.prototype.refreshSpectrumRect=function(){return this.spectrumValRect=this.spectrumVal.getBoundingClientRect()},t.prototype.refreshHueRect=function(){return this.spectrumHueRect=this.spectrumHue.getBoundingClientRect()},t.prototype.refreshAlphaRect=function(){return this.spectrumAlphaRect=this.spectrumAlpha.getBoundingClientRect()},t.prototype.onSpectrumDraggerDown=function(e){this.refreshSpectrumRect(),this.isSpectrumDragging=!0,this.moveDragger(e)},t.prototype.onSpectrumDraggerMove=function(e){this.isSpectrumDragging&&this.moveDragger(e)},t.prototype.onSpectrumHueDown=function(e){this.refreshHueRect(),this.isSpectrumHueDragging=!0,this.moveHueSlider(e)},t.prototype.onSpectrumHueMove=function(e){this.isSpectrumHueDragging&&this.moveHueSlider(e)},t.prototype.onSpectrumAlphaDown=function(e){this.refreshAlphaRect(),this.isSpectrumAlphaDragging=!0,this.moveAlphaSlider(e)},t.prototype.onSpectrumAlphaMove=function(e){this.isSpectrumAlphaDragging&&this.moveAlphaSlider(e)},t.prototype.onMouseUp=function(){this.isSpectrumDragging=!1,this.isSpectrumHueDragging=!1,this.isSpectrumAlphaDragging=!1},t.prototype.moveDragger=function(e){var t=this.spectrumValRect;if(t){var n=e.clientX-t.left,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=Ot.fromHSB(360*this.H,this.S,this.B,this.A),t=Ot.fromHSB(360*this.H,1,1),n=e.toRgbaString(),o=this.picker;Ot.fromString(o.getValue()).toRgbaString()!==n&&(this.colorChanged=!0),o.setValue(n),this.spectrumColor.style.backgroundColor=t.toRgbaString(),this.spectrumDragger.style.backgroundColor=n},t.prototype.setSpectrumValue=function(e,t){var n=this.spectrumValRect||this.refreshSpectrumRect();if(n){var 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=Ot.fromString(e),n=nd(t.toHSB(),3),o=n[0],r=n[1],i=n[2];this.H=(isNaN(o)?0:o)/360,this.A=t.a;var s=this.spectrumHueRect||this.refreshHueRect(),a=this.spectrumAlphaRect||this.refreshAlphaRect();this.spectrumHueSlider.style.left=(this.H-1)*-s.width+"px",this.spectrumAlphaSlider.style.left=this.A*a.width+"px",this.setSpectrumValue(r,i)},t.prototype.onRecentColorClick=function(e){var n=e.target;if(r(n.id)){var o=parseInt(n.id,10);this.setValue(t.recentColors[o]),this.destroy()}},t.prototype.addRecentColor=function(){var e=Ot.fromHSB(360*this.H,this.S,this.B,this.A).toRgbaString(),n=t.recentColors;this.colorChanged&&n[0]!==e&&(n=n.filter((function(t){return t!=e})),(n=[e].concat(n)).length>t.maxRecentColors&&(n=n.slice(0,t.maxRecentColors)),t.recentColors=n)},t.prototype.destroy=function(){this.addRecentColor(),e.prototype.destroy.call(this)},t.maxRecentColors=8,t.recentColors=[],t.TEMPLATE='<div class="ag-color-panel">\n            <div ref="spectrumColor" class="ag-spectrum-color">\n                <div class="ag-spectrum-sat ag-spectrum-fill">\n                    <div ref="spectrumVal" class="ag-spectrum-val ag-spectrum-fill">\n                        <div ref="spectrumDragger" class="ag-spectrum-dragger"></div>\n                    </div>\n                </div>\n            </div>\n            <div class="ag-spectrum-tools">\n                <div ref="spectrumHue" class="ag-spectrum-hue ag-spectrum-tool">\n                    <div class="ag-spectrum-hue-background"></div>\n                    <div ref="spectrumHueSlider" class="ag-spectrum-slider"></div>\n                </div>\n                <div ref="spectrumAlpha" class="ag-spectrum-alpha ag-spectrum-tool">\n                    <div class="ag-spectrum-alpha-background"></div>\n                    <div ref="spectrumAlphaSlider" class="ag-spectrum-slider"></div>\n                </div>\n                <div ref="recentColors" class="ag-recent-colors"></div>\n            </div>\n        </div>',td([nr("spectrumColor")],t.prototype,"spectrumColor",void 0),td([nr("spectrumVal")],t.prototype,"spectrumVal",void 0),td([nr("spectrumDragger")],t.prototype,"spectrumDragger",void 0),td([nr("spectrumHue")],t.prototype,"spectrumHue",void 0),td([nr("spectrumHueSlider")],t.prototype,"spectrumHueSlider",void 0),td([nr("spectrumAlpha")],t.prototype,"spectrumAlpha",void 0),td([nr("spectrumAlphaSlider")],t.prototype,"spectrumAlphaSlider",void 0),td([nr("recentColors")],t.prototype,"recentColors",void 0),td([z],t.prototype,"postConstruct",null),t}(tr),rd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),id=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},sd=function(e){function t(n){var o=e.call(this,t.getTemplate(n))||this;return o.closable=!0,o.config=n,o}return rd(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=void 0===s?250:s,l=t.width,u=t.minHeight,c=void 0===u?250:u,p=t.height,d=t.centered,h=t.popup,f=t.x,g=t.y;this.positionableFeature=new sp(this.getGui(),{minWidth:a,width:l,minHeight:c,height:p,centered:d,x:f,y:g,popup:h,calculateTopBuffer:function(){return e.positionableFeature.getHeight()-e.getBodyHeight()}}),this.createManagedBean(this.positionableFeature);var m=this.getGui();n&&this.setBodyComponent(n),r?this.eTitleBar.classList.add("ag-hidden"):(i&&this.setTitle(i),this.setClosable(null!=o?o:this.closable)),this.addManagedListener(this.eTitleBar,"mousedown",(function(t){var n=e.gridOptionsWrapper.getDocument();if(m.contains(t.relatedTarget)||m.contains(n.activeElement)||e.eTitleBarButtons.contains(t.target))t.preventDefault();else{var o=e.eContentWrapper.querySelector("button, [href], input, select, textarea, [tabindex]");o&&o.focus()}})),h&&this.positionableFeature.isPositioned()||(this.renderComponent&&this.renderComponent(),this.positionableFeature.initialisePosition(),this.eContentWrapper.style.height="0")},t.prototype.renderComponent=function(){var e=this,t=this.getGui();t.focus(),this.close=function(){t.parentElement.removeChild(t),e.destroy()}},t.prototype.getHeight=function(){return this.positionableFeature.getHeight()},t.prototype.setHeight=function(e){this.positionableFeature.setHeight(e)},t.prototype.getWidth=function(){return this.positionableFeature.getWidth()},t.prototype.setWidth=function(e){this.positionableFeature.setWidth(e)},t.prototype.setClosable=function(e){if(e!==this.closable&&(this.closable=e),e){var n=this.closeButtonComp=new tr(t.CLOSE_BTN_TEMPLATE);this.getContext().createBean(n);var o=n.getGui(),r=Ao("close",this.gridOptionsWrapper);r.classList.add("ag-panel-title-bar-button-icon"),o.appendChild(r),this.addTitleBarButton(n),n.addManagedListener(o,"click",this.onBtClose.bind(this))}else if(this.closeButtonComp){(o=this.closeButtonComp.getGui()).parentElement.removeChild(o),this.closeButtonComp=this.destroyBean(this.closeButtonComp)}},t.prototype.setBodyComponent=function(e){e.setParentComponent(this),this.eContentWrapper.appendChild(e.getGui())},t.prototype.addTitleBarButton=function(e,t){var n=this.eTitleBarButtons,o=n.children,r=o.length;null==t&&(t=r),t=Math.max(0,Math.min(t,r)),e.addCssClass("ag-panel-title-bar-button");var i=e.getGui();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 rn(this.eContentWrapper)},t.prototype.getBodyWidth=function(){return sn(this.eContentWrapper)},t.prototype.setTitle=function(e){this.eTitle.innerText=e},t.prototype.onBtClose=function(){this.close()},t.prototype.destroy=function(){this.closeButtonComp&&(this.closeButtonComp=this.destroyBean(this.closeButtonComp));var t=this.getGui();t&&t.offsetParent&&this.close(),e.prototype.destroy.call(this)},t.CLOSE_BTN_TEMPLATE='<div class="ag-button"></div>',id([nr("eContentWrapper")],t.prototype,"eContentWrapper",void 0),id([nr("eTitleBar")],t.prototype,"eTitleBar",void 0),id([nr("eTitleBarButtons")],t.prototype,"eTitleBarButtons",void 0),id([nr("eTitle")],t.prototype,"eTitle",void 0),id([z],t.prototype,"postConstruct",null),t}(tr),ad=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),ld=function(){return ld=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},ld.apply(this,arguments)},ud=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},cd=function(e){function t(t){var n=e.call(this,ld(ld({},t),{popup:!0}))||this;return n.isMaximizable=!1,n.isMaximized=!1,n.maximizeListeners=[],n.resizeListenerDestroy=null,n.lastPosition={x:0,y:0,width:0,height:0},n}return ad(t,e),t.prototype.postConstruct=function(){var t=this,n=this.getGui(),o=this.config,r=o.movable,i=o.resizable,s=o.maximizable;this.addCssClass("ag-dialog"),e.prototype.postConstruct.call(this),this.addManagedListener(n,"focusin",(function(e){n.contains(e.relatedTarget)||t.popupService.bringPopupToFront(n)})),r&&this.setMovable(r),s&&this.setMaximizable(s),i&&this.setResizable(i)},t.prototype.renderComponent=function(){var e=this.getGui(),t=this.config,n=t.alwaysOnTop,o=t.modal,r=t.title,i=this.gridOptionsWrapper.getLocaleTextFunc(),s=this.popupService.addPopup({modal:o,eChild:e,closeOnEsc:!0,closedCallback:this.destroy.bind(this),alwaysOnTop:n,ariaLabel:r||i("ariaLabelDialog","Dialog")});s&&(this.close=s.hideFunc)},t.prototype.toggleMaximize=function(){var e=this.positionableFeature.getPosition();if(this.isMaximized){var t=this.lastPosition,n=t.x,o=t.y,r=t.width,i=t.height;this.setWidth(r),this.setHeight(i),this.positionableFeature.offsetElement(n,o)}else this.lastPosition.width=this.getWidth(),this.lastPosition.height=this.getHeight(),this.lastPosition.x=e.x,this.lastPosition.y=e.y,this.positionableFeature.offsetElement(0,0),this.setHeight("100%"),this.setWidth("100%");this.isMaximized=!this.isMaximized,this.refreshMaximizeIcon()},t.prototype.refreshMaximizeIcon=function(){$t(this.maximizeIcon,!this.isMaximized),$t(this.minimizeIcon,this.isMaximized)},t.prototype.clearMaximizebleListeners=function(){this.maximizeListeners.length&&(this.maximizeListeners.forEach((function(e){return e()})),this.maximizeListeners.length=0),this.resizeListenerDestroy&&(this.resizeListenerDestroy(),this.resizeListenerDestroy=null)},t.prototype.destroy=function(){this.maximizeButtonComp=this.destroyBean(this.maximizeButtonComp),this.clearMaximizebleListeners(),e.prototype.destroy.call(this)},t.prototype.setResizable=function(e){this.positionableFeature.setResizable(e)},t.prototype.setMovable=function(e){this.positionableFeature.setMovable(e,this.eTitleBar)},t.prototype.setMaximizable=function(e){var t=this;if(!e)return this.clearMaximizebleListeners(),void(this.maximizeButtonComp&&(this.destroyBean(this.maximizeButtonComp),this.maximizeButtonComp=this.maximizeIcon=this.minimizeIcon=void 0));var n=this.eTitleBar;if(n&&e!==this.isMaximizable){var o=this.maximizeButtonComp=this.createBean(new tr('<div class="ag-dialog-button"></span>')),r=o.getGui();r.appendChild(this.maximizeIcon=Ao("maximize",this.gridOptionsWrapper)),this.maximizeIcon.classList.add("ag-panel-title-bar-button-icon"),r.appendChild(this.minimizeIcon=Ao("minimize",this.gridOptionsWrapper)),this.minimizeIcon.classList.add("ag-panel-title-bar-button-icon","ag-hidden"),o.addManagedListener(r,"click",this.toggleMaximize.bind(this)),this.addTitleBarButton(o,0),this.maximizeListeners.push(this.addManagedListener(n,"dblclick",this.toggleMaximize.bind(this))),this.resizeListenerDestroy=this.addManagedListener(this,"resize",(function(){t.isMaximized=!1,t.refreshMaximizeIcon()}))}},ud([K("popupService")],t.prototype,"popupService",void 0),t}(sd),pd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),dd=function(e){function t(t){var n=e.call(this,t,"ag-color-picker","colorPicker")||this;return t&&t.color&&(n.value=t.color),n}return pd(t,e),t.prototype.postConstruct=function(){e.prototype.postConstruct.call(this),this.value&&this.setValue(this.value)},t.prototype.showPicker=function(){var e=this,t=this.getGui().getBoundingClientRect(),n=this.createBean(new cd({closable:!1,modal:!0,hideTitleBar:!0,minWidth:190,width:190,height:250,x:t.right-190,y:t.top-250}));this.isPickerDisplayed=!0,n.addCssClass("ag-color-dialog"),Xn(this.eWrapper,!0);var o=this.createBean(new od({picker:this}));return o.addDestroyFunc((function(){n.isAlive()&&e.destroyBean(n)})),n.setParentComponent(this),n.setBodyComponent(o),o.setValue(this.getValue()),n.addDestroyFunc((function(){e.isDestroyingPicker?e.isDestroyingPicker=!1:(e.isDestroyingPicker=!0,o.isAlive()&&e.destroyBean(o)),e.isAlive()&&(Xn(e.eWrapper,!1),e.getFocusableElement().focus()),e.isPickerDisplayed=!1})),n},t.prototype.setValue=function(t){return this.value===t?this:(this.eDisplayField.style.backgroundColor=t,e.prototype.setValue.call(this,t))},t.prototype.getValue=function(){return this.value},t}(Tr),hd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),fd=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},gd=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 hd(t,e),t.getTemplate=function(e){var t=e.cssIdentifier||"default";return'<div class="ag-group ag-'+t+'-group" role="presentation">\n            <div class="ag-group-title-bar ag-'+t+'-group-title-bar ag-unselectable" ref="eTitleBar" role="button">\n                <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupOpenedIcon" role="presentation"></span>\n                <span class="ag-group-title-bar-icon ag-'+t+'-group-title-bar-icon" ref="eGroupClosedIcon" role="presentation"></span>\n                <span ref="eTitle" class="ag-group-title ag-'+t+'-group-title"></span>\n            </div>\n            <div ref="eToolbar" class="ag-group-toolbar ag-'+t+'-group-toolbar">\n                <ag-checkbox ref="cbGroupEnabled"></ag-checkbox>\n            </div>\n            <div ref="eContainer" class="ag-group-container ag-group-container-'+(e.direction||"vertical")+" ag-"+t+'-group-container"></div>\n        </div>'},t.prototype.postConstruct=function(){if(this.items.length){var e=this.items;this.items=[],this.addItems(e)}var t=this.gridOptionsWrapper.getLocaleTextFunc();this.cbGroupEnabled.setLabel(t("enabled","Enabled")),this.title&&this.setTitle(this.title),this.enabled&&this.setEnabled(this.enabled),this.setAlignItems(this.alignItems),this.hideEnabledCheckbox(this.suppressEnabledCheckbox),this.hideOpenCloseIcons(this.suppressOpenCloseIcons),this.setupExpandContract(),this.refreshAriaStatus(),this.refreshChildDisplay()},t.prototype.setupExpandContract=function(){var e=this;this.eGroupClosedIcon.appendChild(Po("columnSelectClosed",this.gridOptionsWrapper,null)),this.eGroupOpenedIcon.appendChild(Po("columnSelectOpen",this.gridOptionsWrapper,null)),this.addManagedListener(this.eTitleBar,"click",(function(){return e.toggleGroupExpand()})),this.addManagedListener(this.eTitleBar,"keydown",(function(t){switch(t.key){case dr.ENTER:case dr.SPACE:t.preventDefault(),e.toggleGroupExpand();break;case dr.RIGHT:case dr.LEFT:t.preventDefault(),e.toggleGroupExpand(t.key===dr.RIGHT)}}))},t.prototype.refreshAriaStatus=function(){this.suppressOpenCloseIcons||Xn(this.eTitleBar,this.expanded)},t.prototype.refreshChildDisplay=function(){var e=!this.suppressOpenCloseIcons;$t(this.eToolbar,this.expanded&&!this.suppressEnabledCheckbox),$t(this.eGroupOpenedIcon,e&&this.expanded),$t(this.eGroupClosedIcon,e&&!this.expanded)},t.prototype.isExpanded=function(){return this.expanded},t.prototype.setAlignItems=function(e){this.alignItems!==e&&this.removeCssClass("ag-group-item-alignment-"+this.alignItems),this.alignItems=e;var t="ag-group-item-alignment-"+this.alignItems;return this.addCssClass(t),this},t.prototype.toggleGroupExpand=function(e){return this.suppressOpenCloseIcons?(this.expanded=!0,this.refreshChildDisplay(),$t(this.eContainer,!0),this):(e=null!=e?e:!this.expanded,this.expanded===e||(this.expanded=e,this.refreshAriaStatus(),this.refreshChildDisplay(),$t(this.eContainer,e),this.dispatchEvent({type:this.expanded?t.EVENT_EXPANDED:t.EVENT_COLLAPSED})),this)},t.prototype.addItems=function(e){var t=this;e.forEach((function(e){return t.addItem(e)}))},t.prototype.addItem=function(e){var t=this.eContainer,n=e instanceof tr?e.getGui():e;n.classList.add("ag-group-item","ag-"+this.cssIdentifier+"-group-item"),t.appendChild(n),this.items.push(n)},t.prototype.hideItem=function(e,t){this.items[t].classList.toggle("ag-hidden",e)},t.prototype.setTitle=function(e){return this.eTitle.innerText=e,this},t.prototype.addCssClassToTitleBar=function(e){this.eTitleBar.classList.add(e)},t.prototype.setEnabled=function(e,t){return this.enabled=e,this.refreshDisabledStyles(),this.toggleGroupExpand(e),t||this.cbGroupEnabled.setValue(e),this},t.prototype.isEnabled=function(){return this.enabled},t.prototype.onEnableChange=function(e){var t=this;return this.cbGroupEnabled.onValueChange((function(n){t.setEnabled(n,!0),e(n)})),this},t.prototype.hideEnabledCheckbox=function(e){return this.suppressEnabledCheckbox=e,this.refreshChildDisplay(),this.refreshDisabledStyles(),this},t.prototype.hideOpenCloseIcons=function(e){return this.suppressOpenCloseIcons=e,e&&this.toggleGroupExpand(!0),this},t.prototype.refreshDisabledStyles=function(){this.addOrRemoveCssClass("ag-disabled",!this.enabled),this.suppressEnabledCheckbox&&!this.enabled?(this.eTitleBar.classList.add("ag-disabled-group-title-bar"),this.eTitleBar.removeAttribute("tabindex")):(this.eTitleBar.classList.remove("ag-disabled-group-title-bar"),this.eTitleBar.setAttribute("tabindex","0")),this.eContainer.classList.toggle("ag-disabled-group-container",!this.enabled)},t.EVENT_EXPANDED="expanded",t.EVENT_COLLAPSED="collapsed",fd([nr("eTitleBar")],t.prototype,"eTitleBar",void 0),fd([nr("eGroupOpenedIcon")],t.prototype,"eGroupOpenedIcon",void 0),fd([nr("eGroupClosedIcon")],t.prototype,"eGroupClosedIcon",void 0),fd([nr("eToolbar")],t.prototype,"eToolbar",void 0),fd([nr("cbGroupEnabled")],t.prototype,"cbGroupEnabled",void 0),fd([nr("eTitle")],t.prototype,"eTitle",void 0),fd([nr("eContainer")],t.prototype,"eContainer",void 0),fd([z],t.prototype,"postConstruct",null),t}(tr),md=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),vd=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},yd=function(e){function t(t){var n=e.call(this)||this;n.skipTabGuardFocus=!1;var o=t.comp,r=t.eTopGuard,i=t.eBottomGuard,s=t.focusInnerElement,a=t.onFocusIn,l=t.onFocusOut,u=t.shouldStopEventPropagation,c=t.onTabKeyDown,p=t.handleKeyDown,d=t.eFocusableElement;return n.comp=o,n.eTopGuard=r,n.eBottomGuard=i,n.providedFocusInnerElement=s,n.eFocusableElement=d,n.providedFocusIn=a,n.providedFocusOut=l,n.providedShouldStopEventPropagation=u,n.providedOnTabKeyDown=c,n.providedHandleKeyDown=p,n}return md(t,e),t.prototype.postConstruct=function(){var e=this;this.createManagedBean(new mr(this.eFocusableElement,{shouldStopEventPropagation:function(){return e.shouldStopEventPropagation()},onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)},onFocusIn:function(t){return e.onFocusIn(t)},onFocusOut:function(t){return e.onFocusOut(t)}})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach((function(t){return e.addManagedListener(t,"focus",e.onFocus.bind(e))}))},t.prototype.handleKeyDown=function(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)},t.prototype.tabGuardsAreActive=function(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")},t.prototype.shouldStopEventPropagation=function(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()},t.prototype.activateTabGuards=function(){this.comp.setTabIndex(this.getGridTabIndex())},t.prototype.deactivateTabGuards=function(){this.comp.setTabIndex()},t.prototype.onFocus=function(e){if(this.skipTabGuardFocus)this.skipTabGuardFocus=!1;else{var t=e.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t)}},t.prototype.onFocusIn=function(e){this.providedFocusIn&&this.providedFocusIn(e)||this.deactivateTabGuards()},t.prototype.onFocusOut=function(e){this.providedFocusOut&&this.providedFocusOut(e)||this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards()},t.prototype.onTabKeyDown=function(e){var t=this;if(this.providedOnTabKeyDown)this.providedOnTabKeyDown(e);else if(!e.defaultPrevented){var n=this.tabGuardsAreActive();n&&this.deactivateTabGuards();var o=this.getNextFocusableElement(e.shiftKey);n&&setTimeout((function(){return t.activateTabGuards()}),0),o&&(o.focus(),e.preventDefault())}},t.prototype.getGridTabIndex=function(){return this.gridOptionsWrapper.getGridTabIndex()},t.prototype.focusInnerElement=function(e){void 0===e&&(e=!1);var t=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(t.length-1,1)),t.length&&t[e?t.length-1:0].focus()},t.prototype.getNextFocusableElement=function(e){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,e)},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1);var t=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,t.focus()},vd([K("focusService")],t.prototype,"focusService",void 0),vd([z],t.prototype,"postConstruct",null),t}(Fe),Cd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),wd=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},_d=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(wd(arguments[t]));return e},bd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Cd(t,e),t.prototype.initialiseTabGuard=function(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.getFocusableElement();var t=[this.eTopGuard,this.eBottomGuard],n={setTabIndex:function(e){t.forEach((function(t){return null!=e?t.setAttribute("tabIndex",e):t.removeAttribute("tabIndex")}))}};this.addTabGuards(this.eTopGuard,this.eBottomGuard),this.tabGuardCtrl=this.createManagedBean(new yd({comp:n,eTopGuard:this.eTopGuard,eBottomGuard:this.eBottomGuard,eFocusableElement:this.eFocusableElement,onFocusIn:e.onFocusIn,onFocusOut:e.onFocusOut,focusInnerElement:e.focusInnerElement,handleKeyDown:e.handleKeyDown,onTabKeyDown:e.onTabKeyDown,shouldStopEventPropagation:e.shouldStopEventPropagation}))},t.prototype.createTabGuard=function(e){var t=document.createElement("div");return t.classList.add("ag-tab-guard","ag-tab-guard-"+e),Bn(t,"presentation"),t},t.prototype.addTabGuards=function(e,t){this.eFocusableElement.insertAdjacentElement("afterbegin",e),this.eFocusableElement.insertAdjacentElement("beforeend",t)},t.prototype.removeAllChildrenExceptTabGuards=function(){var e=[this.eTopGuard,this.eBottomGuard];dn(this.getFocusableElement()),this.addTabGuards.apply(this,_d(e))},t.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.tabGuardCtrl.forceFocusOutOfContainer(e)},t.prototype.appendChild=function(t,n){Dn(t)||(t=t.getGui());var o=this.eBottomGuard;o?o.insertAdjacentElement("beforebegin",t):e.prototype.appendChild.call(this,t,n)},t}(tr),Ed=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Sd=function(){return Sd=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},Sd.apply(this,arguments)},Rd=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},Od=function(e){function t(t){void 0===t&&(t=1);var n=e.call(this,'<div class="ag-menu-list" role="tree"></div>')||this;return n.level=t,n.menuItems=[],n}return Ed(t,e),t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}})},t.prototype.onTabKeyDown=function(e){var t=this.getParentComponent(),n=t&&t.getGui();n&&n.classList.contains("ag-focus-managed")||e.preventDefault(),e.shiftKey&&this.closeIfIsChild(e)},t.prototype.handleKeyDown=function(e){switch(e.key){case dr.UP:case dr.RIGHT:case dr.DOWN:case dr.LEFT:e.preventDefault(),this.handleNavKey(e.key);break;case dr.ESCAPE:var t=this.findTopMenu();t&&this.focusService.focusInto(t.getGui())}},t.prototype.clearActiveItem=function(){this.activeMenuItem&&(this.activeMenuItem.deactivate(),this.activeMenuItem=null)},t.prototype.addMenuItems=function(e){var t=this;null!=e&&e.forEach((function(e){"separator"===e?t.addSeparator():"string"===typeof e?console.warn("AG Grid: unrecognised menu item "+e):t.addItem(e)}))},t.prototype.addItem=function(e){var t=this,n=this.createManagedBean(new Nd(Sd(Sd({},e),{isAnotherSubMenuOpen:function(){return t.menuItems.some((function(e){return e.isSubMenuOpen()}))}})));n.setParentComponent(this),Kn(n.getGui(),this.level),this.menuItems.push(n),this.appendChild(n.getGui()),this.addManagedListener(n,Nd.EVENT_MENU_ITEM_SELECTED,(function(e){t.dispatchEvent(e)})),this.addManagedListener(n,Nd.EVENT_MENU_ITEM_ACTIVATED,(function(e){t.activeMenuItem&&t.activeMenuItem!==e.menuItem&&t.activeMenuItem.deactivate(),t.activeMenuItem=e.menuItem}))},t.prototype.activateFirstItem=function(){var e=this.menuItems.filter((function(e){return!e.isDisabled()}))[0];e&&e.activate()},t.prototype.addSeparator=function(){this.appendChild(gn('\n            <div class="ag-menu-separator" aria-hidden="true">\n                <div class="ag-menu-separator-part"></div>\n                <div class="ag-menu-separator-part"></div>\n                <div class="ag-menu-separator-part"></div>\n                <div class="ag-menu-separator-part"></div>\n            </div>'))},t.prototype.findTopMenu=function(){var e=this.getParentComponent();if(!e&&this instanceof t)return this;for(;;){var n=e&&e.getParentComponent&&e.getParentComponent();if(!n||!(n instanceof t||n instanceof Nd))break;e=n}return e instanceof t?e:void 0},t.prototype.handleNavKey=function(e){switch(e){case dr.UP:case dr.DOWN:var t=this.findNextItem(e===dr.UP);return void(t&&t!==this.activeMenuItem&&t.activate())}e===(this.gridOptionsWrapper.isEnableRtl()?dr.RIGHT:dr.LEFT)?this.closeIfIsChild():this.openChild()},t.prototype.closeIfIsChild=function(e){var t=this.getParentComponent();t&&t instanceof Nd&&(e&&e.preventDefault(),t.closeSubMenu(),t.getGui().focus())},t.prototype.openChild=function(){this.activeMenuItem&&this.activeMenuItem.openSubMenu(!0)},t.prototype.findNextItem=function(e){var t=this.menuItems.filter((function(e){return!e.isDisabled()}));if(t.length){if(!this.activeMenuItem)return e?ue(t):t[0];var n;e&&t.reverse();for(var o=!1,r=0;r<t.length;r++){var i=t[r];if(o){n=i;break}i===this.activeMenuItem&&(o=!0)}return n||this.activeMenuItem}},t.prototype.destroy=function(){this.clearActiveItem(),e.prototype.destroy.call(this)},Rd([K("focusService")],t.prototype,"focusService",void 0),Rd([z],t.prototype,"postConstruct",null),t}(bd),Td=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Pd=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},Ad=function(e){function t(t){var n=e.call(this)||this;return n.wrappedComponent=t,n.setTemplateFromElement(t.getGui()),n}return Td(t,e),t.prototype.postConstruct=function(){var e=this;this.initialiseTabGuard({onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}})},t.prototype.handleKeyDown=function(e){e.key===dr.ESCAPE&&this.closePanel()},t.prototype.onTabKeyDown=function(e){e.defaultPrevented||(this.closePanel(),e.preventDefault())},t.prototype.closePanel=function(){var e=this.parentComponent;e.closeSubMenu(),setTimeout((function(){return e.getGui().focus()}),0)},Pd([z],t.prototype,"postConstruct",null),t}(bd),Dd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),xd=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},Nd=function(e){function t(t){var n=e.call(this)||this;return n.params=t,n.isActive=!1,n.subMenuIsOpen=!1,n.setTemplate('<div class="'+n.getClassName()+'" tabindex="-1" role="treeitem"></div>'),n}return Dd(t,e),t.prototype.init=function(){var e=this;this.addIcon(),this.addName(),this.addShortcut(),this.addSubMenu(),this.addTooltip();var t=this.getGui();this.params.disabled?(this.addCssClass(this.getClassName("disabled")),qn(t,!0)):(this.addGuiEventListener("click",(function(t){return e.onItemSelected(t)})),this.addGuiEventListener("keydown",(function(t){t.key!==dr.ENTER&&t.key!==dr.SPACE||(t.preventDefault(),e.onItemSelected(t))})),this.addGuiEventListener("mousedown",(function(e){e.stopPropagation(),e.preventDefault()})),this.addGuiEventListener("mouseenter",(function(){return e.onMouseEnter()})),this.addGuiEventListener("mouseleave",(function(){return e.onMouseLeave()}))),this.params.cssClasses&&this.params.cssClasses.forEach((function(t){return e.addCssClass(t)}))},t.prototype.isDisabled=function(){return!!this.params.disabled},t.prototype.openSubMenu=function(e){var n=this;if(void 0===e&&(e=!1),this.closeSubMenu(),this.params.subMenu){var o,r=gn('<div class="ag-menu" role="presentation"></div>');if(this.params.subMenu instanceof Array){var i=Wn(this.getGui()),s=isNaN(i)?1:i+1,a=this.createBean(new Od(s));a.setParentComponent(this),a.addMenuItems(this.params.subMenu),r.appendChild(a.getGui()),this.addManagedListener(a,t.EVENT_MENU_ITEM_SELECTED,(function(e){return n.dispatchEvent(e)})),a.addGuiEventListener("mouseenter",(function(){return n.cancelDeactivate()})),o=function(){return n.destroyBean(a)},e&&setTimeout((function(){return a.activateFirstItem()}),0)}else{var l=this.params.subMenu,u=this.createBean(new Ad(l));u.setParentComponent(this);var c=u.getGui(),p="mouseenter",d=function(){return n.cancelDeactivate()};c.addEventListener(p,d),o=function(){return c.removeEventListener(p,d)},r.appendChild(c),l.afterGuiAttached&&setTimeout((function(){return l.afterGuiAttached()}),0)}var h=this.getGui(),f=this.popupService.positionPopupForMenu.bind(this.popupService,{eventSource:h,ePopup:r}),g=this.gridOptionsWrapper.getLocaleTextFunc(),m=this.popupService.addPopup({modal:!0,eChild:r,positionCallback:f,anchorToElement:h,ariaLabel:g("ariaLabelSubMenu","SubMenu")});this.subMenuIsOpen=!0,Xn(h,!0),this.hideSubMenu=function(){m&&m.hideFunc(),n.subMenuIsOpen=!1,Xn(h,!1),o()}}},t.prototype.closeSubMenu=function(){this.hideSubMenu&&(this.hideSubMenu(),this.hideSubMenu=null,Xn(this.getGui(),!1))},t.prototype.isSubMenuOpen=function(){return this.subMenuIsOpen},t.prototype.activate=function(e){var t=this;this.cancelActivate(),this.params.disabled||(this.isActive=!0,this.addCssClass(this.getClassName("active")),this.getGui().focus(),e&&this.params.subMenu&&window.setTimeout((function(){t.isAlive()&&t.isActive&&t.openSubMenu()}),300),this.onItemActivated())},t.prototype.deactivate=function(){this.cancelDeactivate(),this.removeCssClass(this.getClassName("active")),this.isActive=!1,this.subMenuIsOpen&&this.hideSubMenu()},t.prototype.addIcon=function(){if(this.params.checked||this.params.icon||!this.params.isCompact){var e=gn('<span ref="eIcon" class="'+this.getClassName("part")+" "+this.getClassName("icon")+'" role="presentation"></span>');this.params.checked?e.appendChild(Ao("check",this.gridOptionsWrapper)):this.params.icon&&(Dn(this.params.icon)?e.appendChild(this.params.icon):"string"===typeof this.params.icon?e.innerHTML=this.params.icon:console.warn("AG Grid: menu item icon must be DOM node or string")),this.getGui().appendChild(e)}},t.prototype.addName=function(){if(this.params.name||!this.params.isCompact){var e=gn('<span ref="eName" class="'+this.getClassName("part")+" "+this.getClassName("text")+'">'+(this.params.name||"")+"</span>");this.getGui().appendChild(e)}},t.prototype.addTooltip=function(){this.params.tooltip&&(this.tooltip=this.params.tooltip,this.gridOptionsWrapper.isEnableBrowserTooltips()?this.getGui().setAttribute("title",this.tooltip):this.createManagedBean(new Xo(this)))},t.prototype.getTooltipParams=function(){return{location:"menu",value:this.tooltip}},t.prototype.addShortcut=function(){if(this.params.shortcut||!this.params.isCompact){var e=gn('<span ref="eShortcut" class="'+this.getClassName("part")+" "+this.getClassName("shortcut")+'">'+(this.params.shortcut||"")+"</span>");this.getGui().appendChild(e)}},t.prototype.addSubMenu=function(){if(this.params.subMenu||!this.params.isCompact){var e=gn('<span ref="ePopupPointer" class="'+this.getClassName("part")+" "+this.getClassName("popup-pointer")+'"></span>'),t=this.getGui();if(this.params.subMenu){var n=this.gridOptionsWrapper.isEnableRtl()?"smallLeft":"smallRight";Xn(t,!1),e.appendChild(Ao(n,this.gridOptionsWrapper))}t.appendChild(e)}},t.prototype.onItemSelected=function(e){if(this.params.action?this.params.action():this.openSubMenu(e&&"keydown"===e.type),!this.params.subMenu||this.params.action){var n={type:t.EVENT_MENU_ITEM_SELECTED,action:this.params.action,checked:this.params.checked,cssClasses:this.params.cssClasses,disabled:this.params.disabled,icon:this.params.icon,name:this.params.name,shortcut:this.params.shortcut,subMenu:this.params.subMenu,tooltip:this.params.tooltip,event:e};this.dispatchEvent(n)}},t.prototype.onItemActivated=function(){var e={type:t.EVENT_MENU_ITEM_ACTIVATED,menuItem:this};this.dispatchEvent(e)},t.prototype.cancelActivate=function(){this.activateTimeoutId&&(window.clearTimeout(this.activateTimeoutId),this.activateTimeoutId=0)},t.prototype.cancelDeactivate=function(){this.deactivateTimeoutId&&(window.clearTimeout(this.deactivateTimeoutId),this.deactivateTimeoutId=0)},t.prototype.onMouseEnter=function(){var e=this;this.cancelDeactivate(),this.params.isAnotherSubMenuOpen()?this.activateTimeoutId=window.setTimeout((function(){return e.activate(!0)}),t.ACTIVATION_DELAY):this.activate(!0)},t.prototype.onMouseLeave=function(){var e=this;this.cancelActivate(),this.isSubMenuOpen()?this.deactivateTimeoutId=window.setTimeout((function(){return e.deactivate()}),t.ACTIVATION_DELAY):this.deactivate()},t.prototype.getClassName=function(e){var t=this.params.isCompact?"ag-compact-menu-option":"ag-menu-option";return e?t+"-"+e:t},t.EVENT_MENU_ITEM_SELECTED="menuItemSelected",t.EVENT_MENU_ITEM_ACTIVATED="menuItemActivated",t.ACTIVATION_DELAY=80,xd([K("popupService")],t.prototype,"popupService",void 0),xd([z],t.prototype,"init",null),t}(tr),Md=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Id=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},Ld=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Fd=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ld(arguments[t]));return e},kd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return Md(t,e),n=t,t.addKeyboardModeEvents=function(e,t){var o=n.instancesMonitored.get(e);o&&o.length>0?-1===o.indexOf(t)&&o.push(t):(n.instancesMonitored.set(e,[t]),e.addEventListener("keydown",n.toggleKeyboardMode),e.addEventListener("mousedown",n.toggleKeyboardMode))},t.removeKeyboardModeEvents=function(e,t){var o=n.instancesMonitored.get(e),r=[];o&&o.length&&(r=Fd(o).filter((function(e){return e!==t})),n.instancesMonitored.set(e,r)),0===r.length&&(e.removeEventListener("keydown",n.toggleKeyboardMode),e.removeEventListener("mousedown",n.toggleKeyboardMode))},t.toggleKeyboardMode=function(e){var t=n.keyboardModeActive,o="keydown"===e.type;if((!o||!(e.ctrlKey||e.metaKey||e.altKey))&&!(t&&o||!t&&!o)){n.keyboardModeActive=o;var r=e.target.ownerDocument;if(r){var i=n.instancesMonitored.get(r);i&&i.forEach((function(e){e.dispatchEvent({type:o?Ve.EVENT_KEYBOARD_FOCUS:Ve.EVENT_MOUSE_FOCUS})}))}}},t.prototype.init=function(){var e=this,t=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_MODE_CHANGED,t),this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_GROUP_OPENED,t),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,t),this.ctrlsService.whenReady((function(t){e.gridCtrl=t.gridCtrl;var o=e.gridOptionsWrapper.getDocument();n.addKeyboardModeEvents(o,e.gridCtrl),e.addDestroyFunc((function(){return e.unregisterGridCompController(e.gridCtrl)}))}))},t.prototype.unregisterGridCompController=function(e){var t=this.gridOptionsWrapper.getDocument();n.removeKeyboardModeEvents(t,e)},t.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var e=this.focusedCellPosition.column,t=this.columnModel.getGridColumn(e.getId());e!==t&&this.clearFocusedCell()}},t.prototype.isKeyboardMode=function(){return n.keyboardModeActive},t.prototype.getFocusCellToUseAfterRefresh=function(){var e=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(e.activeElement,fl.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},t.prototype.getFocusHeaderToUseAfterRefresh=function(){var e=this.gridOptionsWrapper.getDocument();return this.gridOptionsWrapper.isSuppressFocusAfterRefresh()||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(e.activeElement,Vu.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},t.prototype.isDomDataMissingInHierarchy=function(e,t){for(var n=e;n;){if(this.gridOptionsWrapper.getDomData(n,t))return!1;n=n.parentNode}return!0},t.prototype.clearFocusedCell=function(){this.focusedCellPosition=null,this.onCellFocused(!1)},t.prototype.getFocusedCell=function(){return this.focusedCellPosition},t.prototype.setFocusedCell=function(e,t,n,r){void 0===r&&(r=!1);var i=this.columnModel.getGridColumn(t);i?(this.focusedCellPosition=i?{rowIndex:e,rowPinned:o(n),column:i}:null,this.onCellFocused(r)):this.focusedCellPosition=null},t.prototype.isCellFocused=function(e){return null!=this.focusedCellPosition&&(this.focusedCellPosition.column===e.column&&this.isRowFocused(e.rowIndex,e.rowPinned))},t.prototype.isRowNodeFocused=function(e){return this.isRowFocused(e.rowIndex,e.rowPinned)},t.prototype.isHeaderWrapperFocused=function(e){if(null==this.focusedHeaderPosition)return!1;var t=e.getColumnGroupChild(),n=e.getRowIndex(),o=e.getPinned(),r=this.focusedHeaderPosition,i=r.column,s=r.headerRowIndex;return t===i&&n===s&&o==i.getPinned()},t.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},t.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},t.prototype.setFocusedHeader=function(e,t){this.focusedHeaderPosition={headerRowIndex:e,column:t}},t.prototype.focusHeaderPosition=function(e){var t=e.direction,n=e.fromTab,o=e.allowUserOverride,r=e.event,i=e.headerPosition;if(o){var s,a=this.gridOptionsWrapper,l=this.getFocusedHeader(),u=this.headerNavigationService.getHeaderRowCount();if(n){if(s=a.getTabToNextHeaderFunc())i=s({backwards:"Before"===t,previousHeaderPosition:l,nextHeaderPosition:i,headerRowCount:u})}else if((s=a.getNavigateToNextHeaderFunc())&&r)i=s({key:r.key,previousHeaderPosition:l,nextHeaderPosition:i,headerRowCount:u,event:r})}return!!i&&(-1===i.headerRowIndex?this.focusGridView(i.column):(this.headerNavigationService.scrollToColumn(i.column,t),this.ctrlsService.getHeaderRowContainerCtrl(i.column.getPinned()).focusHeader(i.headerRowIndex,i.column,r)))},t.prototype.focusFirstHeader=function(){var e=this.columnModel.getAllDisplayedColumns()[0];return!!e&&(e.getParent()&&(e=this.columnModel.getColumnGroupAtLevel(e,0)),this.focusHeaderPosition({headerPosition:{headerRowIndex:0,column:e}}))},t.prototype.focusLastHeader=function(e){var t=this.headerNavigationService.getHeaderRowCount()-1,n=ue(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:t,column:n},event:e})},t.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},t.prototype.isRowFocused=function(e,t){return null!=this.focusedCellPosition&&(this.focusedCellPosition.rowIndex===e&&this.focusedCellPosition.rowPinned===o(t))},t.prototype.findFocusableElements=function(e,t,n){void 0===n&&(n=!1);var o=oe.FOCUSABLE_SELECTOR,r=oe.FOCUSABLE_EXCLUDE;t&&(r+=", "+t),n&&(r+=', [tabindex="-1"]');var i=Array.prototype.slice.apply(e.querySelectorAll(o)),s=Array.prototype.slice.apply(e.querySelectorAll(r));if(!s.length)return i;var a;return a=s,i.filter((function(e){return-1===a.indexOf(e)}))},t.prototype.focusInto=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=this.findFocusableElements(e,null,n),r=t?ue(o):o[0];return!!r&&(r.focus(),!0)},t.prototype.findNextFocusableElement=function(e,t,n){void 0===e&&(e=this.eGridDiv);var o=this.findFocusableElements(e,t?':not([tabindex="-1"])':null),r=this.gridOptionsWrapper.getDocument().activeElement,i=(t?o.findIndex((function(e){return e.contains(r)})):o.indexOf(r))+(n?-1:1);return i<0||i>=o.length?null:o[i]},t.prototype.isFocusUnderManagedComponent=function(e){var t=this.gridOptionsWrapper.getDocument(),n=e.querySelectorAll("."+mr.FOCUS_MANAGED_CLASS);if(!n.length)return!1;for(var o=0;o<n.length;o++)if(n[o].contains(t.activeElement))return!0;return!1},t.prototype.findTabbableParent=function(e,t){void 0===t&&(t=5);for(var n=0;e&&null===jt(e)&&++n<=t;)e=e.parentElement;return null===jt(e)?null:e},t.prototype.onCellFocused=function(e){var t={type:Ve.EVENT_CELL_FOCUSED,forceBrowserFocus:e,rowIndex:null,column:null,floating:null,api:this.gridApi,columnApi:this.columnApi,rowPinned:null,isFullWidthCell:!1};if(this.focusedCellPosition){var n=t.rowIndex=this.focusedCellPosition.rowIndex,o=t.rowPinned=this.focusedCellPosition.rowPinned;t.column=this.focusedCellPosition.column;var r=this.rowRenderer.getRowByPosition({rowIndex:n,rowPinned:o});r&&(t.isFullWidthCell=r.isFullWidth())}this.eventService.dispatchEvent(t)},t.prototype.focusGridView=function(e,t){if(this.gridOptionsWrapper.isSuppressCellFocus())return t?this.focusLastHeader():this.focusNextGridCoreContainer(!1);var n=t?this.rowPositionUtils.getLastRow():this.rowPositionUtils.getFirstRow();if(!n)return!1;var r=n.rowIndex,i=n.rowPinned,s=this.getFocusedHeader();if(!e&&s&&(e=s.column),null==r||!e)return!1;if(this.navigationService.ensureCellVisible({rowIndex:r,column:e,rowPinned:i}),this.setFocusedCell(r,e,o(i),!0),this.rangeService){var a={rowIndex:r,rowPinned:i,column:e};this.rangeService.setRangeToCell(a)}return!0},t.prototype.focusNextGridCoreContainer=function(e){return!!this.gridCtrl.focusNextInnerContainer(e)||(e||this.gridCtrl.isDetailGrid()||this.gridCtrl.forceFocusOutOfContainer(),!1)},t.AG_KEYBOARD_FOCUS="ag-keyboard-focus",t.keyboardModeActive=!1,t.instancesMonitored=new Map,Id([K("eGridDiv")],t.prototype,"eGridDiv",void 0),Id([K("columnModel")],t.prototype,"columnModel",void 0),Id([K("headerNavigationService")],t.prototype,"headerNavigationService",void 0),Id([K("columnApi")],t.prototype,"columnApi",void 0),Id([K("gridApi")],t.prototype,"gridApi",void 0),Id([K("rowRenderer")],t.prototype,"rowRenderer",void 0),Id([K("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),Id([q("rangeService")],t.prototype,"rangeService",void 0),Id([K("navigationService")],t.prototype,"navigationService",void 0),Id([K("ctrlsService")],t.prototype,"ctrlsService",void 0),Id([z],t.prototype,"init",null),t=n=Id([Y("focusService")],t)}(Fe),Gd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Hd=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.vertical=0]="vertical",e[e.horizontal=1]="horizontal"}(bp||(bp={}));var Bd,Vd=0,Wd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.popupList=[],t}return Gd(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.gridCtrl=t.gridCtrl,e.addManagedListener(e.gridCtrl,Ve.EVENT_KEYBOARD_FOCUS,(function(){e.popupList.forEach((function(e){return e.element.classList.add(kd.AG_KEYBOARD_FOCUS)}))})),e.addManagedListener(e.gridCtrl,Ve.EVENT_MOUSE_FOCUS,(function(){e.popupList.forEach((function(e){return e.element.classList.remove(kd.AG_KEYBOARD_FOCUS)}))}))}))},t.prototype.getPopupParent=function(){var e=this.gridOptionsWrapper.getPopupParent();return e||this.gridCtrl.getGui()},t.prototype.positionPopupForMenu=function(e){var t=e.eventSource.getBoundingClientRect(),n=this.getParentRect(),o=this.keepXYWithinBounds(e.ePopup,t.top-n.top,bp.vertical),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"},t.prototype.positionPopupUnderMouseEvent=function(e){var t=e.ePopup,n=e.nudgeX,o=e.nudgeY,r=this.calculatePointerAlign(e.mouseEvent),i=r.x,s=r.y;this.positionPopup({ePopup:t,x:i,y:s,nudgeX:n,nudgeY:o,keepWithinBounds:!0}),this.callPostProcessPopup(e.type,e.ePopup,null,e.mouseEvent,e.column,e.rowNode)},t.prototype.calculatePointerAlign=function(e){var t=this.getParentRect();return{x:e.clientX-t.left,y:e.clientY-t.top}},t.prototype.positionPopupUnderComponent=function(e){var t=e.eventSource.getBoundingClientRect(),n=e.alignSide||"left",o=this.getParentRect(),r=t.left-o.left;"right"===n&&(r-=e.ePopup.offsetWidth-t.width),this.positionPopup({ePopup:e.ePopup,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:r,y:t.top-o.top+t.height,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)},t.prototype.positionPopupOverComponent=function(e){var t=e.eventSource.getBoundingClientRect(),n=this.getParentRect();this.positionPopup({ePopup:e.ePopup,nudgeX:e.nudgeX,nudgeY:e.nudgeY,x:t.left-n.left,y:t.top-n.top,keepWithinBounds:e.keepWithinBounds}),this.callPostProcessPopup(e.type,e.ePopup,e.eventSource,null,e.column,e.rowNode)},t.prototype.callPostProcessPopup=function(e,t,n,o,r,i){var s=this.gridOptionsWrapper.getPostProcessPopupFunc();s&&s({column:r,rowNode:i,ePopup:t,type:e,eventSource:n,mouseEvent:o})},t.prototype.positionPopup=function(e){var t=e.ePopup,n=e.keepWithinBounds,o=e.nudgeX,r=e.nudgeY,i=e.x,s=e.y;o&&(i+=o),r&&(s+=r),n&&(i=this.keepXYWithinBounds(t,i,bp.horizontal),s=this.keepXYWithinBounds(t,s,bp.vertical)),t.style.left=i+"px",t.style.top=s+"px"},t.prototype.getActivePopups=function(){return this.popupList.map((function(e){return e.element}))},t.prototype.getPopupList=function(){return this.popupList},t.prototype.getParentRect=function(){var e=this.gridOptionsWrapper.getDocument(),t=this.getPopupParent();t===e.body&&(t=e.documentElement);var n=getComputedStyle(t),o=t.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}},t.prototype.keepXYWithinBounds=function(e,t,n){var o=n===bp.vertical,r=o?"clientHeight":"clientWidth",i=o?"top":"left",s=o?"offsetHeight":"offsetWidth",a=o?"scrollTop":"scrollLeft",l=this.gridOptionsWrapper.getDocument(),u=l.documentElement,c=this.getPopupParent(),p=c.getBoundingClientRect(),d=l.documentElement.getBoundingClientRect(),h=c===l.body,f=e[s],g=h?(o?an:ln)(u)+u[a]:c[r];h&&(g-=Math.abs(d[i]-p[i]));var m=g-f;return Math.min(Math.max(t,0),Math.abs(m))},t.prototype.keepPopupPositionedRelativeTo=function(e){var t=this,n=this.getPopupParent(),o=n.getBoundingClientRect(),r=e.element.getBoundingClientRect(),i=o.top-r.top,s=o.left-r.left,a=i,l=s,u=e.ePopup.style.top,c=parseInt(u.substring(0,u.length-1),10),p=e.ePopup.style.left,d=parseInt(p.substring(0,p.length-1),10);return new zo((function(o){t.getFrameworkOverrides().setInterval((function(){var o=n.getBoundingClientRect(),r=e.element.getBoundingClientRect();if(0==r.top&&0==r.left&&0==r.height&&0==r.width)e.hidePopup();else{var u=o.top-r.top;if(u!=a){var p=t.keepXYWithinBounds(e.ePopup,c+i-u,bp.vertical);e.ePopup.style.top=p+"px"}a=u;var h=o.left-r.left;if(h!=l){var f=t.keepXYWithinBounds(e.ePopup,d+s-h,bp.horizontal);e.ePopup.style.left=f+"px"}l=h}}),200).then((function(e){o((function(){null!=e&&window.clearInterval(e)}))}))}))},t.prototype.addPopup=function(e){var t=this,n=e.modal,o=e.eChild,r=e.closeOnEsc,i=e.closedCallback,s=e.click,a=e.alwaysOnTop,l=e.afterGuiAttached,u=e.positionCallback,c=e.anchorToElement,p=e.ariaLabel,d=this.gridOptionsWrapper.getDocument(),h=new zo((function(e){return e((function(){}))}));if(!d)return console.warn("ag-grid: could not find the document, document is empty"),{hideFunc:function(){},stopAnchoringPromise:h};var f=this.popupList.findIndex((function(e){return e.element===o}));if(-1!==f){var g=this.popupList[f];return{hideFunc:g.hideFunc,stopAnchoringPromise:g.stopAnchoringPromise}}var m=this.getPopupParent();null==o.style.top&&(o.style.top="0px"),null==o.style.left&&(o.style.left="0px");var v=document.createElement("div"),y=this.environment.getTheme().theme;y&&v.classList.add(y),v.classList.add("ag-popup"),o.classList.add(this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr","ag-popup-child"),o.hasAttribute("role")||Bn(o,"dialog"),Un(o,p),this.focusService.isKeyboardMode()&&o.classList.add(kd.AG_KEYBOARD_FOCUS),v.appendChild(o),m.appendChild(v),a?this.setAlwaysOnTop(v,!0):this.bringPopupToFront(v);var C=!1,w=function(e){v.contains(d.activeElement)&&(e.key===dr.ESCAPE&&E({keyboardEvent:e}))},_=function(e){return E({mouseEvent:e})},b=function(e){return E({touchEvent:e})},E=function(e){void 0===e&&(e={});var n=e.mouseEvent,r=e.touchEvent,a=e.keyboardEvent;t.isEventFromCurrentPopup({mouseEvent:n,touchEvent:r},o)||t.isEventSameChainAsOriginalEvent({originalMouseEvent:s,mouseEvent:n,touchEvent:r})||C||(C=!0,m.removeChild(v),d.removeEventListener("keydown",w),d.removeEventListener("mousedown",_),d.removeEventListener("touchstart",b),d.removeEventListener("contextmenu",_),t.eventService.removeEventListener(Ve.EVENT_DRAG_STARTED,_),i&&i(n||r||a),t.popupList=t.popupList.filter((function(e){return e.element!==o})),h&&h.then((function(e){return e&&e()})))};return l&&l({hidePopup:E}),window.setTimeout((function(){r&&d.addEventListener("keydown",w),n&&(d.addEventListener("mousedown",_),t.eventService.addEventListener(Ve.EVENT_DRAG_STARTED,_),d.addEventListener("touchstart",b),d.addEventListener("contextmenu",_))}),0),u&&u(),c&&(h=this.keepPopupPositionedRelativeTo({element:c,ePopup:o,hidePopup:E})),this.popupList.push({element:o,wrapper:v,hideFunc:E,stopAnchoringPromise:h,instanceId:Vd++,isAnchored:!!c}),{hideFunc:E,stopAnchoringPromise:h}},t.prototype.hasAnchoredPopup=function(){return this.popupList.some((function(e){return e.isAnchored}))},t.prototype.isEventFromCurrentPopup=function(e,t){var n=e.mouseEvent,o=e.touchEvent,r=n||o;if(!r)return!1;var i=this.popupList.findIndex((function(e){return e.element===t}));if(-1===i)return!1;for(var s=i;s<this.popupList.length;s++){if(De(this.popupList[s].element,r))return!0}return this.isElementWithinCustomPopup(r.target)},t.prototype.isElementWithinCustomPopup=function(e){for(var t=this.gridOptionsWrapper.getDocument();e&&e!==t.body;){if(e.classList.contains("ag-custom-component-popup")||null===e.parentElement)return!0;e=e.parentElement}return!1},t.prototype.isEventSameChainAsOriginalEvent=function(e){var t=e.originalMouseEvent,n=e.mouseEvent,o=e.touchEvent,r=null;if(n?r=n:o&&(r=o.touches[0]),r&&t){var i=n?n.screenX:0,s=n?n.screenY:0,a=Math.abs(t.screenX-i)<5,l=Math.abs(t.screenY-s)<5;if(a&&l)return!0}return!1},t.prototype.getWrapper=function(e){for(;!e.classList.contains("ag-popup")&&e.parentElement;)e=e.parentElement;return e.classList.contains("ag-popup")?e:null},t.prototype.setAlwaysOnTop=function(e,t){var n=this.getWrapper(e);n&&(n.classList.toggle("ag-always-on-top",!!t),t&&this.bringPopupToFront(n))},t.prototype.bringPopupToFront=function(e){var t=this.getPopupParent(),n=Array.prototype.slice.call(t.querySelectorAll(".ag-popup")),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),l=s.querySelectorAll("div"),u=[];if(l.forEach((function(e){0!==e.scrollTop&&u.push([e,e.scrollTop])})),i)s.classList.contains("ag-always-on-top")?a!==o-1&&ue(r).insertAdjacentElement("afterend",s):a!==o-i-1&&r[0].insertAdjacentElement("beforebegin",s);else a!==o-1&&ue(n).insertAdjacentElement("afterend",s);for(;u.length;){var c=u.pop();c[0].scrollTop=c[1]}var p={type:"popupToFront",api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),eWrapper:s};this.eventService.dispatchEvent(p)}},Hd([K("environment")],t.prototype,"environment",void 0),Hd([K("focusService")],t.prototype,"focusService",void 0),Hd([K("ctrlsService")],t.prototype,"ctrlsService",void 0),Hd([z],t.prototype,"postConstruct",null),t=Hd([Y("popupService")],t)}(Fe),jd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Ud=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},zd=function(e){function t(n,o,r){void 0===n&&(n="default"),void 0===o&&(o="listbox");var i=e.call(this,t.getTemplate(n))||this;return i.cssIdentifier=n,i.ariaRole=o,i.listName=r,i.renderedRows=new Map,i.rowHeight=20,i.isDestroyed=!1,i}return jd(t,e),t.prototype.postConstruct=function(){var e=this;this.addScrollListener(),this.rowHeight=this.getItemHeight(),this.addResizeObserver(),this.initialiseTabGuard({onFocusIn:function(t){return e.onFocusIn(t)},onFocusOut:function(t){return e.onFocusOut(t)},focusInnerElement:function(t){return e.focusInnerElement(t)},onTabKeyDown:function(t){return e.onTabKeyDown(t)},handleKeyDown:function(t){return e.handleKeyDown(t)}}),this.setAriaProperties()},t.prototype.setAriaProperties=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc()("ariaDefaultListName",this.listName||"List"),t=this.eContainer;Bn(t,this.ariaRole),Un(t,e)},t.prototype.addResizeObserver=function(){var e=this.drawVirtualRows.bind(this),t=this.resizeObserverService.observeResize(this.getGui(),e);this.addDestroyFunc(t)},t.prototype.focusInnerElement=function(e){this.focusRow(e?this.model.getRowCount()-1:0)},t.prototype.onFocusIn=function(e){var t=e.target;return t.classList.contains("ag-virtual-list-item")&&(this.lastFocusedRowIndex=jn(t)-1),!1},t.prototype.onFocusOut=function(e){return this.getFocusableElement().contains(e.relatedTarget)||(this.lastFocusedRowIndex=null),!1},t.prototype.handleKeyDown=function(e){switch(e.key){case dr.UP:case dr.DOWN:this.navigate(e.key===dr.UP)&&e.preventDefault()}},t.prototype.onTabKeyDown=function(e){this.navigate(e.shiftKey)?e.preventDefault():this.focusService.focusInto(this.getGui(),!e.shiftKey)},t.prototype.navigate=function(e){if(null==this.lastFocusedRowIndex)return!1;var t=this.lastFocusedRowIndex+(e?-1:1);return!(t<0||t>=this.model.getRowCount())&&(this.focusRow(t),!0)},t.prototype.getLastFocusedRow=function(){return this.lastFocusedRowIndex},t.prototype.focusRow=function(e){var t=this;this.ensureIndexVisible(e),window.setTimeout((function(){var n=t.renderedRows.get(e);n&&n.eDiv.focus()}),10)},t.prototype.getComponentAt=function(e){var t=this.renderedRows.get(e);return t&&t.rowComponent},t.getTemplate=function(e){return'\n            <div class="ag-virtual-list-viewport ag-'+e+'-virtual-list-viewport" role="presentation">\n                <div class="ag-virtual-list-container ag-'+e+'-virtual-list-container" ref="eContainer"></div>\n            </div>'},t.prototype.getItemHeight=function(){return this.gridOptionsWrapper.getListItemHeight()},t.prototype.ensureIndexVisible=function(e){var t=this.model.getRowCount();if("number"!==typeof e||e<0||e>=t)console.warn("AG Grid: invalid row index for ensureIndexVisible: "+e);else{var n=e*this.rowHeight,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(){var e=this;if(null!=this.model&&!this.isDestroyed){var t=this.model.getRowCount();this.eContainer.style.height=t*this.rowHeight+"px",B((function(){return e.eContainer.clientHeight>=t*e.rowHeight}),(function(){e.isDestroyed||(e.clearVirtualRows(),e.drawVirtualRows())}))}},t.prototype.clearVirtualRows=function(){var e=this;this.renderedRows.forEach((function(t,n){return e.removeRow(n)}))},t.prototype.drawVirtualRows=function(){var e=this.getGui(),t=e.scrollTop,n=t+e.offsetHeight,o=Math.floor(t/this.rowHeight),r=Math.floor(n/this.rowHeight);this.ensureRowsRendered(o,r)},t.prototype.ensureRowsRendered=function(e,t){var n=this;this.renderedRows.forEach((function(o,r){(r<e||r>t)&&r!==n.lastFocusedRowIndex&&n.removeRow(r)}));for(var o=e;o<=t;o++)this.renderedRows.has(o)||o<this.model.getRowCount()&&this.insertRow(o)},t.prototype.insertRow=function(e){var t=this,n=this.model.getRow(e),o=document.createElement("div");if(o.classList.add("ag-virtual-list-item","ag-"+this.cssIdentifier+"-virtual-list-item"),Bn(o,"tree"===this.ariaRole?"treeitem":"option"),Jn(o,this.model.getRowCount()),$n(o,e+1),o.setAttribute("tabindex","-1"),"function"===typeof this.model.isRowSelected){var r=this.model.isRowSelected(e);lo(o,!!r),uo(o,r)}o.style.height=this.rowHeight+"px",o.style.top=this.rowHeight*e+"px";var i=this.componentCreator(n,o);i.addGuiEventListener("focusin",(function(){return t.lastFocusedRowIndex=e})),o.appendChild(i.getGui()),this.renderedRows.has(e-1)?this.renderedRows.get(e-1).eDiv.insertAdjacentElement("afterend",o):this.renderedRows.has(e+1)?this.renderedRows.get(e+1).eDiv.insertAdjacentElement("beforebegin",o):this.eContainer.appendChild(o),this.renderedRows.set(e,{rowComponent:i,eDiv:o})},t.prototype.removeRow=function(e){var t=this.renderedRows.get(e);this.eContainer.removeChild(t.eDiv),this.destroyBean(t.rowComponent),this.renderedRows.delete(e)},t.prototype.addScrollListener=function(){var e=this;this.addGuiEventListener("scroll",(function(){return e.drawVirtualRows()}))},t.prototype.setModel=function(e){this.model=e},t.prototype.destroy=function(){this.isDestroyed||(this.clearVirtualRows(),this.isDestroyed=!0,e.prototype.destroy.call(this))},Ud([K("resizeObserverService")],t.prototype,"resizeObserverService",void 0),Ud([K("focusService")],t.prototype,"focusService",void 0),Ud([nr("eContainer")],t.prototype,"eContainer",void 0),Ud([z],t.prototype,"postConstruct",null),t}(bd),Zd=["mouseover","mouseout","mouseenter","mouseleave"],Yd=["touchstart","touchend","touchmove","touchcancel"],Kd=function(){function e(){this.isOutsideAngular=function(e){return me(Zd,e)}}return e.prototype.setTimeout=function(e,t){window.setTimeout(e,t)},e.prototype.setInterval=function(e,t){return new zo((function(n){n(window.setInterval(e,t))}))},e.prototype.addEventListener=function(e,t,n,o){var r=me(Yd,t);e.addEventListener(t,n,{capture:!!o,passive:r})},e.prototype.dispatchEvent=function(e,t,n){t()},e.prototype.frameworkComponent=function(e){return null},e.prototype.isFrameworkComponent=function(e){return!1},e}(),qd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Xd=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},Qd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qd(t,e),t.prototype.getNextCellToFocus=function(e,t,n){return void 0===n&&(n=!1),n?this.getNextCellToFocusWithCtrlPressed(e,t):this.getNextCellToFocusWithoutCtrlPressed(e,t)},t.prototype.getNextCellToFocusWithCtrlPressed=function(e,t){var n,o,r=e===dr.UP,i=e===dr.DOWN,s=e===dr.LEFT;if(r||i)o=r?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),n=t.column;else{var a=this.columnModel.getAllDisplayedColumns(),l=this.gridOptionsWrapper.isEnableRtl();o=t.rowIndex,n=s!==l?a[0]:ue(a)}return{rowIndex:o,rowPinned:null,column:n}},t.prototype.getNextCellToFocusWithoutCtrlPressed=function(e,t){for(var n=t,o=!1;!o;){switch(e){case dr.UP:n=this.getCellAbove(n);break;case dr.DOWN:n=this.getCellBelow(n);break;case dr.RIGHT:n=this.gridOptionsWrapper.isEnableRtl()?this.getCellToLeft(n):this.getCellToRight(n);break;case dr.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},t.prototype.isCellGoodToFocusOn=function(e){var t,n=e.column;switch(e.rowPinned){case oe.PINNED_TOP:t=this.pinnedRowModel.getPinnedTopRow(e.rowIndex);break;case oe.PINNED_BOTTOM:t=this.pinnedRowModel.getPinnedBottomRow(e.rowIndex);break;default:t=this.rowModel.getRow(e.rowIndex)}return!!t&&!n.isSuppressNavigable(t)},t.prototype.getCellToLeft=function(e){if(!e)return null;var t=this.columnModel.getDisplayedColBefore(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},t.prototype.getCellToRight=function(e){if(!e)return null;var t=this.columnModel.getDisplayedColAfter(e.column);return t?{rowIndex:e.rowIndex,column:t,rowPinned:e.rowPinned}:null},t.prototype.getRowBelow=function(e){var t=e.rowIndex,n=e.rowPinned;if(this.isLastRowInContainer(e))switch(n){case oe.PINNED_BOTTOM:return null;case oe.PINNED_TOP:return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender(oe.PINNED_BOTTOM)?{rowIndex:0,rowPinned:oe.PINNED_BOTTOM}:null;default:return this.pinnedRowModel.isRowsToRender(oe.PINNED_BOTTOM)?{rowIndex:0,rowPinned:oe.PINNED_BOTTOM}:null}return{rowIndex:t+1,rowPinned:n}},t.prototype.getCellBelow=function(e){if(!e)return null;var t=this.getRowBelow(e);return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},t.prototype.isLastRowInContainer=function(e){var t=e.rowPinned,n=e.rowIndex;return t===oe.PINNED_TOP?this.pinnedRowModel.getPinnedTopRowData().length-1<=n:t===oe.PINNED_BOTTOM?this.pinnedRowModel.getPinnedBottomRowData().length-1<=n:this.paginationProxy.getPageLastRow()<=n},t.prototype.getRowAbove=function(e){var t=e.rowIndex,n=e.rowPinned;return(n?0===t:t===this.paginationProxy.getPageFirstRow())?n===oe.PINNED_TOP?null:n&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender(oe.PINNED_TOP)?this.getLastFloatingTopRow():null:{rowIndex:t-1,rowPinned:n}},t.prototype.getCellAbove=function(e){if(!e)return null;var t=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});return t?{rowIndex:t.rowIndex,column:e.column,rowPinned:t.rowPinned}:null},t.prototype.getLastBodyCell=function(){return{rowIndex:this.paginationProxy.getPageLastRow(),rowPinned:null}},t.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:oe.PINNED_TOP}},t.prototype.getNextTabbedCell=function(e,t){return t?this.getNextTabbedCellBackwards(e):this.getNextTabbedCellForwards(e)},t.prototype.getNextTabbedCellForwards=function(e){var t=this.columnModel.getAllDisplayedColumns(),n=e.rowIndex,o=e.rowPinned,r=this.columnModel.getDisplayedColAfter(e.column);if(!r){r=t[0];var s=this.getRowBelow(e);if(i(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;n=s?s.rowIndex:null,o=s?s.rowPinned:null}return{rowIndex:n,column:r,rowPinned:o}},t.prototype.getNextTabbedCellBackwards=function(e){var t=this.columnModel.getAllDisplayedColumns(),n=e.rowIndex,o=e.rowPinned,r=this.columnModel.getDisplayedColBefore(e.column);if(!r){r=ue(t);var s=this.getRowAbove({rowIndex:e.rowIndex,rowPinned:e.rowPinned});if(i(s))return null;if(!s.rowPinned&&!this.paginationProxy.isRowInPage(s))return null;n=s?s.rowIndex:null,o=s?s.rowPinned:null}return{rowIndex:n,column:r,rowPinned:o}},Xd([K("columnModel")],t.prototype,"columnModel",void 0),Xd([K("rowModel")],t.prototype,"rowModel",void 0),Xd([K("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Xd([K("paginationProxy")],t.prototype,"paginationProxy",void 0),t=Xd([Y("cellNavigationService")],t)}(Fe),Jd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),$d=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},eh=function(e,t){return function(n,o){t(n,o,e)}},th=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.consuming=!1,t}return Jd(t,e),t.prototype.setBeans=function(e){this.logger=e.create("AlignedGridsService")},t.prototype.init=function(){this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},t.prototype.fireEvent=function(e){if(!this.consuming){var t=this.gridOptionsWrapper.getAlignedGrids();t&&t.forEach((function(t){if(t.api){var n=t.api.__getAlignedGridService();e(n)}}))}},t.prototype.onEvent=function(e){this.consuming=!0,e(),this.consuming=!1},t.prototype.fireColumnEvent=function(e){this.fireEvent((function(t){t.onColumnEvent(e)}))},t.prototype.fireScrollEvent=function(e){"horizontal"===e.direction&&this.fireEvent((function(t){t.onScrollEvent(e)}))},t.prototype.onScrollEvent=function(e){var t=this;this.onEvent((function(){t.ctrlsService.getGridBodyCtrl().getScrollFeature().setHorizontalScrollPosition(e.left)}))},t.prototype.getMasterColumns=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e)})):e.column&&t.push(e.column),t},t.prototype.getColumnIds=function(e){var t=[];return e.columns?e.columns.forEach((function(e){t.push(e.getColId())})):e.column&&t.push(e.column.getColId()),t},t.prototype.onColumnEvent=function(e){var t=this;this.onEvent((function(){switch(e.type){case Ve.EVENT_COLUMN_MOVED:case Ve.EVENT_COLUMN_VISIBLE:case Ve.EVENT_COLUMN_PINNED:case Ve.EVENT_COLUMN_RESIZED:var n=e;t.processColumnEvent(n);break;case Ve.EVENT_COLUMN_GROUP_OPENED:var o=e;t.processGroupOpenedEvent(o);break;case Ve.EVENT_COLUMN_PIVOT_CHANGED:console.warn("AG Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.")}}))},t.prototype.processGroupOpenedEvent=function(e){var t=e.columnGroup,n=null;if(t){var o=t.getGroupId();n=this.columnModel.getProvidedColumnGroup(o)}t&&!n||(this.logger.log("onColumnEvent-> processing "+e+" expanded = "+t.isExpanded()),this.columnModel.setColumnGroupOpened(n,t.isExpanded(),"alignedGridChanged"))},t.prototype.processColumnEvent=function(e){var t=this,n=e.column,o=null;if(n&&(o=this.columnModel.getPrimaryColumn(n.getColId())),!n||o){var r=this.getMasterColumns(e);switch(e.type){case Ve.EVENT_COLUMN_MOVED:var i=e,s=e.columnApi.getColumnState().map((function(e){return{colId:e.colId}}));this.columnModel.applyColumnState({state:s,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" toIndex = "+i.toIndex);break;case Ve.EVENT_COLUMN_VISIBLE:var a=e;s=e.columnApi.getColumnState().map((function(e){return{colId:e.colId,hide:e.hide}}));this.columnModel.applyColumnState({state:s},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" visible = "+a.visible);break;case Ve.EVENT_COLUMN_PINNED:var l=e;s=e.columnApi.getColumnState().map((function(e){return{colId:e.colId,pinned:e.pinned}}));this.columnModel.applyColumnState({state:s},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+e.type+" pinned = "+l.pinned);break;case Ve.EVENT_COLUMN_RESIZED:var u=e;r.forEach((function(n){t.logger.log("onColumnEvent-> processing "+e.type+" actualWidth = "+n.getActualWidth());var o=[{key:n.getColId(),newWidth:n.getActualWidth()}];t.columnModel.setColumnWidths(o,!1,u.finished,"alignedGridChanged")}))}var c=this.ctrlsService.getGridBodyCtrl().isVerticalScrollShowing(),p=this.gridOptionsWrapper.getAlignedGrids();p&&p.forEach((function(e){e.api&&e.api.setAlwaysShowVerticalScroll(c)}))}},$d([K("columnModel")],t.prototype,"columnModel",void 0),$d([K("ctrlsService")],t.prototype,"ctrlsService",void 0),$d([eh(0,Q("loggerFactory"))],t.prototype,"setBeans",null),$d([z],t.prototype,"init",null),t=$d([Y("alignedGridsService")],t)}(Fe),nh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),oh=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},rh=function(e,t){return function(n,o){t(n,o,e)}},ih=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nh(t,e),t.prototype.setBeans=function(e){this.logger=e.create("selectionService"),this.reset()},t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.addManagedListener(this.eventService,Ve.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},t.prototype.setLastSelectedNode=function(e){this.lastSelectedNode=e},t.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},t.prototype.getSelectedNodes=function(){var e=[];return f(this.selectedNodes,(function(t,n){n&&e.push(n)})),e},t.prototype.getSelectedRows=function(){var e=[];return f(this.selectedNodes,(function(t,n){n&&n.data&&e.push(n.data)})),e},t.prototype.removeGroupsFromSelection=function(){var e=this;f(this.selectedNodes,(function(t,n){n&&n.group&&(e.selectedNodes[n.id]=void 0)}))},t.prototype.updateGroupsFromChildrenSelections=function(e){if(this.gridOptionsWrapper.isGroupSelectsChildren()&&this.rowModel.getType()===oe.ROW_MODEL_TYPE_CLIENT_SIDE){var t=this.rowModel.getRootNode();e||(e=new Ep(!0,t)).setInactive(),e.forEachChangedNodeDepthFirst((function(e){e!==t&&e.calculateSelectedFromChildren()}))}},t.prototype.getNodeForIdIfSelected=function(e){return this.selectedNodes[e]},t.prototype.clearOtherNodes=function(e){var t=this,n={},o=0;return f(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)}})),f(n,(function(e,t){t.calculateSelectedFromChildren()})),o},t.prototype.onRowSelected=function(e){var t=e.node;this.groupSelectsChildren&&t.group||(t.isSelected()?this.selectedNodes[t.id]=t:this.selectedNodes[t.id]=void 0)},t.prototype.syncInRowNode=function(e,t){this.syncInOldRowNode(e,t),this.syncInNewRowNode(e)},t.prototype.syncInOldRowNode=function(e,t){if(r(t)&&e.id!==t.id&&t){var n=t.id;this.selectedNodes[n]==e&&(this.selectedNodes[t.id]=t)}},t.prototype.syncInNewRowNode=function(e){r(this.selectedNodes[e.id])?(e.setSelectedInitialValue(!0),this.selectedNodes[e.id]=e):e.setSelectedInitialValue(!1)},t.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},t.prototype.getBestCostNodeSelection=function(){if(this.rowModel.getType()===oe.ROW_MODEL_TYPE_CLIENT_SIDE){var e=this.rowModel.getTopLevelNodes();if(null!==e){var t=[];return function e(n){for(var o=0,r=n.length;o<r;o++){var i=n[o];if(i.isSelected())t.push(i);else{var s=i;s.group&&s.children&&e(s.children)}}}(e),t}console.warn("AG Grid: `selectAll` not available doing `rowModel=virtual`")}else console.warn("AG Grid: `getBestCostNodeSelection` is only available when using normal row model")},t.prototype.setRowModel=function(e){this.rowModel=e},t.prototype.isEmpty=function(){var e=0;return f(this.selectedNodes,(function(t,n){n&&e++})),0===e},t.prototype.deselectAllRowNodes=function(e){void 0===e&&(e=!1);var t=function(e){return e.selectThisNode(!1)},n=this.rowModel.getType()===oe.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 f(this.selectedNodes,(function(e,n){n&&t(n)})),this.reset();n&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var o={type:Ve.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},t.prototype.selectAllRowNodes=function(e){if(void 0===e&&(e=!1),this.rowModel.getType()!==oe.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()===oe.ROW_MODEL_TYPE_CLIENT_SIDE&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections();var o={type:Ve.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o)},t.prototype.selectNode=function(e,t){e&&e.setSelectedParams({newValue:!0,clearSelection:!t})},t.prototype.deselectIndex=function(e){var t=this.rowModel.getRow(e);this.deselectNode(t)},t.prototype.deselectNode=function(e){e&&e.setSelectedParams({newValue:!1,clearSelection:!1})},t.prototype.selectIndex=function(e,t){var n=this.rowModel.getRow(e);this.selectNode(n,t)},oh([K("rowModel")],t.prototype,"rowModel",void 0),oh([K("columnApi")],t.prototype,"columnApi",void 0),oh([K("gridApi")],t.prototype,"gridApi",void 0),oh([rh(0,Q("loggerFactory"))],t.prototype,"setBeans",null),oh([z],t.prototype,"init",null),t=oh([Y("selectionService")],t)}(Fe),sh=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},ah=function(){function e(){}return e.prototype.sizeColumnsToFit=function(e){"undefined"===typeof e&&console.error("AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnModel.sizeColumnsToFit(e,"api")},e.prototype.setColumnGroupOpened=function(e,t){this.columnModel.setColumnGroupOpened(e,t,"api")},e.prototype.getColumnGroup=function(e,t){return this.columnModel.getColumnGroup(e,t)},e.prototype.getProvidedColumnGroup=function(e){return this.columnModel.getProvidedColumnGroup(e)},e.prototype.getDisplayNameForColumn=function(e,t){return this.columnModel.getDisplayNameForColumn(e,t)||""},e.prototype.getDisplayNameForColumnGroup=function(e,t){return this.columnModel.getDisplayNameForColumnGroup(e,t)||""},e.prototype.getColumn=function(e){return this.columnModel.getPrimaryColumn(e)},e.prototype.applyColumnState=function(e){return this.columnModel.applyColumnState(e,"api")},e.prototype.getColumnState=function(){return this.columnModel.getColumnState()},e.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},e.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},e.prototype.setColumnGroupState=function(e){this.columnModel.setColumnGroupState(e,"api")},e.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},e.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},e.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},e.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},e.prototype.getDisplayedColAfter=function(e){return this.columnModel.getDisplayedColAfter(e)},e.prototype.getDisplayedColBefore=function(e){return this.columnModel.getDisplayedColBefore(e)},e.prototype.setColumnVisible=function(e,t){this.columnModel.setColumnVisible(e,t,"api")},e.prototype.setColumnsVisible=function(e,t){this.columnModel.setColumnsVisible(e,t,"api")},e.prototype.setColumnPinned=function(e,t){this.columnModel.setColumnPinned(e,t,"api")},e.prototype.setColumnsPinned=function(e,t){this.columnModel.setColumnsPinned(e,t,"api")},e.prototype.getAllColumns=function(){return this.columnModel.getAllPrimaryColumns()},e.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},e.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},e.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},e.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},e.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},e.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},e.prototype.moveColumn=function(e,t){"number"===typeof e?(console.warn("AG Grid: you are using moveColumn(fromIndex, toIndex) - moveColumn takes a column key and a destination index, not two indexes, to move with indexes use moveColumnByIndex(from,to) instead"),this.columnModel.moveColumnByIndex(e,t,"api")):this.columnModel.moveColumn(e,t,"api")},e.prototype.moveColumnByIndex=function(e,t){this.columnModel.moveColumnByIndex(e,t,"api")},e.prototype.moveColumns=function(e,t){this.columnModel.moveColumns(e,t,"api")},e.prototype.moveRowGroupColumn=function(e,t){this.columnModel.moveRowGroupColumn(e,t)},e.prototype.setColumnAggFunc=function(e,t){this.columnModel.setColumnAggFunc(e,t)},e.prototype.setColumnWidth=function(e,t,n,o){void 0===n&&(n=!0),this.columnModel.setColumnWidths([{key:e,newWidth:t}],!1,n,o)},e.prototype.setColumnWidths=function(e,t,n){void 0===t&&(t=!0),this.columnModel.setColumnWidths(e,!1,t,n)},e.prototype.setPivotMode=function(e){this.columnModel.setPivotMode(e)},e.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},e.prototype.getSecondaryPivotColumn=function(e,t){return this.columnModel.getSecondaryPivotColumn(e,t)},e.prototype.setValueColumns=function(e){this.columnModel.setValueColumns(e,"api")},e.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},e.prototype.removeValueColumn=function(e){this.columnModel.removeValueColumn(e,"api")},e.prototype.removeValueColumns=function(e){this.columnModel.removeValueColumns(e,"api")},e.prototype.addValueColumn=function(e){this.columnModel.addValueColumn(e,"api")},e.prototype.addValueColumns=function(e){this.columnModel.addValueColumns(e,"api")},e.prototype.setRowGroupColumns=function(e){this.columnModel.setRowGroupColumns(e,"api")},e.prototype.removeRowGroupColumn=function(e){this.columnModel.removeRowGroupColumn(e,"api")},e.prototype.removeRowGroupColumns=function(e){this.columnModel.removeRowGroupColumns(e,"api")},e.prototype.addRowGroupColumn=function(e){this.columnModel.addRowGroupColumn(e,"api")},e.prototype.addRowGroupColumns=function(e){this.columnModel.addRowGroupColumns(e,"api")},e.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},e.prototype.setPivotColumns=function(e){this.columnModel.setPivotColumns(e,"api")},e.prototype.removePivotColumn=function(e){this.columnModel.removePivotColumn(e,"api")},e.prototype.removePivotColumns=function(e){this.columnModel.removePivotColumns(e,"api")},e.prototype.addPivotColumn=function(e){this.columnModel.addPivotColumn(e,"api")},e.prototype.addPivotColumns=function(e){this.columnModel.addPivotColumns(e,"api")},e.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},e.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},e.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},e.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},e.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},e.prototype.autoSizeColumn=function(e,t){return this.columnModel.autoSizeColumn(e,t,"api")},e.prototype.autoSizeColumns=function(e,t){this.columnModel.autoSizeColumns({columns:e,skipHeader:t})},e.prototype.autoSizeAllColumns=function(e){this.columnModel.autoSizeAllColumns(e,"api")},e.prototype.setSecondaryColumns=function(e){this.columnModel.setSecondaryColumns(e,"api")},e.prototype.getSecondaryColumns=function(){return this.columnModel.getSecondaryColumns()},e.prototype.getPrimaryColumns=function(){return this.columnModel.getAllPrimaryColumns()},e.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(Wo.removeAllReferences.bind(window,this,"Column API"),100)},e.prototype.columnGroupOpened=function(e,t){console.error("AG Grid: columnGroupOpened no longer exists, use setColumnGroupOpened"),this.setColumnGroupOpened(e,t)},e.prototype.hideColumns=function(e,t){console.error("AG Grid: hideColumns is deprecated, use setColumnsVisible"),this.columnModel.setColumnsVisible(e,!t,"api")},e.prototype.hideColumn=function(e,t){console.error("AG Grid: hideColumn is deprecated, use setColumnVisible"),this.columnModel.setColumnVisible(e,!t,"api")},e.prototype.setState=function(e){return console.error("AG Grid: setState is deprecated, use setColumnState"),this.setColumnState(e)},e.prototype.getState=function(){return console.error("AG Grid: getState is deprecated, use getColumnState"),this.getColumnState()},e.prototype.resetState=function(){console.error("AG Grid: resetState is deprecated, use resetColumnState"),this.resetColumnState()},e.prototype.getAggregationColumns=function(){return console.error("AG Grid: getAggregationColumns is deprecated, use getValueColumns"),this.columnModel.getValueColumns()},e.prototype.removeAggregationColumn=function(e){console.error("AG Grid: removeAggregationColumn is deprecated, use removeValueColumn"),this.columnModel.removeValueColumn(e,"api")},e.prototype.removeAggregationColumns=function(e){console.error("AG Grid: removeAggregationColumns is deprecated, use removeValueColumns"),this.columnModel.removeValueColumns(e,"api")},e.prototype.addAggregationColumn=function(e){console.error("AG Grid: addAggregationColumn is deprecated, use addValueColumn"),this.columnModel.addValueColumn(e,"api")},e.prototype.addAggregationColumns=function(e){console.error("AG Grid: addAggregationColumns is deprecated, use addValueColumns"),this.columnModel.addValueColumns(e,"api")},e.prototype.setColumnAggFunction=function(e,t){console.error("AG Grid: setColumnAggFunction is deprecated, use setColumnAggFunc"),this.columnModel.setColumnAggFunc(e,t,"api")},e.prototype.getDisplayNameForCol=function(e){return console.error("AG Grid: getDisplayNameForCol is deprecated, use getDisplayNameForColumn"),this.getDisplayNameForColumn(e,null)},e.prototype.setColumnState=function(e){return console.error("AG Grid: setColumnState is deprecated, use applyColumnState"),this.columnModel.applyColumnState({state:e,applyOrder:!0},"api")},e.prototype.getOriginalColumnGroup=function(e){return console.error("AG Grid: getOriginalColumnGroup is deprecated, use getProvidedColumnGroup"),this.columnModel.getProvidedColumnGroup(e)},sh([K("columnModel")],e.prototype,"columnModel",void 0),sh([Z],e.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),e=sh([Y("columnApi")],e)}(),lh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),uh=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},ch=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.initialised=!1,t}return lh(t,e),t.prototype.init=function(){var e=this;this.cellExpressions=this.gridOptionsWrapper.isEnableCellExpressions(),this.initialised=!0,this.eventService.addEventListener(Ve.EVENT_CELL_VALUE_CHANGED,(function(t){return e.callColumnCellValueChangedHandler(t)}),this.gridOptionsWrapper.useAsyncEvents())},t.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=E(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=E(l,s,e.isFieldContainsDots())),this.cellExpressions&&"string"===typeof r&&0===r.indexOf("=")){var p=r.substring(1);r=this.executeValueGetter(p,l,e,t)}if(null==r){var d=this.getOpenedGroup(t,e);if(null!=d)return d}return r}},t.prototype.getOpenedGroup=function(e,t){if(this.gridOptionsWrapper.isShowOpenedGroup()&&t.getColDef().showRowGroup)for(var n=t.getColDef().showRowGroup,o=e.parent;null!=o;){if(o.rowGroupColumn&&(!0===n||n===o.rowGroupColumn.getId()))return o.key;o=o.parent}},t.prototype.setValue=function(e,t,n,o){var s=this.columnModel.getPrimaryColumn(t);if(!e||!s)return!1;i(e.data)&&(e.data={});var a=s.getColDef(),l=a.field,u=a.newValueHandler,c=a.valueSetter;if(i(l)&&i(u)&&i(c))return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"),!1;var p,d={node:e,data:e.data,oldValue:this.getValue(s,e),newValue:n,colDef:s.getColDef(),column:s,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};if(d.newValue=n,void 0===(p=u&&r(u)?u(d):r(c)?this.expressionService.evaluate(c,d):this.setValueUsingField(e.data,l,n,s.isFieldContainsDots()))&&(p=!0),!p)return!1;e.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),d.newValue=this.getValue(s,e);var h={type:Ve.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:e.rowIndex,rowPinned:e.rowPinned,column:d.column,api:d.api,columnApi:d.columnApi,colDef:d.colDef,context:d.context,data:e.data,node:e,oldValue:d.oldValue,newValue:d.newValue,value:d.newValue,source:o};return this.eventService.dispatchEvent(h),!0},t.prototype.callColumnCellValueChangedHandler=function(e){var t=e.colDef.onCellValueChanged;"function"===typeof t&&t({node:e.node,data:e.data,oldValue:e.oldValue,newValue:e.newValue,colDef:e.colDef,column:e.column,api:e.api,columnApi:e.columnApi,context:e.context})},t.prototype.setValueUsingField=function(e,t,n,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},t.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)},t.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},t.prototype.getValueCallback=function(e,t){var n=this.columnModel.getPrimaryColumn(t);return n?this.getValue(n,e):null},t.prototype.getKeyForNode=function(e,t){var n=this.getValue(e,t),o=e.getColDef().keyCreator,r=n;o&&(r=o({value:n,colDef:e.getColDef(),column:e,node:t,data:t.data,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}));return"string"===typeof r||null==r||"[object Object]"===(r=String(r))&&D((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},uh([K("expressionService")],t.prototype,"expressionService",void 0),uh([K("columnModel")],t.prototype,"columnModel",void 0),uh([K("valueCache")],t.prototype,"valueCache",void 0),uh([z],t.prototype,"init",null),t=uh([Y("valueService")],t)}(Fe),ph=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),dh=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},hh=function(e,t){return function(n,o){t(n,o,e)}},fh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.expressionToFunctionCache={},t}return ph(t,e),t.prototype.setBeans=function(e){this.logger=e.create("ExpressionService")},t.prototype.evaluate=function(e,t){if("function"===typeof e)return e(t);if("string"===typeof e){var n=e;return this.evaluateExpression(n,t)}console.error("AG Grid: value should be either a string or a function",e)},t.prototype.evaluateExpression=function(e,t){try{return this.createExpressionFunction(e)(t.value,t.context,t.oldValue,t.newValue,t.value,t.node,t.data,t.colDef,t.rowIndex,t.api,t.columnApi,t.getValue,t.column,t.columnGroup)}catch(n){return console.log("Processing of the expression failed"),console.log("Expression = "+e),console.log("Params =",t),console.log("Exception = "+n),null}},t.prototype.createExpressionFunction=function(e){if(this.expressionToFunctionCache[e])return this.expressionToFunctionCache[e];var t=this.createFunctionBody(e),n=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",t);return this.expressionToFunctionCache[e]=n,n},t.prototype.createFunctionBody=function(e){return e.indexOf("return")>=0?e:"return "+e+";"},dh([hh(0,Q("loggerFactory"))],t.prototype,"setBeans",null),t=dh([Y("expressionService")],t)}(Fe),gh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),mh=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},vh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.templateCache={},t.waitingCallbacks={},t}return gh(t,e),t.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},t.prototype.handleHttpResult=function(e,t){if(200===e.status&&null!==e.response){this.templateCache[t]=e.response||e.responseText;for(var n=this.waitingCallbacks[t],o=0;o<n.length;o++){(0,n[o])()}}else console.warn("AG Grid: Unable to get template error "+e.status+" - "+t)},t=mh([Y("templateService")],t)}(Fe),yh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Ch=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},wh=function(e,t){return function(n,o){t(n,o,e)}},_h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yh(t,e),t.prototype.setBeans=function(e){this.logging=e.isDebug()},t.prototype.create=function(e){return new bh(e,this.isLogging.bind(this))},t.prototype.isLogging=function(){return this.logging},Ch([wh(0,Q("gridOptionsWrapper"))],t.prototype,"setBeans",null),t=Ch([Y("loggerFactory")],t)}(Fe),bh=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}(),Eh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Sh=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},Rh=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Eh(n,e),n.prototype.setComp=function(e,t,n){var o=this;this.view=e,this.eGridHostDiv=t,this.eGui=n,this.mouseEventService.stampTopLevelGridCompWithGridInstance(t),this.createManagedBean(new wa(this.view)),this.addRtlSupport(),this.addManagedListener(this,Ve.EVENT_KEYBOARD_FOCUS,(function(){o.view.addOrRemoveKeyboardFocusClass(!0)})),this.addManagedListener(this,Ve.EVENT_MOUSE_FOCUS,(function(){o.view.addOrRemoveKeyboardFocusClass(!1)}));var r=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return r()})),this.ctrlsService.registerGridCtrl(this)},n.prototype.isDetailGrid=function(){var e,t;return(null===(t=null===(e=this.focusService.findTabbableParent(this.getGui()))||void 0===e?void 0:e.getAttribute("row-id"))||void 0===t?void 0:t.startsWith("detail"))||!1},n.prototype.showDropZones=function(){return re.isRegistered(t.ModuleNames.RowGroupingModule)},n.prototype.showSideBar=function(){return re.isRegistered(t.ModuleNames.SideBarModule)},n.prototype.showStatusBar=function(){return re.isRegistered(t.ModuleNames.StatusBarModule)},n.prototype.showWatermark=function(){return re.isRegistered(t.ModuleNames.EnterpriseCoreModule)},n.prototype.onGridSizeChanged=function(){var e={type:Ve.EVENT_GRID_SIZE_CHANGED,api:this.gridApi,columnApi:this.columnApi,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(e)},n.prototype.addRtlSupport=function(){var e=this.gridOptionsWrapper.isEnableRtl()?"ag-rtl":"ag-ltr";this.view.setRtlClass(e)},n.prototype.destroyGridUi=function(){this.view.destroyGridUi()},n.prototype.getGui=function(){return this.eGui},n.prototype.setResizeCursor=function(e){this.view.setCursor(e?"ew-resize":null)},n.prototype.disableUserSelect=function(e){this.view.setUserSelect(e?"none":null)},n.prototype.focusNextInnerContainer=function(e){var t=this.gridOptionsWrapper.getDocument(),n=this.view.getFocusableContainers(),o=n.findIndex((function(e){return e.contains(t.activeElement)}))+(e?-1:1);return!(o<=0||o>=n.length)&&this.focusService.focusInto(n[o])},n.prototype.focusInnerElement=function(e){var t=this.view.getFocusableContainers();if(e){if(t.length>1)return this.focusService.focusInto(ue(t),!0);var n=ue(this.columnModel.getAllDisplayedColumns());if(this.focusService.focusGridView(n,!0))return!0}return this.focusService.focusFirstHeader()},n.prototype.forceFocusOutOfContainer=function(e){void 0===e&&(e=!1),this.view.forceFocusOutOfContainer(e)},Sh([K("columnApi")],n.prototype,"columnApi",void 0),Sh([K("gridApi")],n.prototype,"gridApi",void 0),Sh([K("focusService")],n.prototype,"focusService",void 0),Sh([K("resizeObserverService")],n.prototype,"resizeObserverService",void 0),Sh([K("columnModel")],n.prototype,"columnModel",void 0),Sh([K("ctrlsService")],n.prototype,"ctrlsService",void 0),Sh([K("mouseEventService")],n.prototype,"mouseEventService",void 0),n}(Fe),Oh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Th=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},Ph=function(e){function n(t){var n=e.call(this,void 0)||this;return n.eGridDiv=t,n}return Oh(n,e),n.prototype.postConstruct=function(){var e=this;this.logger=this.loggerFactory.create("GridComp");var t={destroyGridUi:function(){return e.destroyBean(e)},setRtlClass:function(t){return e.addCssClass(t)},addOrRemoveKeyboardFocusClass:function(t){return e.addOrRemoveCssClass(kd.AG_KEYBOARD_FOCUS,t)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(t){e.getGui().style.userSelect=null!=t?t:"",e.getGui().style.webkitUserSelect=null!=t?t:""},setCursor:function(t){e.getGui().style.cursor=null!=t?t:""}};this.ctrl=this.createManagedBean(new Rh);var n=this.createTemplate();this.setTemplate(n),this.ctrl.setComp(t,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(t){return e.ctrl.focusInnerElement(t)}})},n.prototype.insertGridIntoDom=function(){var e=this,t=this.getGui();this.eGridDiv.appendChild(t),this.addDestroyFunc((function(){e.eGridDiv.removeChild(t),e.logger.log("Grid removed from DOM")}))},n.prototype.updateLayoutClasses=function(e,n){var o=this.eRootWrapperBody.classList;o.toggle(t.LayoutCssClasses.AUTO_HEIGHT,n.autoHeight),o.toggle(t.LayoutCssClasses.NORMAL,n.normal),o.toggle(t.LayoutCssClasses.PRINT,n.print),this.addOrRemoveCssClass(t.LayoutCssClasses.AUTO_HEIGHT,n.autoHeight),this.addOrRemoveCssClass(t.LayoutCssClasses.NORMAL,n.normal),this.addOrRemoveCssClass(t.LayoutCssClasses.PRINT,n.print)},n.prototype.createTemplate=function(){return'<div class="ag-root-wrapper">\n                '+(this.ctrl.showDropZones()?"<ag-grid-header-drop-zones></ag-grid-header-drop-zones>":"")+'\n                <div class="ag-root-wrapper-body" ref="rootWrapperBody">\n                    <ag-grid-body ref="gridBody"></ag-grid-body>\n                    '+(this.ctrl.showSideBar()?'<ag-side-bar ref="sideBar"></ag-side-bar>':"")+"\n                </div>\n                "+(this.ctrl.showStatusBar()?'<ag-status-bar ref="statusBar"></ag-status-bar>':"")+"\n                <ag-pagination></ag-pagination>\n                "+(this.ctrl.showWatermark()?"<ag-watermark></ag-watermark>":"")+"\n            </div>"},n.prototype.getFocusableElement=function(){return this.eRootWrapperBody},n.prototype.getFocusableContainers=function(){var e=[this.gridBodyComp.getGui()];return this.sideBarComp&&e.push(this.sideBarComp.getGui()),e.filter((function(e){return fn(e)}))},Th([K("loggerFactory")],n.prototype,"loggerFactory",void 0),Th([nr("gridBody")],n.prototype,"gridBodyComp",void 0),Th([nr("sideBar")],n.prototype,"sideBarComp",void 0),Th([nr("rootWrapperBody")],n.prototype,"eRootWrapperBody",void 0),Th([z],n.prototype,"postConstruct",null),n}(bd),Ah=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Dh=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},xh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return Ah(t,e),n=t,t.prototype.progressSort=function(e,t,n){var o=this.getNextSortDirection(e);this.setSortForColumn(e,o,t,n)},t.prototype.setSortForColumn=function(e,t,n,o){t!==oe.SORT_ASC&&t!==oe.SORT_DESC&&(t=null),e.setSort(t,o),(n||this.gridOptionsWrapper.isAlwaysMultiSort())&&!this.gridOptionsWrapper.isSuppressMultiSort()||this.clearSortBarThisColumn(e,o),this.updateSortIndex(e),this.dispatchSortChangedEvents(o)},t.prototype.updateSortIndex=function(e){var t=this.getColumnsWithSortingOrdered(),n=0;t.forEach((function(t){t!==e&&(t.setSortIndex(n),n++)})),e.getSort()&&e.setSortIndex(n),this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((function(e){return null==e.getSort()})).forEach((function(e){return e.setSortIndex()}))},t.prototype.onSortChanged=function(e){this.dispatchSortChangedEvents(e)},t.prototype.isSortActive=function(){var e=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((function(e){return!!e.getSort()}));return e&&e.length>0},t.prototype.dispatchSortChangedEvents=function(e){var t={type:Ve.EVENT_SORT_CHANGED,api:this.gridApi,columnApi:this.columnApi,source:e};this.eventService.dispatchEvent(t)},t.prototype.clearSortBarThisColumn=function(e,t){this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((function(n){n!==e&&n.setSort(void 0,t)}))},t.prototype.getNextSortDirection=function(e){var t;if(t=e.getColDef().sortingOrder?e.getColDef().sortingOrder:this.gridOptionsWrapper.getSortingOrder()?this.gridOptionsWrapper.getSortingOrder():n.DEFAULT_SORTING_ORDER,!Array.isArray(t)||t.length<=0)return console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's "+t),null;var o,r=t.indexOf(e.getSort()),i=r<0,s=r==t.length-1;return o=i||s?t[0]:t[r+1],n.DEFAULT_SORTING_ORDER.indexOf(o)<0?(console.warn("AG Grid: invalid sort type "+o),null):o},t.prototype.getColumnsWithSortingOrdered=function(){var e=this.columnModel.getPrimaryAndSecondaryAndAutoColumns(),t=e.filter((function(e){return!!e.getSort()})),n={};return e.forEach((function(e,t){return n[e.getId()]=t})),t.sort((function(e,t){var o=e.getSortIndex(),r=t.getSortIndex();return null!=o&&null!=r?o-r:null==o&&null==r?n[e.getId()]>n[t.getId()]?1:-1:null==r?-1:1})),t},t.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered().map((function(e){return{sort:e.getSort(),colId:e.getId()}}))},t.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().map((function(e){return{sort:e.getSort(),column:e}}))},t.DEFAULT_SORTING_ORDER=[oe.SORT_ASC,oe.SORT_DESC,null],Dh([K("columnModel")],t.prototype,"columnModel",void 0),Dh([K("columnApi")],t.prototype,"columnApi",void 0),Dh([K("gridApi")],t.prototype,"gridApi",void 0),t=n=Dh([Y("sortController")],t)}(Fe),Nh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Mh=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},Ih=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Nh(t,e),t.prototype.setMouseOver=function(e){this.selectedColumns=e;var t={type:Ve.EVENT_COLUMN_HOVER_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(t)},t.prototype.clearMouseOver=function(){this.selectedColumns=null;var e={type:Ve.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},Mh([K("columnApi")],t.prototype,"columnApi",void 0),Mh([K("gridApi")],t.prototype,"gridApi",void 0),t=Mh([Y("columnHoverService")],t)}(Fe),Lh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Fh=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},kh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.executeNextFuncs=[],t.executeLaterFuncs=[],t.active=!1,t.animationThreadCount=0,t}return Lh(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){return e.gridBodyCtrl=t.gridBodyCtrl}))},t.prototype.isActive=function(){return this.active},t.prototype.start=function(){this.active||this.gridOptionsWrapper.isSuppressColumnMoveAnimation()||this.gridOptionsWrapper.isEnableRtl()||(this.ensureAnimationCssClassPresent(),this.active=!0)},t.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},t.prototype.executeNextVMTurn=function(e){this.active?this.executeNextFuncs.push(e):e()},t.prototype.executeLaterVMTurn=function(e){this.active?this.executeLaterFuncs.push(e):e()},t.prototype.ensureAnimationCssClassPresent=function(){var e=this;this.animationThreadCount++;var t=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){e.animationThreadCount===t&&e.gridBodyCtrl.setColumnMovingCss(!1)}))},t.prototype.flush=function(){var e=this.executeNextFuncs;this.executeNextFuncs=[];var t=this.executeLaterFuncs;this.executeLaterFuncs=[],0===e.length&&0===t.length||(window.setTimeout((function(){return e.forEach((function(e){return e()}))}),0),window.setTimeout((function(){return t.forEach((function(e){return e()}))}),300))},Fh([K("ctrlsService")],t.prototype,"ctrlsService",void 0),Fh([z],t.prototype,"postConstruct",null),t=Fh([Y("columnAnimationService")],t)}(Fe),Gh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Hh=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},Bh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}var n;return Gh(t,e),n=t,t.prototype.createAutoGroupColumns=function(e,t){var n=this,o=[],r=this.gridOptionsWrapper.isTreeData(),i=this.gridOptionsWrapper.isGroupMultiAutoColumn();return r&&i&&(console.warn("AG Grid: you cannot mix groupMultiAutoColumn with treeData, only one column can be used to display groups when doing tree data"),i=!1),i?t.forEach((function(t,r){o.push(n.createOneAutoGroupColumn(e,t,r))})):o.push(this.createOneAutoGroupColumn(e)),o},t.prototype.createOneAutoGroupColumn=function(e,t,o){var r,s=this.generateDefaultColDef(t);(r=t?oe.GROUP_AUTO_COLUMN_ID+"-"+t.getId():n.GROUP_AUTO_COLUMN_BUNDLE_ID,b(s,this.gridOptionsWrapper.getAutoGroupColumnDef()),(s=this.columnFactory.mergeColDefs(s)).colId=r,this.gridOptionsWrapper.isTreeData())||i(s.field)&&i(s.valueGetter)&&i(s.filterValueGetter)&&(s.filter=!1);o&&o>0&&(s.headerCheckboxSelection=!1);var a=e.find((function(e){return e.getId()==r}));if(a)return a.setColDef(s,null),this.columnFactory.applyColumnState(a,s),a;var l=new ae(s,null,r,!0);return this.context.createBean(l),l},t.prototype.generateDefaultColDef=function(e){var t=this.gridOptionsWrapper.getAutoGroupColumnDef(),n={headerName:this.gridOptionsWrapper.getLocaleTextFunc()("group","Group")};if(t&&(t.cellRenderer||t.cellRendererFramework||t.cellRendererSelector)||(n.cellRenderer="agGroupCellRenderer"),e){var o=e.getColDef();Object.assign(n,{headerName:this.columnModel.getDisplayNameForColumn(e,"header"),headerValueGetter:o.headerValueGetter}),(o.cellRenderer||o.cellRendererFramework)&&Object.assign(n,{cellRendererParams:{innerRenderer:o.cellRenderer,innerRendererFramework:o.cellRendererFramework,innerRendererParams:o.cellRendererParams}}),n.showRowGroup=e.getColId()}else n.showRowGroup=!0;return n},t.GROUP_AUTO_COLUMN_BUNDLE_ID=oe.GROUP_AUTO_COLUMN_ID,Hh([K("columnModel")],t.prototype,"columnModel",void 0),Hh([K("columnFactory")],t.prototype,"columnFactory",void 0),t=n=Hh([Y("autoGroupColService")],t)}(Fe),Vh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Wh=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},jh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vh(t,e),t.prototype.postConstruct=function(){var e=this;this.ctrlsService.whenReady((function(t){e.centerRowContainerCon=t.centerRowContainerCtrl,e.addManagedListener(e.eventService,Ve.EVENT_BODY_HEIGHT_CHANGED,e.onBodyHeightChanged.bind(e)),e.addManagedListener(e.eventService,Ve.EVENT_SCROLL_VISIBILITY_CHANGED,e.onScrollVisibilityChanged.bind(e)),e.checkPageSize()}))},t.prototype.notActive=function(){return!this.gridOptionsWrapper.isPaginationAutoPageSize()},t.prototype.onScrollVisibilityChanged=function(){this.checkPageSize()},t.prototype.onBodyHeightChanged=function(){this.checkPageSize()},t.prototype.checkPageSize=function(){if(!this.notActive()){var e=this.gridOptionsWrapper.getRowHeightAsNumber(),t=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(t>0){var n=Math.floor(t/e);this.gridOptionsWrapper.setProperty("paginationPageSize",n)}}},Wh([K("ctrlsService")],t.prototype,"ctrlsService",void 0),Wh([z],t.prototype,"postConstruct",null),t=Wh([Y("paginationAutoPageSizeService")],t)}(Fe),Uh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),zh=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},Zh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cacheVersion=0,t}return Uh(t,e),t.prototype.init=function(){this.active=this.gridOptionsWrapper.isValueCache(),this.neverExpires=this.gridOptionsWrapper.isValueCacheNeverExpires()},t.prototype.onDataChanged=function(){this.neverExpires||this.expire()},t.prototype.expire=function(){this.cacheVersion++},t.prototype.setValue=function(e,t,n){this.active&&(e.__cacheVersion!==this.cacheVersion&&(e.__cacheVersion=this.cacheVersion,e.__cacheData={}),e.__cacheData[t]=n)},t.prototype.getValue=function(e,t){if(this.active&&e.__cacheVersion===this.cacheVersion)return e.__cacheData[t]},zh([z],t.prototype,"init",null),t=zh([Y("valueCache")],t)}(Fe),Yh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Kh=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},qh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yh(t,e),t.prototype.init=function(){this.rowModel.getType()===oe.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,Ve.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},t.prototype.onCellValueChanged=function(e){e.source!==oe.SOURCE_PASTE&&this.doChangeDetection(e.node,e.column)},t.prototype.doChangeDetection=function(e,t){if(!this.gridOptionsWrapper.isSuppressChangeDetection()){if(this.clientSideRowModel&&!e.isRowPinned()){var n=this.gridOptionsWrapper.isAggregateOnlyChangedColumns(),o=new Ep(n,this.clientSideRowModel.getRootNode());o.addParentNode(e.parent,[t]),this.clientSideRowModel.doAggregate(o)}this.rowRenderer.refreshCells()}},Kh([K("rowModel")],t.prototype,"rowModel",void 0),Kh([K("rowRenderer")],t.prototype,"rowRenderer",void 0),Kh([z],t.prototype,"init",null),t=Kh([Y("changeDetectionService")],t)}(Fe),Xh=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Qh=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},Jh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xh(t,e),t.prototype.adaptFunction=function(e,t){var n=this.componentMetadataProvider.retrieve(e);return n&&n.functionAdapter?n.functionAdapter(t):null},t.prototype.adaptCellRendererFunction=function(e){return function(){function t(){}return t.prototype.refresh=function(e){return!1},t.prototype.getGui=function(){return this.eGui},t.prototype.init=function(t){var n=e(t),o=typeof n;this.eGui="string"!==o&&"number"!==o&&"boolean"!==o?null!=n?n:gn("<span></span>"):gn("<span>"+n+"</span>")},t}()},t.prototype.doesImplementIComponent=function(e){return!!e&&(e.prototype&&"getGui"in e.prototype)},Qh([K("componentMetadataProvider")],t.prototype,"componentMetadataProvider",void 0),t=Qh([Y("agComponentUtils")],t)}(Fe),$h=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),ef=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},tf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return $h(t,e),t.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},headerComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},pinnedRowCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},t.prototype.retrieve=function(e){return this.componentMetaData[e]},ef([K("agComponentUtils")],t.prototype,"agComponentUtils",void 0),ef([z],t.prototype,"postConstruct",null),t=ef([Y("componentMetadataProvider")],t)}(Fe),nf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),of=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},rf={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:20,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:56,headerCellMinWidth:48,listItemHeight:32,rowHeight:48,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:32,headerCellMinWidth:24,listItemHeight:24,rowHeight:28,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:48,headerCellMinWidth:36,listItemHeight:24,rowHeight:42,chartMenuPanelWidth:240}},sf={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},af={},lf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nf(t,e),t.prototype.getSassVariable=function(e,t){var n="ag-theme-"+(e.match("material")?"material":e.match("balham")?"balham":e.match("alpine")?"alpine":"custom"),o=rf[n][t],r=0;af[e]||(af[e]={});var i=af[e][t];if(null!=i)return i;if(sf[t]){var s=sf[t],a=document.createElement("div");a.classList.add(e),a.style.position="absolute";var l=s.reduce((function(e,t){var n=document.createElement("div");return n.style.position="static",n.classList.add(t),e.appendChild(n),n}),a);if(document.body){document.body.appendChild(a);var u=-1!==t.toLowerCase().indexOf("height")?"height":"width";r=parseInt(window.getComputedStyle(l)[u],10),document.body.removeChild(a)}}return af[e][t]=r||o,af[e][t]},t.prototype.isThemeDark=function(){var e=this.getTheme().theme;return!!e&&e.indexOf("dark")>=0},t.prototype.chartMenuPanelWidth=function(){var e=this.getTheme().themeFamily;return this.getSassVariable(e,"chartMenuPanelWidth")},t.prototype.getTheme=function(){for(var e=/\bag-(material|(?:theme-([\w\-]*)))\b/,t=this.eGridDiv,n=null;t&&!(n=e.exec(t.className));)t=t.parentElement||void 0;if(!n)return{};var o=n[0];if(void 0===n[2]){var r=o.replace("ag-","ag-theme-");D((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:t,themeFamily:o.replace(/-dark$/,"")}},of([K("eGridDiv")],t.prototype,"eGridDiv",void 0),t=of([Y("environment")],t)}(Fe),uf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),cf=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},pf=function(e,t){return function(n,o){t(n,o,e)}},df=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollY=0,t.uiBodyHeight=0,t}return uf(t,e),t.prototype.agWire=function(e){this.logger=e.create("RowContainerHeightService")},t.prototype.postConstruct=function(){this.addManagedListener(this.eventService,Ve.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=Ut(),this.logger.log("maxDivHeight = "+this.maxDivHeight)},t.prototype.isStretching=function(){return this.stretching},t.prototype.getDivStretchOffset=function(){return this.divStretchOffset},t.prototype.updateOffset=function(){if(this.stretching){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition().top,t=this.getUiBodyHeight();(e!==this.scrollY||t!==this.uiBodyHeight)&&(this.scrollY=e,this.uiBodyHeight=t,this.calculateOffset())}},t.prototype.calculateOffset=function(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var e=this.scrollY/this.maxScrollY,t=e*this.pixelsToShave;this.logger.log("Div Stretch Offset = "+t+" ("+this.pixelsToShave+" * "+e+")"),this.setDivStretchOffset(t)},t.prototype.setUiContainerHeight=function(e){e!==this.uiContainerHeight&&(this.uiContainerHeight=e,this.eventService.dispatchEvent({type:Ve.EVENT_ROW_CONTAINER_HEIGHT_CHANGED}))},t.prototype.clearOffset=function(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)},t.prototype.setDivStretchOffset=function(e){var t="number"===typeof e?Math.floor(e):null;this.divStretchOffset!==t&&(this.divStretchOffset=t,this.eventService.dispatchEvent({type:Ve.EVENT_HEIGHT_SCALE_CHANGED}))},t.prototype.setModelHeight=function(e){this.modelHeight=e,this.stretching=null!=e&&this.maxDivHeight>0&&e>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()},t.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},t.prototype.getRealPixelPosition=function(e){return e-this.divStretchOffset},t.prototype.getUiBodyHeight=function(){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition();return e.bottom-e.top},t.prototype.getScrollPositionForPixel=function(e){if(this.pixelsToShave<=0)return e;var t=e/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*t},cf([K("ctrlsService")],t.prototype,"ctrlsService",void 0),cf([pf(0,Q("loggerFactory"))],t.prototype,"agWire",null),cf([z],t.prototype,"postConstruct",null),t=cf([Y("rowContainerHeightService")],t)}(Fe),hf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),ff=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},gf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hf(t,e),t.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsWrapper.isGroupSelectsChildren(),this.isRowSelectableFunc=this.gridOptionsWrapper.getIsRowSelectableFunc()},t.prototype.updateSelectableAfterGrouping=function(e){if(this.isRowSelectableFunc){this.recurseDown(e.childrenAfterGroup,(function(e){return e.childrenAfterGroup}))}},t.prototype.recurseDown=function(e,t){var n=this;e&&e.forEach((function(e){if(e.group){var o;if(e.hasChildren()&&n.recurseDown(t(e),t),n.groupSelectsChildren)o=r((t(e)||[]).find((function(e){return!0===e.selectable})));else o=!!n.isRowSelectableFunc&&n.isRowSelectableFunc(e);e.setRowSelectable(o)}}))},ff([z],t.prototype,"init",null),t=ff([Y("selectableService")],t)}(Fe),mf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),vf=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},yf=function(e){function t(){var t=e.call(this)||this;return t.previousAndFirstButtonsDisabled=!1,t.nextButtonDisabled=!1,t.lastButtonDisabled=!1,t}return mf(t,e),t.prototype.postConstruct=function(){var e=this,t=this.gridOptionsWrapper.isEnableRtl();this.setTemplate(this.getTemplate()),this.btFirst.insertAdjacentElement("afterbegin",Ao(t?"last":"first",this.gridOptionsWrapper)),this.btPrevious.insertAdjacentElement("afterbegin",Ao(t?"next":"previous",this.gridOptionsWrapper)),this.btNext.insertAdjacentElement("afterbegin",Ao(t?"previous":"next",this.gridOptionsWrapper)),this.btLast.insertAdjacentElement("afterbegin",Ao(t?"first":"last",this.gridOptionsWrapper)),this.gridOptionsWrapper.isPagination()&&!this.gridOptionsWrapper.isSuppressPaginationPanel()?(this.addManagedListener(this.eventService,Ve.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach((function(t){var n=t.el,o=t.fn;e.addManagedListener(n,"click",o),e.addManagedListener(n,"keydown",(function(e){e.key!==dr.ENTER&&e.key!==dr.SPACE||(e.preventDefault(),o())}))})),this.onPaginationChanged()):this.setDisplayed(!1)},t.prototype.onPaginationChanged=function(){this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels()},t.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},t.prototype.setCurrentPageLabel=function(){var e=this.paginationProxy.getTotalPages()>0,t=this.paginationProxy.getCurrentPage(),n=e?t+1:0;this.lbCurrent.innerHTML=this.formatNumber(n)},t.prototype.formatNumber=function(e){var t=this.gridOptionsWrapper.getPaginationNumberFormatterFunc();if(t)return t({value:e});var n=this.gridOptionsWrapper.getLocaleTextFunc();return go(e,n("thousandSeparator",","),n("decimalSeparator","."))},t.prototype.getTemplate=function(){var e=this.gridOptionsWrapper.getLocaleTextFunc(),t=e("page","Page"),n=e("to","to"),o=e("of","of"),r=e("firstPage","First Page"),i=e("previousPage","Previous Page"),s=e("nextPage","Next Page"),a=e("lastPage","Last Page"),l=this.getCompId();return'<div class="ag-paging-panel ag-unselectable" id="ag-'+l+'">\n                <span class="ag-paging-row-summary-panel" role="status">\n                    <span id="ag-'+l+'-first-row" ref="lbFirstRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n                    <span id="ag-'+l+'-to">'+n+'</span>\n                    <span id="ag-'+l+'-last-row" ref="lbLastRowOnPage" class="ag-paging-row-summary-panel-number"></span>\n                    <span id="ag-'+l+'-of">'+o+'</span>\n                    <span id="ag-'+l+'-row-count" ref="lbRecordCount" class="ag-paging-row-summary-panel-number"></span>\n                </span>\n                <span class="ag-paging-page-summary-panel" role="presentation">\n                    <div ref="btFirst" class="ag-paging-button" role="button" aria-label="'+r+'"></div>\n                    <div ref="btPrevious" class="ag-paging-button" role="button" aria-label="'+i+'"></div>\n                    <span class="ag-paging-description" role="status">\n                        <span id="ag-'+l+'-start-page">'+t+'</span>\n                        <span id="ag-'+l+'-start-page-number" ref="lbCurrent" class="ag-paging-number"></span>\n                        <span id="ag-'+l+'-of-page">'+o+'</span>\n                        <span id="ag-'+l+'-of-page-number" ref="lbTotal" class="ag-paging-number"></span>\n                    </span>\n                    <div ref="btNext" class="ag-paging-button" role="button" aria-label="'+s+'"></div>\n                    <div ref="btLast" class="ag-paging-button" role="button" aria-label="'+a+'"></div>\n                </span>\n            </div>'},t.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},t.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},t.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},t.prototype.enableOrDisableButtons=function(){var e=this.paginationProxy.getCurrentPage(),t=this.paginationProxy.isLastPageFound(),n=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===e,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var o=this.isZeroPagesToDisplay(),r=t&&e===n-1;this.nextButtonDisabled=r||o,this.lastButtonDisabled=!t||o||e===n-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},t.prototype.toggleButtonDisabled=function(e,t){qn(e,t),e.classList.toggle("ag-disabled",t),t?e.removeAttribute("tabindex"):e.setAttribute("tabindex","0")},t.prototype.updateRowLabels=function(){var e,t,n=this.paginationProxy.getCurrentPage(),o=this.paginationProxy.getPageSize(),r=this.paginationProxy.isLastPageFound(),i=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;this.isZeroPagesToDisplay()?e=t=0:(t=(e=o*n+1)+o-1,r&&t>i&&(t=i)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(e),this.rowNodeBlockLoader.isLoading()?this.lbLastRowOnPage.innerHTML="?":this.lbLastRowOnPage.innerHTML=this.formatNumber(t)},t.prototype.isZeroPagesToDisplay=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages();return e&&0===t},t.prototype.setTotalLabels=function(){var e=this.paginationProxy.isLastPageFound(),t=this.paginationProxy.getTotalPages(),n=e?this.paginationProxy.getMasterRowCount():null;if(1===n){var o=this.paginationProxy.getRow(0);if(o&&o.group&&!(o.groupData||o.aggData))return void this.setTotalLabelsToZero()}if(e)this.lbTotal.innerHTML=this.formatNumber(t),this.lbRecordCount.innerHTML=this.formatNumber(n);else{var r=this.gridOptionsWrapper.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=r,this.lbRecordCount.innerHTML=r}},t.prototype.setTotalLabelsToZero=function(){this.lbFirstRowOnPage.innerHTML=this.formatNumber(0),this.lbCurrent.innerHTML=this.formatNumber(0),this.lbLastRowOnPage.innerHTML=this.formatNumber(0),this.lbTotal.innerHTML=this.formatNumber(0),this.lbRecordCount.innerHTML=this.formatNumber(0)},vf([K("paginationProxy")],t.prototype,"paginationProxy",void 0),vf([K("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),vf([nr("btFirst")],t.prototype,"btFirst",void 0),vf([nr("btPrevious")],t.prototype,"btPrevious",void 0),vf([nr("btNext")],t.prototype,"btNext",void 0),vf([nr("btLast")],t.prototype,"btLast",void 0),vf([nr("lbRecordCount")],t.prototype,"lbRecordCount",void 0),vf([nr("lbFirstRowOnPage")],t.prototype,"lbFirstRowOnPage",void 0),vf([nr("lbLastRowOnPage")],t.prototype,"lbLastRowOnPage",void 0),vf([nr("lbCurrent")],t.prototype,"lbCurrent",void 0),vf([nr("lbTotal")],t.prototype,"lbTotal",void 0),vf([z],t.prototype,"postConstruct",null),t}(tr),Cf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),wf=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.Loading=0]="Loading",e[e.NoRows=1]="NoRows"}(Bd||(Bd={}));var _f=function(e){function n(){var t=e.call(this,n.TEMPLATE)||this;return t.inProgress=!1,t.destroyRequested=!1,t.manuallyDisplayed=!1,t}return Cf(n,e),n.prototype.updateLayoutClasses=function(e,n){var o=this.eOverlayWrapper.classList;o.toggle(t.LayoutCssClasses.AUTO_HEIGHT,n.autoHeight),o.toggle(t.LayoutCssClasses.NORMAL,n.normal),o.toggle(t.LayoutCssClasses.PRINT,n.print)},n.prototype.postConstruct=function(){this.createManagedBean(new wa(this)),this.setDisplayed(!1),this.addManagedListener(this.eventService,Ve.EVENT_ROW_DATA_CHANGED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_ROW_DATA_UPDATED,this.onRowDataChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.gridOptionsWrapper.isRowModelDefault()&&!this.gridOptionsWrapper.getRowData()&&this.showLoadingOverlay(),this.gridApi.registerOverlayWrapperComp(this)},n.prototype.setWrapperTypeClass=function(e){var t=this.eOverlayWrapper.classList;t.toggle("ag-overlay-loading-wrapper",e===Bd.Loading),t.toggle("ag-overlay-no-rows-wrapper",e===Bd.NoRows)},n.prototype.showLoadingOverlay=function(){if(!this.gridOptionsWrapper.isSuppressLoadingOverlay()){var e=this.userComponentFactory.getLoadingOverlayCompDetails({}).newAgStackInstance();this.showOverlay(e,Bd.Loading)}},n.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsWrapper.isSuppressNoRowsOverlay()){var e=this.userComponentFactory.getNoRowsOverlayCompDetails({}).newAgStackInstance();this.showOverlay(e,Bd.NoRows)}},n.prototype.showOverlay=function(e,t){var n=this;this.inProgress||(this.setWrapperTypeClass(t),this.destroyActiveOverlay(),this.inProgress=!0,e&&e.then((function(e){n.inProgress=!1,n.eOverlayWrapper.appendChild(e.getGui()),n.activeOverlay=e,n.destroyRequested&&(n.destroyRequested=!1,n.destroyActiveOverlay())})),this.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.setDisplayed(!0))},n.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),dn(this.eOverlayWrapper))},n.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.destroyActiveOverlay(),this.setDisplayed(!1)},n.prototype.destroy=function(){this.destroyActiveOverlay(),e.prototype.destroy.call(this)},n.prototype.showOrHideOverlay=function(){var e=this.paginationProxy.isEmpty(),t=this.gridOptionsWrapper.isSuppressNoRowsOverlay();e&&!t?this.showNoRowsOverlay():this.hideOverlay()},n.prototype.onRowDataChanged=function(){this.showOrHideOverlay()},n.prototype.onNewColumnsLoaded=function(){!this.columnModel.isReady()||this.paginationProxy.isEmpty()||this.manuallyDisplayed||this.hideOverlay()},n.TEMPLATE='\n        <div class="ag-overlay" aria-hidden="true">\n            <div class="ag-overlay-panel">\n                <div class="ag-overlay-wrapper" ref="eOverlayWrapper"></div>\n            </div>\n        </div>',wf([K("userComponentFactory")],n.prototype,"userComponentFactory",void 0),wf([K("paginationProxy")],n.prototype,"paginationProxy",void 0),wf([K("gridApi")],n.prototype,"gridApi",void 0),wf([K("columnModel")],n.prototype,"columnModel",void 0),wf([nr("eOverlayWrapper")],n.prototype,"eOverlayWrapper",void 0),wf([z],n.prototype,"postConstruct",null),n}(tr),bf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Ef=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},Sf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bf(t,e),t.prototype.getFirstRow=function(){var e,t=0;return this.pinnedRowModel.getPinnedTopRowCount()?e=oe.PINNED_TOP:this.rowModel.getRowCount()?(e=null,t=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(e=oe.PINNED_BOTTOM),void 0===e?null:{rowIndex:t,rowPinned:e}},t.prototype.getLastRow=function(){var e,t=null,n=this.pinnedRowModel.getPinnedBottomRowCount(),o=this.pinnedRowModel.getPinnedTopRowCount();return n?(t=oe.PINNED_BOTTOM,e=n-1):this.rowModel.getRowCount()?(t=null,e=this.paginationProxy.getPageLastRow()):o&&(t=oe.PINNED_TOP,e=o-1),void 0===e?null:{rowIndex:e,rowPinned:t}},t.prototype.getRowNode=function(e){switch(e.rowPinned){case oe.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case oe.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},t.prototype.sameRow=function(e,t){return!e&&!t||!(e&&!t||!e&&t)&&(e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned)},t.prototype.before=function(e,t){switch(e.rowPinned){case oe.PINNED_TOP:if(t.rowPinned!==oe.PINNED_TOP)return!0;break;case oe.PINNED_BOTTOM:if(t.rowPinned!==oe.PINNED_BOTTOM)return!1;break;default:if(r(t.rowPinned))return t.rowPinned!==oe.PINNED_TOP}return e.rowIndex<t.rowIndex},Ef([K("rowModel")],t.prototype,"rowModel",void 0),Ef([K("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Ef([K("paginationProxy")],t.prototype,"paginationProxy",void 0),t=Ef([Y("rowPositionUtils")],t)}(Fe),Rf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Of=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},Tf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rf(t,e),t.prototype.createId=function(e){var t=e.rowIndex,n=e.rowPinned,o=e.column;return this.createIdFromValues(t,o,n)},t.prototype.createIdFromValues=function(e,t,n){return e+"."+(null==n?"null":n)+"."+t.getId()},t.prototype.equals=function(e,t){var n=e.column===t.column,o=e.rowPinned===t.rowPinned,r=e.rowIndex===t.rowIndex;return n&&o&&r},t=Of([Y("cellPositionUtils")],t)}(Fe),Pf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Af=function(e){this.cellValueChanges=e},Df=function(e){function t(t,n,o){var r=e.call(this,t)||this;return r.initialRange=n,r.finalRange=o,r}return Pf(t,e),t}(Af),xf=function(){function e(t){this.actionStack=[],this.maxStackSize=t||e.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return e.prototype.pop=function(){return this.actionStack.pop()},e.prototype.push=function(e){e.cellValueChanges&&e.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(e))},e.prototype.clear=function(){this.actionStack=[]},e.prototype.getCurrentStackSize=function(){return this.actionStack.length},e.DEFAULT_STACK_SIZE=10,e}(),Nf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Mf=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},If=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellValueChanges=[],t.activeCellEdit=null,t.activeRowEdit=null,t.isPasting=!1,t.isFilling=!1,t.onCellValueChanged=function(e){var n={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned},o=null!==t.activeCellEdit&&t.cellPositionUtils.equals(t.activeCellEdit,n),r=null!==t.activeRowEdit&&t.rowPositionUtils.sameRow(t.activeRowEdit,n);if(o||r||t.isPasting||t.isFilling){var i=e.rowPinned,s=e.rowIndex,a=e.column,l=e.oldValue,u=e.value,c={rowPinned:i,rowIndex:s,columnId:a.getColId(),newValue:u,oldValue:l};t.cellValueChanges.push(c)}},t.clearStacks=function(){t.undoStack.clear(),t.redoStack.clear()},t}return Nf(n,e),n.prototype.init=function(){if(this.gridOptionsWrapper.isUndoRedoCellEditing()){var e=this.gridOptionsWrapper.getUndoRedoCellEditingLimit();e<=0||(this.undoStack=new xf(e),this.redoStack=new xf(e),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addManagedListener(this.eventService,Ve.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,Ve.EVENT_MODEL_UPDATED,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,Ve.EVENT_ROW_DRAG_END,this.clearStacks))}},n.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},n.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},n.prototype.undo=function(){if(this.undoStack){var e=this.undoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.oldValue})),e instanceof Df?this.processRangeAndCellFocus(e.cellValueChanges,e.initialRange):this.processRangeAndCellFocus(e.cellValueChanges),this.redoStack.push(e))}},n.prototype.redo=function(){if(this.redoStack){var e=this.redoStack.pop();e&&e.cellValueChanges&&(this.processAction(e,(function(e){return e.newValue})),e instanceof Df?this.processRangeAndCellFocus(e.cellValueChanges,e.finalRange):this.processRangeAndCellFocus(e.cellValueChanges),this.undoStack.push(e))}},n.prototype.processAction=function(e,t){var n=this;e.cellValueChanges.forEach((function(e){var o=e.rowIndex,r=e.rowPinned,i=e.columnId,s={rowIndex:o,rowPinned:r},a=n.getRowNode(s);a.displayed&&a.setDataValue(i,t(e))}))},n.prototype.processRangeAndCellFocus=function(e,t){var n;if(t){var o=t.startRow,r=t.endRow;n={rowPinned:o.rowPinned,rowIndex:o.rowIndex,columnId:t.startColumn.getColId()},this.setLastFocusedCell(n);var i={rowStartIndex:o.rowIndex,rowStartPinned:o.rowPinned,rowEndIndex:r.rowIndex,rowEndPinned:r.rowPinned,columnStart:t.startColumn,columns:t.columns};this.gridApi.addCellRange(i)}else{var s=e[0],a={rowIndex:s.rowIndex,rowPinned:s.rowPinned},l=this.getRowNode(a);n={rowPinned:s.rowPinned,rowIndex:l.rowIndex,columnId:s.columnId},this.setLastFocusedCell(n)}},n.prototype.setLastFocusedCell=function(e){var n=e.rowIndex,o=e.columnId,r=e.rowPinned;this.gridApi.ensureIndexVisible(n),this.gridApi.ensureColumnVisible(o),re.isRegistered(t.ModuleNames.RangeSelectionModule)&&this.gridApi.clearRangeSelection(),this.focusService.setFocusedCell(n,o,r,!0)},n.prototype.addRowEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_ROW_EDITING_STARTED,(function(t){e.activeRowEdit={rowIndex:t.rowIndex,rowPinned:t.rowPinned}})),this.addManagedListener(this.eventService,Ve.EVENT_ROW_EDITING_STOPPED,(function(){var t=new Af(e.cellValueChanges);e.pushActionsToUndoStack(t),e.activeRowEdit=null}))},n.prototype.addCellEditingListeners=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_CELL_EDITING_STARTED,(function(t){e.activeCellEdit={column:t.column,rowIndex:t.rowIndex,rowPinned:t.rowPinned}})),this.addManagedListener(this.eventService,Ve.EVENT_CELL_EDITING_STOPPED,(function(){if(e.activeCellEdit=null,!e.activeRowEdit&&!e.isPasting&&!e.isFilling){var t=new Af(e.cellValueChanges);e.pushActionsToUndoStack(t)}}))},n.prototype.addPasteListeners=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_PASTE_START,(function(){e.isPasting=!0})),this.addManagedListener(this.eventService,Ve.EVENT_PASTE_END,(function(){var t=new Af(e.cellValueChanges);e.pushActionsToUndoStack(t),e.isPasting=!1}))},n.prototype.addFillListeners=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_FILL_START,(function(){e.isFilling=!0})),this.addManagedListener(this.eventService,Ve.EVENT_FILL_END,(function(t){var n=new Df(e.cellValueChanges,t.initialRange,t.finalRange);e.pushActionsToUndoStack(n),e.isFilling=!1}))},n.prototype.pushActionsToUndoStack=function(e){this.undoStack.push(e),this.cellValueChanges=[],this.redoStack.clear()},n.prototype.getRowNode=function(e){switch(e.rowPinned){case oe.PINNED_TOP:return this.pinnedRowModel.getPinnedTopRowData()[e.rowIndex];case oe.PINNED_BOTTOM:return this.pinnedRowModel.getPinnedBottomRowData()[e.rowIndex];default:return this.rowModel.getRow(e.rowIndex)}},Mf([K("focusService")],n.prototype,"focusService",void 0),Mf([K("gridApi")],n.prototype,"gridApi",void 0),Mf([K("rowModel")],n.prototype,"rowModel",void 0),Mf([K("pinnedRowModel")],n.prototype,"pinnedRowModel",void 0),Mf([K("cellPositionUtils")],n.prototype,"cellPositionUtils",void 0),Mf([K("rowPositionUtils")],n.prototype,"rowPositionUtils",void 0),Mf([z],n.prototype,"init",null),n=Mf([Y("undoRedoService")],n)}(Fe),Lf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Ff=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},kf=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Lf(n,e),n.prototype.findHeader=function(e,t){var n,o,r;if(e.column instanceof we?(o="getDisplayedGroup"+t,n=this.columnModel[o](e.column)):(r="getDisplayedCol"+t,n=this.columnModel[r](e.column)),n)return{column:n,headerRowIndex:e.headerRowIndex}},n.prototype.findColAtEdgeForHeaderRow=function(e,n){var o=this.columnModel.getAllDisplayedColumns(),r=o["start"===n?0:o.length-1];if(r){var i=this.ctrlsService.getHeaderRowContainerCtrl(r.getPinned()).getRowType(e);return i==t.HeaderRowType.COLUMN_GROUP?{headerRowIndex:e,column:this.columnModel.getColumnGroupAtLevel(r,e)}:{headerRowIndex:null==i?-1:e,column:r}}},Ff([K("columnModel")],n.prototype,"columnModel",void 0),Ff([K("ctrlsService")],n.prototype,"ctrlsService",void 0),n=Ff([Y("headerPositionUtils")],n)}(Fe),Gf=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},Hf=function(){function e(){}return e.prototype.buildColumnDefs=function(e,t,n){var o=this,r=[],i={};return e.forEach((function(e){for(var s=!0,a=o.createDefFromColumn(e,t,n),l=e.getOriginalParent();l;){var u=null;if(l.isPadding())l=l.getOriginalParent();else{var c=i[l.getGroupId()];if(c){c.children.push(a),s=!1;break}(u=o.createDefFromGroup(l))&&(u.children=[a],i[u.groupId]=u,a=u,l=l.getOriginalParent())}}s&&r.push(a)})),r},e.prototype.createDefFromGroup=function(e){var t=m(e.getColGroupDef(),["children"]);return t&&(t.groupId=e.getGroupId()),t},e.prototype.createDefFromColumn=function(e,t,n){var o=m(e.getColDef());return o.colId=e.getColId(),o.width=e.getActualWidth(),o.rowGroup=e.isRowGroupActive(),o.rowGroupIndex=e.isRowGroupActive()?t.indexOf(e):null,o.pivot=e.isPivotActive(),o.pivotIndex=e.isPivotActive()?n.indexOf(e):null,o.aggFunc=e.isValueActive()?e.getAggFunc():null,o.hide=!e.isVisible()||void 0,o.pinned=e.isPinned()?e.getPinned():null,o.sort=e.getSort()?e.getSort():null,o.sortIndex=null!=e.getSortIndex()?e.getSortIndex():null,o},e=Gf([Y("columnDefFactory")],e)}(),Bf=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},Vf=function(){function e(){}return e.prototype.getInitialRowClasses=function(e){var t=[];return r(e.extraCssClass)&&t.push(e.extraCssClass),t.push("ag-row"),t.push(e.rowFocused?"ag-row-focus":"ag-row-no-focus"),e.fadeRowIn&&t.push("ag-opacity-zero"),t.push(e.rowIsEven?"ag-row-even":"ag-row-odd"),e.rowNode.isRowPinned()&&t.push("ag-row-pinned"),e.rowNode.isSelected()&&t.push("ag-row-selected"),e.rowNode.footer&&t.push("ag-row-footer"),t.push("ag-row-level-"+e.rowLevel),e.rowNode.stub&&t.push("ag-row-loading"),e.fullWidthRow&&t.push("ag-full-width-row"),e.expandable&&(t.push("ag-row-group"),t.push(e.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),e.rowNode.dragging&&t.push("ag-row-dragging"),ve(t,this.processClassesFromGridOptions(e.rowNode)),ve(t,this.preProcessRowClassRules(e.rowNode)),t.push(e.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),e.firstRowOnPage&&t.push("ag-row-first"),e.lastRowOnPage&&t.push("ag-row-last"),e.fullWidthRow&&(e.pinned===oe.PINNED_LEFT&&t.push("ag-cell-last-left-pinned"),e.pinned===oe.PINNED_RIGHT&&t.push("ag-cell-first-right-pinned")),t},e.prototype.processClassesFromGridOptions=function(e){var t=[],n=function(e){"string"===typeof e?t.push(e):Array.isArray(e)&&e.forEach((function(e){return t.push(e)}))},o=this.gridOptionsWrapper.getRowClass();if(o){if("function"===typeof o)return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];n(o)}var r=this.gridOptionsWrapper.getRowClassFunc();r&&n(r({data:e.data,node:e,rowIndex:e.rowIndex}));return t},e.prototype.preProcessRowClassRules=function(e){var t=[];return this.processRowClassRules(e,(function(e){t.push(e)}),(function(e){})),t},e.prototype.processRowClassRules=function(e,t,n){var o={data:e.data,node:e,rowIndex:e.rowIndex,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()};this.stylingService.processClassRules(this.gridOptionsWrapper.rowClassRules(),o,t,n)},e.prototype.calculateRowLevel=function(e){return e.group?e.level:e.parent?e.parent.level+1:0},Bf([K("stylingService")],e.prototype,"stylingService",void 0),Bf([K("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),e=Bf([Y("rowCssClassCalculator")],e)}(),Wf=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},jf=function(){function e(){}return e.prototype.doFullSort=function(e,t){var n=e.map((function(e,t){return{currentPos:t,rowNode:e}}));return n.sort(this.compareRowNodes.bind(this,t)),n.map((function(e){return e.rowNode}))},e.prototype.compareRowNodes=function(e,t,n){for(var o=t.rowNode,r=n.rowNode,i=0,s=e.length;i<s;i++){var a=e[i],l=a.sort===oe.SORT_DESC,u=this.getValue(o,a.column),c=this.getValue(r,a.column),p=void 0,d=this.getComparator(a,o);if(p=d?d(u,c,o,r,l):Wo.defaultComparator(u,c,this.gridOptionsWrapper.isAccentedSort()),!isNaN(p)&&0!==p)return a.sort===oe.SORT_ASC?p:-1*p}return t.currentPos-n.currentPos},e.prototype.getComparator=function(e,t){var n=e.column,o=n.getColDef().comparator;if(null!=o)return o;if(t.rowGroupColumn)return t.rowGroupColumn.getColDef().comparator;if(n.getColDef().showRowGroup){var r=!t.group&&n.getColDef().field;if(r){var i=this.columnModel.getPrimaryColumn(r);if(i)return i.getColDef().comparator}}},e.prototype.getValue=function(e,t){return this.valueService.getValue(t,e,!1,!1)},Wf([K("gridOptionsWrapper")],e.prototype,"gridOptionsWrapper",void 0),Wf([K("valueService")],e.prototype,"valueService",void 0),Wf([K("columnModel")],e.prototype,"columnModel",void 0),e=Wf([Y("rowNodeSorter")],e)}(),Uf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),zf=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},Zf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ready=!1,t.readyCallbacks=[],t}var n;return Uf(t,e),n=t,t.prototype.checkReady=function(){if(this.ready=null!=this.gridCtrl&&null!=this.gridBodyCtrl&&null!=this.centerRowContainerCtrl&&null!=this.leftRowContainerCtrl&&null!=this.rightRowContainerCtrl&&null!=this.bottomCenterRowContainerCtrl&&null!=this.bottomLeftRowContainerCtrl&&null!=this.bottomRightRowContainerCtrl&&null!=this.topCenterRowContainerCtrl&&null!=this.topLeftRowContainerCtrl&&null!=this.topRightRowContainerCtrl&&null!=this.centerHeaderRowContainerCtrl&&null!=this.leftHeaderRowContainerCtrl&&null!=this.rightHeaderRowContainerCtrl&&null!=this.fakeHScrollCtrl&&null!=this.gridHeaderCtrl,this.ready){var e=this.createReadyParams();this.readyCallbacks.forEach((function(t){return t(e)})),this.readyCallbacks.length=0}},t.prototype.whenReady=function(e){this.ready?e(this.createReadyParams()):this.readyCallbacks.push(e)},t.prototype.createReadyParams=function(){return{centerRowContainerCtrl:this.centerRowContainerCtrl,leftRowContainerCtrl:this.leftRowContainerCtrl,rightRowContainerCtrl:this.rightRowContainerCtrl,bottomCenterRowContainerCtrl:this.bottomCenterRowContainerCtrl,bottomLeftRowContainerCtrl:this.bottomLeftRowContainerCtrl,bottomRightRowContainerCtrl:this.bottomRightRowContainerCtrl,topCenterRowContainerCtrl:this.topCenterRowContainerCtrl,topLeftRowContainerCtrl:this.topLeftRowContainerCtrl,topRightRowContainerCtrl:this.topRightRowContainerCtrl,centerHeaderRowContainerCtrl:this.centerHeaderRowContainerCtrl,leftHeaderRowContainerCtrl:this.leftHeaderRowContainerCtrl,rightHeaderRowContainerCtrl:this.rightHeaderRowContainerCtrl,fakeHScrollCtrl:this.fakeHScrollCtrl,gridBodyCtrl:this.gridBodyCtrl,gridCtrl:this.gridCtrl,gridHeaderCtrl:this.gridHeaderCtrl}},t.prototype.registerFakeHScrollCtrl=function(e){this.fakeHScrollCtrl=e,this.checkReady()},t.prototype.registerGridHeaderCtrl=function(e){this.gridHeaderCtrl=e,this.checkReady()},t.prototype.registerCenterRowContainerCtrl=function(e){this.centerRowContainerCtrl=e,this.checkReady()},t.prototype.registerLeftRowContainerCtrl=function(e){this.leftRowContainerCtrl=e,this.checkReady()},t.prototype.registerRightRowContainerCtrl=function(e){this.rightRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopCenterRowContainerCtrl=function(e){this.topCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopLeftRowContainerCon=function(e){this.topLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerTopRightRowContainerCtrl=function(e){this.topRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomCenterRowContainerCtrl=function(e){this.bottomCenterRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomLeftRowContainerCtrl=function(e){this.bottomLeftRowContainerCtrl=e,this.checkReady()},t.prototype.registerBottomRightRowContainerCtrl=function(e){this.bottomRightRowContainerCtrl=e,this.checkReady()},t.prototype.registerHeaderContainer=function(e,t){switch(t){case oe.PINNED_LEFT:this.leftHeaderRowContainerCtrl=e;break;case oe.PINNED_RIGHT:this.rightHeaderRowContainerCtrl=e;break;default:this.centerHeaderRowContainerCtrl=e}this.checkReady()},t.prototype.registerGridBodyCtrl=function(e){this.gridBodyCtrl=e,this.checkReady()},t.prototype.registerGridCtrl=function(e){this.gridCtrl=e,this.checkReady()},t.prototype.getFakeHScrollCtrl=function(){return this.fakeHScrollCtrl},t.prototype.getGridHeaderCtrl=function(){return this.gridHeaderCtrl},t.prototype.getGridCtrl=function(){return this.gridCtrl},t.prototype.getCenterRowContainerCtrl=function(){return this.centerRowContainerCtrl},t.prototype.getTopCenterRowContainerCtrl=function(){return this.topCenterRowContainerCtrl},t.prototype.getBottomCenterRowContainerCtrl=function(){return this.bottomCenterRowContainerCtrl},t.prototype.getGridBodyCtrl=function(){return this.gridBodyCtrl},t.prototype.getHeaderRowContainerCtrls=function(){return[this.leftHeaderRowContainerCtrl,this.rightHeaderRowContainerCtrl,this.centerHeaderRowContainerCtrl]},t.prototype.getHeaderRowContainerCtrl=function(e){switch(e){case oe.PINNED_LEFT:return this.leftHeaderRowContainerCtrl;case oe.PINNED_RIGHT:return this.rightHeaderRowContainerCtrl;default:return this.centerHeaderRowContainerCtrl}},t.NAME="ctrlsService",t=n=zf([Y(n.NAME)],t)}(Fe),Yf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Kf=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},qf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.registry={},t}return Yf(t,e),t.prototype.register=function(e){this.registry[e.controllerName]=e.controllerClass},t.prototype.getInstance=function(e){var t=this.registry[e];if(null!=t)return new t},t=Kf([Y("ctrlsFactory")],t)}(Fe),Xf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Qf=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},Jf=function(e){function t(){return e.call(this)||this}return Xf(t,e),t.prototype.setComp=function(e,t,n,o){this.view=e,this.eViewport=n,this.eContainer=o,this.eGui=t,this.addManagedListener(this.eventService,Ve.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged();var r=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,r),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,r),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,r),this.setFakeHScrollSpacerWidths(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()),this.ctrlsService.registerFakeHScrollCtrl(this)},t.prototype.addActiveListenerToggles=function(){var e=this;["mouseenter","mousedown","touchstart"].forEach((function(t){return e.addManagedListener(e.eGui,t,(function(){return e.view.addOrRemoveCssClass("ag-scrollbar-active",!0)}))})),["mouseleave","mouseup","touchend"].forEach((function(t){return e.addManagedListener(e.eGui,t,(function(){return e.view.addOrRemoveCssClass("ag-scrollbar-active",!1)}))}))},t.prototype.postConstruct=function(){this.enableRtl=this.gridOptionsWrapper.isEnableRtl(),this.invisibleScrollbar=Yt()},t.prototype.onScrollVisibilityChanged=function(){this.setScrollVisible(),this.setFakeHScrollSpacerWidths()},t.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var e=this;this.addManagedListener(this.eventService,Ve.EVENT_BODY_SCROLL,(function(t){"horizontal"===t.direction&&e.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!0)})),this.addManagedListener(this.eventService,Ve.EVENT_BODY_SCROLL_END,(function(){return e.view.addOrRemoveCssClass("ag-scrollbar-scrolling",!1)}))},t.prototype.setFakeHScrollSpacerWidths=function(){var e=this.scrollVisibleService.isVerticalScrollShowing(),t=this.columnModel.getDisplayedColumnsRightWidth(),n=!this.enableRtl&&e,o=this.gridOptionsWrapper.getScrollbarWidth();n&&(t+=o),this.view.setRightSpacerFixedWidth(t),this.view.includeRightSpacerScrollerCss("ag-scroller-corner",t<=o);var r=this.columnModel.getDisplayedColumnsLeftWidth();this.enableRtl&&e&&(r+=o),this.view.setLeftSpacerFixedWidth(r),this.view.includeLeftSpacerScrollerCss("ag-scroller-corner",r<=o)},t.prototype.setScrollVisible=function(){var e=this.scrollVisibleService.isHorizontalScrollShowing(),t=this.invisibleScrollbar,n=this.gridOptionsWrapper.isSuppressHorizontalScroll(),o=e&&this.gridOptionsWrapper.getScrollbarWidth()||0,r=n?0:0===o&&t?15:o;this.view.addOrRemoveCssClass("ag-scrollbar-invisible",t),this.view.setHeight(r),this.view.setViewportHeight(r),this.view.setContainerHeight(r)},t.prototype.getViewport=function(){return this.eViewport},t.prototype.getContainer=function(){return this.eContainer},Qf([K("scrollVisibleService")],t.prototype,"scrollVisibleService",void 0),Qf([K("columnModel")],t.prototype,"columnModel",void 0),Qf([K("ctrlsService")],t.prototype,"ctrlsService",void 0),Qf([z],t.prototype,"postConstruct",null),t}(Fe),$f=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),eg=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},tg=function(e){function t(){return e.call(this,t.TEMPLATE)||this}return $f(t,e),t.prototype.postConstruct=function(){var e=this,t={addOrRemoveCssClass:function(t,n){return e.addOrRemoveCssClass(t,n)},setHeight:function(t){return On(e.getGui(),t)},setContainerHeight:function(t){return On(e.eContainer,t)},setViewportHeight:function(t){return On(e.eViewport,t)},setRightSpacerFixedWidth:function(t){return Rn(e.eRightSpacer,t)},setLeftSpacerFixedWidth:function(t){return Rn(e.eLeftSpacer,t)},includeLeftSpacerScrollerCss:function(t,n){return e.eLeftSpacer.classList.toggle(t,n)},includeRightSpacerScrollerCss:function(t,n){return e.eRightSpacer.classList.toggle(t,n)}};this.createManagedBean(new Jf).setComp(t,this.getGui(),this.eViewport,this.eContainer),this.createManagedBean(new Fl((function(t){return e.eContainer.style.width=t+"px"})))},t.TEMPLATE='<div class="ag-body-horizontal-scroll" aria-hidden="true">\n            <div class="ag-horizontal-left-spacer" ref="eLeftSpacer"></div>\n            <div class="ag-body-horizontal-scroll-viewport" ref="eViewport">\n                <div class="ag-body-horizontal-scroll-container" ref="eContainer"></div>\n            </div>\n            <div class="ag-horizontal-right-spacer" ref="eRightSpacer"></div>\n        </div>',eg([nr("eLeftSpacer")],t.prototype,"eLeftSpacer",void 0),eg([nr("eRightSpacer")],t.prototype,"eRightSpacer",void 0),eg([nr("eViewport")],t.prototype,"eViewport",void 0),eg([nr("eContainer")],t.prototype,"eContainer",void 0),eg([z],t.prototype,"postConstruct",null),t}(tr),ng=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),og=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},rg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ng(t,e),t.prototype.postConstruct=function(){var e=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_CHANGED,e),this.addManagedListener(this.eventService,Ve.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,e),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_DOM_LAYOUT,e)},t.prototype.checkContainerWidths=function(){var e=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_PRINT,t=e?0:this.columnModel.getDisplayedColumnsLeftWidth(),n=e?0:this.columnModel.getDisplayedColumnsRightWidth();t!=this.leftWidth&&(this.leftWidth=t,this.eventService.dispatchEvent({type:Ve.EVENT_LEFT_PINNED_WIDTH_CHANGED})),n!=this.rightWidth&&(this.rightWidth=n,this.eventService.dispatchEvent({type:Ve.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},t.prototype.getPinnedRightWidth=function(){return this.rightWidth},t.prototype.getPinnedLeftWidth=function(){return this.leftWidth},og([K("columnModel")],t.prototype,"columnModel",void 0),og([z],t.prototype,"postConstruct",null),t=og([Y("pinnedWidthService")],t)}(Fe),ig=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),sg=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},ag=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.events=[],t}return ig(t,e),t.prototype.postConstruct=function(){this.rowModel.getType()==oe.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},t.prototype.dispatchExpanded=function(e){var t=this;if(null!=this.clientSideRowModel){this.events.push(e);null==this.dispatchExpandedDebounced&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce((function(){t.clientSideRowModel&&t.clientSideRowModel.onRowGroupOpened(),t.events.forEach((function(e){return t.eventService.dispatchEvent(e)})),t.events=[]}))),this.dispatchExpandedDebounced()}else this.eventService.dispatchEvent(e)},sg([K("animationFrameService")],t.prototype,"animationFrameService",void 0),sg([K("rowModel")],t.prototype,"rowModel",void 0),sg([z],t.prototype,"postConstruct",null),t=sg([Y("rowNodeEventThrottle")],t)}(Fe),lg=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},ug=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(lg(arguments[t]));return e},cg=function(){function e(e,t,n){t?(this.gridOptions=t,(new pg).create(e,t,(function(t){var n=new Ph(e);t.createBean(n)}),void 0,n)):console.error("AG Grid: no gridOptions provided to the grid")}return e.prototype.destroy=function(){this.gridOptions&&this.gridOptions.api&&this.gridOptions.api.destroy()},e}(),pg=function(){function e(){}return e.prototype.create=function(e,n,o,r,i){var s=this,a=!!n.debug,l=this.getRegisteredModules(i),u=this.createBeansList(n.rowModelType,l),c=this.createProvidedBeans(e,n,i);if(u){var p={providedBeanInstances:c,beanClasses:u,debug:a},d=new bh("AG Grid",(function(){return n.debug})),h=new bh("Context",(function(){return p.debug})),f=new j(p,h),g=f.getBean("beans");this.registerModuleUserComponents(g,l),this.registerStackComponents(g,l),this.registerControllers(g,l),o(f),g.ctrlsService.whenReady((function(){s.setColumnsAndData(g),s.dispatchGridReadyEvent(g,n);var e=re.isRegistered(t.ModuleNames.EnterpriseCoreModule);d.log("initialised successfully, enterprise = "+e)})),r&&r(f)}},e.prototype.registerControllers=function(e,t){t.forEach((function(t){t.controllers&&t.controllers.forEach((function(t){return e.ctrlsFactory.register(t)}))}))},e.prototype.registerStackComponents=function(e,t){var n=this.createAgStackComponentsList(t);e.agStackComponentsRegistry.setupComponents(n)},e.prototype.getRegisteredModules=function(e){var t=e?e.modules:null,n=re.getRegisteredModules(),o=[],r={};function i(e,t){var n;r[(n=t).moduleName]||(r[n.moduleName]=!0,o.push(n),re.register(n,e)),t.dependantModules&&t.dependantModules.forEach(i.bind(null,e))}return t&&t.forEach(i.bind(null,!0)),n&&n.forEach(i.bind(null,!re.isPackageBased())),o},e.prototype.registerModuleUserComponents=function(e,t){this.extractModuleEntity(t,(function(e){return e.userComponents?e.userComponents:[]})).forEach((function(t){e.userComponentRegistry.registerDefaultComponent(t.componentName,t.componentClass)}))},e.prototype.createProvidedBeans=function(e,t,n){var o=n?n.frameworkOverrides:null;i(o)&&(o=new Kd);var r={gridOptions:t,eGridDiv:e,globalEventListener:n?n.globalEventListener:null,frameworkOverrides:o};return n&&n.providedBeanInstances&&Object.assign(r,n.providedBeanInstances),r},e.prototype.createAgStackComponentsList=function(e){var t=[{componentName:"AgCheckbox",componentClass:ic},{componentName:"AgRadioButton",componentClass:kp},{componentName:"AgToggleButton",componentClass:Hp},{componentName:"AgInputTextField",componentClass:Vp},{componentName:"AgInputTextArea",componentClass:jp},{componentName:"AgInputNumberField",componentClass:zp},{componentName:"AgInputRange",componentClass:Yp},{componentName:"AgSelect",componentClass:Mr},{componentName:"AgSlider",componentClass:Xp},{componentName:"AgAngleSelect",componentClass:$p},{componentName:"AgColorPicker",componentClass:dd},{componentName:"AgGridBody",componentClass:ql},{componentName:"AgHeaderRoot",componentClass:Vc},{componentName:"AgPagination",componentClass:yf},{componentName:"AgOverlayWrapper",componentClass:_f},{componentName:"AgGroupComponent",componentClass:gd},{componentName:"AgPanel",componentClass:sd},{componentName:"AgDialog",componentClass:cd},{componentName:"AgRowContainer",componentClass:vu},{componentName:"AgFakeHorizontalScroll",componentClass:tg}],n=this.extractModuleEntity(e,(function(e){return e.agStackComponents?e.agStackComponents:[]}));return t=t.concat(n)},e.prototype.createBeansList=function(e,t){var n=this.getRowModelClass(e,t);if(n){var o=[n,qa,Sf,Tf,kf,jh,zu,Os,Jh,tf,ep,Ys,df,Uc,_p,Xs,pt,ne,ma,Wd,ih,ea,it,Lc,Np,fp,fh,Be,vh,th,iu,Zh,ch,_h,lt,up,Yc,ts,ah,kd,tu,lf,Qd,yp,Lp,Jl,xh,Ih,kh,gf,Bh,qh,op,If,_t,Hf,Vf,Ap,jf,Zf,rg,ag,qf],r=this.extractModuleEntity(t,(function(e){return e.beans?e.beans:[]}));o.push.apply(o,ug(r));var i=[];return o.forEach((function(e){i.indexOf(e)<0&&i.push(e)})),i}},e.prototype.extractModuleEntity=function(e,t){return[].concat.apply([],ug(e.map(t)))},e.prototype.setColumnsAndData=function(e){var t=e.gridOptionsWrapper.getColumnDefs();e.columnModel.setColumnDefs(t||[],"gridInitializing"),e.rowModel.start()},e.prototype.dispatchGridReadyEvent=function(e,t){var n={type:Ve.EVENT_GRID_READY,api:t.api,columnApi:t.columnApi};e.eventService.dispatchEvent(n)},e.prototype.getRowModelClass=function(e,n){e||(e=oe.ROW_MODEL_TYPE_CLIENT_SIDE);var o={};n.forEach((function(e){f(e.rowModels,(function(e,t){o[e]=t}))}));var i=o[e];if(r(i))return i;re.isPackageBased()?[oe.ROW_MODEL_TYPE_VIEWPORT,oe.ROW_MODEL_TYPE_SERVER_SIDE].includes(e)?console.error('AG Grid: Row Model "'+e+"\" not found. Please ensure the package 'ag-grid-enterprise' is imported. Please see: https://www.ag-grid.com/javascript-grid/packages/"):console.error("AG Grid: could not find row model for rowModelType "+e):e===oe.ROW_MODEL_TYPE_INFINITE?console.error('AG Grid: Row Model "Infinite" not found. Please ensure the '+t.ModuleNames.InfiniteRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):e===oe.ROW_MODEL_TYPE_VIEWPORT?console.error('AG Grid: Row Model "Viewport" not found. Please ensure the AG Grid Enterprise Module '+t.ModuleNames.ViewportRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):e===oe.ROW_MODEL_TYPE_SERVER_SIDE?console.error('AG Grid: Row Model "Server Side" not found. Please ensure the AG Grid Enterprise Module '+t.ModuleNames.ServerSideRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):e===oe.ROW_MODEL_TYPE_CLIENT_SIDE?console.error('AG Grid: Row Model "Client Side" not found. Please ensure the '+t.ModuleNames.ClientSideRowModelModule+" module is registered. Please see: https://www.ag-grid.com/javascript-grid/modules/"):console.error("AG Grid: could not find row model for rowModelType "+e)},e}();var dg,hg=function(){function e(){}return e.prototype.wrap=function(e,t,n,o){var r=this;void 0===n&&(n=[]);var i=this.createWrapper(e,o);return t.forEach((function(e){r.createMethod(i,e,!0)})),n.forEach((function(e){r.createMethod(i,e,!1)})),i},e.prototype.unwrap=function(e){return e},e.prototype.createMethod=function(e,t,n){e.addMethod(t,this.createMethodProxy(e,t,n))},e.prototype.createMethodProxy=function(e,t,n){return function(){return e.hasMethod(t)?e.callMethod(t,arguments):(n&&console.warn("AG Grid: Framework component is missing the method "+t+"()"),null)}},e}();(dg=t.BarColumnLabelPlacement||(t.BarColumnLabelPlacement={})).InsideBase="insideBase",dg.InsideEnd="insideEnd",dg.Center="center",dg.OutsideEnd="outsideEnd";var fg="undefined"===typeof n.g?{}:n.g;fg.HTMLElement="undefined"===typeof HTMLElement?{}:HTMLElement,fg.HTMLButtonElement="undefined"===typeof HTMLButtonElement?{}:HTMLButtonElement,fg.HTMLSelectElement="undefined"===typeof HTMLSelectElement?{}:HTMLSelectElement,fg.HTMLInputElement="undefined"===typeof HTMLInputElement?{}:HTMLInputElement,fg.Node="undefined"===typeof Node?{}:Node,fg.MouseEvent="undefined"===typeof MouseEvent?{}:MouseEvent;var gg,mg=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},vg=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(mg(arguments[t]));return e},yg=function(){function e(t,n,o,r,i,s,a,l){this.nextId=0,this.allNodesMap={},this.rootNode=t,this.gridOptionsWrapper=n,this.eventService=o,this.columnModel=r,this.gridApi=i,this.columnApi=s,this.beans=l,this.selectionService=a,this.rootNode.group=!0,this.rootNode.level=-1,this.rootNode.id=e.ROOT_NODE_ID,this.rootNode.allLeafChildren=[],this.rootNode.childrenAfterGroup=[],this.rootNode.childrenAfterSort=[],this.rootNode.childrenAfterAggFilter=[],this.rootNode.childrenAfterFilter=[],this.postConstruct()}return e.prototype.postConstruct=function(){this.suppressParentsInRowNodes=this.gridOptionsWrapper.isSuppressParentsInRowNodes(),this.isRowMasterFunc=this.gridOptionsWrapper.getIsRowMasterFunc(),this.doingTreeData=this.gridOptionsWrapper.isTreeData(),this.doingMasterDetail=this.gridOptionsWrapper.isMasterDetail()},e.prototype.getCopyOfNodesMap=function(){return Wo.cloneObject(this.allNodesMap)},e.prototype.getRowNode=function(e){return this.allNodesMap[e]},e.prototype.setRowData=function(t){var n=this;if("string"!==typeof t){var o=this.rootNode,r=this.rootNode.sibling;o.childrenAfterFilter=null,o.childrenAfterGroup=null,o.childrenAfterAggFilter=null,o.childrenAfterSort=null,o.childrenMapped=null,o.updateHasChildren(),this.nextId=0,this.allNodesMap={},t?o.allLeafChildren=t.map((function(t){return n.createNode(t,n.rootNode,e.TOP_LEVEL)})):(o.allLeafChildren=[],o.childrenAfterGroup=[]),r&&(r.childrenAfterFilter=o.childrenAfterFilter,r.childrenAfterGroup=o.childrenAfterGroup,r.childrenAfterAggFilter=o.childrenAfterAggFilter,r.childrenAfterSort=o.childrenAfterSort,r.childrenMapped=o.childrenMapped,r.allLeafChildren=o.allLeafChildren)}else console.warn("AG Grid: rowData must be an array, however you passed in a string. If you are loading JSON, make sure you convert the JSON string to JavaScript objects first")},e.prototype.updateRowData=function(e,t){var n={remove:[],update:[],add:[]},o=[];return this.executeRemove(e,n,o),this.executeUpdate(e,n,o),this.executeAdd(e,n),this.updateSelection(o),t&&Wo.sortRowNodesByOrder(this.rootNode.allLeafChildren,t),n},e.prototype.updateSelection=function(e){var t=e.length>0;if(t&&e.forEach((function(e){e.setSelected(!1,!1,!0)})),this.selectionService.updateGroupsFromChildrenSelections(),t){var n={type:Ve.EVENT_SELECTION_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(n)}},e.prototype.executeAdd=function(t,n){var o=this,r=t.add,i=t.addIndex;if(!Wo.missingOrEmpty(r)){var s,a,l=r.map((function(t){return o.createNode(t,o.rootNode,e.TOP_LEVEL)}));if("number"===typeof i&&i>=0){var u=this.rootNode.allLeafChildren,c=0===i?0:u.reduce((function(e,t,n){var o,r=t.rowIndex,s=null===(o=u[e])||void 0===o?void 0:o.rowIndex;return null!=r&&null!=s&&r<i&&r>s?n:e}),0)+1;s=u.slice(0,c),a=u.slice(c,u.length)}else s=this.rootNode.allLeafChildren,a=[];this.rootNode.allLeafChildren=vg(s,l,a),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren),n.add=l}},e.prototype.executeRemove=function(e,t,n){var o=this,r=e.remove;if(!Wo.missingOrEmpty(r)){var i={};r.forEach((function(e){var r=o.lookupRowNode(e);r&&(r.isSelected()&&n.push(r),r.clearRowTopAndRowIndex(),i[r.id]=!0,delete o.allNodesMap[r.id],t.remove.push(r))})),this.rootNode.allLeafChildren=this.rootNode.allLeafChildren.filter((function(e){return!i[e.id]})),this.rootNode.sibling&&(this.rootNode.sibling.allLeafChildren=this.rootNode.allLeafChildren)}},e.prototype.executeUpdate=function(t,n,o){var r=this,i=t.update;Wo.missingOrEmpty(i)||i.forEach((function(t){var i=r.lookupRowNode(t);i&&(i.updateData(t),!i.selectable&&i.isSelected()&&o.push(i),r.setMasterForRow(i,t,e.TOP_LEVEL,!1),n.update.push(i))}))},e.prototype.lookupRowNode=function(e){var t,n=this.gridOptionsWrapper.getRowIdFunc();if(n){var o=n({data:e,level:0});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=this.rootNode.allLeafChildren.find((function(t){return t.data===e}))))return console.error("AG Grid: could not find data item as object was not found",e),console.error("Consider using getRowId to help the Grid find matching row data"),null;return t||null},e.prototype.createNode=function(e,t,n){var o=new Yi(this.beans);return o.group=!1,this.setMasterForRow(o,e,n,!0),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 getRowId callback, this could cause issues in your grid."),this.allNodesMap[o.id]=o,this.nextId++,o},e.prototype.setMasterForRow=function(e,t,n,o){if(this.doingTreeData)e.setMaster(!1),o&&(e.expanded=!1);else if(this.doingMasterDetail?this.isRowMasterFunc?e.setMaster(this.isRowMasterFunc(t)):e.setMaster(!0):e.setMaster(!1),o){var r=this.columnModel.getRowGroupColumns(),i=n+(r?r.length:0);e.expanded=!!e.master&&this.isExpanded(i)}},e.prototype.isExpanded=function(e){var t=this.gridOptionsWrapper.getGroupDefaultExpanded();return-1===t||e<t},e.TOP_LEVEL=0,e.ROOT_NODE_ID="ROOT_NODE_ID",e}(),Cg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),wg=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"}(gg||(gg={}));var _g=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Cg(n,e),n.prototype.init=function(){var e=this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.EVERYTHING}),n=!this.gridOptionsWrapper.isSuppressAnimationFrame(),o=this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.EVERYTHING,afterColumnsChanged:!0,keepRenderedRows:!0,animate:n});this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,o),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_VALUE_CHANGED,this.onValueChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_CHANGED,this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.PIVOT})),this.addManagedListener(this.eventService,Ve.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_COLUMN_PIVOT_MODE_CHANGED,e);var r=this.refreshModel.bind(this,{step:t.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:n});this.addManagedListener(this.gridOptionsWrapper,ma.PROP_GROUP_REMOVE_SINGLE_CHILDREN,r),this.addManagedListener(this.gridOptionsWrapper,ma.PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN,r),this.rootNode=new Yi(this.beans),this.nodeManager=new yg(this.rootNode,this.gridOptionsWrapper,this.eventService,this.columnModel,this.gridApi,this.columnApi,this.selectionService,this.beans)},n.prototype.start=function(){var e=this.gridOptionsWrapper.getRowData();e&&this.setRowData(e)},n.prototype.ensureRowHeightsValid=function(e,t,n,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.setRowTopAndRowIndex()}while(r);return i},n.prototype.setRowTopAndRowIndex=function(){for(var e=this.gridOptionsWrapper.getDefaultRowHeight(),t=0,n=new Set,o=this.gridOptionsWrapper.getDomLayout()===oe.DOM_LAYOUT_NORMAL,r=0;r<this.rowsToDisplay.length;r++){var i=this.rowsToDisplay[r];if(null!=i.id&&n.add(i.id),null==i.rowHeight){var s=this.gridOptionsWrapper.getRowHeightForNode(i,o,e);i.setRowHeight(s.height,s.estimated)}i.setRowTop(t),i.setRowIndex(r),t+=i.rowHeight}return n},n.prototype.clearRowTopAndRowIndex=function(e,t){var n=e.isActive(),o=function(e){e&&null!=e.id&&!t.has(e.id)&&e.clearRowTopAndRowIndex()};!function e(t){if(o(t),o(t.detailNode),o(t.sibling),t.hasChildren()&&t.childrenAfterGroup){var r=-1==t.level;n&&!r&&!t.expanded||t.childrenAfterGroup.forEach(e)}}(this.rootNode)},n.prototype.ensureRowsAtPixel=function(e,n,o){var r=this;void 0===o&&(o=0);var i=this.getRowIndexAtPixel(n),s=this.getRow(i),a=!this.gridOptionsWrapper.isSuppressAnimationFrame();return s!==e[0]&&(e.forEach((function(e){Wo.removeFromArray(r.rootNode.allLeafChildren,e)})),e.forEach((function(e,t){Wo.insertIntoArray(r.rootNode.allLeafChildren,e,Math.max(i+o,0)+t)})),this.refreshModel({step:t.ClientSideRowModelSteps.EVERYTHING,keepRenderedRows:!0,keepEditingRows:!0,animate:a}),!0)},n.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)},n.prototype.getHighlightPosition=function(e,n){if(!n){var o=this.getRowIndexAtPixel(e);if(!(n=this.getRow(o||0)))return t.RowHighlightPosition.Below}return e-n.rowTop<n.rowHeight/2?t.RowHighlightPosition.Above:t.RowHighlightPosition.Below},n.prototype.getLastHighlightedRowNode=function(){return this.lastHighlightedRow},n.prototype.isLastRowIndexKnown=function(){return!0},n.prototype.getRowCount=function(){return this.rowsToDisplay?this.rowsToDisplay.length:0},n.prototype.getTopLevelRowCount=function(){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return 1;var e=this.rootNode.childrenAfterAggFilter;return e?e.length:0},n.prototype.getTopLevelRowDisplayedIndex=function(e){if(this.rowsToDisplay&&this.rowsToDisplay[0]===this.rootNode)return e;var t=this.rootNode.childrenAfterSort[e];if(this.gridOptionsWrapper.isGroupHideOpenParents())for(;t.expanded&&t.childrenAfterSort&&t.childrenAfterSort.length>0;)t=t.childrenAfterSort[0];return t.rowIndex},n.prototype.getRowBounds=function(e){if(Wo.missing(this.rowsToDisplay))return null;var t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null},n.prototype.onRowGroupOpened=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:t.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,animate:e})},n.prototype.onFilterChanged=function(e){if(!e.afterDataChange){var n=this.gridOptionsWrapper.isAnimateRows(),o=0===e.columns.length||e.columns.some((function(e){return e.isPrimary()}))?t.ClientSideRowModelSteps.FILTER:t.ClientSideRowModelSteps.FILTER_AGGREGATES;this.refreshModel({step:o,keepRenderedRows:!0,animate:n})}},n.prototype.onSortChanged=function(){var e=this.gridOptionsWrapper.isAnimateRows();this.refreshModel({step:t.ClientSideRowModelSteps.SORT,keepRenderedRows:!0,animate:e,keepEditingRows:!0})},n.prototype.getType=function(){return oe.ROW_MODEL_TYPE_CLIENT_SIDE},n.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:t.ClientSideRowModelSteps.PIVOT}):this.refreshModel({step:t.ClientSideRowModelSteps.AGGREGATE})},n.prototype.createChangePath=function(e){var t=Wo.missingOrEmpty(e),n=new Ep(!1,this.rootNode);return(t||this.gridOptionsWrapper.isTreeData())&&n.setInactive(),n},n.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(e){if(!this.gridOptionsWrapper.isSuppressModelUpdateAfterUpdateTransaction())return!1;if(null==e.rowNodeTransactions)return!1;var t=e.rowNodeTransactions.filter((function(e){return null!=e.add&&e.add.length>0||null!=e.remove&&e.remove.length>0}));return null==t||0==t.length},n.prototype.refreshModel=function(e){if(!this.isSuppressModelUpdateAfterUpdateTransaction(e)){var n=this.createChangePath(e.rowNodeTransactions);switch(e.step){case t.ClientSideRowModelSteps.EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,n,!!e.afterColumnsChanged);case t.ClientSideRowModelSteps.FILTER:this.doFilter(n);case t.ClientSideRowModelSteps.PIVOT:this.doPivot(n);case t.ClientSideRowModelSteps.AGGREGATE:this.doAggregate(n);case t.ClientSideRowModelSteps.FILTER_AGGREGATES:this.doFilterAggregates(n);case t.ClientSideRowModelSteps.SORT:this.doSort(e.rowNodeTransactions,n);case t.ClientSideRowModelSteps.MAP:this.doRowsToDisplay()}var o=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(n,o);var r={type:Ve.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1};this.eventService.dispatchEvent(r)}},n.prototype.isEmpty=function(){var e=Wo.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return Wo.missing(this.rootNode)||e||!this.columnModel.isReady()},n.prototype.isRowsToRender=function(){return Wo.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},n.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},n.prototype.setDatasource=function(e){console.error("AG Grid: should never call setDatasource on clientSideRowController")},n.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},n.prototype.getRootNode=function(){return this.rootNode},n.prototype.getRow=function(e){return this.rowsToDisplay[e]},n.prototype.isRowPresent=function(e){return this.rowsToDisplay.indexOf(e)>=0},n.prototype.getRowIndexAtPixel=function(e){if(this.isEmpty())return-1;var t=0,n=this.rowsToDisplay.length-1;if(e<=0)return 0;if(Wo.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)}},n.prototype.isRowInPixel=function(e,t){var n=e.rowTop,o=e.rowTop+e.rowHeight;return n<=t&&o>t},n.prototype.forEachLeafNode=function(e){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(t,n){return e(t,n)}))},n.prototype.forEachNode=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterGroup,e,gg.Normal,0)},n.prototype.forEachNodeAfterFilter=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterAggFilter,e,gg.AfterFilter,0)},n.prototype.forEachNodeAfterFilterAndSort=function(e){this.recursivelyWalkNodesAndCallback(this.rootNode.childrenAfterSort,e,gg.AfterFilterAndSort,0)},n.prototype.forEachPivotNode=function(e){this.recursivelyWalkNodesAndCallback([this.rootNode],e,gg.PivotNodes,0)},n.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 gg.Normal:s=i.childrenAfterGroup;break;case gg.AfterFilter:s=i.childrenAfterAggFilter;break;case gg.AfterFilterAndSort:s=i.childrenAfterSort;break;case gg.PivotNodes:s=i.leafGroup?null:i.childrenAfterSort}s&&(o=this.recursivelyWalkNodesAndCallback(s,t,n,o))}}return o},n.prototype.doAggregate=function(e){this.aggregationStage&&this.aggregationStage.execute({rowNode:this.rootNode,changedPath:e})},n.prototype.doFilterAggregates=function(e){this.filterAggregatesStage?this.filterAggregatesStage.execute({rowNode:this.rootNode,changedPath:e}):this.rootNode.childrenAfterAggFilter=this.rootNode.childrenAfterFilter},n.prototype.expandOrCollapseAll=function(e){var n=this.gridOptionsWrapper.isTreeData(),o=this.columnModel.isPivotActive();this.rootNode&&function t(r){r&&r.forEach((function(r){var i=function(){r.expanded=e,t(r.childrenAfterGroup)};n?Wo.exists(r.childrenAfterGroup)&&i():o?!r.leafGroup&&i():r.group&&i()}))}(this.rootNode.childrenAfterGroup),this.refreshModel({step:t.ClientSideRowModelSteps.MAP});var r=e?"expandAll":"collapseAll",i={api:this.gridApi,columnApi:this.columnApi,type:Ve.EVENT_EXPAND_COLLAPSE_ALL,source:r};this.eventService.dispatchEvent(i)},n.prototype.doSort=function(e,t){this.sortStage.execute({rowNode:this.rootNode,rowNodeTransactions:e,changedPath:t})},n.prototype.doRowGrouping=function(e,t,n,o,r){this.groupStage?(t?this.groupStage.execute({rowNode:this.rootNode,rowNodeTransactions:t,rowNodeOrder:n,changedPath:o}):(this.groupStage.execute({rowNode:this.rootNode,changedPath:o,afterColumnsChanged:r}),this.restoreGroupState(e)),this.gridOptionsWrapper.isGroupSelectsChildren()&&this.selectionService.updateGroupsFromChildrenSelections(o)):(this.rootNode.childrenAfterGroup=this.rootNode.allLeafChildren,this.rootNode.sibling&&(this.rootNode.sibling.childrenAfterGroup=this.rootNode.childrenAfterGroup),this.rootNode.updateHasChildren())},n.prototype.restoreGroupState=function(e){e&&Wo.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,n){"boolean"===typeof e[n]&&(t.expanded=e[n])}))},n.prototype.doFilter=function(e){this.filterStage.execute({rowNode:this.rootNode,changedPath:e})},n.prototype.doPivot=function(e){this.pivotStage&&this.pivotStage.execute({rowNode:this.rootNode,changedPath:e})},n.prototype.getGroupState=function(){if(!this.rootNode.childrenAfterGroup||!this.gridOptionsWrapper.isRememberGroupStateWhenNewData())return null;var e={};return Wo.traverseNodesWithKey(this.rootNode.childrenAfterGroup,(function(t,n){return e[n]=t.expanded})),e},n.prototype.getCopyOfNodesMap=function(){return this.nodeManager.getCopyOfNodesMap()},n.prototype.getRowNode=function(e){if("string"==typeof e&&0==e.indexOf(Yi.ID_PREFIX_ROW_GROUP)){var t=void 0;return this.forEachNode((function(n){n.id===e&&(t=n)})),t}return this.nodeManager.getRowNode(e)},n.prototype.setRowData=function(e){var n=this.getGroupState();this.nodeManager.setRowData(e),this.selectionService.reset(),this.filterManager.onNewRowsLoaded("rowDataUpdated");var o={type:Ve.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(o),this.refreshModel({step:t.ClientSideRowModelSteps.EVERYTHING,groupState:n,newData:!0})},n.prototype.batchUpdateRowData=function(e,t){var n=this;if(null==this.applyAsyncTransactionsTimeout){this.rowDataTransactionBatch=[];var o=this.gridOptionsWrapper.getAsyncTransactionWaitMillis();this.applyAsyncTransactionsTimeout=window.setTimeout((function(){n.executeBatchUpdateRowData()}),o)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})},n.prototype.flushAsyncTransactions=function(){null!=this.applyAsyncTransactionsTimeout&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())},n.prototype.executeBatchUpdateRowData=function(){var e=this;this.valueCache.onDataChanged();var t=[],n=[],o=!1;if(this.rowDataTransactionBatch&&this.rowDataTransactionBatch.forEach((function(r){var i=e.nodeManager.updateRowData(r.rowDataTransaction,void 0);n.push(i),r.callback&&t.push(r.callback.bind(null,i)),"number"===typeof r.rowDataTransaction.addIndex&&(o=!0)})),this.commonUpdateRowData(n,void 0,o),t.length>0&&window.setTimeout((function(){t.forEach((function(e){return e()}))}),0),n.length>0){var r={api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),type:Ve.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:n};this.eventService.dispatchEvent(r)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},n.prototype.updateRowData=function(e,t){this.valueCache.onDataChanged();var n=this.nodeManager.updateRowData(e,t),o="number"===typeof e.addIndex;return this.commonUpdateRowData([n],t,o),n},n.prototype.createRowNodeOrder=function(){if(!this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()){var e={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var t=0;t<this.rootNode.allLeafChildren.length;t++){e[this.rootNode.allLeafChildren[t].id]=t}return e}},n.prototype.commonUpdateRowData=function(e,n,o){var r=!this.gridOptionsWrapper.isSuppressAnimationFrame();o&&(n=this.createRowNodeOrder()),this.refreshModel({step:t.ClientSideRowModelSteps.EVERYTHING,rowNodeTransactions:e,rowNodeOrder:n,keepRenderedRows:!0,keepEditingRows:!0,animate:r});var i={type:Ve.EVENT_ROW_DATA_UPDATED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(i)},n.prototype.doRowsToDisplay=function(){this.rowsToDisplay=this.flattenStage.execute({rowNode:this.rootNode})},n.prototype.onRowHeightChanged=function(){this.refreshModel({step:t.ClientSideRowModelSteps.MAP,keepRenderedRows:!0,keepEditingRows:!0})},n.prototype.resetRowHeights=function(){var e=!1;this.forEachNode((function(t){t.setRowHeight(t.rowHeight,!0);var n=t.detailNode;n&&n.setRowHeight(n.rowHeight,!0),e=!0})),e&&this.onRowHeightChanged()},wg([K("columnModel")],n.prototype,"columnModel",void 0),wg([K("selectionService")],n.prototype,"selectionService",void 0),wg([K("filterManager")],n.prototype,"filterManager",void 0),wg([K("valueCache")],n.prototype,"valueCache",void 0),wg([K("columnApi")],n.prototype,"columnApi",void 0),wg([K("gridApi")],n.prototype,"gridApi",void 0),wg([K("animationFrameService")],n.prototype,"animationFrameService",void 0),wg([K("beans")],n.prototype,"beans",void 0),wg([K("filterStage")],n.prototype,"filterStage",void 0),wg([K("sortStage")],n.prototype,"sortStage",void 0),wg([K("flattenStage")],n.prototype,"flattenStage",void 0),wg([q("groupStage")],n.prototype,"groupStage",void 0),wg([q("aggregationStage")],n.prototype,"aggregationStage",void 0),wg([q("pivotStage")],n.prototype,"pivotStage",void 0),wg([q("filterAggregatesStage")],n.prototype,"filterAggregatesStage",void 0),wg([z],n.prototype,"init",null),n=wg([Y("rowModel")],n)}(Fe),bg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Eg=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},Sg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bg(t,e),t.prototype.execute=function(e){var t=e.changedPath;this.filterService.filter(t)},Eg([K("filterService")],t.prototype,"filterService",void 0),t=Eg([Y("filterStage")],t)}(Fe),Rg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Og=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},Tg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rg(t,e),t.prototype.execute=function(e){var t=this.sortController.getSortOptions(),n=Wo.exists(t)&&t.length>0,o=n&&Wo.exists(e.rowNodeTransactions)&&this.gridOptionsWrapper.isDeltaSort(),r=t.some((function(e){return!!e.column.getColDef().showRowGroup}));this.sortService.sort(t,n,o,e.rowNodeTransactions,e.changedPath,r)},Og([K("sortService")],t.prototype,"sortService",void 0),Og([K("sortController")],t.prototype,"sortController",void 0),Og([K("columnModel")],t.prototype,"columnModel",void 0),t=Og([Y("sortStage")],t)}(Fe),Pg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Ag=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},Dg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Pg(t,e),t.prototype.execute=function(e){var t=e.rowNode,n=[],o={value:0},r=this.columnModel.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},t.prototype.recursivelyAddToRowsToDisplay=function(e,t,n,o,r){if(!Wo.missingOrEmpty(e))for(var i=this.gridOptionsWrapper.isGroupHideOpenParents(),s=this.gridOptionsWrapper.isGroupRemoveSingleChildren(),a=!s&&this.gridOptionsWrapper.isGroupRemoveLowestSingleChildren(),l=0;l<e.length;l++){var u=e[l],c=u.hasChildren(),p=o&&!c,d=s&&c&&1===u.childrenAfterGroup.length,h=a&&c&&u.leafGroup&&1===u.childrenAfterGroup.length,f=o&&u.leafGroup,g=i&&u.expanded&&!u.master&&!f;if(!p&&!g&&!d&&!h&&this.addRowNodeToRowsToDisplay(u,t,n,r),!o||!u.leafGroup)if(c){var m=d||h;if(u.expanded||m){var v=m?r:r+1;this.recursivelyAddToRowsToDisplay(u.childrenAfterSort,t,n,o,v),this.gridOptionsWrapper.isGroupIncludeFooter()&&(this.ensureFooterNodeExists(u),this.addRowNodeToRowsToDisplay(u.sibling,t,n,r))}}else if(u.master&&u.expanded){var y=this.createDetailNode(u);this.addRowNodeToRowsToDisplay(y,t,n,r)}}},t.prototype.addRowNodeToRowsToDisplay=function(e,t,n,o){var r=this.gridOptionsWrapper.isGroupMultiAutoColumn();t.push(e),e.setUiLevel(r?0:o)},t.prototype.ensureFooterNodeExists=function(e){if(!Wo.exists(e.sibling)){var t=new Yi(this.beans);Object.keys(e).forEach((function(n){t[n]=e[n]})),t.footer=!0,t.setRowTop(null),t.setRowIndex(null),t.oldRowTop=null,Wo.exists(t.id)&&(t.id="rowGroupFooter_"+t.id),t.sibling=e,e.sibling=t}},t.prototype.createDetailNode=function(e){if(Wo.exists(e.detailNode))return e.detailNode;var t=new Yi(this.beans);return t.detail=!0,t.selectable=!1,t.parent=e,Wo.exists(e.id)&&(t.id="detail_"+e.id),t.data=e.data,t.level=e.level+1,e.detailNode=t,t},Ag([K("columnModel")],t.prototype,"columnModel",void 0),Ag([K("beans")],t.prototype,"beans",void 0),t=Ag([Y("flattenStage")],t)}(Fe),xg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Ng=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},Mg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return xg(t,e),t.prototype.init=function(){this.postSortFunc=this.gridOptionsWrapper.getPostSortFunc()},t.prototype.sort=function(e,t,n,o,r,i){var s=this,a=this.gridOptionsWrapper.isGroupMaintainOrder(),l=this.columnModel.getAllGridColumns().some((function(e){return e.isRowGroupActive()})),u={};n&&o&&(u=this.calculateDirtyNodes(o));var c=this.columnModel.isPivotMode();r&&r.forEachChangedNodeDepthFirst((function(o){s.pullDownGroupDataForHideOpenParents(o.childrenAfterAggFilter,!0);var p=c&&o.leafGroup,d=a&&l&&!o.leafGroup&&!i;if(!t||d||p){var h=o.childrenAfterAggFilter.slice(0);if(a&&o.childrenAfterSort){var f=o.childrenAfterSort.reduce((function(e,t,n){return e[t.id]=n,e}),{});h.sort((function(e,t){return(f[e.id]||0)-(f[t.id]||0)}))}o.childrenAfterSort=h}else o.childrenAfterSort=n?s.doDeltaSort(o,u,r,e):s.rowNodeSorter.doFullSort(o.childrenAfterAggFilter,e);if(o.sibling&&(o.sibling.childrenAfterSort=o.childrenAfterSort),s.updateChildIndexes(o),s.postSortFunc){var g={nodes:o.childrenAfterSort};s.postSortFunc(g)}})),this.updateGroupDataForHideOpenParents(r)},t.prototype.calculateDirtyNodes=function(e){var t={},n=function(e){e&&e.forEach((function(e){return t[e.id]=!0}))};return e&&e.forEach((function(e){n(e.add),n(e.update),n(e.remove)})),t},t.prototype.doDeltaSort=function(e,t,n,o){var r=this,i=e.childrenAfterAggFilter,s=e.childrenAfterSort;if(!s)return this.rowNodeSorter.doFullSort(i,o);var a={},l=[];i.forEach((function(e){t[e.id]||!n.canSkip(e)?l.push(e):a[e.id]=!0}));var u=s.filter((function(e){return a[e.id]})),c=function(e,t){return{currentPos:t,rowNode:e}},p=l.map(c).sort((function(e,t){return r.rowNodeSorter.compareRowNodes(o,e,t)}));return this.mergeSortedArrays(o,p,u.map(c)).map((function(e){return e.rowNode}))},t.prototype.mergeSortedArrays=function(e,t,n){for(var o=[],r=0,i=0;r<t.length&&i<n.length;){this.rowNodeSorter.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},t.prototype.updateChildIndexes=function(e){if(!Wo.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)}},t.prototype.updateGroupDataForHideOpenParents=function(e){var t=this;if(this.gridOptionsWrapper.isGroupHideOpenParents()){if(this.gridOptionsWrapper.isTreeData()){return Wo.doOnce((function(){return console.warn("AG Grid: The property hideOpenParents dose not work with Tree Data. This is because Tree Data has values at the group level, it doesn't make sense to hide them (as opposed to Row Grouping, which only has Aggregated Values at the group level).")}),"sortService.hideOpenParentsWithTreeData"),!1}var n=function e(n){t.pullDownGroupDataForHideOpenParents(n.childrenAfterSort,!1),n.childrenAfterSort.forEach((function(t){t.hasChildren()&&e(t)}))};e&&e.executeFromRootNode((function(e){return n(e)}))}},t.prototype.pullDownGroupDataForHideOpenParents=function(e,t){var n=this;this.gridOptionsWrapper.isGroupHideOpenParents()&&!Wo.missing(e)&&e.forEach((function(e){n.columnModel.getGroupDisplayColumns().forEach((function(o){var r=o.getColDef().showRowGroup;if("string"===typeof r){var i=r,s=n.columnModel.getPrimaryColumn(i);if(!(s===e.rowGroupColumn))if(t)e.setGroupValue(o.getId(),void 0);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")}))}))},Ng([K("columnModel")],t.prototype,"columnModel",void 0),Ng([K("rowNodeSorter")],t.prototype,"rowNodeSorter",void 0),Ng([z],t.prototype,"init",null),t=Ng([Y("sortService")],t)}(Fe),Ig=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),Lg=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},Fg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ig(t,e),t.prototype.filter=function(e){var t=this.filterManager.isColumnFilterPresent()||this.filterManager.isQuickFilterPresent()||this.gridOptionsWrapper.isExternalFilterPresent();this.filterNodes(t,e)},t.prototype.filterNodes=function(e,t){var n=this,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({rowNode:e});return t||o})):t.childrenAfterGroup:t.childrenAfterFilter=t.childrenAfterGroup,t.sibling&&(t.sibling.childrenAfterFilter=t.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var r=function e(t,r){if(t.childrenAfterGroup)for(var i=0;i<t.childrenAfterGroup.length;i++){var s=t.childrenAfterGroup[i],a=r||n.filterManager.doesRowPassFilter({rowNode:s});s.childrenAfterGroup?e(t.childrenAfterGroup[i],a):o(s,a)}o(t,r)};t.executeFromRootNode((function(e){return r(e,!1)}))}else{t.forEachChangedNodeDepthFirst((function(e){return o(e,!1)}),!0)}},t.prototype.doingTreeDataFiltering=function(){return this.gridOptionsWrapper.isTreeData()&&!this.gridOptionsWrapper.isExcludeChildrenWhenTreeDataFiltering()},Lg([K("filterManager")],t.prototype,"filterManager",void 0),t=Lg([Y("filterService")],t)}(Fe),kg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Gg=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},Hg=function(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(a){r={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},Bg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kg(t,e),t.prototype.postConstruct=function(){this.rowModel.getType()===oe.ROW_MODEL_TYPE_CLIENT_SIDE&&(this.clientSideRowModel=this.rowModel)},t.prototype.isActive=function(){return this.gridOptionsWrapper.isImmutableData()},t.prototype.setRowData=function(e){var t=this.createTransactionForRowData(e);if(t){var n=Hg(t,2),o=n[0],r=n[1],i=this.clientSideRowModel.updateRowData(o,r);i&&this.rowRenderer.refreshFullWidthRows(i.update);var s={type:Ve.EVENT_ROW_DATA_CHANGED,api:this.gridApi,columnApi:this.columnApi};this.eventService.dispatchEvent(s)}},t.prototype.createTransactionForRowData=function(e){if(Wo.missing(this.clientSideRowModel))console.error("AG Grid: ImmutableService only works with ClientSideRowModel");else{var t=this.gridOptionsWrapper.getRowIdFunc();if(null!=t){var n={remove:[],update:[],add:[]},o=this.clientSideRowModel.getCopyOfNodesMap(),r=this.gridOptionsWrapper.isSuppressMaintainUnsortedOrder()?void 0:{};return Wo.exists(e)&&e.forEach((function(e,i){var s=t({data:e,level:0}),a=o[s];(r&&(r[s]=i),a)?(a.data!==e&&n.update.push(e),o[s]=void 0):n.add.push(e)})),Wo.iterateObject(o,(function(e,t){t&&n.remove.push(t.data)})),[n,r]}console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!")}},Gg([K("rowModel")],t.prototype,"rowModel",void 0),Gg([K("rowRenderer")],t.prototype,"rowRenderer",void 0),Gg([K("columnApi")],t.prototype,"columnApi",void 0),Gg([K("gridApi")],t.prototype,"gridApi",void 0),Gg([z],t.prototype,"postConstruct",null),t=Gg([Y("immutableService")],t)}(Fe),Vg={moduleName:t.ModuleNames.ClientSideRowModelModule,beans:[Sg,Tg,Dg,Mg,Fg,Bg],rowModels:{clientSide:_g}},Wg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}(),jg=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},Ug=function(e){function t(t,n,o){var r=e.call(this,t)||this;return r.parentCache=n,r.params=o,r.startRow=t*o.blockSize,r.endRow=r.startRow+o.blockSize,r}return Wg(t,e),t.prototype.postConstruct=function(){this.createRowNodes()},t.prototype.getBlockStateJson=function(){return{id:""+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}},t.prototype.setDataAndId=function(e,t,n){!e.id&&e.alreadyRendered&&(e.alreadyRendered=!1),Wo.exists(t)?e.setDataAndId(t,n.toString()):e.setDataAndId(void 0,void 0)},t.prototype.loadFromDatasource=function(){var e=this,t=this.createLoadParams();Wo.missing(this.params.datasource.getRows)?console.warn("AG Grid: datasource is missing getRows method"):window.setTimeout((function(){e.params.datasource.getRows(t)}),0)},t.prototype.processServerFail=function(){},t.prototype.createLoadParams=function(){return{startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),sortModel:this.params.sortModel,filterModel:this.params.filterModel,context:this.gridOptionsWrapper.getContext()}},t.prototype.forEachNode=function(e,t,n){var o=this;this.rowNodes.forEach((function(r,i){o.startRow+i<n&&e(r,t.next())}))},t.prototype.getLastAccessed=function(){return this.lastAccessed},t.prototype.getRow=function(e,t){void 0===t&&(t=!1),t||(this.lastAccessed=this.params.lastAccessedSequence.next());var n=e-this.startRow;return this.rowNodes[n]},t.prototype.getStartRow=function(){return this.startRow},t.prototype.getEndRow=function(){return this.endRow},t.prototype.createRowNodes=function(){this.rowNodes=[];for(var e=0;e<this.params.blockSize;e++){var t=this.startRow+e,n=new Yi(this.beans);n.setRowHeight(this.params.rowHeight),n.uiLevel=0,n.setRowIndex(t),n.setRowTop(this.params.rowHeight*t),this.rowNodes.push(n)}},t.prototype.processServerResult=function(e){var t=this;this.rowNodes.forEach((function(n,o){var r=e.rowData?e.rowData[o]:void 0;t.setDataAndId(n,r,t.startRow+o)}));var n=null!=e.rowCount&&e.rowCount>=0?e.rowCount:void 0;this.parentCache.pageLoaded(this,n)},t.prototype.destroyRowNodes=function(){this.rowNodes.forEach((function(e){e.clearRowTopAndRowIndex()}))},jg([K("beans")],t.prototype,"beans",void 0),jg([z],t.prototype,"postConstruct",null),jg([Z],t.prototype,"destroyRowNodes",null),t}(Rp),zg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Zg=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},Yg=function(e,t){return function(n,o){t(n,o,e)}},Kg=function(e){function t(t){var n=e.call(this)||this;return n.lastRowIndexKnown=!1,n.blocks={},n.blockCount=0,n.rowCount=t.initialRowCount,n.params=t,n}return zg(t,e),t.prototype.setBeans=function(e){this.logger=e.create("InfiniteCache")},t.prototype.getRow=function(e,t){void 0===t&&(t=!1);var n=Math.floor(e/this.params.blockSize),o=this.blocks[n];if(!o){if(t)return;o=this.createBlock(n)}return o.getRow(e)},t.prototype.createBlock=function(e){var t=this.createBean(new Ug(e,this,this.params));return this.blocks[t.getId()]=t,this.blockCount++,this.purgeBlocksIfNeeded(t),this.params.rowNodeBlockLoader.addBlock(t),t},t.prototype.refreshCache=function(){0==this.blockCount?this.purgeCache():(this.getBlocksInOrder().forEach((function(e){return e.setStateWaitingToLoad()})),this.params.rowNodeBlockLoader.checkBlockToLoad())},t.prototype.destroyAllBlocks=function(){var e=this;this.getBlocksInOrder().forEach((function(t){return e.destroyBlock(t)}))},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},t.prototype.pageLoaded=function(e,t){this.isAlive()&&(this.logger.log("onPageLoaded: page = "+e.getId()+", lastRow = "+t),this.checkRowCount(e,t),this.onCacheUpdated())},t.prototype.purgeBlocksIfNeeded=function(e){var n=this,o=this.getBlocksInOrder().filter((function(t){return t!=e}));o.sort((function(e,t){return t.getLastAccessed()-e.getLastAccessed()}));var r=this.params.maxBlocksInCache>0,i=r?this.params.maxBlocksInCache-1:null,s=t.MAX_EMPTY_BLOCKS_TO_KEEP-1;o.forEach((function(e,t){if(e.getState()===Ug.STATE_WAITING_TO_LOAD&&t>=s||!!r&&t>=i){if(n.isBlockCurrentlyDisplayed(e))return;if(n.isBlockFocused(e))return;n.removeBlockFromCache(e)}}))},t.prototype.isBlockFocused=function(e){var t=this.focusService.getFocusCellToUseAfterRefresh();if(!t)return!1;if(null!=t.rowPinned)return!1;var n=e.getStartRow(),o=e.getEndRow();return t.rowIndex>=n&&t.rowIndex<o},t.prototype.isBlockCurrentlyDisplayed=function(e){var t=e.getStartRow(),n=e.getEndRow()-1;return this.rowRenderer.isRangeInRenderedViewport(t,n)},t.prototype.removeBlockFromCache=function(e){e&&this.destroyBlock(e)},t.prototype.checkRowCount=function(e,t){if("number"===typeof t&&t>=0)this.rowCount=t,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var n=(e.getId()+1)*this.params.blockSize+this.params.overflowSize;this.rowCount<n&&(this.rowCount=n)}},t.prototype.setRowCount=function(e,t){this.rowCount=e,Wo.exists(t)&&(this.lastRowIndexKnown=t),this.lastRowIndexKnown||this.rowCount%this.params.blockSize===0&&this.rowCount++,this.onCacheUpdated()},t.prototype.forEachNodeDeep=function(e){var t=this,n=new jo;this.getBlocksInOrder().forEach((function(o){return o.forEachNode(e,n,t.rowCount)}))},t.prototype.getBlocksInOrder=function(){return Wo.getAllValuesInObject(this.blocks).sort((function(e,t){return e.getId()-t.getId()}))},t.prototype.destroyBlock=function(e){delete this.blocks[e.getId()],this.destroyBean(e),this.blockCount--,this.params.rowNodeBlockLoader.removeBlock(e)},t.prototype.onCacheUpdated=function(){if(this.isAlive()){this.destroyAllBlocksPastVirtualRowCount();var e={type:Ve.EVENT_STORE_UPDATED};this.eventService.dispatchEvent(e)}},t.prototype.destroyAllBlocksPastVirtualRowCount=function(){var e=this,t=[];this.getBlocksInOrder().forEach((function(n){n.getId()*e.params.blockSize>=e.rowCount&&t.push(n)})),t.length>0&&t.forEach((function(t){return e.destroyBlock(t)}))},t.prototype.purgeCache=function(){var e=this;this.getBlocksInOrder().forEach((function(t){return e.removeBlockFromCache(t)})),this.lastRowIndexKnown=!1,0===this.rowCount&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},t.prototype.getRowNodesInRange=function(e,t){var n=this,o=[],r=-1,i=!1,s=new jo;Wo.missing(e)&&(i=!0);var a=!1;return this.getBlocksInOrder().forEach((function(l){a||(i&&r+1!==l.getId()?a=!0:(r=l.getId(),l.forEachNode((function(n){var r=n===e||n===t;(i||r)&&o.push(n),r&&(i=!i)}),s,n.rowCount)))})),a||i?[]:o},t.MAX_EMPTY_BLOCKS_TO_KEEP=2,Zg([K("rowRenderer")],t.prototype,"rowRenderer",void 0),Zg([K("focusService")],t.prototype,"focusService",void 0),Zg([Yg(0,Q("loggerFactory"))],t.prototype,"setBeans",null),Zg([Z],t.prototype,"destroyAllBlocks",null),t}(Fe),qg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),Xg=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},Qg=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qg(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()})),this.verifyProps())},t.prototype.verifyProps=function(){if(null!=this.gridOptionsWrapper.getInitialGroupOrderComparator()){Wo.doOnce((function(){return console.warn("AG Grid: initialGroupOrderComparator cannot be used with Infinite Row Model. If using Infinite Row Model, then sorting is done on the server side, nothing to do with the client.")}),"IRM.InitialGroupOrderComparator")}},t.prototype.start=function(){this.setDatasource(this.gridOptionsWrapper.getDatasource())},t.prototype.destroyDatasource=function(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},t.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,Ve.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,Ve.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this))},t.prototype.onFilterChanged=function(){this.reset()},t.prototype.onSortChanged=function(){this.reset()},t.prototype.onColumnEverything=function(){(!this.cacheParams||this.isSortModelDifferent())&&this.reset()},t.prototype.isSortModelDifferent=function(){return!Wo.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},t.prototype.getType=function(){return oe.ROW_MODEL_TYPE_INFINITE},t.prototype.setDatasource=function(e){this.destroyDatasource(),this.datasource=e,e&&this.reset()},t.prototype.isEmpty=function(){return!this.infiniteCache},t.prototype.isRowsToRender=function(){return!!this.infiniteCache},t.prototype.getNodesInRangeForSelection=function(e,t){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(e,t):[]},t.prototype.reset=function(){if(this.datasource){null!=this.gridOptionsWrapper.getRowIdFunc()||this.selectionService.reset(),this.resetCache();var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)}},t.prototype.createModelUpdatedEvent=function(){return{type:Ve.EVENT_MODEL_UPDATED,api:this.gridApi,columnApi:this.columnApi,newPage:!1,newData:!1,keepRenderedRows:!0,animate:!1}},t.prototype.resetCache=function(){this.destroyCache(),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,initialRowCount:this.defaultIfInvalid(this.gridOptionsWrapper.getInfiniteInitialRowCount(),1),maxBlocksInCache:this.gridOptionsWrapper.getMaxBlocksInCache(),rowHeight:this.gridOptionsWrapper.getRowHeightAsNumber(),overflowSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheOverflowSize(),1),blockSize:this.defaultIfInvalid(this.gridOptionsWrapper.getCacheBlockSize(),100),lastAccessedSequence:new jo},this.infiniteCache=this.createBean(new Kg(this.cacheParams))},t.prototype.defaultIfInvalid=function(e,t){return e>0?e:t},t.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache))},t.prototype.onCacheUpdated=function(){var e=this.createModelUpdatedEvent();this.eventService.dispatchEvent(e)},t.prototype.getRow=function(e){if(this.infiniteCache&&!(e>=this.infiniteCache.getRowCount()))return this.infiniteCache.getRow(e)},t.prototype.getRowNode=function(e){var t;return this.forEachNode((function(n){n.id===e&&(t=n)})),t},t.prototype.forEachNode=function(e){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(e)},t.prototype.getTopLevelRowCount=function(){return this.getRowCount()},t.prototype.getTopLevelRowDisplayedIndex=function(e){return e},t.prototype.getRowIndexAtPixel=function(e){if(0!==this.rowHeight){var t=Math.floor(e/this.rowHeight),n=this.getRowCount()-1;return t>n?n:t}return 0},t.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},t.prototype.isRowPresent=function(e){return!!this.getRowNode(e.id)},t.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},t.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},t.prototype.isLastRowIndexKnown=function(){return!!this.infiniteCache&&this.infiniteCache.isLastRowIndexKnown()},t.prototype.setRowCount=function(e,t){this.infiniteCache&&this.infiniteCache.setRowCount(e,t)},Xg([K("filterManager")],t.prototype,"filterManager",void 0),Xg([K("sortController")],t.prototype,"sortController",void 0),Xg([K("selectionService")],t.prototype,"selectionService",void 0),Xg([K("gridApi")],t.prototype,"gridApi",void 0),Xg([K("columnApi")],t.prototype,"columnApi",void 0),Xg([K("rowRenderer")],t.prototype,"rowRenderer",void 0),Xg([K("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Xg([z],t.prototype,"init",null),Xg([Z],t.prototype,"destroyDatasource",null),t=Xg([Y("rowModel")],t)}(Fe),Jg={moduleName:t.ModuleNames.InfiniteRowModelModule,rowModels:{infinite:Qg}},$g=function(){function e(){}return e.prototype.setBeans=function(e){this.beans=e},e.prototype.getFileName=function(e){var t=this.getDefaultFileExtension();return null!=e&&e.length||(e=this.getDefaultFileName()),-1===e.indexOf(".")?e+"."+t:e},e.prototype.getData=function(e){var t=this.createSerializingSession(e);return this.beans.gridSerializer.serialize(t,e)},e}(),em=function(){function e(e){this.groupColumns=[];var t=e.columnModel,n=e.valueService,o=e.gridOptionsWrapper,r=e.processCellCallback,i=e.processHeaderCallback,s=e.processGroupHeaderCallback,a=e.processRowGroupCallback;this.columnModel=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.groupColumns=e.filter((function(e){return!!e.getColDef().showRowGroup}))},e.prototype.extractHeaderValue=function(e){var t=this.getHeaderName(this.processHeaderCallback,e);return null!=t?t:""},e.prototype.extractRowCellValue=function(e,t,n,o,r){var i,s=this.gridOptionsWrapper.isGroupMultiAutoColumn()?r.rowGroupIndex:0;i=r&&r.group&&(t===s&&-1!==this.groupColumns.indexOf(e)||0===t&&this.gridOptionsWrapper.isGroupUseEntireRow(this.columnModel.isPivotMode()))?this.createValueForGroupNode(r):this.valueService.getValue(e,r);var a=this.processCell(n,r,e,i,this.processCellCallback,o);return null!=a?a:""},e.prototype.getHeaderName=function(e,t){return e?e({column:t,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()}):this.columnModel.getDisplayNameForColumn(t,"csv",!0)},e.prototype.createValueForGroupNode=function(e){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:e,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext()});var t=[e.key];if(!this.gridOptionsWrapper.isGroupMultiAutoColumn())for(;e.parent;)e=e.parent,t.push(e.key);return t.reverse().join(" -> ")},e.prototype.processCell=function(e,t,n,o,r,i){return r?r({accumulatedRowIndex:e,column:n,node:t,value:o,api:this.gridOptionsWrapper.getApi(),columnApi:this.gridOptionsWrapper.getColumnApi(),context:this.gridOptionsWrapper.getContext(),type:i}):null!=o?o:""},e}(),tm=function(){function e(){}return e.download=function(e,t){var n=document.defaultView||window;if(n){var o=document.createElement("a"),r=n.URL.createObjectURL(t);o.setAttribute("href",r),o.setAttribute("download",e),o.style.display="none",document.body.appendChild(o),o.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:n})),document.body.removeChild(o),n.setTimeout((function(){n.URL.revokeObjectURL(r)}),0)}else console.warn("AG Grid: There is no `window` associated with the current `document`")},e}(),nm=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),om=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 nm(t,e),t.prototype.addCustomContent=function(e){var t=this;e&&("string"===typeof e?(/^\s*\n/.test(e)||this.beginNewLine(),e=e.replace(/\r?\n/g,"\r\n"),this.result+=e):e.forEach((function(e){t.beginNewLine(),e.forEach((function(e,n){0!==n&&(t.result+=t.columnSeparator),t.result+=t.putInQuotes(e.data.value||""),e.mergeAcross&&t.appendEmptyCells(e.mergeAcross)}))})))},t.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},t.prototype.onNewHeaderGroupingRowColumn=function(e,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e),this.appendEmptyCells(n)},t.prototype.appendEmptyCells=function(e){for(var t=1;t<=e;t++)this.result+=this.columnSeparator+this.putInQuotes("")},t.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},t.prototype.onNewHeaderRowColumn=function(e,t){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(e))},t.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},t.prototype.onNewBodyRowColumn=function(e,t,n){0!=t&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractRowCellValue(e,t,t,oe.EXPORT_TYPE_CSV,n))},t.prototype.putInQuotes=function(e){return this.suppressQuotes?e:null===e||void 0===e?'""':("string"===typeof e?t=e:"function"===typeof e.toString?t=e.toString():(console.warn("AG Grid: unknown value type during csv conversion"),t=""),'"'+t.replace(/"/g,'""')+'"');var t},t.prototype.parse=function(){return this.result},t.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},t}(em),rm=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),im=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},sm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rm(t,e),t.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsWrapper:this.gridOptionsWrapper})},t.prototype.getMergedParams=function(e){var t=this.gridOptionsWrapper.getDefaultExportParams("csv");return Object.assign({},t,e)},t.prototype.export=function(e){if(this.isExportSuppressed())return console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration."),"";var t=this.getMergedParams(e),n=this.getData(t),o=new Blob(["\ufeff",n],{type:"text/plain"});return tm.download(this.getFileName(t.fileName),o),n},t.prototype.exportDataAsCsv=function(e){return this.export(e)},t.prototype.getDataAsCsv=function(e){var t=this.getMergedParams(e);return this.getData(t)},t.prototype.getDefaultFileName=function(){return"export.csv"},t.prototype.getDefaultFileExtension=function(){return"csv"},t.prototype.createSerializingSession=function(e){var t=this,n=t.columnModel,o=t.valueService,r=t.gridOptionsWrapper,i=e,s=i.processCellCallback,a=i.processHeaderCallback,l=i.processGroupHeaderCallback,u=i.processRowGroupCallback,c=i.suppressQuotes,p=i.columnSeparator;return new om({columnModel:n,valueService:o,gridOptionsWrapper:r,processCellCallback:s||void 0,processHeaderCallback:a||void 0,processGroupHeaderCallback:l||void 0,processRowGroupCallback:u||void 0,suppressQuotes:c||!1,columnSeparator:p||","})},t.prototype.isExportSuppressed=function(){return this.gridOptionsWrapper.isSuppressCsvExport()},im([K("columnModel")],t.prototype,"columnModel",void 0),im([K("valueService")],t.prototype,"valueService",void 0),im([K("gridSerializer")],t.prototype,"gridSerializer",void 0),im([K("gridOptionsWrapper")],t.prototype,"gridOptionsWrapper",void 0),im([z],t.prototype,"postConstruct",null),t=im([Y("csvCreator")],t)}($g),am=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__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,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)}}(),lm=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.HEADER_GROUPING=0]="HEADER_GROUPING",e[e.HEADER=1]="HEADER",e[e.BODY=2]="BODY"}(t.RowType||(t.RowType={}));var um=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return am(t,e),t.prototype.serialize=function(e,t){void 0===t&&(t={});var n=this.getColumnsToExport(t.allColumns,t.columnKeys);return Wo.compose(this.prepareSession(n),this.prependContent(t),this.exportColumnGroups(t,n),this.exportHeaders(t,n),this.processPinnedTopRows(t,n),this.processRows(t,n),this.processPinnedBottomRows(t,n),this.appendContent(t))(e).parse()},t.prototype.processRow=function(e,t,n,o){var r=this,i=t.shouldRowBeSkipped||function(){return!1},s=this.gridOptionsWrapper,a=s.getContext(),l=s.getApi(),u=s.getColumnApi(),c=s.isGroupRemoveSingleChildren(),p=s.isGroupHideOpenParents(),d=s.isGroupRemoveLowestSingleChildren(),h=this.columnModel.isPivotMode()?o.leafGroup:!o.group,f=t.skipGroups||t.skipRowGroups,g=d&&o.leafGroup,m=1===o.allChildrenCount&&(c||g);f&&t.skipGroups&&Wo.doOnce((function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")}),"gridSerializer-skipGroups");var v={rowIndex:o.rowIndex,rowPinned:o.rowPinned};if(!(!h&&(t.skipRowGroups||m||p)||t.onlySelected&&!o.isSelected()||t.rowNodes&&!t.rowNodes.some((function(e){return r.rowPositionUtils.sameRow(e,v)}))||t.skipPinnedTop&&"top"===o.rowPinned||t.skipPinnedBottom&&"bottom"===o.rowPinned)&&((!(-1===o.level)||o.leafGroup)&&!i({node:o,api:l,columnApi:u,context:a}))){var y=e.onNewBodyRow();if(n.forEach((function(e,t){y.onColumn(e,t,o)})),t.getCustomContentBelowRow){var C=t.getCustomContentBelowRow({node:o,api:l,columnApi:u,context:a});C&&e.addCustomContent(C)}}},t.prototype.appendContent=function(e){return function(t){var n=e.customFooter||e.appendContent;return n&&(e.customFooter&&Wo.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.")}),"gridSerializer-customFooter"),t.addCustomContent(n)),t}},t.prototype.prependContent=function(e){return function(t){var n=e.customHeader||e.prependContent;return n&&(e.customHeader&&Wo.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.")}),"gridSerializer-customHeader"),t.addCustomContent(n)),t}},t.prototype.prepareSession=function(e){return function(t){return t.prepare(e),t}},t.prototype.exportColumnGroups=function(e,t){var n=this;return function(o){if(e.skipColumnGroupHeaders)e.columnGroups&&Wo.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.")}),"gridSerializer-columnGroups");else{var r=new We,i=n.displayedGroupCreator.createDisplayedGroups(t,n.columnModel.getGridBalancedTree(),r,null);n.recursivelyAddHeaderGroups(i,o,e.processGroupHeaderCallback)}return o}},t.prototype.exportHeaders=function(e,t){return function(n){if(e.skipHeader||e.skipColumnHeaders)e.skipHeader&&Wo.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")}),"gridSerializer-skipHeader");else{var o=n.onNewHeaderRow();t.forEach((function(e,t){o.onColumn(e,t,void 0)}))}return n}},t.prototype.processPinnedTopRows=function(e,t){var n=this;return function(o){var r=n.processRow.bind(n,o,e,t);return n.pinnedRowModel.forEachPinnedTopRow(r),o}},t.prototype.processRows=function(e,t){var n=this;return function(o){var r=n.rowModel,i=r.getType(),s=i===oe.ROW_MODEL_TYPE_CLIENT_SIDE,a=i===oe.ROW_MODEL_TYPE_SERVER_SIDE,l=!s&&e.onlySelected,u=n.processRow.bind(n,o,e,t);n.columnModel.isPivotMode()?s?r.forEachPivotNode(u):r.forEachNode(u):e.onlySelectedAllPages||l?n.selectionService.getSelectedNodes().forEach(u):s||a?r.forEachNodeAfterFilterAndSort(u):r.forEachNode(u);return o}},t.prototype.processPinnedBottomRows=function(e,t){var n=this;return function(o){var r=n.processRow.bind(n,o,e,t);return n.pinnedRowModel.forEachPinnedBottomRow(r),o}},t.prototype.getColumnsToExport=function(e,t){void 0===e&&(e=!1);var n=this.columnModel.isPivotMode();return t&&t.length?this.columnModel.getGridColumns(t):e&&!n?(this.gridOptionsWrapper.isTreeData()?this.columnModel.getGridColumns([oe.GROUP_AUTO_COLUMN_ID]):[]).concat(this.columnModel.getAllPrimaryColumns()||[]):this.columnModel.getAllDisplayedColumns()},t.prototype.recursivelyAddHeaderGroups=function(e,t,n){var 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 we&&this.doAddHeaderHeader(t,e,n),o&&o.length>0&&this.recursivelyAddHeaderGroups(o,t,n)},t.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.columnModel.getDisplayNameForColumnGroup(s,"header");var a=s.getLeafColumns().reduce((function(e,t,n,o){var r=Wo.last(e);return"open"===t.getColumnGroupShow()?r&&null==r[1]||(r=[n],e.push(r)):r&&null==r[1]&&(r[1]=n-1),n===o.length-1&&r&&null==r[1]&&(r[1]=n),e}),[]);r.onColumn(t||"",i++,s.getLeafColumns().length-1,a)}))},lm([K("displayedGroupCreator")],t.prototype,"displayedGroupCreator",void 0),lm([K("columnModel")],t.prototype,"columnModel",void 0),lm([K("rowModel")],t.prototype,"rowModel",void 0),lm([K("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),lm([K("selectionService")],t.prototype,"selectionService",void 0),lm([K("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),t=lm([Y("gridSerializer")],t)}(Fe),cm={moduleName:t.ModuleNames.CsvExportModule,beans:[sm,um]},pm="\r\n",dm=function(){function e(){}return e.createHeader=function(e){void 0===e&&(e={});var t=["version"];return e.version||(e.version="1.0"),e.encoding&&t.push("encoding"),e.standalone&&t.push("standalone"),"<?xml "+t.map((function(t){return t+'="'+e[t]+'"'})).join(" ")+" ?>"},e.createXml=function(e,t){var n=this,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+">"+pm:(r+=">\r\n",e.children&&e.children.forEach((function(e){r+=n.createXml(e,t)})),r+"</"+e.name+">"+pm):r+"/>"+pm},e.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}(),hm=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},fm=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),gm=function(){function e(){}return e.addFolders=function(e){e.forEach(this.addFolder.bind(this))},e.addFolder=function(e){this.folders.push({path:e,created:new Date,isBase64:!1})},e.addFile=function(e,t,n){void 0===n&&(n=!1),this.files.push({path:e,created:new Date,content:t,isBase64:n})},e.getContent=function(e){void 0===e&&(e="application/zip");var t=this.buildFileStream(),n=this.buildUint8Array(t);return this.clearStream(),new Blob([n],{type:e})},e.clearStream=function(){this.folders=[],this.files=[]},e.buildFileStream=function(e){var t,n;void 0===e&&(e="");var o=this.folders.concat(this.files),r=o.length,i="",s=0,a=0;try{for(var l=hm(o),u=l.next();!u.done;u=l.next()){var c=u.value,p=this.getHeader(c,s),d=p.fileHeader,h=p.folderHeader,f=p.content;s+=d.length+f.length,a+=h.length,e+=d+f,i+=h}}catch(g){t={error:g}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return e+i+this.buildFolderEnd(r,a,s)},e.getHeader=function(e,t){var n=e.content,o=e.path,r=e.created,i=e.isBase64,s=Wo.utf8_encode,a=Wo.decToHex,l=s(o),u=l!==o,c=this.convertTime(r),p=this.convertDate(r),d="";if(u){var h=a(1,1)+a(this.getFromCrc32Table(l),4)+l;d="up"+a(h.length,2)+h}var f=n?this.getConvertedContent(n,i):{size:0,content:""},g=f.size,m=f.content,v="\n\0"+(u?"\0\b":"\0\0")+"\0\0"+a(c,2)+a(p,2)+a(g?this.getFromCrc32Table(m):0,4)+a(g,4)+a(g,4)+a(l.length,2)+a(d.length,2);return{fileHeader:"PK\x03\x04"+v+l+d,folderHeader:"PK\x01\x02\x14\0"+v+"\0\0\0\0\0\0"+(n?"\0\0\0\0":"\x10\0\0\0")+a(t,4)+l+d,content:m||""}},e.getConvertedContent=function(e,t){return void 0===t&&(t=!1),t&&(e=e.split(";base64,")[1]),{size:(e=t?atob(e):e).length,content:e}},e.buildFolderEnd=function(e,t,n){var o=Wo.decToHex;return"PK\x05\x06\0\0\0\0"+o(e,2)+o(e,2)+o(t,4)+o(n,4)+"\0\0"},e.buildUint8Array=function(e){for(var t=new Uint8Array(e.length),n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t},e.getFromCrc32Table=function(e){if(!e.length)return 0;for(var t=e.length,n=new Uint8Array(t),o=0;o<t;o++)n[o]=e.charCodeAt(o);var r=-1,i=0;for(o=0;o<t;o++)i=n[o],r=r>>>8^fm[255&(r^i)];return-1^r},e.convertTime=function(e){var t=e.getHours();return t<<=6,t|=e.getMinutes(),t<<=5,t|=e.getSeconds()/2},e.convertDate=function(e){var t=e.getFullYear()-1980;return t<<=4,t|=e.getMonth()+1,t<<=5,t|=e.getDate()},e.folders=[],e.files=[],e}();re.register(Vg,!1),re.register(Jg,!1),re.register(cm,!1),t.AbstractHeaderCellCtrl=Vu,t.AgAbstractField=Sr,t.AgAngleSelect=$p,t.AgCheckbox=ic,t.AgColorPicker=dd,t.AgDialog=cd,t.AgGroupComponent=gd,t.AgInputNumberField=zp,t.AgInputRange=Yp,t.AgInputTextArea=jp,t.AgInputTextField=Vp,t.AgMenuItemComponent=Nd,t.AgMenuList=Od,t.AgMenuPanel=Ad,t.AgPanel=sd,t.AgPromise=zo,t.AgRadioButton=kp,t.AgSelect=Mr,t.AgSlider=Xp,t.AgStackComponentsRegistry=_t,t.AgToggleButton=Hp,t.AlignedGridsService=th,t.AnimateShowChangeCellRenderer=Bi,t.AnimateSlideCellRenderer=ji,t.AnimationFrameService=op,t.AutoScrollService=Sa,t.AutoWidthCalculator=up,t.Autowired=K,t.BaseComponentWrapper=hg,t.BaseCreator=$g,t.BaseGridSerializingSession=em,t.Bean=Y,t.BeanStub=Fe,t.Beans=qa,t.BodyDropPivotTarget=Cu,t.BodyDropTarget=Su,t.CellComp=cu,t.CellCtrl=al,t.CellNavigationService=Qd,t.CellPositionUtils=Tf,t.ChangedPath=Ep,t.CheckboxSelectionComponent=Xi,t.ColDefUtil=St,t.Color=Ot,t.Column=ae,t.ColumnApi=ah,t.ColumnFactory=Be,t.ColumnGroup=we,t.ColumnKeyCreator=h,t.ColumnModel=it,t.ColumnUtils=lt,t.Component=tr,t.ComponentUtil=yt,t.Constants=oe,t.Context=j,t.CssClassApplier=Tu,t.CssClassManager=er,t.CsvCreator=sm,t.CsvExportModule=cm,t.CtrlsService=Zf,t.CustomTooltipFeature=Xo,t.DateFilter=Yr,t.DisplayedGroupCreator=pt,t.Downloader=tm,t.DragAndDropService=ts,t.DragService=Xs,t.Environment=lf,t.EventService=ne,t.Events=Ve,t.ExpressionService=fh,t.FilterManager=ea,t.FloatingFilterMapper=Us,t.FocusService=kd,t.Grid=cg,t.GridApi=zu,t.GridBodyComp=ql,t.GridBodyCtrl=Ga,t.GridComp=Ph,t.GridCoreCreator=pg,t.GridCtrl=Rh,t.GridHeaderComp=Vc,t.GridHeaderCtrl=Gc,t.GridOptionsWrapper=ma,t.GridSerializer=um,t.GroupCellRenderer=fs,t.GroupCellRendererCtrl=ps,t.GroupInstanceIdCreator=We,t.HeaderCellCtrl=pc,t.HeaderFilterCellComp=ia,t.HeaderFilterCellCtrl=ec,t.HeaderGroupCellCtrl=wc,t.HeaderNavigationService=Lc,t.HeaderPositionUtils=kf,t.HeaderRowComp=ku,t.HeaderRowContainerComp=Nc,t.HeaderRowContainerCtrl=Ac,t.HeaderRowCtrl=Sc,t.HorizontalResizeService=Uc,t.KeyCode=dr,t.LargeTextCellEditor=Ti,t.Logger=bh,t.LoggerFactory=_h,t.ManagedFocusFeature=mr,t.ModuleRegistry=re,t.MouseEventService=tu,t.MoveColumnFeature=_u,t.NavigationService=iu,t.NumberFilter=ri,t.NumberSequence=jo,t.Optional=q,t.PaginationProxy=Np,t.PinnedRowModel=_p,t.PopupComponent=Si,t.PopupEditorWrapper=lu,t.PopupSelectCellEditor=Ni,t.PopupService=Wd,t.PopupTextCellEditor=ki,t.PositionableFeature=sp,t.PostConstruct=z,t.PreConstruct=U,t.PreDestroy=Z,t.PropertyKeys=ft,t.ProvidedColumnGroup=_e,t.ProvidedFilter=Cr,t.Qualifier=Q,t.QuerySelector=function(e){return or.bind(this,e,void 0)},t.RefSelector=nr,t.ResizeObserverService=ep,t.RowContainerComp=vu,t.RowContainerCtrl=zl,t.RowCtrl=fl,t.RowNode=Yi,t.RowNodeBlock=Rp,t.RowNodeBlockLoader=Ap,t.RowNodeSorter=jf,t.RowPositionUtils=Sf,t.RowRenderer=fp,t.ScalarFilter=Wr,t.ScrollVisibleService=Jl,t.SelectCellEditor=Di,t.SelectableService=gf,t.SelectionService=ih,t.SetLeftFeature=Ku,t.SimpleFilter=Br,t.SortController=xh,t.StandardMenuFactory=Yc,t.StylingService=Lp,t.TabGuardComp=bd,t.TabGuardCtrl=yd,t.TabbedLayout=Xc,t.TemplateService=vh,t.TextCellEditor=Li,t.TextFilter=li,t.TextFloatingFilter=gi,t.Timer=Zo,t.TouchListener=mi,t.UserComponentFactory=Ys,t.UserComponentRegistry=Os,t.ValueCache=Zh,t.ValueFormatterService=yp,t.ValueService=ch,t.VanillaFrameworkOverrides=Kd,t.VirtualList=zd,t.XmlFactory=dm,t.ZipContainer=gm,t._=Wo,t.defaultGroupComparator=function(e,t,n,o,i){void 0===i&&(i=!1),console.warn("AG Grid: Since ag-grid 11.0.0 defaultGroupComparator is not necessary. You can remove this from your colDef");var s=r(n)&&n.group,a=r(o)&&o.group,l=!s&&!a;return s&&a?c(n.key,o.key,i):l?c(e,t,i):s?1:-1},t.getRowContainerTypeForName=Vl,t.simpleHttpRequest=function(e){return new zo((function(t){var n=new XMLHttpRequest;n.open("GET",e.url),n.send(),n.onreadystatechange=function(){4===n.readyState&&200===n.status&&t(JSON.parse(n.responseText))}}))},t.stringToArray=Tt},7945:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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=this&&this.__assign||function(){return r=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},r.apply(this,arguments)},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s=i(n(2791)),a=n(4282),l=n(2553),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.setGridApi=function(e,n){t.api=e,t.columnApi=n},t}return o(t,e),t.prototype.render=function(){var e=this.props.suppressReactUi?a.AgGridReactLegacy:l.AgGridReactUi;return s.default.createElement(e,r({},this.props,{setGridApi:this.setGridApi}))},t}(s.Component);t.AgGridReact=u},4282:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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=this&&this.__assign||function(){return r=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},r.apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1167),l=i(n(2007)),u=s(n(2791)),c=n(4619),p=n(6745),d=n(4584),h=n(8665),f=n(3365),g=n(9575),m=function(e){function t(t){var n=e.call(this,t)||this;return n.props=t,n.changeDetectionService=new d.ChangeDetectionService,n.api=null,n.destroyed=!1,n.SYNCHRONOUS_CHANGE_PROPERTIES=["context"],n.portalManager=new f.PortalManager(n,t.componentWrappingElement,t.maxComponentCreationTimeMs),n}return o(t,e),t.prototype.render=function(){var e=this;return u.default.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:function(t){e.eGridDiv=t}},this.portalManager.getPortals())},t.prototype.createStyleForDiv=function(){return r({height:"100%"},this.props.containerStyle||{})},t.prototype.componentDidMount=function(){var e=this.props.modules||[],t={providedBeanInstances:{agGridReact:this,frameworkComponentWrapper:new y(this,this.portalManager)},modules:e,frameworkOverrides:new g.ReactFrameworkOverrides(!1)},n=this.props.gridOptions||{},o=this.props.children;p.AgGridColumn.hasChildColumns(o)&&(n.columnDefs=p.AgGridColumn.mapChildColumnDefs(o)),this.gridOptions=a.ComponentUtil.copyAttributesToGridOptions(n,this.props),new a.Grid(this.eGridDiv,this.gridOptions,t),this.api=this.gridOptions.api,this.columnApi=this.gridOptions.columnApi,this.props.setGridApi(this.api,this.columnApi)},t.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.isImmutableDataActive())return d.ChangeDetectionStrategyType.IdentityCheck}return d.ChangeDetectionStrategyType.DeepValueCheck},t.prototype.isImmutableDataActive=function(){return this.props.deltaRowDataMode||this.props.immutableData||null!=this.props.getRowId||this.props.gridOptions&&(this.props.gridOptions.deltaRowDataMode||this.props.gridOptions.immutableData||null!=this.props.gridOptions.getRowId)},t.prototype.shouldComponentUpdate=function(e){return this.processPropsChanges(this.props,e),!1},t.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},t.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.extractDeclarativeColDefChanges(t,n),this.processSynchronousChanges(n),this.processAsynchronousChanges(n)},t.prototype.extractDeclarativeColDefChanges=function(e,t){if(!(this.props.gridOptions&&this.props.gridOptions.columnDefs||this.props.columnDefs)){var n=!!e.debug,o="columnDefs",r=this.gridOptions.columnDefs;if(p.AgGridColumn.hasChildColumns(e.children)){var i=this.changeDetectionService.getStrategy(this.getStrategyTypeForProp(o)),s=p.AgGridColumn.mapChildColumnDefs(e.children);i.areEqual(r,s)||(n&&console.log("agGridReact: colDefs definitions changed"),t[o]={previousValue:r,currentValue:s})}else r&&r.length>0&&(t[o]={previousValue:r,currentValue:[]})}},t.prototype.extractGridPropertyChanges=function(e,t,n){var o=this,r=!!t.debug;Object.keys(t).forEach((function(i){a._.includes(a.ComponentUtil.ALL_PROPERTIES,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]}))})),a.ComponentUtil.getEventCallbacks().forEach((function(o){e[o]!==t[o]&&(r&&console.log("agGridReact: ["+o+"] event callback changed"),n[o]={previousValue:e[o],currentValue:t[o]})}))},t.prototype.componentWillUnmount=function(){this.api&&(this.api.destroy(),this.api=null),this.destroyed=!0,this.portalManager.destroy()},t.prototype.isDisableStaticMarkup=function(){return!0===this.props.disableStaticMarkup},t.prototype.isLegacyComponentRendering=function(){return!0===this.props.legacyComponentRendering},t.prototype.processSynchronousChanges=function(e){var t=r({},e);if(Object.keys(t).length>0){var n={};this.SYNCHRONOUS_CHANGE_PROPERTIES.forEach((function(e){t[e]&&(n[e]=t[e],delete t[e])})),Object.keys(n).length>0&&this.api&&a.ComponentUtil.processOnChange(n,this.gridOptions,this.api,this.columnApi)}return t},t.prototype.processAsynchronousChanges=function(e){var t=this;Object.keys(e).length>0&&window.setTimeout((function(){t.api&&a.ComponentUtil.processOnChange(e,t.gridOptions,t.api,t.columnApi)}))},t.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3,t.defaultProps={legacyComponentRendering:!1,disableStaticMarkup:!1,maxComponentCreationTimeMs:t.MAX_COMPONENT_CREATION_TIME_IN_MS},t}(u.Component);function v(e,t){e.forEach((function(e){m[e]=t}))}t.AgGridReactLegacy=m,m.propTypes={gridOptions:l.default.object},v(a.ComponentUtil.getEventCallbacks(),l.default.func),v(a.ComponentUtil.BOOLEAN_PROPERTIES,l.default.bool),v(a.ComponentUtil.STRING_PROPERTIES,l.default.string),v(a.ComponentUtil.OBJECT_PROPERTIES,l.default.object),v(a.ComponentUtil.ARRAY_PROPERTIES,l.default.array),v(a.ComponentUtil.NUMBER_PROPERTIES,l.default.number),v(a.ComponentUtil.FUNCTION_PROPERTIES,l.default.func);var y=function(e){function t(t,n){var o=e.call(this)||this;return o.agGridReact=t,o.portalManager=n,o}return o(t,e),t.prototype.createWrapper=function(e,t){return this.agGridReact.isLegacyComponentRendering()?new c.LegacyReactComponent(e,this.agGridReact,this.portalManager,t):new h.NewReactComponent(e,this.portalManager,t)},t}(a.BaseComponentWrapper)},4619:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(2791),s=n(4164),a=n(1167),l=n(294),u=n(8340),c=r(n(3507)),p=function(e){function t(t,n,o,r){var i=e.call(this,t,o,r)||this;return i.staticMarkup=null,i.staticRenderTime=0,i.parentComponent=n,i}return o(t,e),t.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.renderStaticMarkup(e),new a.AgPromise((function(n){return t.createReactComponent(e,n)}))},t.prototype.createReactComponent=function(e,t){var n=this;this.isStatelessComponent()||(e.ref=function(e){n.componentInstance=e,n.addParentContainerStyleAndClasses(),n.removeStaticMarkup()});var o=i.createElement(this.reactComponent,e),r=s.createPortal(o,this.eParentElement,c.default());this.portal=r,this.portalManager.mountReactPortal(r,this,(function(e){t(e),n.isStatelessComponent()&&(n.isSlowRenderer()&&n.removeStaticMarkup(),setTimeout((function(){n.removeStaticMarkup()})))}))},t.prototype.fallbackMethodAvailable=function(e){return!1},t.prototype.fallbackMethod=function(e,t){},t.prototype.isSlowRenderer=function(){return this.staticRenderTime>=t.SLOW_RENDERING_THRESHOLD},t.prototype.isNullValue=function(){return""===this.staticMarkup},t.prototype.renderStaticMarkup=function(e){if(!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer){var t=console.error,n=i.createElement(this.reactComponent,e);try{console.error=function(){};var o=Date.now(),r=u.renderToStaticMarkup(n);this.staticRenderTime=Date.now()-o,console.error=t,""===r?this.staticMarkup=r:r&&(this.staticMarkup=document.createElement("span"),this.staticMarkup.innerHTML=r,this.eParentElement.appendChild(this.staticMarkup))}catch(s){}finally{console.error=t}}},t.prototype.removeStaticMarkup=function(){!this.parentComponent.isDisableStaticMarkup()&&this.componentType.cellRenderer&&this.staticMarkup&&(this.staticMarkup.remove?(this.staticMarkup.remove(),this.staticMarkup=null):this.eParentElement.removeChild&&(this.eParentElement.removeChild(this.staticMarkup),this.staticMarkup=null))},t.prototype.rendered=function(){return this.isNullValue()||!!this.staticMarkup||this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},t.SLOW_RENDERING_THRESHOLD=3,t}(l.ReactComponent);t.LegacyReactComponent=p},2553:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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=this&&this.__assign||function(){return r=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},r.apply(this,arguments)},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1167),l=i(n(2791)),u=n(6745),c=n(4584),p=n(8665),d=n(3365),h=s(n(3970)),f=n(9575);var g=function(e){function t(t){var n=e.call(this,t)||this;return n.props=t,n.destroyFuncs=[],n.changeDetectionService=new c.ChangeDetectionService,n.eGui=l.default.createRef(),n.whenReadyFuncs=[],n.ready=!1,n.renderedAfterMount=!1,n.mounted=!1,n.state={context:void 0},n.portalManager=new d.PortalManager(n,t.componentWrappingElement,t.maxComponentCreationTimeMs),n.destroyFuncs.push((function(){return n.portalManager.destroy()})),n}return o(t,e),t.prototype.render=function(){return this.state.context,this.state.context&&(this.renderedAfterMount=!0),l.default.createElement("div",{style:this.createStyleForDiv(),className:this.props.className,ref:this.eGui},this.state.context&&l.default.createElement(h.default,{context:this.state.context}),this.portalManager.getPortals())},t.prototype.createStyleForDiv=function(){return r({height:"100%"},this.props.containerStyle||{})},t.prototype.componentDidMount=function(){var e=this;if(!this.mounted){this.mounted=!0;var t=this.props.modules||[],n={providedBeanInstances:{frameworkComponentWrapper:new m(this.portalManager)},modules:t,frameworkOverrides:new f.ReactFrameworkOverrides(!0)};this.gridOptions=this.props.gridOptions||{};var o=this.props.children;u.AgGridColumn.hasChildColumns(o)&&(this.gridOptions.columnDefs=u.AgGridColumn.mapChildColumnDefs(o)),this.gridOptions=a.ComponentUtil.copyAttributesToGridOptions(this.gridOptions,this.props);(new a.GridCoreCreator).create(this.eGui.current,this.gridOptions,(function(t){e.setState({context:t}),t.getBean(a.CtrlsService.NAME).whenReady((function(){e.api=e.gridOptions.api,e.columnApi=e.gridOptions.columnApi,e.props.setGridApi(e.api,e.columnApi),e.destroyFuncs.push((function(){return e.api.destroy()}))}))}),(function(t){t.getBean(a.CtrlsService.NAME).whenReady((function(){e.whenReadyFuncs.forEach((function(e){return e()})),e.whenReadyFuncs.length=0,e.ready=!0}))}),n)}},t.prototype.componentWillUnmount=function(){this.renderedAfterMount&&(this.destroyFuncs.forEach((function(e){return e()})),this.destroyFuncs.length=0)},t.prototype.componentDidUpdate=function(e){this.processPropsChanges(e,this.props)},t.prototype.processPropsChanges=function(e,t){var n={};this.extractGridPropertyChanges(e,t,n),this.extractDeclarativeColDefChanges(t,n),this.processChanges(n)},t.prototype.extractDeclarativeColDefChanges=function(e,t){if(!(this.props.gridOptions&&this.props.gridOptions.columnDefs||this.props.columnDefs)){var n=!!e.debug,o="columnDefs",r=this.gridOptions.columnDefs;if(u.AgGridColumn.hasChildColumns(e.children)){var i=this.changeDetectionService.getStrategy(this.getStrategyTypeForProp(o)),s=u.AgGridColumn.mapChildColumnDefs(e.children);i.areEqual(r,s)||(n&&console.log("agGridReact: colDefs definitions changed"),t[o]={previousValue:r,currentValue:s})}else r&&r.length>0&&(t[o]={previousValue:r,currentValue:[]})}},t.prototype.extractGridPropertyChanges=function(e,t,n){var o=this,r=!!t.debug;Object.keys(t).forEach((function(i){a._.includes(a.ComponentUtil.ALL_PROPERTIES,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]}))})),a.ComponentUtil.getEventCallbacks().forEach((function(o){e[o]!==t[o]&&(r&&console.log("agGridReact: ["+o+"] event callback changed"),n[o]={previousValue:e[o],currentValue:t[o]})}))},t.prototype.processChanges=function(e){var t=this;this.processWhenReady((function(){return a.ComponentUtil.processOnChange(e,t.gridOptions,t.api,t.columnApi)}))},t.prototype.processWhenReady=function(e){this.ready?e():this.whenReadyFuncs.push(e)},t.prototype.getStrategyTypeForProp=function(e){if("rowData"===e){if(this.props.rowDataChangeDetectionStrategy)return this.props.rowDataChangeDetectionStrategy;if(this.isImmutableDataActive())return c.ChangeDetectionStrategyType.IdentityCheck}return c.ChangeDetectionStrategyType.DeepValueCheck},t.prototype.isImmutableDataActive=function(){return this.props.deltaRowDataMode||this.props.immutableData||null!=this.props.getRowId||this.props.gridOptions&&(this.props.gridOptions.deltaRowDataMode||this.props.gridOptions.immutableData||null!=this.props.gridOptions.getRowId)},t}(l.Component);t.AgGridReactUi=g;var m=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,n}return o(t,e),t.prototype.createWrapper=function(e,t){return new p.NewReactComponent(e,this.parent,t)},t}(a.BaseComponentWrapper)},2724:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(2791));t.BeansContext=r.default.createContext({})},7627:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2791)),s=n(6817),a=n(2724),l=n(2553),u=n(1622);t.default=i.forwardRef((function(e,t){var n=i.useContext(a.BeansContext),r=n.ctrlsFactory,c=n.context,p=n.gridOptionsWrapper,d=n.resizeObserverService,h=n.clientSideRowModel,f=n.serverSideRowModel,g=i.useState(new s.CssClasses),m=g[0],v=g[1],y=i.useState(new s.CssClasses),C=y[0],w=y[1],_=i.useState(),b=_[0],E=_[1],S=i.useState(),R=S[0],O=S[1],T=i.useRef(),P=i.useRef(null),A=i.useMemo((function(){return m.toString()+" ag-details-row"}),[m]),D=i.useMemo((function(){return C.toString()+" ag-details-grid"}),[C]);t&&i.useImperativeHandle(t,(function(){return{refresh:function(){return T.current.refresh()}}})),u.useEffectOnce((function(){e.template&&"string"===typeof e.template&&console.warn("AG Grid: detailCellRendererParams.template is not supported by React - this only works with frameworks that work against String templates. To change the template, please provide your own React Detail Cell Renderer.")})),u.useEffectOnce((function(){var t={addOrRemoveCssClass:function(e,t){return v((function(n){return n.setClass(e,t)}))},addOrRemoveDetailGridCssClass:function(e,t){return w((function(n){return n.setClass(e,t)}))},setDetailGrid:function(e){return E(e)},setRowData:function(e){return O(e)},getGui:function(){return P.current}},n=r.getInstance("detailCellRenderer");if(n){var o;if(c.createBean(n),n.init(t,e),T.current=n,p.isDetailRowAutoHeight()){var i=function(){if(null!=P.current){var t=P.current.clientHeight;if(null!=t&&t>0){setTimeout((function(){e.node.setRowHeight(t),h?h.onRowHeightChanged():f&&f.onRowHeightChanged()}),0)}}};o=d.observeResize(P.current,i),i()}return function(){c.destroyBean(n),o&&o()}}}));var x=i.useCallback((function(e,t){T.current.registerDetailWithMaster(e,t)}),[]);return i.default.createElement("div",{className:A,ref:P},b&&i.default.createElement(l.AgGridReactUi,o({className:D},b,{rowData:R,setGridApi:x})))}))},5728:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=n(1167),s=r(n(2791)),a=n(2724),l=n(8285),u=n(1622),c=n(6817),p=s.forwardRef((function(e,t){var n=s.useContext(a.BeansContext).context,r=s.useRef(null),d=s.useRef(null),h=s.useRef(null),f=s.useRef(null),g=s.useRef(null),m=s.useState(),v=m[0],y=m[1],C=s.useState(),w=C[0],_=C[1],b=s.useState(),E=b[0],S=b[1],R=s.useState(new c.CssClasses),O=R[0],T=R[1],P=s.useState(new c.CssClasses("ag-hidden")),A=P[0],D=P[1],x=s.useState(new c.CssClasses("ag-hidden")),N=x[0],M=x[1],I=s.useState(new c.CssClasses("ag-invisible")),L=I[0],F=I[1];s.useImperativeHandle(t,(function(){return{refresh:function(){return!1}}})),s.useEffect((function(){return l.showJsComp(v,n,d.current)}),[v]),u.useEffectOnce((function(){var t={setInnerRenderer:function(e,t){y(e),S(t)},setChildCount:function(e){return _(e)},addOrRemoveCssClass:function(e,t){return T((function(n){return n.setClass(e,t)}))},setContractedDisplayed:function(e){return M((function(t){return t.setClass("ag-hidden",!e)}))},setExpandedDisplayed:function(e){return D((function(t){return t.setClass("ag-hidden",!e)}))},setCheckboxVisible:function(e){return F((function(t){return t.setClass("ag-invisible",!e)}))}},o=n.createBean(new i.GroupCellRendererCtrl);return o.init(t,r.current,h.current,f.current,g.current,p,e),function(){n.destroyBean(o)}}));var k=s.useMemo((function(){return"ag-cell-wrapper "+O.toString()}),[O]),G=s.useMemo((function(){return"ag-group-expanded "+A.toString()}),[A]),H=s.useMemo((function(){return"ag-group-contracted "+N.toString()}),[N]),B=s.useMemo((function(){return"ag-group-checkbox "+L.toString()}),[L]),V=v&&v.componentFromFramework,W=V?v.componentClass:void 0,j=null==v&&null!=E;return s.default.createElement("span",o({className:k,ref:r},e.colDef?{}:{role:"gridcell"}),s.default.createElement("span",{className:G,ref:f}),s.default.createElement("span",{className:H,ref:g}),s.default.createElement("span",{className:B,ref:h}),s.default.createElement("span",{className:"ag-group-value",ref:d},j&&s.default.createElement(s.default.Fragment,null,E),V&&s.default.createElement(W,o({},v.params))),s.default.createElement("span",{className:"ag-group-child-count"},w))}));t.default=p},4148:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1167),a=r(n(2791)),l=n(6817),u=i(n(7664)),c=i(n(3930)),p=n(2724),d=n(8285),h=n(1622);!function(e){e[e.ShowValue=0]="ShowValue",e[e.EditValue=1]="EditValue"}(t.CellCompState||(t.CellCompState={}));t.default=a.memo((function(e){var t=a.useContext(p.BeansContext).context,n=e.cellCtrl,r=e.printLayout,i=e.editingRow,f=a.useState(),g=f[0],m=f[1],v=a.useState(),y=v[0],C=v[1],w=a.useState(1),_=w[0],b=w[1],E=a.useState(new l.CssClasses),S=E[0],R=E[1],O=a.useState(),T=O[0],P=O[1],A=a.useState(),D=A[0],x=A[1],N=a.useState(),M=N[0],I=N[1],L=a.useState(),F=L[0],k=L[1],G=a.useState(),H=G[0],B=G[1],V=a.useState(),W=V[0],j=V[1],U=a.useState(!1),z=U[0],Z=U[1],Y=a.useState(!1),K=Y[0],q=Y[1],X=a.useState(!1),Q=X[0],J=X[1],$=a.useState(),ee=$[0],te=$[1],ne=a.useMemo((function(){return n.isForceWrapper()}),[]),oe=a.useRef(null),re=a.useRef(null),ie=a.useRef(),se=a.useRef(),ae=a.useRef(),le=a.useState(0),ue=le[0],ce=le[1],pe=a.useCallback((function(e){ae.current=e,ce((function(e){return e+1}))}),[]),de=a.useRef(),he=a.useState(0),fe=he[0],ge=he[1],me=a.useCallback((function(e){de.current=e,ge((function(e){return e+1}))}),[]),ve=null!=g&&(z||Q||K),ye=ne||ve,Ce=a.useCallback((function(e,t){(se.current=t,t)&&(!function(e,t,n){var o=n.getColumn();if(!e&&t.isPopup&&t.isPopup()){var r="AG Grid: Found an issue in column "+o.getColId()+". If using React, specify an editor is a popup using colDef.cellEditorPopup=true. AG Grid React cannot depend on the editor component specifying if it's in a popup (via the isPopup() method on the editor), as React needs to know this information BEFORE the component is created.";s._.doOnce((function(){return console.warn(r)}),"jsEditorComp-isPopup-"+n.getColumn().getColId())}if(e&&t.getPopupPosition&&null!=t.getPopupPosition()){var i="AG Grid: Found an issue in column "+o.getColId()+". If using React, specify an editor popup position using colDef.cellEditorPopupPosition=true. AG Grid React cannot depend on the editor component specifying it's position (via the getPopupPosition() method on the editor), as React needs to know this information BEFORE the component is created.";s._.doOnce((function(){return console.warn(i)}),"jsEditorComp-getPopupPosition-"+n.getColumn().getColId())}}(e,t,n),t.isCancelBeforeStart&&t.isCancelBeforeStart()&&setTimeout((function(){return n.stopEditing()}),0))}),[]),we=a.useCallback((function(e){return Ce(!0,e)}),[]),_e=a.useCallback((function(e){return Ce(!1,e)}),[]);c.default(g,ye,de.current,fe,ie,oe);var be=a.useRef();a.useEffect((function(){var e=be.current,t=g;if(be.current=g,null!=e&&null!=e.compDetails&&null!=t&&null!=t.compDetails){var n=e.compDetails,o=t.compDetails;if(n.componentClass==o.componentClass)if(null!=re.current&&null!=re.current.refresh)1!=re.current.refresh(o.params)&&b((function(e){return e+1}))}}),[g]),a.useEffect((function(){if(y&&!y.compDetails.componentFromFramework){var e=y.compDetails,n=!0===y.popup,o=d.createSyncJsComp(e);if(o){var r=o.getGui();return Ce(n,o),n||(oe.current.appendChild(r),o.afterGuiAttached&&o.afterGuiAttached()),te(o),function(){t.destroyBean(o),Ce(n,void 0),te(void 0),r&&r.parentElement&&r.parentElement.removeChild(r)}}}}),[y]),a.useEffect((function(){if(n&&t&&(I(ae.current?"cell-"+n.getInstanceId():void 0),ae.current&&ye)){var e=[],o=function(n){if(n){var o=n.getGui();ae.current.insertAdjacentElement("afterbegin",o),e.push((function(){t.destroyBean(n),s._.removeFromParent(o)}))}return n};return z&&o(n.createSelectionCheckbox()),Q&&o(n.createDndSource()),K&&o(n.createRowDragComp()),function(){e.forEach((function(e){e()}))}}}),[ye,Q,K,z,ue]),h.useEffectOnce((function(){if(n){var e={addOrRemoveCssClass:function(e,t){return R((function(n){return n.setClass(e,t)}))},setUserStyles:function(e){return P(e)},getFocusableElement:function(){return oe.current},setTabIndex:function(e){return x(e)},setRole:function(e){return k(e)},setColId:function(e){return B(e)},setTitle:function(e){return j(e)},setIncludeSelection:function(e){return Z(e)},setIncludeRowDrag:function(e){return q(e)},setIncludeDndSource:function(e){return J(e)},getCellEditor:function(){return se.current||null},getCellRenderer:function(){return re.current?re.current:ie.current},getParentOfValue:function(){return de.current?de.current:ae.current?ae.current:oe.current},setRenderDetails:function(e,t,n){m({value:t,compDetails:e,force:n})},setEditDetails:function(e,t,n){e?(C({compDetails:e,popup:t,popupPosition:n}),t||m(void 0)):C(void 0)}},t=ae.current||void 0;n.setComp(e,oe.current,t,r,i)}}));var Ee=a.useMemo((function(){return!!(g&&g.compDetails&&g.compDetails.componentFromFramework&&l.isComponentStateless(g.compDetails.componentClass))}),[g]),Se=a.useMemo((function(){var e=S.toString();return ye||(e+=" ag-cell-value"),e}),[S,ve]),Re=a.useMemo((function(){return n.getInstanceId()}),[]),Oe=function(){return a.default.createElement(a.default.Fragment,null,null!=g&&function(e,t,n,r,i,s,l){var u=e.compDetails,c=e.value,p=!u,d=u&&u.componentFromFramework,h=u&&u.componentClass,f=c&&c.toString?c.toString():c,g=function(){return a.default.createElement(a.default.Fragment,null,p&&a.default.createElement(a.default.Fragment,null,f),d&&!s&&a.default.createElement(h,o({},u.params,{key:t,ref:r})),d&&s&&a.default.createElement(h,o({},u.params,{key:t})))};return a.default.createElement(a.default.Fragment,null,i?a.default.createElement("span",{role:"presentation",id:"cell-"+n,className:"ag-cell-value",ref:l},g()):g())}(g,_,Re,re,ye,Ee,me),null!=y&&function(e,t,n,r,i,s){var l=e.compDetails,c=l.componentClass,p=l.componentFromFramework&&!e.popup,d=l.componentFromFramework&&e.popup,h=!l.componentFromFramework&&e.popup;return a.default.createElement(a.default.Fragment,null,p&&a.default.createElement(c,o({},e.compDetails.params,{ref:t})),d&&a.default.createElement(u.default,{editDetails:e,cellCtrl:i,eParentCell:r,wrappedContent:a.default.createElement(c,o({},e.compDetails.params,{ref:n}))}),h&&s&&a.default.createElement(u.default,{editDetails:e,cellCtrl:i,eParentCell:r,jsChildComp:s}))}(y,_e,we,oe.current,n,ee))};return a.default.createElement("div",{ref:oe,className:Se,style:T,tabIndex:D,role:F,"col-id":H,title:W,"aria-describedby":M},ye?a.default.createElement("div",{className:"ag-cell-wrapper",role:"presentation",ref:pe},Oe()):Oe())}))},7664:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var r=n(1167),i=o(n(2791)),s=n(4164),a=n(2724),l=n(1622);t.default=i.memo((function(e){var t=i.useState(),n=t[0],o=t[1],u=i.useContext(a.BeansContext),c=u.context,p=u.popupService,d=u.gridOptionsWrapper;return l.useEffectOnce((function(){var t=e.editDetails,n=e.cellCtrl,i=e.eParentCell,s=t.compDetails,a=d.isStopEditingWhenCellsLoseFocus(),l=c.createBean(new r.PopupEditorWrapper(s.params)),u=l.getGui();if(e.jsChildComp){var h=e.jsChildComp.getGui();h&&u.appendChild(h)}var f={column:n.getColumn(),rowNode:n.getRowNode(),type:"popupCellEditor",eventSource:i,ePopup:u,keepWithinBounds:!0},g="under"===t.popupPosition?p.positionPopupUnderComponent.bind(p,f):p.positionPopupOverComponent.bind(p,f),m=d.getLocaleTextFunc(),v=p.addPopup({modal:a,eChild:u,closeOnEsc:!0,closedCallback:function(){n.onPopupEditorClosed()},anchorToElement:i,positionCallback:g,ariaLabel:m("ariaLabelCellEditor","Cell Editor")}),y=v?v.hideFunc:void 0;return o(l),e.jsChildComp&&e.jsChildComp.afterGuiAttached&&e.jsChildComp.afterGuiAttached(),function(){null!=y&&y(),c.destroyBean(l)}})),i.default.createElement(i.default.Fragment,null,n&&e.wrappedContent&&s.createPortal(e.wrappedContent,n.getGui()))}))},3930:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(2791),r=n(2724),i=n(1622);t.default=function(e,t,n,s,a,l){var u=o.useContext(r.BeansContext),c=u.context,p=(u.userComponentFactory,o.useCallback((function(){var e=a.current;if(e){var t=e.getGui();t&&t.parentElement&&t.parentElement.removeChild(t),c.destroyBean(e),a.current=void 0}}),[]));o.useEffect((function(){var o=null!=e,r=e&&e.compDetails&&!e.compDetails.componentFromFramework;if(o&&r&&!(t&&null==n)){var i=e.compDetails;if(a.current){var s=a.current,u=!!(null!=s.refresh&&0==e.force)&&s.refresh(i.params);if(!0===u||void 0===u)return;p()}var c=i.newAgStackInstance();if(c){var d=c.resolveNow(null,(function(e){return e}));if(d){var h=d.getGui();if(h)(t?n:l.current).appendChild(h),a.current=d}}}else p()}),[e,t,s]),i.useEffectOnce((function(){return p}))}},6556:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(1167),s=o(n(2791)),a=n(2724),l=r(n(332)),u=r(n(1008)),c=r(n(961)),p=n(1622),d=n(6817);t.default=s.memo((function(){var e=s.useContext(a.BeansContext),t=e.context,n=e.agStackComponentsRegistry,o=e.resizeObserverService,r=s.useState(""),h=r[0],f=r[1],g=s.useState(0),m=g[0],v=g[1],y=s.useState(0),C=y[0],w=y[1],_=s.useState(0),b=_[0],E=_[1],S=s.useState(0),R=S[0],O=S[1],T=s.useState(""),P=T[0],A=T[1],D=s.useState(""),x=D[0],N=D[1],M=s.useState(null),I=M[0],L=M[1],F=s.useState(null),k=F[0],G=F[1],H=s.useState(""),B=H[0],V=H[1],W=s.useState(null),j=W[0],U=W[1],z=s.useState("ag-layout-normal"),Z=z[0],Y=z[1],K=s.useRef(null),q=s.useRef(null),X=s.useRef(null),Q=s.useRef(null);u.default(" AG Grid Body ",K),u.default(" AG Pinned Top ",q),u.default(" AG Middle ",X),u.default(" AG Pinned Bottom ",Q),p.useEffectOnce((function(){var e=[],r=[];if(t){var s=function(o){var r=n.getComponentClass(o),i=t.createBean(new r);return e.push(i),i};K.current.appendChild(document.createComment(" AG Fake Horizontal Scroll ")),K.current.appendChild(s("AG-FAKE-HORIZONTAL-SCROLL").getGui()),K.current.appendChild(document.createComment(" AG Overlay Wrapper ")),K.current.appendChild(s("AG-OVERLAY-WRAPPER").getGui());var a={setRowAnimationCssOnBodyViewport:f,setColumnCount:v,setRowCount:w,setTopHeight:E,setBottomHeight:O,setTopDisplay:A,setBottomDisplay:N,setColumnMovingCss:L,updateLayoutClasses:Y,setAlwaysVerticalScrollClass:G,setPinnedTopBottomOverflowY:V,setCellSelectableCss:U,registerBodyViewportResizeListener:function(e){var t=o.observeResize(X.current,e);r.push((function(){return t()}))}},l=t.createBean(new i.GridBodyCtrl);return e.push(l),l.setComp(a,K.current,X.current,q.current,Q.current),function(){t.destroyBeans(e),r.forEach((function(e){return e()}))}}}));var J=s.useMemo((function(){return d.classesList("ag-root","ag-unselectable",I,Z)}),[I,Z]),$=s.useMemo((function(){return d.classesList("ag-body-viewport",h,Z,k,j)}),[h,Z,k,j]),ee=s.useMemo((function(){return d.classesList("ag-floating-top",j)}),[j]),te=s.useMemo((function(){return d.classesList("ag-floating-bottom",j)}),[j]),ne=s.useMemo((function(){return{height:b,minHeight:b,display:P,overflowY:B}}),[b,P,B]),oe=s.useMemo((function(){return{height:R,minHeight:R,display:x,overflowY:B}}),[R,x,B]),re=function(e){return s.default.createElement(c.default,{name:e,key:e+"-container"})},ie=function(e){var t=e.section,n=e.children,o=e.className,r=e.style;return s.default.createElement("div",{ref:t,className:o,role:"presentation",style:r},n.map(re))};return s.default.createElement("div",{ref:K,className:J,role:"grid","aria-colcount":m,"aria-rowcount":C},s.default.createElement(l.default,null),ie({section:q,className:ee,style:ne,children:[i.RowContainerName.TOP_LEFT,i.RowContainerName.TOP_CENTER,i.RowContainerName.TOP_RIGHT,i.RowContainerName.TOP_FULL_WIDTH]}),ie({section:X,className:$,children:[i.RowContainerName.LEFT,i.RowContainerName.CENTER,i.RowContainerName.RIGHT,i.RowContainerName.FULL_WIDTH]}),ie({section:Q,className:te,style:oe,children:[i.RowContainerName.BOTTOM_LEFT,i.RowContainerName.BOTTOM_CENTER,i.RowContainerName.BOTTOM_RIGHT,i.RowContainerName.BOTTOM_FULL_WIDTH]}))}))},3970:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(1167),s=o(n(2791)),a=n(2724),l=r(n(6556)),u=r(n(1008)),c=r(n(2051)),p=n(1622),d=n(6817);t.default=s.memo((function(e){var t=e.context,n=s.useState(""),o=n[0],r=n[1],h=s.useState(""),f=h[0],g=h[1],m=s.useState(""),v=m[0],y=m[1],C=s.useState(null),w=C[0],_=C[1],b=s.useState(null),E=b[0],S=b[1],R=s.useState(!1),O=R[0],T=R[1],P=s.useState(),A=P[0],D=P[1],x=s.useRef(null),N=s.useRef(null),M=s.useRef(),I=s.useRef(null),L=s.useRef((function(){})),F=s.useCallback((function(){}),[]),k=s.useMemo((function(){return t.getBean("beans")}),[]);u.default(" AG Grid ",N),p.useEffectOnce((function(){var e=x.current=t.createBean(new i.GridCtrl);return function(){t.destroyBean(e),x.current=null}})),p.useEffectOnce((function(){var e=x.current;L.current=e.focusInnerElement.bind(e);var t={destroyGridUi:function(){},setRtlClass:r,addOrRemoveKeyboardFocusClass:function(e){return g(e?i.FocusService.AG_KEYBOARD_FOCUS:"")},forceFocusOutOfContainer:function(){M.current.forceFocusOutOfContainer()},updateLayoutClasses:y,getFocusableContainers:function(){var e=[],t=N.current.querySelector(".ag-root"),n=N.current.querySelector(".ag-side-bar");return t&&e.push(t),n&&e.push(n),e},setCursor:_,setUserSelect:S};e.setComp(t,N.current,N.current),T(!0)})),s.useEffect((function(){if(A){var e=x.current,n=[],o=k.agStackComponentsRegistry,r=o.getComponentClass("AG-GRID-HEADER-DROP-ZONES"),i=o.getComponentClass("AG-SIDE-BAR"),s=o.getComponentClass("AG-STATUS-BAR"),a=o.getComponentClass("AG-WATERMARK"),l=o.getComponentClass("AG-PAGINATION"),u=[],c=N.current,p=I.current;if(e.showDropZones()&&r){var d=t.createBean(new r),h=d.getGui();c.insertAdjacentElement("afterbegin",h),u.push(h),n.push(d)}if(e.showSideBar()&&i){var f=t.createBean(new i),g=(h=f.getGui(),p.querySelector(".ag-tab-guard-bottom"));g&&(g.insertAdjacentElement("beforebegin",h),u.push(h)),n.push(f)}if(e.showStatusBar()&&s){var m=t.createBean(new s);h=m.getGui();c.insertAdjacentElement("beforeend",h),u.push(h),n.push(m)}if(l){var v=t.createBean(new l);h=v.getGui();c.insertAdjacentElement("beforeend",h),u.push(h),n.push(v)}if(e.showWatermark()&&a){var y=t.createBean(new a);h=y.getGui();c.insertAdjacentElement("beforeend",h),u.push(h),n.push(y)}return function(){t.destroyBeans(n),u.forEach((function(e){e.parentElement&&e.parentElement.removeChild(e)}))}}}),[A]);var G=s.useMemo((function(){return d.classesList("ag-root-wrapper",o,f,v)}),[o,f,v]),H=s.useMemo((function(){return d.classesList("ag-root-wrapper-body","ag-focus-managed",v)}),[v]),B=s.useMemo((function(){return{userSelect:null!=E?E:"",WebkitUserSelect:null!=E?E:"",cursor:null!=w?w:""}}),[E,w]),V=I.current,W=s.useCallback((function(e){M.current=e,D(!0)}),[]);return s.default.createElement("div",{ref:N,className:G,style:B},s.default.createElement("div",{className:H,ref:I},O&&V&&s.default.createElement(a.BeansContext.Provider,{value:k},s.default.createElement(c.default,{ref:W,eFocusableElement:V,onTabKeyDown:F,gridCtrl:x.current},s.default.createElement(l.default,null)))))}))},332:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(2791)),s=n(2724),a=n(1167),l=n(6817),u=r(n(1212)),c=n(1622);t.default=i.memo((function(){var e=i.useState(new l.CssClasses),t=e[0],n=e[1],o=i.useState(),r=o[0],p=o[1],d=i.useContext(s.BeansContext).context,h=i.useRef(null);c.useEffectOnce((function(){var e={addOrRemoveCssClass:function(e,t){return n((function(n){return n.setClass(e,t)}))},setHeightAndMinHeight:function(e){return p(e)}},t=d.createBean(new a.GridHeaderCtrl);return t.setComp(e,h.current,h.current),function(){d.destroyBean(t)}}));var f=i.useMemo((function(){return"ag-header "+t.toString()}),[t]),g=i.useMemo((function(){return{height:r,minHeight:r}}),[r]);return i.default.createElement("div",{ref:h,className:f,style:g,role:"presentation"},i.default.createElement(u.default,{pinned:a.Constants.PINNED_LEFT}),i.default.createElement(u.default,{pinned:null}),i.default.createElement(u.default,{pinned:a.Constants.PINNED_RIGHT}))}))},273:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2791)),s=n(2724),a=n(1167),l=n(6817),u=n(8285),c=n(1622);t.default=i.memo((function(e){var t=i.useContext(s.BeansContext).context,n=i.useState(),r=n[0],p=n[1],d=i.useState(),h=d[0],f=d[1],g=i.useState(),m=g[0],v=g[1],y=i.useState(),C=y[0],w=y[1],_=i.useState(),b=_[0],E=_[1],S=i.useState(),R=S[0],O=S[1],T=i.useRef(null),P=i.useRef(null),A=i.useRef(),D=e.ctrl,x=i.useMemo((function(){return new a.CssClassManager((function(){return T.current}))}),[]);c.useEffectOnce((function(){var e={setWidth:function(e){return p(e)},addOrRemoveCssClass:function(e,t){return x.addOrRemoveCssClass(e,t)},setColId:function(e){return v(e)},setTitle:function(e){return f(e)},setAriaDescription:function(e){return E(e)},setAriaSort:function(e){return w(e)},setUserCompDetails:function(e){return O(e)},getUserCompInstance:function(){return A.current||void 0}};D.setComp(e,T.current,P.current);var t=D.getSelectAllGui();P.current.insertAdjacentElement("afterend",t)})),i.useEffect((function(){return u.showJsComp(R,t,T.current,A)}),[R]),i.useEffect((function(){var e=void 0;T.current.childNodes.forEach((function(t){null!=t&&t!==P.current&&(e=t)})),D.setDragSource(e)}),[R]);var N=i.useMemo((function(){return{width:r}}),[r]),M=i.useMemo((function(){var e;return!!((null===(e=R)||void 0===e?void 0:e.componentFromFramework)&&l.isComponentStateless(R.componentClass))}),[R]),I=R&&R.componentFromFramework,L=R&&R.componentClass;return i.default.createElement("div",{ref:T,className:"ag-header-cell",style:N,title:h,"col-id":m,"aria-sort":C,role:"columnheader",tabIndex:-1,"aria-description":b},i.default.createElement("div",{ref:P,className:"ag-header-cell-resize",role:"presentation"}),I&&M&&i.default.createElement(L,o({},R.params)),I&&!M&&i.default.createElement(L,o({},R.params,{ref:A})))}))},1478:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2791)),s=n(2724),a=n(1167),l=n(6817),u=n(8285),c=n(1622);t.default=i.memo((function(e){var t=i.useContext(s.BeansContext).context,n=i.useState(new l.CssClasses),r=n[0],p=n[1],d=i.useState(new l.CssClasses),h=d[0],f=d[1],g=i.useState(new l.CssClasses),m=g[0],v=g[1],y=i.useState(),C=y[0],w=y[1],_=i.useState(),b=_[0],E=_[1],S=i.useRef(null),R=i.useRef(null),O=i.useRef(null),T=i.useRef(null),P=i.useRef(!1),A=i.useRef(),D=i.useRef();c.useEffectOnce((function(){D.current=new a.AgPromise((function(e){A.current=e}))}));var x=function(e){P.current||null!=e&&(A.current&&A.current(e),P.current=!0)},N=e.ctrl;c.useEffectOnce((function(){var e={addOrRemoveCssClass:function(e,t){return p((function(n){return n.setClass(e,t)}))},addOrRemoveBodyCssClass:function(e,t){return f((function(n){return n.setClass(e,t)}))},addOrRemoveButtonWrapperCssClass:function(e,t){return v((function(n){return n.setClass(e,t)}))},setWidth:function(e){return w(e)},setCompDetails:function(e){return E(e)},getFloatingFilterComp:function(){return D.current?D.current:null},setMenuIcon:function(e){return T.current.appendChild(e)}};N.setComp(e,S.current,T.current,R.current)})),i.useEffect((function(){return u.showJsComp(b,t,R.current,x)}),[b]);var M=i.useMemo((function(){return{width:C}}),[C]),I=i.useMemo((function(){return"ag-header-cell ag-floating-filter "+r.toString()}),[r]),L=i.useMemo((function(){return h.toString()}),[h]),F=i.useMemo((function(){return"ag-floating-filter-button "+m.toString()}),[h]),k=i.useMemo((function(){return!!(b&&b.componentFromFramework&&l.isComponentStateless(b.componentClass))}),[b]),G=b&&b.componentFromFramework,H=b&&b.componentClass;return i.default.createElement("div",{ref:S,className:I,style:M,role:"gridcell",tabIndex:-1},i.default.createElement("div",{ref:R,className:L,role:"presentation"},G&&k&&i.default.createElement(H,o({},b.params)),G&&!k&&i.default.createElement(H,o({},b.params,{ref:x}))),i.default.createElement("div",{ref:O,className:F,role:"presentation"},i.default.createElement("button",{ref:T,type:"button","aria-label":"Open Filter Menu",className:"ag-floating-filter-button-button",tabIndex:-1})))}))},5267:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(2791)),s=n(2724),a=n(8285),l=n(1622),u=n(6817);t.default=i.memo((function(e){var t=i.useContext(s.BeansContext).context,n=i.useState(new u.CssClasses),r=n[0],c=n[1],p=i.useState(new u.CssClasses),d=p[0],h=p[1],f=i.useState(),g=f[0],m=f[1],v=i.useState(),y=v[0],C=v[1],w=i.useState(),_=w[0],b=w[1],E=i.useState(),S=E[0],R=E[1],O=i.useState(),T=O[0],P=O[1],A=i.useRef(null),D=i.useRef(null),x=e.ctrl;l.useEffectOnce((function(){var e={setWidth:function(e){return m(e)},addOrRemoveCssClass:function(e,t){return c((function(n){return n.setClass(e,t)}))},setColId:function(e){return b(e)},setTitle:function(e){return C(e)},setUserCompDetails:function(e){return P(e)},addOrRemoveResizableCssClass:function(e,t){return h((function(n){return n.setClass(e,t)}))},setAriaExpanded:function(e){return R(e)}};x.setComp(e,A.current,D.current)})),i.useEffect((function(){return a.showJsComp(T,t,A.current)}),[T]),i.useEffect((function(){var e=void 0;A.current.childNodes.forEach((function(t){null!=t&&t!==D.current&&(e=t)})),e&&x.setDragSource(e)}),[T]);var N=i.useMemo((function(){return{width:g}}),[g]),M=i.useMemo((function(){return"ag-header-group-cell "+r.toString()}),[r]),I=i.useMemo((function(){return"ag-header-cell-resize "+d.toString()}),[d]),L=T&&T.componentFromFramework,F=T&&T.componentClass;return i.default.createElement("div",{ref:A,className:M,style:N,title:y,"col-id":_,role:"columnheader",tabIndex:-1,"aria-expanded":S},L&&i.default.createElement(F,o({},T.params)),i.default.createElement("div",{ref:D,className:I}))}))},9979:function(e,t,n){"use strict";var o=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},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1167),a=r(n(2791)),l=n(2724),u=i(n(273)),c=i(n(5267)),p=i(n(1478)),d=n(1622);t.default=a.memo((function(e){var t=a.useContext(l.BeansContext).gridOptionsWrapper,n=a.useState(),r=n[0],i=n[1],h=a.useState(),f=h[0],g=h[1],m=a.useState(),v=m[0],y=m[1],C=a.useState(),w=C[0],_=C[1],b=a.useState(),E=b[0],S=b[1],R=a.useState([]),O=R[0],T=R[1],P=a.useRef(null),A=e.ctrl,D=A.getType()===s.HeaderRowType.COLUMN,x=A.getType()===s.HeaderRowType.COLUMN_GROUP,N=A.getType()===s.HeaderRowType.FLOATING_FILTER,M=a.useCallback((function(e,n){if(t.isEnsureDomOrder())return n;var r=s._.mapById(e,(function(e){return e.getInstanceId()})),i=s._.mapById(n,(function(e){return e.getInstanceId()})),a=e.filter((function(e){return i.has(e.getInstanceId())})),l=n.filter((function(e){return!r.has(e.getInstanceId())}));return o(a,l)}),[]);d.useEffectOnce((function(){var e={setTransform:function(e){return i(e)},setHeight:function(e){return g(e)},setTop:function(e){return y(e)},setHeaderCtrls:function(e){return T((function(t){return M(t,e)}))},setWidth:function(e){return _(e)},setAriaRowIndex:function(e){return S(e)}};A.setComp(e)}));var I=a.useMemo((function(){return{transform:r,height:f,top:v,width:w}}),[r,f,v,w]),L=a.useMemo((function(){var e=["ag-header-row"];return D&&e.push("ag-header-row-column"),x&&e.push("ag-header-row-column-group"),N&&e.push("ag-header-row-column-filter"),e.join(" ")}),[]),F=a.useCallback((function(e){switch(A.getType()){case s.HeaderRowType.COLUMN_GROUP:return a.default.createElement(c.default,{ctrl:e,key:e.getInstanceId()});case s.HeaderRowType.FLOATING_FILTER:return a.default.createElement(p.default,{ctrl:e,key:e.getInstanceId()});default:return a.default.createElement(u.default,{ctrl:e,key:e.getInstanceId()})}}),[]);return a.default.createElement("div",{ref:P,className:L,role:"row",style:I,"aria-rowindex":E},O.map(F))}))},1212:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(n(2791)),s=n(2724),a=n(1167),l=n(6817),u=r(n(9979)),c=n(1622);t.default=i.memo((function(e){var t=i.useState(new l.CssClasses),n=t[0],o=t[1],r=i.useState(),p=r[0],d=r[1],h=i.useState(),f=h[0],g=h[1],m=i.useState(),v=m[0],y=m[1],C=i.useState([]),w=C[0],_=C[1],b=i.useContext(s.BeansContext).context,E=i.useRef(null),S=e.pinned===a.Constants.PINNED_LEFT,R=e.pinned===a.Constants.PINNED_RIGHT,O=!S&&!R;c.useEffectOnce((function(){var t={addOrRemoveCssClass:function(e,t){return o((function(n){return n.setClass(e,t)}))},setCtrls:function(e){return _(e)},setCenterWidth:function(e){return d(e)},setContainerTransform:function(e){return g(e)},setPinnedContainerWidth:function(e){return y(e)}},n=b.createBean(new a.HeaderRowContainerCtrl(e.pinned));return n.setComp(t,E.current),function(){b.destroyBean(n)}}));var T=i.useMemo((function(){return n.toString()}),[n]),P=function(){return w.map((function(e){return i.default.createElement(u.default,{ctrl:e,key:e.getInstanceId()})}))},A=i.useMemo((function(){return{width:p,transform:f}}),[p,f]),D=i.useMemo((function(){return{width:v,minWidth:v,maxWidth:v}}),[v]);return i.default.createElement(i.default.Fragment,null,S&&i.default.createElement("div",{ref:E,className:"ag-pinned-left-header "+T,role:"presentation",style:D},P()),R&&i.default.createElement("div",{ref:E,className:"ag-pinned-right-header "+T,role:"presentation",style:D},P()),O&&i.default.createElement("div",{ref:E,className:"ag-header-viewport "+T,role:"presentation"},i.default.createElement("div",{className:"ag-header-container",role:"rowgroup",style:A},P())))}))},8285:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showJsComp=function(e,t,o,r){if(!(!e||e.componentFromFramework)){var i=e.newAgStackInstance();if(i){var s,a,l=!1;return i.then((function(e){l?t.destroyBean(e):(a=(s=e).getGui(),o.appendChild(a),n(r,s))})),function(){l=!0,s&&(a&&a.parentElement&&a.parentElement.removeChild(a),t.destroyBean(s),r&&n(r,void 0))}}}};var n=function(e,t){e&&(e instanceof Function?e(t):e.current=t)};t.createSyncJsComp=function(e){var t=e.newAgStackInstance();if(t)return t.resolveNow(null,(function(e){return e}))}},1008:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1622);t.default=function(e,t){o.useEffectOnce((function(){var n=t.current,o=n.parentElement;if(o){var r=document.createComment(e);return o.insertBefore(r,n),function(){o.removeChild(r)}}}))}},2939:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return o=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},o.apply(this,arguments)},r=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},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(2791)),l=n(1167),u=n(8285),c=n(6817),p=n(2724),d=s(n(4148)),h=n(1622);t.default=a.memo((function(e){var t=a.useContext(p.BeansContext).context,n=e.rowCtrl,i=e.containerType,s=a.useState(),f=s[0],g=s[1],m=a.useState(),v=m[0],y=m[1],C=a.useState(),w=C[0],_=C[1],b=a.useState(),E=b[0],S=b[1],R=a.useState(),O=R[0],T=R[1],P=a.useState(),A=P[0],D=P[1],x=a.useState({list:[],instanceIdMap:new Map}),N=x[0],M=x[1],I=a.useState(),L=I[0],F=I[1],k=a.useState(!1),G=k[0],H=k[1],B=a.useState(n.getInitialRowTop()),V=B[0],W=B[1],j=a.useState(n.getInitialTransform()),U=j[0],z=j[1],Z=a.useRef(null),Y=a.useRef(),K=a.useRef(!1),q=a.useState(0),X=q[0],Q=q[1];a.useEffect((function(){var e;if(!K.current&&L&&!(X>10)){var t=null===(e=Z.current)||void 0===e?void 0:e.firstChild;t?(n.setupDetailRowAutoHeight(t),K.current=!0):Q((function(e){return e+1}))}}),[L,X]);var J=a.useMemo((function(){return new l.CssClassManager((function(){return Z.current}))}),[]);h.useEffectOnce((function(){if(n.isAlive()){var e={setTop:function(e){return W(e)},setTransform:function(e){return z(e)},addOrRemoveCssClass:function(e,t){return J.addOrRemoveCssClass(e,t)},setDomOrder:function(e){return H(e)},setRowIndex:function(e){return g(e)},setRowId:function(e){return y(e)},setRowBusinessKey:function(e){return S(e)},setTabIndex:function(e){return T(e)},setUserStyles:function(e){return D(e)},setRole:function(e){return _(e)},setCellCtrls:function(e){return M((function(t){return function(e,t,n){if(n){var o={list:t,instanceIdMap:new Map};return t.forEach((function(e){return o.instanceIdMap.set(e.getInstanceId(),e)})),o}var i=[],s=[],a=new Map,l=new Map;return t.forEach((function(e){return l.set(e.getInstanceId(),e)})),e.list.forEach((function(e){var t=e.getInstanceId();l.has(t)&&(i.push(e),a.set(t,e))})),t.forEach((function(t){var n=t.getInstanceId();e.instanceIdMap.has(n)||(s.push(t),a.set(n,t))})),{list:r(i,s),instanceIdMap:a}}(t,e,G)}))},showFullWidth:function(e){return F(e)},getFullWidthCellRenderer:function(){return Y.current}};n.setComp(e,Z.current,i)}})),a.useEffect((function(){return u.showJsComp(L,t,Z.current,Y)}),[L]);var $=a.useMemo((function(){var e={top:V,transform:U};return Object.assign(e,A),e}),[V,U,A]),ee=L&&L.componentFromFramework,te=null!=N,ne=a.useMemo((function(){var e;return!!((null===(e=L)||void 0===e?void 0:e.componentFromFramework)&&c.isComponentStateless(L.componentClass))}),[L]);return a.default.createElement("div",{ref:Z,role:w,style:$,"row-index":f,"row-id":v,"row-business-key":E,tabIndex:O},te&&N.list.map((function(e){return a.default.createElement(d.default,{cellCtrl:e,editingRow:n.isEditing(),printLayout:n.isPrintLayout(),key:e.getInstanceId()})})),ee&&function(){var e=L.componentClass;return a.default.createElement(a.default.Fragment,null,ne&&a.default.createElement(e,o({},L.params)),!ne&&a.default.createElement(e,o({},L.params,{ref:Y})))}())}))},961:function(e,t,n){"use strict";var o=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},r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1167),a=r(n(2791)),l=n(6817),u=i(n(1008)),c=i(n(2939)),p=n(2724),d=n(1622);t.default=a.memo((function(e){var t=a.useContext(p.BeansContext).context,n=a.useState(""),r=n[0],i=n[1],h=a.useState([]),f=h[0],g=h[1],m=a.useState([]),v=m[0],y=m[1],C=a.useState(!1),w=C[0],_=C[1],b=a.useState(""),E=b[0],S=b[1],R=e.name,O=a.useMemo((function(){return s.getRowContainerTypeForName(R)}),[R]),T=a.useRef(null),P=a.useRef(null),A=a.useRef(null),D=a.useMemo((function(){return s.RowContainerCtrl.getRowContainerCssClasses(R)}),[R]),x=a.useMemo((function(){return l.classesList(D.wrapper)}),[]),N=a.useMemo((function(){return l.classesList(D.viewport)}),[]),M=a.useMemo((function(){return l.classesList(D.container)}),[]),I=R===s.RowContainerName.CENTER,L=R===s.RowContainerName.TOP_CENTER||R===s.RowContainerName.BOTTOM_CENTER,F=!I&&!L,k=I?T:L?P:A;u.default(" AG Row Container "+R+" ",k),a.useEffect((function(){g((function(e){if(w)return v;var t=e.filter((function(e){return v.indexOf(e)>=0})),n=v.filter((function(e){return t.indexOf(e)<0}));return o(t,n)}))}),[w,v]),d.useEffectOnce((function(){var e=[],n={setViewportHeight:i,setRowCtrls:function(e){return y(e)},setDomOrder:function(e){return _(e)},setContainerWidth:function(e){return S(e)}},o=t.createBean(new s.RowContainerCtrl(R));return e.push(o),o.setComp(n,A.current,P.current,T.current),function(){t.destroyBeans(e)}}));var G=a.useMemo((function(){return{height:r}}),[r]),H=a.useMemo((function(){return{width:E}}),[E]),B=function(){return a.default.createElement("div",{className:M,ref:A,role:v.length?"rowgroup":"presentation",style:H},f.map((function(e){return a.default.createElement(c.default,{rowCtrl:e,containerType:O,key:e.getInstanceId()})})))};return a.default.createElement(a.default.Fragment,null,I&&a.default.createElement("div",{className:x,ref:T,role:"presentation"},a.default.createElement("div",{className:N,ref:P,role:"presentation",style:G},B())),L&&a.default.createElement("div",{className:N,ref:P,role:"presentation",style:G},B()),F&&B())}))},2051:function(e,t,n){"use strict";var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(2791)),i=n(1167),s=n(2724),a=n(1622),l=r.forwardRef((function(e,t){var n=e.children,o=e.eFocusableElement,l=e.onTabKeyDown,u=e.gridCtrl,c=r.useContext(s.BeansContext).context,p=r.useRef(null),d=r.useRef(null),h=r.useRef(),f=r.useState(),g=f[0],m=f[1];r.useImperativeHandle(t,(function(){return{forceFocusOutOfContainer:function(){h.current.forceFocusOutOfContainer()}}})),a.useEffectOnce((function(){var e=p.current,t=d.current,n={setTabIndex:function(e){return m(null==e?void 0:parseInt(e,10))}},r=h.current=c.createBean(new i.TabGuardCtrl({comp:n,eTopGuard:e,eBottomGuard:t,eFocusableElement:o,onTabKeyDown:l,focusInnerElement:function(e){return u.focusInnerElement(e)}}));return function(){c.destroyBean(r)}}));var v=function(e){return r.default.createElement("div",{className:"ag-tab-guard ag-tab-guard-"+e,role:"presentation",tabIndex:g,ref:"top"===e?p:d})};return r.default.createElement(r.default.Fragment,null,v("top"),n,v("bottom"))}));t.default=r.memo(l)},1622:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(2791);t.useEffectOnce=function(e){var t=o.useRef(),n=o.useRef(!1),r=o.useRef(!1),i=o.useState(0),s=(i[0],i[1]);n.current&&(r.current=!0),o.useEffect((function(){return n.current||(t.current=e(),n.current=!0),s((function(e){return e+1})),function(){r.current&&t.current&&t.current()}}),[])}},6817:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=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},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.classesList=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter((function(e){return null!=e&&""!==e}));return n.join(" ")};var o=function(){function e(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.classesMap={},t.forEach((function(t){e.classesMap[t]=!0}))}return e.prototype.setClass=function(t,o){if(!!this.classesMap[t]==o)return this;var r=new e;return r.classesMap=n({},this.classesMap),r.classesMap[t]=o,r},e.prototype.toString=function(){var e=this;return Object.keys(this.classesMap).filter((function(t){return e.classesMap[t]})).join(" ")},e}();t.CssClasses=o,t.isComponentStateless=function(e){return"function"===typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"===typeof e&&e.$$typeof===("function"===typeof Symbol&&Symbol.for?Symbol.for("react.memo"):60115)}},6745:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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=this&&this.__rest||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},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(2791)),l=s(n(2007)),u=i(n(1167)),c=function(e){function t(t){var n=e.call(this,t)||this;return n.props=t,n}return o(t,e),t.prototype.render=function(){return null},t.mapChildColumnDefs=function(e){return a.default.Children.map(e,(function(e){return e?t.toColDef(e.props):null}))},t.toColDef=function(e){var n=e.children,o=r(e,["children"]);return t.hasChildColumns(n)&&(o.children=t.mapChildColumnDefs(n)),o},t.hasChildColumns=function(e){return a.default.Children.count(e)>0},t}(a.Component);function p(e,t){e.forEach((function(e){c[e]=t}))}t.AgGridColumn=c,p(u.ColDefUtil.BOOLEAN_PROPERTIES,l.default.bool),p(u.ColDefUtil.STRING_PROPERTIES,l.default.string),p(u.ColDefUtil.OBJECT_PROPERTIES,l.default.object),p(u.ColDefUtil.ARRAY_PROPERTIES,l.default.array),p(u.ColDefUtil.NUMBER_PROPERTIES,l.default.number),p(u.ColDefUtil.FUNCTION_PROPERTIES,l.default.func)},4584:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.IdentityCheck="IdentityCheck",e.DeepValueCheck="DeepValueCheck",e.NoCheck="NoCheck"}(n=t.ChangeDetectionStrategyType||(t.ChangeDetectionStrategyType={}));var o=function(){function e(e){this.strategy=e}return e.prototype.areEqual=function(e,t){return this.strategy(e,t)},e}(),r=function(){function e(){}return e.prototype.areEqual=function(t,n){return e.areEquivalent(e.copy(t),e.copy(n))},e.unwrapStringOrNumber=function(e){return e instanceof Number||e instanceof String?e.valueOf():e},e.copy=function(e){if(!e)return e;if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)t.push(this.copy(e[n]));return t}return"object"!==typeof e?e:[{},e].reduce((function(e,t){return Object.keys(t).forEach((function(n){e[n]=t[n]})),e}),{})},e.isNaN=function(e){return Number.isNaN?Number.isNaN(e):"number"===typeof e&&isNaN(e)},e.areEquivalent=function(t,n){if(t=e.unwrapStringOrNumber(t),n=e.unwrapStringOrNumber(n),t===n)return!0;if(null===t||null===n||typeof t!==typeof n)return!1;if(e.isNaN(t)&&e.isNaN(n))return!0;if(t instanceof Date)return n instanceof Date&&t.valueOf()===n.valueOf();if("function"===typeof t)return!1;if("object"!==typeof t||t.$$typeof&&"Symbol(react.element)"===t.$$typeof.toString())return t==n;if(Object.isFrozen(t)||Object.isFrozen(n))return t===n;var 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}(),i=function(){function e(){var e;this.strategyMap=((e={})[n.DeepValueCheck]=new r,e[n.IdentityCheck]=new o((function(e,t){return e===t})),e[n.NoCheck]=new o((function(e,t){return!1})),e)}return e.prototype.getStrategy=function(e){return this.strategyMap[e]},e}();t.ChangeDetectionService=i},3507:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=0;t.default=function(){return"agPortalKey_"+ ++n}},8665:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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=this&&this.__assign||function(){return r=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},r.apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(2791),a=n(4164),l=n(1167),u=n(294),c=n(8340),p=i(n(3507)),d=function(e){function t(t,n,o){var r=e.call(this,t,n,o)||this;return r.oldPortal=null,r.key=p.default(),r.portalKey=p.default(),r}return o(t,e),t.prototype.init=function(e){var t=this;return this.eParentElement=this.createParentElement(e),this.params=e,this.createOrUpdatePortal(e),new l.AgPromise((function(e){return t.createReactComponent(e)}))},t.prototype.createOrUpdatePortal=function(e){var t=this;this.isStatelessComponent()||(e.ref=function(e){t.componentInstance=e,t.addParentContainerStyleAndClasses()}),this.reactElement=s.createElement(this.reactComponent,r(r({},e),{key:this.key})),this.portal=a.createPortal(this.reactElement,this.eParentElement,this.portalKey)},t.prototype.createReactComponent=function(e){this.portalManager.mountReactPortal(this.portal,this,(function(t){e(t)}))},t.prototype.isNullValue=function(){return this.valueRenderedIsNull(this.params)},t.prototype.rendered=function(){return this.isStatelessComponent()&&this.statelessComponentRendered()||!(this.isStatelessComponent()||!this.getFrameworkComponentInstance())},t.prototype.valueRenderedIsNull=function(e){if(!this.componentType.cellRenderer)return!1;var t=console.error;try{return console.error=function(){},""===c.renderToStaticMarkup(s.createElement(this.reactComponent,e))}catch(n){}finally{console.error=t}return!1},t.prototype.refreshComponent=function(e){this.oldPortal=this.portal,this.createOrUpdatePortal(e),this.portalManager.updateReactPortal(this.oldPortal,this.portal)},t.prototype.fallbackMethod=function(e,t){var n=this[e+"Component"];if(n)return n.bind(this)(t)},t.prototype.fallbackMethodAvailable=function(e){return!!this[e+"Component"]},t}(u.ReactComponent);t.NewReactComponent=d},3365:function(e,t){"use strict";var n=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 o=function(){function e(t,n,o){this.destroyed=!1,this.portals=[],this.hasPendingPortalUpdate=!1,this.wrappingElement=n||"div",this.parent=t,this.maxComponentCreationTimeMs=o||e.MAX_COMPONENT_CREATION_TIME_IN_MS}return e.prototype.getPortals=function(){return this.portals},e.prototype.destroy=function(){this.destroyed=!0},e.prototype.destroyPortal=function(e){this.portals=this.portals.filter((function(t){return t!==e})),this.batchUpdate()},e.prototype.getComponentWrappingElement=function(){return this.wrappingElement},e.prototype.mountReactPortal=function(e,t,o){this.portals=n(this.portals,[e]),this.waitForInstance(t,o),this.batchUpdate()},e.prototype.updateReactPortal=function(e,t){this.portals[this.portals.indexOf(e)]=t,this.batchUpdate()},e.prototype.batchUpdate=function(){var e=this;this.hasPendingPortalUpdate||(setTimeout((function(){e.destroyed||e.parent.forceUpdate((function(){e.hasPendingPortalUpdate=!1}))})),this.hasPendingPortalUpdate=!0)},e.prototype.waitForInstance=function(e,t,n){var o=this;if(void 0===n&&(n=Date.now()),this.destroyed)t(null);else if(e.rendered())t(e);else{if(Date.now()-n>=this.maxComponentCreationTimeMs&&!this.hasPendingPortalUpdate)return e.isNullValue()?void t(e):void console.error("AG Grid: React Component '"+e.getReactComponentName()+"' not created within "+this.maxComponentCreationTimeMs+"ms");window.setTimeout((function(){o.waitForInstance(e,t,n)}))}},e.MAX_COMPONENT_CREATION_TIME_IN_MS=1e3,e}();t.PortalManager=o},294:function(e,t){"use strict";var n=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t,n,o){var r=e.call(this)||this;return r.portal=null,r.reactComponent=t,r.portalManager=n,r.componentType=o,r.statelessComponent=r.isStateless(r.reactComponent),r}return n(t,e),t.prototype.getGui=function(){return this.eParentElement},t.prototype.destroy=function(){return this.componentInstance&&"function"==typeof this.componentInstance.destroy&&this.componentInstance.destroy(),this.portalManager.destroyPortal(this.portal)},t.prototype.createParentElement=function(e){var t=this.portalManager.getComponentWrappingElement(),n=document.createElement(t||"div");return n.classList.add("ag-react-container"),e.reactContainer=n,n},t.prototype.addParentContainerStyleAndClasses=function(){var e=this;this.componentInstance&&(this.componentInstance.getReactContainerStyle&&this.componentInstance.getReactContainerStyle()&&Object.assign(this.eParentElement.style,this.componentInstance.getReactContainerStyle()),this.componentInstance.getReactContainerClasses&&this.componentInstance.getReactContainerClasses()&&this.componentInstance.getReactContainerClasses().forEach((function(t){return e.eParentElement.classList.add(t)})))},t.prototype.statelessComponentRendered=function(){return this.eParentElement.childElementCount>0||this.eParentElement.childNodes.length>0},t.prototype.getFrameworkComponentInstance=function(){return this.componentInstance},t.prototype.isStatelessComponent=function(){return this.statelessComponent},t.prototype.getReactComponentName=function(){return this.reactComponent.name},t.prototype.getMemoType=function(){return this.hasSymbol()?Symbol.for("react.memo"):60115},t.prototype.hasSymbol=function(){return"function"===typeof Symbol&&Symbol.for},t.prototype.isStateless=function(e){return"function"===typeof e&&!(e.prototype&&e.prototype.isReactComponent)||"object"===typeof e&&e.$$typeof===this.getMemoType()},t.prototype.hasMethod=function(e){var t=this.getFrameworkComponentInstance();return!!t&&null!==t[e]||this.fallbackMethodAvailable(e)},t.prototype.callMethod=function(e,t){var n=this,o=this.getFrameworkComponentInstance();if(this.isStatelessComponent())return this.fallbackMethod(e,t&&t[0]?t[0]:{});if(o){var r=o[e];return r?r.apply(o,t):this.fallbackMethodAvailable(e)?this.fallbackMethod(e,t&&t[0]?t[0]:{}):void 0}setTimeout((function(){return n.callMethod(e,t)}))},t.prototype.addMethod=function(e,t){this[e]=t},t}((function(){}));t.ReactComponent=o},9575:function(e,t,n){"use strict";var o=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(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=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(1167),s=r(n(5728)),a=r(n(7627)),l=function(e){function t(t){var n=e.call(this)||this;return n.frameworkComponents={agGroupCellRenderer:s.default,agGroupRowRenderer:s.default,agDetailCellRenderer:a.default},n.reactUi=t,n}return o(t,e),t.prototype.frameworkComponent=function(e){if(this.reactUi)return this.frameworkComponents[e]},t.prototype.isFrameworkComponent=function(e){if(!e)return!1;var t=e.prototype;return!(t&&"getGui"in t)},t}(i.VanillaFrameworkOverrides);t.ReactFrameworkOverrides=l},2953:function(e,t,n){t.AgGridReact=n(7945).AgGridReact,n(6745).AgGridColumn,n(4584).ChangeDetectionStrategyType,n(2553).AgGridReactUi},4569:function(e,t,n){e.exports=n(8036)},3381:function(e,t,n){"use strict";var o=n(3589),r=n(7297),i=n(9301),s=n(9774),a=n(1804),l=n(9145),u=n(5411),c=n(6789),p=n(4531),d=n(6569),h=n(6261);e.exports=function(e){return new Promise((function(t,n){var f,g=e.data,m=e.headers,v=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}o.isFormData(g)&&o.isStandardBrowserEnv()&&delete m["Content-Type"];var C=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(w+":"+_)}var b=a(e.baseURL,e.url);function E(){if(C){var o="getAllResponseHeaders"in C?l(C.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?C.response:C.responseText,status:C.status,statusText:C.statusText,headers:o,config:e,request:C};r((function(e){t(e),y()}),(function(e){n(e),y()}),i),C=null}}if(C.open(e.method.toUpperCase(),s(b,e.params,e.paramsSerializer),!0),C.timeout=e.timeout,"onloadend"in C?C.onloadend=E:C.onreadystatechange=function(){C&&4===C.readyState&&(0!==C.status||C.responseURL&&0===C.responseURL.indexOf("file:"))&&setTimeout(E)},C.onabort=function(){C&&(n(new p("Request aborted",p.ECONNABORTED,e,C)),C=null)},C.onerror=function(){n(new p("Network Error",p.ERR_NETWORK,e,C,C)),C=null},C.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",o=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new p(t,o.clarifyTimeoutError?p.ETIMEDOUT:p.ECONNABORTED,e,C)),C=null},o.isStandardBrowserEnv()){var S=(e.withCredentials||u(b))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;S&&(m[e.xsrfHeaderName]=S)}"setRequestHeader"in C&&o.forEach(m,(function(e,t){"undefined"===typeof g&&"content-type"===t.toLowerCase()?delete m[t]:C.setRequestHeader(t,e)})),o.isUndefined(e.withCredentials)||(C.withCredentials=!!e.withCredentials),v&&"json"!==v&&(C.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&C.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&C.upload&&C.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){C&&(n(!e||e&&e.type?new d:e),C.abort(),C=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),g||(g=null);var R=h(b);R&&-1===["http","https","file"].indexOf(R)?n(new p("Unsupported protocol "+R+":",p.ERR_BAD_REQUEST,e)):C.send(g)}))}},8036:function(e,t,n){"use strict";var o=n(3589),r=n(4049),i=n(3773),s=n(777);var a=function e(t){var n=new i(t),a=r(i.prototype.request,n);return o.extend(a,i.prototype,n),o.extend(a,n),a.create=function(n){return e(s(t,n))},a}(n(1709));a.Axios=i,a.CanceledError=n(6569),a.CancelToken=n(6857),a.isCancel=n(5517),a.VERSION=n(7600).version,a.toFormData=n(1397),a.AxiosError=n(4531),a.Cancel=a.CanceledError,a.all=function(e){return Promise.all(e)},a.spread=n(8089),a.isAxiosError=n(9580),e.exports=a,e.exports.default=a},6857:function(e,t,n){"use strict";var o=n(6569);function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,o=n._listeners.length;for(t=0;t<o;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,o=new Promise((function(e){n.subscribe(e),t=e})).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e((function(e){n.reason||(n.reason=new o(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},r.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},r.source=function(){var e;return{token:new r((function(t){e=t})),cancel:e}},e.exports=r},6569:function(e,t,n){"use strict";var o=n(4531);function r(e){o.call(this,null==e?"canceled":e,o.ERR_CANCELED),this.name="CanceledError"}n(3589).inherits(r,o,{__CANCEL__:!0}),e.exports=r},5517:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},3773:function(e,t,n){"use strict";var o=n(3589),r=n(9774),i=n(7470),s=n(2733),a=n(777),l=n(1804),u=n(7835),c=u.validators;function p(e){this.defaults=e,this.interceptors={request:new i,response:new i}}p.prototype.request=function(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var o=[],r=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,o.unshift(e.fulfilled,e.rejected))}));var i,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!r){var p=[s,void 0];for(Array.prototype.unshift.apply(p,o),p=p.concat(l),i=Promise.resolve(t);p.length;)i=i.then(p.shift(),p.shift());return i}for(var d=t;o.length;){var h=o.shift(),f=o.shift();try{d=h(d)}catch(g){f(g);break}}try{i=s(d)}catch(g){return Promise.reject(g)}for(;l.length;)i=i.then(l.shift(),l.shift());return i},p.prototype.getUri=function(e){e=a(this.defaults,e);var t=l(e.baseURL,e.url);return r(t,e.params,e.paramsSerializer)},o.forEach(["delete","get","head","options"],(function(e){p.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),o.forEach(["post","put","patch"],(function(e){function t(t){return function(n,o,r){return this.request(a(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}p.prototype[e]=t(),p.prototype[e+"Form"]=t(!0)})),e.exports=p},4531:function(e,t,n){"use strict";var o=n(3589);function r(e,t,n,o,r){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r)}o.inherits(r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=r.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){s[e]={value:e}})),Object.defineProperties(r,s),Object.defineProperty(i,"isAxiosError",{value:!0}),r.from=function(e,t,n,s,a,l){var u=Object.create(i);return o.toFlatObject(e,u,(function(e){return e!==Error.prototype})),r.call(u,e.message,t,n,s,a),u.name=e.name,l&&Object.assign(u,l),u},e.exports=r},7470:function(e,t,n){"use strict";var o=n(3589);function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},1804:function(e,t,n){"use strict";var o=n(4044),r=n(9549);e.exports=function(e,t){return e&&!o(t)?r(e,t):t}},2733:function(e,t,n){"use strict";var o=n(3589),r=n(2693),i=n(5517),s=n(1709),a=n(6569);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),o.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return l(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},777:function(e,t,n){"use strict";var o=n(3589);e.exports=function(e,t){t=t||{};var n={};function r(e,t){return o.isPlainObject(e)&&o.isPlainObject(t)?o.merge(e,t):o.isPlainObject(t)?o.merge({},t):o.isArray(t)?t.slice():t}function i(n){return o.isUndefined(t[n])?o.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function s(e){if(!o.isUndefined(t[e]))return r(void 0,t[e])}function a(n){return o.isUndefined(t[n])?o.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function l(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var u={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return o.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,r=t(e);o.isUndefined(r)&&t!==l||(n[e]=r)})),n}},7297:function(e,t,n){"use strict";var o=n(4531);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new o("Request failed with status code "+n.status,[o.ERR_BAD_REQUEST,o.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},2693:function(e,t,n){"use strict";var o=n(3589),r=n(1709);e.exports=function(e,t,n){var i=this||r;return o.forEach(n,(function(n){e=n.call(i,e,t)})),e}},1709:function(e,t,n){"use strict";var o=n(3589),r=n(4341),i=n(4531),s=n(6789),a=n(1397),l={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c={transitional:s,adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=n(3381)),e}(),transformRequest:[function(e,t){if(r(t,"Accept"),r(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e))return e;if(o.isArrayBufferView(e))return e.buffer;if(o.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,i=o.isObject(e),s=t&&t["Content-Type"];if((n=o.isFileList(e))||i&&"multipart/form-data"===s){var l=this.env&&this.env.FormData;return a(n?{"files[]":e}:e,l&&new l)}return i||"application/json"===s?(u(t,"application/json"),function(e,t,n){if(o.isString(e))try{return(t||JSON.parse)(e),o.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,s=!n&&"json"===this.responseType;if(s||r&&o.isString(e)&&e.length)try{return JSON.parse(e)}catch(a){if(s){if("SyntaxError"===a.name)throw i.from(a,i.ERR_BAD_RESPONSE,this,null,this.response);throw a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(3035)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){c.headers[e]=o.merge(l)})),e.exports=c},6789:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7600:function(e){e.exports={version:"0.27.2"}},4049:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),o=0;o<n.length;o++)n[o]=arguments[o];return e.apply(t,n)}}},9774:function(e,t,n){"use strict";var o=n(3589);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(o.isURLSearchParams(t))i=t.toString();else{var s=[];o.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(o.isArray(e)?t+="[]":e=[e],o.forEach(e,(function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+"="+r(e))})))})),i=s.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},9549:function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},9301:function(e,t,n){"use strict";var o=n(3589);e.exports=o.isStandardBrowserEnv()?{write:function(e,t,n,r,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),o.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),o.isString(r)&&a.push("path="+r),o.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},4044:function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},9580:function(e,t,n){"use strict";var o=n(3589);e.exports=function(e){return o.isObject(e)&&!0===e.isAxiosError}},5411:function(e,t,n){"use strict";var o=n(3589);e.exports=o.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var o=e;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=o.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},4341:function(e,t,n){"use strict";var o=n(3589);e.exports=function(e,t){o.forEach(e,(function(n,o){o!==t&&o.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[o])}))}},3035:function(e){e.exports=null},9145:function(e,t,n){"use strict";var o=n(3589),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,s={};return e?(o.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=o.trim(e.substr(0,i)).toLowerCase(),n=o.trim(e.substr(i+1)),t){if(s[t]&&r.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},6261:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},8089:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},1397:function(e,t,n){"use strict";var o=n(3589);e.exports=function(e,t){t=t||new FormData;var n=[];function r(e){return null===e?"":o.isDate(e)?e.toISOString():o.isArrayBuffer(e)||o.isTypedArray(e)?"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(i,s){if(o.isPlainObject(i)||o.isArray(i)){if(-1!==n.indexOf(i))throw Error("Circular reference detected in "+s);n.push(i),o.forEach(i,(function(n,i){if(!o.isUndefined(n)){var a,l=s?s+"."+i:i;if(n&&!s&&"object"===typeof n)if(o.endsWith(i,"{}"))n=JSON.stringify(n);else if(o.endsWith(i,"[]")&&(a=o.toArray(n)))return void a.forEach((function(e){!o.isUndefined(e)&&t.append(l,r(e))}));e(n,l)}})),n.pop()}else t.append(s,r(i))}(e),t}},7835:function(e,t,n){"use strict";var o=n(7600).version,r=n(4531),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var s={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+o+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,a){if(!1===e)throw new r(i(o," has been removed"+(t?" in "+t:"")),r.ERR_DEPRECATED);return t&&!s[o]&&(s[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}},e.exports={assertOptions:function(e,t,n){if("object"!==typeof e)throw new r("options must be an object",r.ERR_BAD_OPTION_VALUE);for(var o=Object.keys(e),i=o.length;i-- >0;){var s=o[i],a=t[s];if(a){var l=e[s],u=void 0===l||a(l,s,e);if(!0!==u)throw new r("option "+s+" must be "+u,r.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new r("Unknown option "+s,r.ERR_BAD_OPTION)}},validators:i}},3589:function(e,t,n){"use strict";var o,r=n(4049),i=Object.prototype.toString,s=(o=Object.create(null),function(e){var t=i.call(e);return o[t]||(o[t]=t.slice(8,-1).toLowerCase())});function a(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function l(e){return Array.isArray(e)}function u(e){return"undefined"===typeof e}var c=a("ArrayBuffer");function p(e){return null!==e&&"object"===typeof e}function d(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=a("Date"),f=a("File"),g=a("Blob"),m=a("FileList");function v(e){return"[object Function]"===i.call(e)}var y=a("URLSearchParams");function C(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),l(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}var w,_=(w="undefined"!==typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return w&&e instanceof w});e.exports={isArray:l,isArrayBuffer:c,isBuffer:function(e){return null!==e&&!u(e)&&null!==e.constructor&&!u(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"===typeof FormData&&e instanceof FormData||i.call(e)===t||v(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer)},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:p,isPlainObject:d,isUndefined:u,isDate:h,isFile:f,isBlob:g,isFunction:v,isStream:function(e){return p(e)&&v(e.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:C,merge:function e(){var t={};function n(n,o){d(t[o])&&d(n)?t[o]=e(t[o],n):d(n)?t[o]=e({},n):l(n)?t[o]=n.slice():t[o]=n}for(var o=0,r=arguments.length;o<r;o++)C(arguments[o],n);return t},extend:function(e,t,n){return C(t,(function(t,o){e[o]=n&&"function"===typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,o){e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var o,r,i,s={};t=t||{};do{for(r=(o=Object.getOwnPropertyNames(e)).length;r-- >0;)s[i=o[r]]||(t[i]=e[i],s[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:a,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var o=e.indexOf(t,n);return-1!==o&&o===n},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:_,isFileList:m}},2618:function(e,t,n){var o;!function(){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen};void 0===(o=function(){return i}.call(t,n,t,e))||(e.exports=o)}()},2110:function(e,t,n){"use strict";var o=n(8309),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return o.isMemo(e)?s:a[e.$$typeof]||r}a[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[o.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,o){if("string"!==typeof n){if(f){var r=h(n);r&&r!==f&&e(t,r,o)}var s=c(n);p&&(s=s.concat(p(n)));for(var a=l(t),g=l(n),m=0;m<s.length;++m){var v=s[m];if(!i[v]&&(!o||!o[v])&&(!g||!g[v])&&(!a||!a[v])){var y=d(n,v);try{u(t,v,y)}catch(C){}}}}return t}},746:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,C=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case c:case p:case i:case a:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case d:case m:case g:case l:return e;default:return t}}case r:return t}}}function b(e){return _(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=l,t.Element=o,t.ForwardRef=d,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=r,t.Profiler=a,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return b(e)||_(e)===c},t.isConcurrentMode=b,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return _(e)===d},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===m},t.isMemo=function(e){return _(e)===g},t.isPortal=function(e){return _(e)===r},t.isProfiler=function(e){return _(e)===a},t.isStrictMode=function(e){return _(e)===s},t.isSuspense=function(e){return _(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===p||e===a||e===s||e===h||e===f||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===C||e.$$typeof===w||e.$$typeof===v)},t.typeOf=_},8309:function(e,t,n){"use strict";e.exports=n(746)},8559:function(e,t){!function(e){"use strict";var t="1.8.0";function n(e){var t,n,o,r;for(n=1,o=arguments.length;n<o;n++)for(t in r=arguments[n])e[t]=r[t];return e}var o=Object.create||function(){function e(){}return function(t){return e.prototype=t,new e}}();function r(e,t){var n=Array.prototype.slice;if(e.bind)return e.bind.apply(e,n.call(arguments,1));var o=n.call(arguments,2);return function(){return e.apply(t,o.length?o.concat(n.call(arguments)):arguments)}}var i=0;function s(e){return"_leaflet_id"in e||(e._leaflet_id=++i),e._leaflet_id}function a(e,t,n){var o,r,i,s;return s=function(){o=!1,r&&(i.apply(n,r),r=!1)},i=function(){o?r=arguments:(e.apply(n,arguments),setTimeout(s,t),o=!0)},i}function l(e,t,n){var o=t[1],r=t[0],i=o-r;return e===o&&n?e:((e-r)%i+i)%i+r}function u(){return!1}function c(e,t){if(!1===t)return e;var n=Math.pow(10,void 0===t?6:t);return Math.round(e*n)/n}function p(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function d(e){return p(e).split(/\s+/)}function h(e,t){for(var n in Object.prototype.hasOwnProperty.call(e,"options")||(e.options=e.options?o(e.options):{}),t)e.options[n]=t[n];return e.options}function f(e,t,n){var o=[];for(var r in e)o.push(encodeURIComponent(n?r.toUpperCase():r)+"="+encodeURIComponent(e[r]));return(t&&-1!==t.indexOf("?")?"&":"?")+o.join("&")}var g=/\{ *([\w_ -]+) *\}/g;function m(e,t){return e.replace(g,(function(e,n){var o=t[n];if(void 0===o)throw new Error("No value provided for variable "+e);return"function"===typeof o&&(o=o(t)),o}))}var v=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function y(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}var C="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function w(e){return window["webkit"+e]||window["moz"+e]||window["ms"+e]}var _=0;function b(e){var t=+new Date,n=Math.max(0,16-(t-_));return _=t+n,window.setTimeout(e,n)}var E=window.requestAnimationFrame||w("RequestAnimationFrame")||b,S=window.cancelAnimationFrame||w("CancelAnimationFrame")||w("CancelRequestAnimationFrame")||function(e){window.clearTimeout(e)};function R(e,t,n){if(!n||E!==b)return E.call(window,r(e,t));e.call(t)}function O(e){e&&S.call(window,e)}var T={__proto__:null,extend:n,create:o,bind:r,get lastId(){return i},stamp:s,throttle:a,wrapNum:l,falseFn:u,formatNum:c,trim:p,splitWords:d,setOptions:h,getParamString:f,template:m,isArray:v,indexOf:y,emptyImageUrl:C,requestFn:E,cancelFn:S,requestAnimFrame:R,cancelAnimFrame:O};function P(){}function A(e){if("undefined"!==typeof L&&L&&L.Mixin){e=v(e)?e:[e];for(var t=0;t<e.length;t++)e[t]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}P.extend=function(e){var t=function(){h(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},r=t.__super__=this.prototype,i=o(r);for(var s in i.constructor=t,t.prototype=i,this)Object.prototype.hasOwnProperty.call(this,s)&&"prototype"!==s&&"__super__"!==s&&(t[s]=this[s]);return e.statics&&n(t,e.statics),e.includes&&(A(e.includes),n.apply(null,[i].concat(e.includes))),n(i,e),delete i.statics,delete i.includes,i.options&&(i.options=r.options?o(r.options):{},n(i.options,e.options)),i._initHooks=[],i.callInitHooks=function(){if(!this._initHooksCalled){r.callInitHooks&&r.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=i._initHooks.length;e<t;e++)i._initHooks[e].call(this)}},t},P.include=function(e){var t=this.prototype.options;return n(this.prototype,e),e.options&&(this.prototype.options=t,this.mergeOptions(e.options)),this},P.mergeOptions=function(e){return n(this.prototype.options,e),this},P.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1),n="function"===typeof e?e:function(){this[e].apply(this,t)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var D={on:function(e,t,n){if("object"===typeof e)for(var o in e)this._on(o,e[o],t);else for(var r=0,i=(e=d(e)).length;r<i;r++)this._on(e[r],t,n);return this},off:function(e,t,n){if(arguments.length)if("object"===typeof e)for(var o in e)this._off(o,e[o],t);else{e=d(e);for(var r=1===arguments.length,i=0,s=e.length;i<s;i++)r?this._off(e[i]):this._off(e[i],t,n)}else delete this._events;return this},_on:function(e,t,n){if("function"===typeof t){this._events=this._events||{};var o=this._events[e];o||(o=[],this._events[e]=o),n===this&&(n=void 0);for(var r={fn:t,ctx:n},i=o,s=0,a=i.length;s<a;s++)if(i[s].fn===t&&i[s].ctx===n)return;i.push(r)}else console.warn("wrong listener type: "+typeof t)},_off:function(e,t,n){var o,r,i;if(this._events&&(o=this._events[e]))if(1!==arguments.length)if(n===this&&(n=void 0),"function"===typeof t){for(r=0,i=o.length;r<i;r++){var s=o[r];if(s.ctx===n&&s.fn===t)return this._firingCount&&(s.fn=u,this._events[e]=o=o.slice()),void o.splice(r,1)}console.warn("listener not found")}else console.warn("wrong listener type: "+typeof t);else{if(this._firingCount)for(r=0,i=o.length;r<i;r++)o[r].fn=u;delete this._events[e]}},fire:function(e,t,o){if(!this.listens(e,o))return this;var r=n({},t,{type:e,target:this,sourceTarget:t&&t.sourceTarget||this});if(this._events){var i=this._events[e];if(i){this._firingCount=this._firingCount+1||1;for(var s=0,a=i.length;s<a;s++){var l=i[s];l.fn.call(l.ctx||this,r)}this._firingCount--}}return o&&this._propagateEvent(r),this},listens:function(e,t){"string"!==typeof e&&console.warn('"string" type argument expected');var n=this._events&&this._events[e];if(n&&n.length)return!0;if(t)for(var o in this._eventParents)if(this._eventParents[o].listens(e,t))return!0;return!1},once:function(e,t,n){if("object"===typeof e){for(var o in e)this.once(o,e[o],t);return this}var i=r((function(){this.off(e,t,n).off(e,i,n)}),this);return this.on(e,t,n).on(e,i,n)},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[s(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[s(e)],this},_propagateEvent:function(e){for(var t in this._eventParents)this._eventParents[t].fire(e.type,n({layer:e.target,propagatedFrom:e.target},e),!0)}};D.addEventListener=D.on,D.removeEventListener=D.clearAllEventListeners=D.off,D.addOneTimeEventListener=D.once,D.fireEvent=D.fire,D.hasEventListeners=D.listens;var x=P.extend(D);function N(e,t,n){this.x=n?Math.round(e):e,this.y=n?Math.round(t):t}var M=Math.trunc||function(e){return e>0?Math.floor(e):Math.ceil(e)};function I(e,t,n){return e instanceof N?e:v(e)?new N(e[0],e[1]):void 0===e||null===e?e:"object"===typeof e&&"x"in e&&"y"in e?new N(e.x,e.y):new N(e,t,n)}function F(e,t){if(e)for(var n=t?[e,t]:e,o=0,r=n.length;o<r;o++)this.extend(n[o])}function k(e,t){return!e||e instanceof F?e:new F(e,t)}function G(e,t){if(e)for(var n=t?[e,t]:e,o=0,r=n.length;o<r;o++)this.extend(n[o])}function H(e,t){return e instanceof G?e:new G(e,t)}function B(e,t,n){if(isNaN(e)||isNaN(t))throw new Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=+e,this.lng=+t,void 0!==n&&(this.alt=+n)}function V(e,t,n){return e instanceof B?e:v(e)&&"object"!==typeof e[0]?3===e.length?new B(e[0],e[1],e[2]):2===e.length?new B(e[0],e[1]):null:void 0===e||null===e?e:"object"===typeof e&&"lat"in e?new B(e.lat,"lng"in e?e.lng:e.lon,e.alt):void 0===t?null:new B(e,t,n)}N.prototype={clone:function(){return new N(this.x,this.y)},add:function(e){return this.clone()._add(I(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(I(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new N(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new N(this.x/e.x,this.y/e.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=M(this.x),this.y=M(this.y),this},distanceTo:function(e){var t=(e=I(e)).x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},equals:function(e){return(e=I(e)).x===this.x&&e.y===this.y},contains:function(e){return e=I(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return"Point("+c(this.x)+", "+c(this.y)+")"}},F.prototype={extend:function(e){return e=I(e),this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(e.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(e.y,this.max.y)):(this.min=e.clone(),this.max=e.clone()),this},getCenter:function(e){return new N((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return new N(this.min.x,this.max.y)},getTopRight:function(){return new N(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(e){var t,n;return(e="number"===typeof e[0]||e instanceof N?I(e):k(e))instanceof F?(t=e.min,n=e.max):t=n=e,t.x>=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=k(e);var t=this.min,n=this.max,o=e.min,r=e.max,i=r.x>=t.x&&o.x<=n.x,s=r.y>=t.y&&o.y<=n.y;return i&&s},overlaps:function(e){e=k(e);var t=this.min,n=this.max,o=e.min,r=e.max,i=r.x>t.x&&o.x<n.x,s=r.y>t.y&&o.y<n.y;return i&&s},isValid:function(){return!(!this.min||!this.max)}},G.prototype={extend:function(e){var t,n,o=this._southWest,r=this._northEast;if(e instanceof B)t=e,n=e;else{if(!(e instanceof G))return e?this.extend(V(e)||H(e)):this;if(t=e._southWest,n=e._northEast,!t||!n)return this}return o||r?(o.lat=Math.min(t.lat,o.lat),o.lng=Math.min(t.lng,o.lng),r.lat=Math.max(n.lat,r.lat),r.lng=Math.max(n.lng,r.lng)):(this._southWest=new B(t.lat,t.lng),this._northEast=new B(n.lat,n.lng)),this},pad:function(e){var t=this._southWest,n=this._northEast,o=Math.abs(t.lat-n.lat)*e,r=Math.abs(t.lng-n.lng)*e;return new G(new B(t.lat-o,t.lng-r),new B(n.lat+o,n.lng+r))},getCenter:function(){return new B((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new B(this.getNorth(),this.getWest())},getSouthEast:function(){return new B(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(e){e="number"===typeof e[0]||e instanceof B||"lat"in e?V(e):H(e);var t,n,o=this._southWest,r=this._northEast;return e instanceof G?(t=e.getSouthWest(),n=e.getNorthEast()):t=n=e,t.lat>=o.lat&&n.lat<=r.lat&&t.lng>=o.lng&&n.lng<=r.lng},intersects:function(e){e=H(e);var t=this._southWest,n=this._northEast,o=e.getSouthWest(),r=e.getNorthEast(),i=r.lat>=t.lat&&o.lat<=n.lat,s=r.lng>=t.lng&&o.lng<=n.lng;return i&&s},overlaps:function(e){e=H(e);var t=this._southWest,n=this._northEast,o=e.getSouthWest(),r=e.getNorthEast(),i=r.lat>t.lat&&o.lat<n.lat,s=r.lng>t.lng&&o.lng<n.lng;return i&&s},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(e,t){return!!e&&(e=H(e),this._southWest.equals(e.getSouthWest(),t)&&this._northEast.equals(e.getNorthEast(),t))},isValid:function(){return!(!this._southWest||!this._northEast)}},B.prototype={equals:function(e,t){return!!e&&(e=V(e),Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng))<=(void 0===t?1e-9:t))},toString:function(e){return"LatLng("+c(this.lat,e)+", "+c(this.lng,e)+")"},distanceTo:function(e){return j.distance(this,V(e))},wrap:function(){return j.wrapLatLng(this)},toBounds:function(e){var t=180*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return H([this.lat-t,this.lng-n],[this.lat+t,this.lng+n])},clone:function(){return new B(this.lat,this.lng,this.alt)}};var W={latLngToPoint:function(e,t){var n=this.projection.project(e),o=this.scale(t);return this.transformation._transform(n,o)},pointToLatLng:function(e,t){var n=this.scale(t),o=this.transformation.untransform(e,n);return this.projection.unproject(o)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*Math.pow(2,e)},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){if(this.infinite)return null;var t=this.projection.bounds,n=this.scale(e);return new F(this.transformation.transform(t.min,n),this.transformation.transform(t.max,n))},infinite:!1,wrapLatLng:function(e){var t=this.wrapLng?l(e.lng,this.wrapLng,!0):e.lng;return new B(this.wrapLat?l(e.lat,this.wrapLat,!0):e.lat,t,e.alt)},wrapLatLngBounds:function(e){var t=e.getCenter(),n=this.wrapLatLng(t),o=t.lat-n.lat,r=t.lng-n.lng;if(0===o&&0===r)return e;var i=e.getSouthWest(),s=e.getNorthEast();return new G(new B(i.lat-o,i.lng-r),new B(s.lat-o,s.lng-r))}},j=n({},W,{wrapLng:[-180,180],R:6371e3,distance:function(e,t){var n=Math.PI/180,o=e.lat*n,r=t.lat*n,i=Math.sin((t.lat-e.lat)*n/2),s=Math.sin((t.lng-e.lng)*n/2),a=i*i+Math.cos(o)*Math.cos(r)*s*s,l=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*l}}),U=6378137,z={R:U,MAX_LATITUDE:85.0511287798,project:function(e){var t=Math.PI/180,n=this.MAX_LATITUDE,o=Math.max(Math.min(n,e.lat),-n),r=Math.sin(o*t);return new N(this.R*e.lng*t,this.R*Math.log((1+r)/(1-r))/2)},unproject:function(e){var t=180/Math.PI;return new B((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*t,e.x*t/this.R)},bounds:function(){var e=U*Math.PI;return new F([-e,-e],[e,e])}()};function Z(e,t,n,o){if(v(e))return this._a=e[0],this._b=e[1],this._c=e[2],void(this._d=e[3]);this._a=e,this._b=t,this._c=n,this._d=o}function Y(e,t,n,o){return new Z(e,t,n,o)}Z.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){return t=t||1,e.x=t*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},untransform:function(e,t){return t=t||1,new N((e.x/t-this._b)/this._a,(e.y/t-this._d)/this._c)}};var K=n({},j,{code:"EPSG:3857",projection:z,transformation:function(){var e=.5/(Math.PI*z.R);return Y(e,.5,-e,.5)}()}),q=n({},K,{code:"EPSG:900913"});function X(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Q(e,t){var n,o,r,i,s,a,l="";for(n=0,r=e.length;n<r;n++){for(o=0,i=(s=e[n]).length;o<i;o++)l+=(o?"L":"M")+(a=s[o]).x+" "+a.y;l+=t?Ie.svg?"z":"x":""}return l||"M0 0"}var J=document.documentElement.style,$="ActiveXObject"in window,ee=$&&!document.addEventListener,te="msLaunchUri"in navigator&&!("documentMode"in document),ne=Me("webkit"),oe=Me("android"),re=Me("android 2")||Me("android 3"),ie=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),se=oe&&Me("Google")&&ie<537&&!("AudioNode"in window),ae=!!window.opera,le=!te&&Me("chrome"),ue=Me("gecko")&&!ne&&!ae&&!$,ce=!le&&Me("safari"),pe=Me("phantom"),de="OTransition"in J,he=0===navigator.platform.indexOf("Win"),fe=$&&"transition"in J,ge="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!re,me="MozPerspective"in J,ve=!window.L_DISABLE_3D&&(fe||ge||me)&&!de&&!pe,ye="undefined"!==typeof orientation||Me("mobile"),Ce=ye&&ne,we=ye&&ge,_e=!window.PointerEvent&&window.MSPointerEvent,be=!(!window.PointerEvent&&!_e),Ee="ontouchstart"in window||!!window.TouchEvent,Se=!window.L_NO_TOUCH&&(Ee||be),Re=ye&&ae,Oe=ye&&ue,Te=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Pe=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("testPassiveEventSupport",u,t),window.removeEventListener("testPassiveEventSupport",u,t)}catch(n){}return e}(),Ae=!!document.createElement("canvas").getContext,De=!(!document.createElementNS||!X("svg").createSVGRect),xe=!!De&&function(){var e=document.createElement("div");return e.innerHTML="<svg/>","http://www.w3.org/2000/svg"===(e.firstChild&&e.firstChild.namespaceURI)}(),Ne=!De&&function(){try{var e=document.createElement("div");e.innerHTML='<v:shape adj="1"/>';var t=e.firstChild;return t.style.behavior="url(#default#VML)",t&&"object"===typeof t.adj}catch(n){return!1}}();function Me(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var Ie={ie:$,ielt9:ee,edge:te,webkit:ne,android:oe,android23:re,androidStock:se,opera:ae,chrome:le,gecko:ue,safari:ce,phantom:pe,opera12:de,win:he,ie3d:fe,webkit3d:ge,gecko3d:me,any3d:ve,mobile:ye,mobileWebkit:Ce,mobileWebkit3d:we,msPointer:_e,pointer:be,touch:Se,touchNative:Ee,mobileOpera:Re,mobileGecko:Oe,retina:Te,passiveEvents:Pe,canvas:Ae,svg:De,vml:Ne,inlineSvg:xe},Le=Ie.msPointer?"MSPointerDown":"pointerdown",Fe=Ie.msPointer?"MSPointerMove":"pointermove",ke=Ie.msPointer?"MSPointerUp":"pointerup",Ge=Ie.msPointer?"MSPointerCancel":"pointercancel",He={touchstart:Le,touchmove:Fe,touchend:ke,touchcancel:Ge},Be={touchstart:Xe,touchmove:qe,touchend:qe,touchcancel:qe},Ve={},We=!1;function je(e,t,n){return"touchstart"===t&&Ke(),Be[t]?(n=Be[t].bind(this,n),e.addEventListener(He[t],n,!1),n):(console.warn("wrong event specified:",t),L.Util.falseFn)}function Ue(e,t,n){He[t]?e.removeEventListener(He[t],n,!1):console.warn("wrong event specified:",t)}function ze(e){Ve[e.pointerId]=e}function Ze(e){Ve[e.pointerId]&&(Ve[e.pointerId]=e)}function Ye(e){delete Ve[e.pointerId]}function Ke(){We||(document.addEventListener(Le,ze,!0),document.addEventListener(Fe,Ze,!0),document.addEventListener(ke,Ye,!0),document.addEventListener(Ge,Ye,!0),We=!0)}function qe(e,t){if(t.pointerType!==(t.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in t.touches=[],Ve)t.touches.push(Ve[n]);t.changedTouches=[t],e(t)}}function Xe(e,t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&zt(t),qe(e,t)}function Qe(e){var t,n,o={};for(n in e)t=e[n],o[n]=t&&t.bind?t.bind(e):t;return e=o,o.type="dblclick",o.detail=2,o.isTrusted=!1,o._simulated=!0,o}var Je=200;function $e(e,t){e.addEventListener("dblclick",t);var n,o=0;function r(e){if(1===e.detail){if("mouse"!==e.pointerType&&(!e.sourceCapabilities||e.sourceCapabilities.firesTouchEvents)){var r=Date.now();r-o<=Je?2===++n&&t(Qe(e)):n=1,o=r}}else n=e.detail}return e.addEventListener("click",r),{dblclick:t,simDblclick:r}}function et(e,t){e.removeEventListener("dblclick",t.dblclick),e.removeEventListener("click",t.simDblclick)}var tt,nt,ot,rt,it,st=Et(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),at=Et(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),lt="webkitTransition"===at||"OTransition"===at?at+"End":"transitionend";function ut(e){return"string"===typeof e?document.getElementById(e):e}function ct(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||"auto"===n)&&document.defaultView){var o=document.defaultView.getComputedStyle(e,null);n=o?o[t]:null}return"auto"===n?null:n}function pt(e,t,n){var o=document.createElement(e);return o.className=t||"",n&&n.appendChild(o),o}function dt(e){var t=e.parentNode;t&&t.removeChild(e)}function ht(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function ft(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function gt(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function mt(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=wt(e);return n.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(n)}function vt(e,t){if(void 0!==e.classList)for(var n=d(t),o=0,r=n.length;o<r;o++)e.classList.add(n[o]);else if(!mt(e,t)){var i=wt(e);Ct(e,(i?i+" ":"")+t)}}function yt(e,t){void 0!==e.classList?e.classList.remove(t):Ct(e,p((" "+wt(e)+" ").replace(" "+t+" "," ")))}function Ct(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}function wt(e){return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}function _t(e,t){"opacity"in e.style?e.style.opacity=t:"filter"in e.style&&bt(e,t)}function bt(e,t){var n=!1,o="DXImageTransform.Microsoft.Alpha";try{n=e.filters.item(o)}catch(r){if(1===t)return}t=Math.round(100*t),n?(n.Enabled=100!==t,n.Opacity=t):e.style.filter+=" progid:"+o+"(opacity="+t+")"}function Et(e){for(var t=document.documentElement.style,n=0;n<e.length;n++)if(e[n]in t)return e[n];return!1}function St(e,t,n){var o=t||new N(0,0);e.style[st]=(Ie.ie3d?"translate("+o.x+"px,"+o.y+"px)":"translate3d("+o.x+"px,"+o.y+"px,0)")+(n?" scale("+n+")":"")}function Rt(e,t){e._leaflet_pos=t,Ie.any3d?St(e,t):(e.style.left=t.x+"px",e.style.top=t.y+"px")}function Ot(e){return e._leaflet_pos||new N(0,0)}if("onselectstart"in document)tt=function(){Lt(window,"selectstart",zt)},nt=function(){kt(window,"selectstart",zt)};else{var Tt=Et(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);tt=function(){if(Tt){var e=document.documentElement.style;ot=e[Tt],e[Tt]="none"}},nt=function(){Tt&&(document.documentElement.style[Tt]=ot,ot=void 0)}}function Pt(){Lt(window,"dragstart",zt)}function At(){kt(window,"dragstart",zt)}function Dt(e){for(;-1===e.tabIndex;)e=e.parentNode;e.style&&(xt(),rt=e,it=e.style.outline,e.style.outline="none",Lt(window,"keydown",xt))}function xt(){rt&&(rt.style.outline=it,rt=void 0,it=void 0,kt(window,"keydown",xt))}function Nt(e){do{e=e.parentNode}while((!e.offsetWidth||!e.offsetHeight)&&e!==document.body);return e}function Mt(e){var t=e.getBoundingClientRect();return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}var It={__proto__:null,TRANSFORM:st,TRANSITION:at,TRANSITION_END:lt,get:ut,getStyle:ct,create:pt,remove:dt,empty:ht,toFront:ft,toBack:gt,hasClass:mt,addClass:vt,removeClass:yt,setClass:Ct,getClass:wt,setOpacity:_t,testProp:Et,setTransform:St,setPosition:Rt,getPosition:Ot,get disableTextSelection(){return tt},get enableTextSelection(){return nt},disableImageDrag:Pt,enableImageDrag:At,preventOutline:Dt,restoreOutline:xt,getSizedParentNode:Nt,getScale:Mt};function Lt(e,t,n,o){if(t&&"object"===typeof t)for(var r in t)Bt(e,r,t[r],n);else for(var i=0,s=(t=d(t)).length;i<s;i++)Bt(e,t[i],n,o);return this}var Ft="_leaflet_events";function kt(e,t,n,o){if(1===arguments.length)Gt(e),delete e[Ft];else if(t&&"object"===typeof t)for(var r in t)Vt(e,r,t[r],n);else if(t=d(t),2===arguments.length)Gt(e,(function(e){return-1!==y(t,e)}));else for(var i=0,s=t.length;i<s;i++)Vt(e,t[i],n,o);return this}function Gt(e,t){for(var n in e[Ft]){var o=n.split(/\d/)[0];t&&!t(o)||Vt(e,o,null,null,n)}}var Ht={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Bt(e,t,n,o){var r=t+s(n)+(o?"_"+s(o):"");if(e[Ft]&&e[Ft][r])return this;var i=function(t){return n.call(o||e,t||window.event)},a=i;!Ie.touchNative&&Ie.pointer&&0===t.indexOf("touch")?i=je(e,t,i):Ie.touch&&"dblclick"===t?i=$e(e,i):"addEventListener"in e?"touchstart"===t||"touchmove"===t||"wheel"===t||"mousewheel"===t?e.addEventListener(Ht[t]||t,i,!!Ie.passiveEvents&&{passive:!1}):"mouseenter"===t||"mouseleave"===t?(i=function(t){t=t||window.event,Xt(e,t)&&a(t)},e.addEventListener(Ht[t],i,!1)):e.addEventListener(t,a,!1):e.attachEvent("on"+t,i),e[Ft]=e[Ft]||{},e[Ft][r]=i}function Vt(e,t,n,o,r){r=r||t+s(n)+(o?"_"+s(o):"");var i=e[Ft]&&e[Ft][r];if(!i)return this;!Ie.touchNative&&Ie.pointer&&0===t.indexOf("touch")?Ue(e,t,i):Ie.touch&&"dblclick"===t?et(e,i):"removeEventListener"in e?e.removeEventListener(Ht[t]||t,i,!1):e.detachEvent("on"+t,i),e[Ft][r]=null}function Wt(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,this}function jt(e){return Bt(e,"wheel",Wt),this}function Ut(e){return Lt(e,"mousedown touchstart dblclick contextmenu",Wt),e._leaflet_disable_click=!0,this}function zt(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function Zt(e){return zt(e),Wt(e),this}function Yt(e,t){if(!t)return new N(e.clientX,e.clientY);var n=Mt(t),o=n.boundingClientRect;return new N((e.clientX-o.left)/n.x-t.clientLeft,(e.clientY-o.top)/n.y-t.clientTop)}var Kt=Ie.win&&Ie.chrome?2*window.devicePixelRatio:Ie.gecko?window.devicePixelRatio:1;function qt(e){return Ie.edge?e.wheelDeltaY/2:e.deltaY&&0===e.deltaMode?-e.deltaY/Kt:e.deltaY&&1===e.deltaMode?20*-e.deltaY:e.deltaY&&2===e.deltaMode?60*-e.deltaY:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?20*-e.detail:e.detail?e.detail/-32765*60:0}function Xt(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch(o){return!1}return n!==e}var Qt={__proto__:null,on:Lt,off:kt,stopPropagation:Wt,disableScrollPropagation:jt,disableClickPropagation:Ut,preventDefault:zt,stop:Zt,getMousePosition:Yt,getWheelDelta:qt,isExternalTarget:Xt,addListener:Lt,removeListener:kt},Jt=x.extend({run:function(e,t,n,o){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(o||.5,.2),this._startPos=Ot(e),this._offset=t.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=R(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,n=1e3*this._duration;t<n?this._runFrame(this._easeOut(t/n),e):(this._runFrame(1),this._complete())},_runFrame:function(e,t){var n=this._startPos.add(this._offset.multiplyBy(e));t&&n._round(),Rt(this._el,n),this.fire("step")},_complete:function(){O(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(e){return 1-Math.pow(1-e,this._easeOutPower)}}),$t=x.extend({options:{crs:K,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(e,t){t=h(this,t),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),this._onResize=r(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),void 0!==t.zoom&&(this._zoom=this._limitZoom(t.zoom)),t.center&&void 0!==t.zoom&&this.setView(V(t.center),t.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=at&&Ie.any3d&&!Ie.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Lt(this._proxy,lt,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(e,t,o){return t=void 0===t?this._zoom:this._limitZoom(t),e=this._limitCenter(V(e),t,this.options.maxBounds),o=o||{},this._stop(),this._loaded&&!o.reset&&!0!==o&&(void 0!==o.animate&&(o.zoom=n({animate:o.animate},o.zoom),o.pan=n({animate:o.animate,duration:o.duration},o.pan)),this._zoom!==t?this._tryAnimatedZoom&&this._tryAnimatedZoom(e,t,o.zoom):this._tryAnimatedPan(e,o.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(e,t),this)},setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=e,this)},zoomIn:function(e,t){return e=e||(Ie.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+e,t)},zoomOut:function(e,t){return e=e||(Ie.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-e,t)},setZoomAround:function(e,t,n){var o=this.getZoomScale(t),r=this.getSize().divideBy(2),i=(e instanceof N?e:this.latLngToContainerPoint(e)).subtract(r).multiplyBy(1-1/o),s=this.containerPointToLatLng(r.add(i));return this.setView(s,t,{zoom:n})},_getBoundsCenterZoom:function(e,t){t=t||{},e=e.getBounds?e.getBounds():H(e);var n=I(t.paddingTopLeft||t.padding||[0,0]),o=I(t.paddingBottomRight||t.padding||[0,0]),r=this.getBoundsZoom(e,!1,n.add(o));if((r="number"===typeof t.maxZoom?Math.min(t.maxZoom,r):r)===1/0)return{center:e.getCenter(),zoom:r};var i=o.subtract(n).divideBy(2),s=this.project(e.getSouthWest(),r),a=this.project(e.getNorthEast(),r);return{center:this.unproject(s.add(a).divideBy(2).add(i),r),zoom:r}},fitBounds:function(e,t){if(!(e=H(e)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(e,t);return this.setView(n.center,n.zoom,t)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e,t){if(t=t||{},!(e=I(e).round()).x&&!e.y)return this.fire("moveend");if(!0!==t.animate&&!this.getSize().contains(e))return this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Jt,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire("movestart"),!1!==t.animate){vt(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(e).round();this._panAnim.run(this._mapPane,n,t.duration||.25,t.easeLinearity)}else this._rawPanBy(e),this.fire("move").fire("moveend");return this},flyTo:function(e,t,n){if(!1===(n=n||{}).animate||!Ie.any3d)return this.setView(e,t,n);this._stop();var o=this.project(this.getCenter()),r=this.project(e),i=this.getSize(),s=this._zoom;e=V(e),t=void 0===t?s:t;var a=Math.max(i.x,i.y),l=a*this.getZoomScale(s,t),u=r.distanceTo(o)||1,c=1.42,p=c*c;function d(e){var t=(l*l-a*a+(e?-1:1)*p*p*u*u)/(2*(e?l:a)*p*u),n=Math.sqrt(t*t+1)-t;return n<1e-9?-18:Math.log(n)}function h(e){return(Math.exp(e)-Math.exp(-e))/2}function f(e){return(Math.exp(e)+Math.exp(-e))/2}function g(e){return h(e)/f(e)}var m=d(0);function v(e){return a*(f(m)/f(m+c*e))}function y(e){return a*(f(m)*g(m+c*e)-h(m))/p}function C(e){return 1-Math.pow(1-e,1.5)}var w=Date.now(),_=(d(1)-m)/c,b=n.duration?1e3*n.duration:1e3*_*.8;function E(){var n=(Date.now()-w)/b,i=C(n)*_;n<=1?(this._flyToFrame=R(E,this),this._move(this.unproject(o.add(r.subtract(o).multiplyBy(y(i)/u)),s),this.getScaleZoom(a/v(i),s),{flyTo:!0})):this._move(e,t)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),E.call(this),this},flyToBounds:function(e,t){var n=this._getBoundsCenterZoom(e,t);return this.flyTo(n.center,n.zoom,t)},setMaxBounds:function(e){return(e=H(e)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(e){var t=this.options.minZoom;return this.options.minZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(e):this},setMaxZoom:function(e){var t=this.options.maxZoom;return this.options.maxZoom=e,this._loaded&&t!==e&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),o=this._limitCenter(n,this._zoom,H(e));return n.equals(o)||this.panTo(o,t),this._enforcingBounds=!1,this},panInside:function(e,t){var n=I((t=t||{}).paddingTopLeft||t.padding||[0,0]),o=I(t.paddingBottomRight||t.padding||[0,0]),r=this.project(this.getCenter()),i=this.project(e),s=this.getPixelBounds(),a=k([s.min.add(n),s.max.subtract(o)]),l=a.getSize();if(!a.contains(i)){this._enforcingBounds=!0;var u=i.subtract(a.getCenter()),c=a.extend(i).getSize().subtract(l);r.x+=u.x<0?-c.x:c.x,r.y+=u.y<0?-c.y:c.y,this.panTo(this.unproject(r),t),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=n({animate:!1,pan:!0},!0===e?{animate:!0}:e);var t=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),i=t.divideBy(2).round(),s=o.divideBy(2).round(),a=i.subtract(s);return a.x||a.y?(e.animate&&e.pan?this.panBy(a):(e.pan&&this._rawPanBy(a),this.fire("move"),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:t,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(e){if(e=this._locateOptions=n({timeout:1e4,watch:!1},e),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var t=r(this._handleGeolocationResponse,this),o=r(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,o,e):navigator.geolocation.getCurrentPosition(t,o,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var t=e.code,n=e.message||(1===t?"permission denied":2===t?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t=new B(e.coords.latitude,e.coords.longitude),n=t.toBounds(2*e.coords.accuracy),o=this._locateOptions;if(o.setView){var r=this.getBoundsZoom(n);this.setView(t,o.maxZoom?Math.min(r,o.maxZoom):r)}var i={latlng:t,bounds:n,timestamp:e.timestamp};for(var s in e.coords)"number"===typeof e.coords[s]&&(i[s]=e.coords[s]);this.fire("locationfound",i)}},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var e;for(e in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),dt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(O(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[e].remove();for(e in this._panes)dt(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var n=pt("div","leaflet-pane"+(e?" leaflet-"+e.replace("Pane","")+"-pane":""),t||this._mapPane);return e&&(this._panes[e]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new G(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=H(e),n=I(n||[0,0]);var o=this.getZoom()||0,r=this.getMinZoom(),i=this.getMaxZoom(),s=e.getNorthWest(),a=e.getSouthEast(),l=this.getSize().subtract(n),u=k(this.project(a,o),this.project(s,o)).getSize(),c=Ie.any3d?this.options.zoomSnap:1,p=l.x/u.x,d=l.y/u.y,h=t?Math.max(p,d):Math.min(p,d);return o=this.getScaleZoom(h,o),c&&(o=Math.round(o/(c/100))*(c/100),o=t?Math.ceil(o/c)*c:Math.floor(o/c)*c),Math.max(r,Math.min(i,o))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new N(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,t){var n=this._getTopLeftPoint(e,t);return new F(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(void 0===e?this.getZoom():e)},getPane:function(e){return"string"===typeof e?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=void 0===t?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;t=void 0===t?this._zoom:t;var o=n.zoom(e*n.scale(t));return isNaN(o)?1/0:o},project:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(V(e),t)},unproject:function(e,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(I(e),t)},layerPointToLatLng:function(e){var t=I(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(V(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(V(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(H(e))},distance:function(e,t){return this.options.crs.distance(V(e),V(t))},containerPointToLayerPoint:function(e){return I(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return I(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(I(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(V(e)))},mouseEventToContainerPoint:function(e){return Yt(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=ut(e);if(!t)throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");Lt(t,"scroll",this._onScroll,this),this._containerId=s(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ie.any3d,vt(e,"leaflet-container"+(Ie.touch?" leaflet-touch":"")+(Ie.retina?" leaflet-retina":"")+(Ie.ielt9?" leaflet-oldie":"")+(Ie.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var t=ct(e,"position");"absolute"!==t&&"relative"!==t&&"fixed"!==t&&(e.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Rt(this._mapPane,new N(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(vt(e.markerPane,"leaflet-zoom-hide"),vt(e.shadowPane,"leaflet-zoom-hide"))},_resetView:function(e,t){Rt(this._mapPane,new N(0,0));var n=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset");var o=this._zoom!==t;this._moveStart(o,!1)._move(e,t)._moveEnd(o),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(e,t){return e&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(e,t,n,o){void 0===t&&(t=this._zoom);var r=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),o?n&&n.pinch&&this.fire("zoom",n):((r||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(e){return e&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return O(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){Rt(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(e){this._targets={},this._targets[s(this._container)]=this;var t=e?kt:Lt;t(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&t(window,"resize",this._onResize,this),Ie.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){O(this._resizeRequest),this._resizeRequest=R((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n,o=[],r="mouseout"===t||"mouseover"===t,i=e.target||e.srcElement,a=!1;i;){if((n=this._targets[s(i)])&&("click"===t||"preclick"===t)&&this._draggableMoved(n)){a=!0;break}if(n&&n.listens(t,!0)){if(r&&!Xt(i,e))break;if(o.push(n),r)break}if(i===this._container)break;i=i.parentNode}return o.length||a||r||!this.listens(t,!0)||(o=[this]),o},_isClickDisabled:function(e){for(;e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var t=e.target||e.srcElement;if(!(!this._loaded||t._leaflet_disable_events||"click"===e.type&&this._isClickDisabled(t))){var n=e.type;"mousedown"===n&&Dt(t),this._fireDOMEvent(e,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(e,t,o){if("click"===e.type){var r=n({},e);r.type="preclick",this._fireDOMEvent(r,r.type,o)}var i=this._findEventTargets(e,t);if(o){for(var s=[],a=0;a<o.length;a++)o[a].listens(t,!0)&&s.push(o[a]);i=s.concat(i)}if(i.length){"contextmenu"===t&&zt(e);var l=i[0],u={originalEvent:e};if("keypress"!==e.type&&"keydown"!==e.type&&"keyup"!==e.type){var c=l.getLatLng&&(!l._radius||l._radius<=10);u.containerPoint=c?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(e),u.layerPoint=this.containerPointToLayerPoint(u.containerPoint),u.latlng=c?l.getLatLng():this.layerPointToLatLng(u.layerPoint)}for(a=0;a<i.length;a++)if(i[a].fire(t,u,!0),u.originalEvent._stopped||!1===i[a].options.bubblingMouseEvents&&-1!==y(this._mouseEvents,t))return}},_draggableMoved:function(e){return(e=e.dragging&&e.dragging.enabled()?e:this).dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,t=this._handlers.length;e<t;e++)this._handlers[e].disable()},whenReady:function(e,t){return this._loaded?e.call(t||this,{target:this}):this.on("load",e,t),this},_getMapPanePos:function(){return Ot(this._mapPane)||new N(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,t){return(e&&void 0!==t?this._getNewPixelOrigin(e,t):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,t){var n=this.getSize()._divideBy(2);return this.project(e,t)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,t,n){var o=this._getNewPixelOrigin(n,t);return this.project(e,t)._subtract(o)},_latLngBoundsToNewLayerBounds:function(e,t,n){var o=this._getNewPixelOrigin(n,t);return k([this.project(e.getSouthWest(),t)._subtract(o),this.project(e.getNorthWest(),t)._subtract(o),this.project(e.getSouthEast(),t)._subtract(o),this.project(e.getNorthEast(),t)._subtract(o)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,n){if(!n)return e;var o=this.project(e,t),r=this.getSize().divideBy(2),i=new F(o.subtract(r),o.add(r)),s=this._getBoundsOffset(i,n,t);return s.round().equals([0,0])?e:this.unproject(o.add(s),t)},_limitOffset:function(e,t){if(!t)return e;var n=this.getPixelBounds(),o=new F(n.min.add(e),n.max.add(e));return e.add(this._getBoundsOffset(o,t))},_getBoundsOffset:function(e,t,n){var o=k(this.project(t.getNorthEast(),n),this.project(t.getSouthWest(),n)),r=o.min.subtract(e.min),i=o.max.subtract(e.max);return new N(this._rebound(r.x,-i.x),this._rebound(r.y,-i.y))},_rebound:function(e,t){return e+t>0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),o=Ie.any3d?this.options.zoomSnap:1;return o&&(e=Math.round(e/o)*o),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){yt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._trunc();return!(!0!==(t&&t.animate)&&!this.getSize().contains(n))&&(this.panBy(n,t),!0)},_createAnimProxy:function(){var e=this._proxy=pt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(e),this.on("zoomanim",(function(e){var t=st,n=this._proxy.style[t];St(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){dt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();St(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var o=this.getZoomScale(t),r=this._getCenterOffset(e)._divideBy(1-1/o);return!(!0!==n.animate&&!this.getSize().contains(r))&&(R((function(){this._moveStart(!0,!1)._animateZoom(e,t,!0)}),this),!0)},_animateZoom:function(e,t,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,vt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:e,zoom:t,noUpdate:o}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&yt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function en(e,t){return new $t(e,t)}var tn=P.extend({options:{position:"topright"},initialize:function(e){h(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),o=e._controlCorners[n];return vt(t,"leaflet-control"),-1!==n.indexOf("bottom")?o.insertBefore(t,o.firstChild):o.appendChild(t),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(dt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),nn=function(e){return new tn(e)};$t.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this},_initControlPos:function(){var e=this._controlCorners={},t="leaflet-",n=this._controlContainer=pt("div",t+"control-container",this._container);function o(o,r){var i=t+o+" "+t+r;e[o+r]=pt("div",i,n)}o("top","left"),o("top","right"),o("bottom","left"),o("bottom","right")},_clearControlPos:function(){for(var e in this._controlCorners)dt(this._controlCorners[e]);dt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var on=tn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,o){return n<o?-1:o<n?1:0}},initialize:function(e,t,n){for(var o in h(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,e)this._addLayer(e[o],o);for(o in t)this._addLayer(t[o],o,!0)},onAdd:function(e){this._initLayout(),this._update(),this._map=e,e.on("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(e){return tn.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(e,t){return this._addLayer(e,t),this._map?this._update():this},addOverlay:function(e,t){return this._addLayer(e,t,!0),this._map?this._update():this},removeLayer:function(e){e.off("add remove",this._onLayerChange,this);var t=this._getLayer(s(e));return t&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){vt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(vt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=e+"px"):yt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return yt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var e="leaflet-control-layers",t=this._container=pt("div",e),n=this.options.collapsed;t.setAttribute("aria-haspopup",!0),Ut(t),jt(t);var o=this._section=pt("section",e+"-list");n&&(this._map.on("click",this.collapse,this),Lt(t,{mouseenter:function(){Lt(o,"click",zt),this.expand(),setTimeout((function(){kt(o,"click",zt)}))},mouseleave:this.collapse},this));var r=this._layersLink=pt("a",e+"-toggle",t);r.href="#",r.title="Layers",r.setAttribute("role","button"),Lt(r,"click",zt),Lt(r,"focus",this.expand,this),n||this.expand(),this._baseLayersList=pt("div",e+"-base",o),this._separator=pt("div",e+"-separator",o),this._overlaysList=pt("div",e+"-overlays",o),t.appendChild(o)},_getLayer:function(e){for(var t=0;t<this._layers.length;t++)if(this._layers[t]&&s(this._layers[t].layer)===e)return this._layers[t]},_addLayer:function(e,t,n){this._map&&e.on("add remove",this._onLayerChange,this),this._layers.push({layer:e,name:t,overlay:n}),this.options.sortLayers&&this._layers.sort(r((function(e,t){return this.options.sortFunction(e.layer,t.layer,e.name,t.name)}),this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ht(this._baseLayersList),ht(this._overlaysList),this._layerControlInputs=[];var e,t,n,o,r=0;for(n=0;n<this._layers.length;n++)o=this._layers[n],this._addItem(o),t=t||o.overlay,e=e||!o.overlay,r+=o.overlay?0:1;return this.options.hideSingleBase&&(e=e&&r>1,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=t&&e?"":"none",this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(s(e.target)),n=t.overlay?"add"===e.type?"overlayadd":"overlayremove":"add"===e.type?"baselayerchange":null;n&&this._map.fire(n,t)},_createRadioElement:function(e,t){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+e+'"'+(t?' checked="checked"':"")+"/>",o=document.createElement("div");return o.innerHTML=n,o.firstChild},_addItem:function(e){var t,n=document.createElement("label"),o=this._map.hasLayer(e.layer);e.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=o):t=this._createRadioElement("leaflet-base-layers_"+s(this),o),this._layerControlInputs.push(t),t.layerId=s(e.layer),Lt(t,"click",this._onInputClick,this);var r=document.createElement("span");r.innerHTML=" "+e.name;var i=document.createElement("span");return n.appendChild(i),i.appendChild(t),i.appendChild(r),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var e,t,n=this._layerControlInputs,o=[],r=[];this._handlingClick=!0;for(var i=n.length-1;i>=0;i--)e=n[i],t=this._getLayer(e.layerId).layer,e.checked?o.push(t):e.checked||r.push(t);for(i=0;i<r.length;i++)this._map.hasLayer(r[i])&&this._map.removeLayer(r[i]);for(i=0;i<o.length;i++)this._map.hasLayer(o[i])||this._map.addLayer(o[i]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var e,t,n=this._layerControlInputs,o=this._map.getZoom(),r=n.length-1;r>=0;r--)e=n[r],t=this._getLayer(e.layerId).layer,e.disabled=void 0!==t.options.minZoom&&o<t.options.minZoom||void 0!==t.options.maxZoom&&o>t.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this}}),rn=function(e,t,n){return new on(e,t,n)},sn=tn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(e){var t="leaflet-control-zoom",n=pt("div",t+" leaflet-bar"),o=this.options;return this._zoomInButton=this._createButton(o.zoomInText,o.zoomInTitle,t+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(o.zoomOutText,o.zoomOutTitle,t+"-out",n,this._zoomOut),this._updateDisabled(),e.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(e){e.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,o,r){var i=pt("a",n,o);return i.innerHTML=e,i.href="#",i.title=t,i.setAttribute("role","button"),i.setAttribute("aria-label",t),Ut(i),Lt(i,"click",Zt),Lt(i,"click",r,this),Lt(i,"click",this._refocusOnMap,this),i},_updateDisabled:function(){var e=this._map,t="leaflet-disabled";yt(this._zoomInButton,t),yt(this._zoomOutButton,t),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||e._zoom===e.getMinZoom())&&(vt(this._zoomOutButton,t),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||e._zoom===e.getMaxZoom())&&(vt(this._zoomInButton,t),this._zoomInButton.setAttribute("aria-disabled","true"))}});$t.mergeOptions({zoomControl:!0}),$t.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new sn,this.addControl(this.zoomControl))}));var an=function(e){return new sn(e)},ln=tn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t="leaflet-control-scale",n=pt("div",t),o=this.options;return this._addScales(o,t+"-line",n),e.on(o.updateWhenIdle?"moveend":"move",this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=pt("div",t,n)),e.imperial&&(this._iScale=pt("div",t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e),n=t<1e3?t+" m":t/1e3+" km";this._updateScale(this._mScale,n,t/e)},_updateImperial:function(e){var t,n,o,r=3.2808399*e;r>5280?(t=r/5280,n=this._getRoundNum(t),this._updateScale(this._iScale,n+" mi",n/t)):(o=this._getRoundNum(r),this._updateScale(this._iScale,o+" ft",o/r))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+"px",e.innerHTML=t},_getRoundNum:function(e){var t=Math.pow(10,(Math.floor(e)+"").length-1),n=e/t;return t*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),un=function(e){return new ln(e)},cn='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',pn=tn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Ie.inlineSvg?cn+" ":"")+"Leaflet</a>"},initialize:function(e){h(this,e),this._attributions={}},onAdd:function(e){for(var t in e.attributionControl=this,this._container=pt("div","leaflet-control-attribution"),Ut(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),e.on("layeradd",this._addAttribution,this),this._container},onRemove:function(e){e.off("layeradd",this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once("remove",(function(){this.removeAttribution(e.layer.getAttribution())}),this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e?(this._attributions[e]&&(this._attributions[e]--,this._update()),this):this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});$t.mergeOptions({attributionControl:!0}),$t.addInitHook((function(){this.options.attributionControl&&(new pn).addTo(this)}));var dn=function(e){return new pn(e)};tn.Layers=on,tn.Zoom=sn,tn.Scale=ln,tn.Attribution=pn,nn.layers=rn,nn.zoom=an,nn.scale=un,nn.attribution=dn;var hn=P.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});hn.addTo=function(e,t){return e.addHandler(t,this),this};var fn,gn={Events:D},mn=Ie.touch?"touchstart mousedown":"mousedown",vn=x.extend({options:{clickTolerance:3},initialize:function(e,t,n,o){h(this,o),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n},enable:function(){this._enabled||(Lt(this._dragStartTarget,mn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(vn._dragging===this&&this.finishDrag(!0),kt(this._dragStartTarget,mn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(this._enabled&&(this._moved=!1,!mt(this._element,"leaflet-zoom-anim")))if(e.touches&&1!==e.touches.length)vn._dragging===this&&this.finishDrag();else if(!(vn._dragging||e.shiftKey||1!==e.which&&1!==e.button&&!e.touches)&&(vn._dragging=this,this._preventOutline&&Dt(this._element),Pt(),tt(),!this._moving)){this.fire("down");var t=e.touches?e.touches[0]:e,n=Nt(this._element);this._startPoint=new N(t.clientX,t.clientY),this._startPos=Ot(this._element),this._parentScale=Mt(n);var o="mousedown"===e.type;Lt(document,o?"mousemove":"touchmove",this._onMove,this),Lt(document,o?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(e){if(this._enabled)if(e.touches&&e.touches.length>1)this._moved=!0;else{var t=e.touches&&1===e.touches.length?e.touches[0]:e,n=new N(t.clientX,t.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,zt(e),this._moved||(this.fire("dragstart"),this._moved=!0,vt(document.body,"leaflet-dragging"),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),vt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=e,this._updatePosition()))}},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire("predrag",e),Rt(this._element,this._newPos),this.fire("drag",e)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(e){yt(document.body,"leaflet-dragging"),this._lastTarget&&(yt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),kt(document,"mousemove touchmove",this._onMove,this),kt(document,"mouseup touchend touchcancel",this._onUp,this),At(),nt(),this._moved&&this._moving&&this.fire("dragend",{noInertia:e,distance:this._newPos.distanceTo(this._startPos)}),this._moving=!1,vn._dragging=!1}});function yn(e,t){if(!t||!e.length)return e.slice();var n=t*t;return e=_n(e=En(e,n),n)}function Cn(e,t,n){return Math.sqrt(Pn(e,t,n,!0))}function wn(e,t,n){return Pn(e,t,n)}function _n(e,t){var n=e.length,o=new(typeof Uint8Array!==void 0+""?Uint8Array:Array)(n);o[0]=o[n-1]=1,bn(e,o,t,0,n-1);var r,i=[];for(r=0;r<n;r++)o[r]&&i.push(e[r]);return i}function bn(e,t,n,o,r){var i,s,a,l=0;for(s=o+1;s<=r-1;s++)(a=Pn(e[s],e[o],e[r],!0))>l&&(i=s,l=a);l>n&&(t[i]=1,bn(e,t,n,o,i),bn(e,t,n,i,r))}function En(e,t){for(var n=[e[0]],o=1,r=0,i=e.length;o<i;o++)Tn(e[o],e[r])>t&&(n.push(e[o]),r=o);return r<i-1&&n.push(e[i-1]),n}function Sn(e,t,n,o,r){var i,s,a,l=o?fn:On(e,n),u=On(t,n);for(fn=u;;){if(!(l|u))return[e,t];if(l&u)return!1;a=On(s=Rn(e,t,i=l||u,n,r),n),i===l?(e=s,l=a):(t=s,u=a)}}function Rn(e,t,n,o,r){var i,s,a=t.x-e.x,l=t.y-e.y,u=o.min,c=o.max;return 8&n?(i=e.x+a*(c.y-e.y)/l,s=c.y):4&n?(i=e.x+a*(u.y-e.y)/l,s=u.y):2&n?(i=c.x,s=e.y+l*(c.x-e.x)/a):1&n&&(i=u.x,s=e.y+l*(u.x-e.x)/a),new N(i,s,r)}function On(e,t){var n=0;return e.x<t.min.x?n|=1:e.x>t.max.x&&(n|=2),e.y<t.min.y?n|=4:e.y>t.max.y&&(n|=8),n}function Tn(e,t){var n=t.x-e.x,o=t.y-e.y;return n*n+o*o}function Pn(e,t,n,o){var r,i=t.x,s=t.y,a=n.x-i,l=n.y-s,u=a*a+l*l;return u>0&&((r=((e.x-i)*a+(e.y-s)*l)/u)>1?(i=n.x,s=n.y):r>0&&(i+=a*r,s+=l*r)),a=e.x-i,l=e.y-s,o?a*a+l*l:new N(i,s)}function An(e){return!v(e[0])||"object"!==typeof e[0][0]&&"undefined"!==typeof e[0][0]}function Dn(e){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),An(e)}var xn={__proto__:null,simplify:yn,pointToSegmentDistance:Cn,closestPointOnSegment:wn,clipSegment:Sn,_getEdgeIntersection:Rn,_getBitCode:On,_sqClosestPointOnSegment:Pn,isFlat:An,_flat:Dn};function Nn(e,t,n){var o,r,i,s,a,l,u,c,p,d=[1,4,2,8];for(r=0,u=e.length;r<u;r++)e[r]._code=On(e[r],t);for(s=0;s<4;s++){for(c=d[s],o=[],r=0,i=(u=e.length)-1;r<u;i=r++)a=e[r],l=e[i],a._code&c?l._code&c||((p=Rn(l,a,c,t,n))._code=On(p,t),o.push(p)):(l._code&c&&((p=Rn(l,a,c,t,n))._code=On(p,t),o.push(p)),o.push(a));e=o}return e}var Mn={__proto__:null,clipPolygon:Nn},In={project:function(e){return new N(e.lng,e.lat)},unproject:function(e){return new B(e.y,e.x)},bounds:new F([-180,-90],[180,90])},Ln={R:6378137,R_MINOR:6356752.314245179,bounds:new F([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,n=this.R,o=e.lat*t,r=this.R_MINOR/n,i=Math.sqrt(1-r*r),s=i*Math.sin(o),a=Math.tan(Math.PI/4-o/2)/Math.pow((1-s)/(1+s),i/2);return o=-n*Math.log(Math.max(a,1e-10)),new N(e.lng*t*n,o)},unproject:function(e){for(var t,n=180/Math.PI,o=this.R,r=this.R_MINOR/o,i=Math.sqrt(1-r*r),s=Math.exp(-e.y/o),a=Math.PI/2-2*Math.atan(s),l=0,u=.1;l<15&&Math.abs(u)>1e-7;l++)t=i*Math.sin(a),t=Math.pow((1-t)/(1+t),i/2),a+=u=Math.PI/2-2*Math.atan(s*t)-a;return new B(a*n,e.x*n/o)}},Fn={__proto__:null,LonLat:In,Mercator:Ln,SphericalMercator:z},kn=n({},j,{code:"EPSG:3395",projection:Ln,transformation:function(){var e=.5/(Math.PI*Ln.R);return Y(e,.5,-e,.5)}()}),Gn=n({},j,{code:"EPSG:4326",projection:In,transformation:Y(1/180,1,-1/180,.5)}),Hn=n({},W,{projection:In,transformation:Y(1,0,-1,0),scale:function(e){return Math.pow(2,e)},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,o=t.lat-e.lat;return Math.sqrt(n*n+o*o)},infinite:!0});W.Earth=j,W.EPSG3395=kn,W.EPSG3857=K,W.EPSG900913=q,W.EPSG4326=Gn,W.Simple=Hn;var Bn=x.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[s(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[s(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once("remove",(function(){t.off(n,this)}),this)}this.onAdd(t),this.fire("add"),t.fire("layeradd",{layer:this})}}});$t.include({addLayer:function(e){if(!e._layerAdd)throw new Error("The provided object is not a Layer.");var t=s(e);return this._layers[t]||(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e)),this},removeLayer:function(e){var t=s(e);return this._layers[t]?(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:e}),e.fire("remove")),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return s(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){for(var t=0,n=(e=e?v(e)?e:[e]:[]).length;t<n;t++)this.addLayer(e[t])},_addZoomLimit:function(e){isNaN(e.options.maxZoom)&&isNaN(e.options.minZoom)||(this._zoomBoundLayers[s(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){var t=s(e);this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var e=1/0,t=-1/0,n=this._getZoomSpan();for(var o in this._zoomBoundLayers){var r=this._zoomBoundLayers[o].options;e=void 0===r.minZoom?e:Math.min(e,r.minZoom),t=void 0===r.maxZoom?t:Math.max(t,r.maxZoom)}this._layersMaxZoom=t===-1/0?void 0:t,this._layersMinZoom=e===1/0?void 0:e,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Vn=Bn.extend({initialize:function(e,t){var n,o;if(h(this,t),this._layers={},e)for(n=0,o=e.length;n<o;n++)this.addLayer(e[n])},addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){var t=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(e){return("number"===typeof e?e:this.getLayerId(e))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var t,n,o=Array.prototype.slice.call(arguments,1);for(t in this._layers)(n=this._layers[t])[e]&&n[e].apply(n,o);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},setZIndex:function(e){return this.invoke("setZIndex",e)},getLayerId:function(e){return s(e)}}),Wn=function(e,t){return new Vn(e,t)},jn=Vn.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),Vn.prototype.addLayer.call(this,e),this.fire("layeradd",{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),e.removeEventParent(this),Vn.prototype.removeLayer.call(this,e),this.fire("layerremove",{layer:e})):this},setStyle:function(e){return this.invoke("setStyle",e)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var e=new G;for(var t in this._layers){var n=this._layers[t];e.extend(n.getBounds?n.getBounds():n.getLatLng())}return e}}),Un=function(e,t){return new jn(e,t)},zn=P.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(e){h(this,e)},createIcon:function(e){return this._createIcon("icon",e)},createShadow:function(e){return this._createIcon("shadow",e)},_createIcon:function(e,t){var n=this._getIconUrl(e);if(!n){if("icon"===e)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var o=this._createImg(n,t&&"IMG"===t.tagName?t:null);return this._setIconStyles(o,e),(this.options.crossOrigin||""===this.options.crossOrigin)&&(o.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),o},_setIconStyles:function(e,t){var n=this.options,o=n[t+"Size"];"number"===typeof o&&(o=[o,o]);var r=I(o),i=I("shadow"===t&&n.shadowAnchor||n.iconAnchor||r&&r.divideBy(2,!0));e.className="leaflet-marker-"+t+" "+(n.className||""),i&&(e.style.marginLeft=-i.x+"px",e.style.marginTop=-i.y+"px"),r&&(e.style.width=r.x+"px",e.style.height=r.y+"px")},_createImg:function(e,t){return(t=t||document.createElement("img")).src=e,t},_getIconUrl:function(e){return Ie.retina&&this.options[e+"RetinaUrl"]||this.options[e+"Url"]}});function Zn(e){return new zn(e)}var Yn=zn.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(e){return"string"!==typeof Yn.imagePath&&(Yn.imagePath=this._detectIconPath()),(this.options.imagePath||Yn.imagePath)+zn.prototype._getIconUrl.call(this,e)},_stripUrl:function(e){var t=function(e,t,n){var o=t.exec(e);return o&&o[n]};return(e=t(e,/^url\((['"])?(.+)\1\)$/,2))&&t(e,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var e=pt("div","leaflet-default-icon-path",document.body),t=ct(e,"background-image")||ct(e,"backgroundImage");if(document.body.removeChild(e),t=this._stripUrl(t))return t;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-"leaflet.css".length-1):""}}),Kn=hn.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||(this._draggable=new vn(e,e,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),vt(e,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&yt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(e){var t=this._marker,n=t._map,o=this._marker.options.autoPanSpeed,r=this._marker.options.autoPanPadding,i=Ot(t._icon),s=n.getPixelBounds(),a=n.getPixelOrigin(),l=k(s.min._subtract(a).add(r),s.max._subtract(a).subtract(r));if(!l.contains(i)){var u=I((Math.max(l.max.x,i.x)-l.max.x)/(s.max.x-l.max.x)-(Math.min(l.min.x,i.x)-l.min.x)/(s.min.x-l.min.x),(Math.max(l.max.y,i.y)-l.max.y)/(s.max.y-l.max.y)-(Math.min(l.min.y,i.y)-l.min.y)/(s.min.y-l.min.y)).multiplyBy(o);n.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),Rt(t._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=R(this._adjustPan.bind(this,e))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(e){this._marker.options.autoPan&&(O(this._panRequest),this._panRequest=R(this._adjustPan.bind(this,e)))},_onDrag:function(e){var t=this._marker,n=t._shadow,o=Ot(t._icon),r=t._map.layerPointToLatLng(o);n&&Rt(n,o),t._latlng=r,e.latlng=r,e.oldLatLng=this._oldLatLng,t.fire("move",e).fire("drag",e)},_onDragEnd:function(e){O(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",e)}}),qn=Bn.extend({options:{icon:new Yn,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(e,t){h(this,t),this._latlng=V(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(e){var t=this._latlng;return this._latlng=V(e),this.update(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},getIcon:function(){return this.options.icon},setIcon:function(e){return this.options.icon=e,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var e=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(e)}return this},_initIcon:function(){var e=this.options,t="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=e.icon.createIcon(this._icon),o=!1;n!==this._icon&&(this._icon&&this._removeIcon(),o=!0,e.title&&(n.title=e.title),"IMG"===n.tagName&&(n.alt=e.alt||"")),vt(n,t),e.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Lt(n,"focus",this._panOnFocus,this);var r=e.icon.createShadow(this._shadow),i=!1;r!==this._shadow&&(this._removeShadow(),i=!0),r&&(vt(r,t),r.alt=""),this._shadow=r,e.opacity<1&&this._updateOpacity(),o&&this.getPane().appendChild(this._icon),this._initInteraction(),r&&i&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&kt(this._icon,"focus",this._panOnFocus,this),dt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&dt(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&Rt(this._icon,e),this._shadow&&Rt(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(t)},_initInteraction:function(){if(this.options.interactive&&(vt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Kn)){var e=this.options.draggable;this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Kn(this),e&&this.dragging.enable()}},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&&_t(this._icon,e),this._shadow&&_t(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var e=this._map;if(e){var t=this.options.icon.options,n=t.iconSize?I(t.iconSize):I(0,0),o=t.iconAnchor?I(t.iconAnchor):I(0,0);e.panInside(this._latlng,{paddingTopLeft:o,paddingBottomRight:n.subtract(o)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Xn(e,t){return new qn(e,t)}var Qn=Bn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(e){this._renderer=e.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(e){return h(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Jn=Qn.extend({options:{fill:!0,radius:10},initialize:function(e,t){h(this,t),this._latlng=V(e),this._radius=this.options.radius},setLatLng:function(e){var t=this._latlng;return this._latlng=V(e),this.redraw(),this.fire("move",{oldLatLng:t,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var t=e&&e.radius||this._radius;return Qn.prototype.setStyle.call(this,e),this.setRadius(t),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,n=this._clickTolerance(),o=[e+n,t+n];this._pxBounds=new F(this._point.subtract(o),this._point.add(o))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function $n(e,t){return new Jn(e,t)}var eo=Jn.extend({initialize:function(e,t,o){if("number"===typeof t&&(t=n({},o,{radius:t})),h(this,t),this._latlng=V(e),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(e){return this._mRadius=e,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new G(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:Qn.prototype.setStyle,_project:function(){var e=this._latlng.lng,t=this._latlng.lat,n=this._map,o=n.options.crs;if(o.distance===j.distance){var r=Math.PI/180,i=this._mRadius/j.R/r,s=n.project([t+i,e]),a=n.project([t-i,e]),l=s.add(a).divideBy(2),u=n.unproject(l).lat,c=Math.acos((Math.cos(i*r)-Math.sin(t*r)*Math.sin(u*r))/(Math.cos(t*r)*Math.cos(u*r)))/r;(isNaN(c)||0===c)&&(c=i/Math.cos(Math.PI/180*t)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(c)?0:l.x-n.project([u,e-c]).x,this._radiusY=l.y-s.y}else{var p=o.unproject(o.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(p).x}this._updateBounds()}});function to(e,t,n){return new eo(e,t,n)}var no=Qn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,t){h(this,t),this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){for(var t,n,o=1/0,r=null,i=Pn,s=0,a=this._parts.length;s<a;s++)for(var l=this._parts[s],u=1,c=l.length;u<c;u++){var p=i(e,t=l[u-1],n=l[u],!0);p<o&&(o=p,r=i(e,t,n))}return r&&(r.distance=Math.sqrt(o)),r},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var e,t,n,o,r,i,s,a=this._rings[0],l=a.length;if(!l)return null;for(e=0,t=0;e<l-1;e++)t+=a[e].distanceTo(a[e+1])/2;if(0===t)return this._map.layerPointToLatLng(a[0]);for(e=0,o=0;e<l-1;e++)if(r=a[e],i=a[e+1],(o+=n=r.distanceTo(i))>t)return s=(o-t)/n,this._map.layerPointToLatLng([i.x-s*(i.x-r.x),i.y-s*(i.y-r.y)])},getBounds:function(){return this._bounds},addLatLng:function(e,t){return t=t||this._defaultShape(),e=V(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new G,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return An(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var t=[],n=An(e),o=0,r=e.length;o<r;o++)n?(t[o]=V(e[o]),this._bounds.extend(t[o])):t[o]=this._convertLatLngs(e[o]);return t},_project:function(){var e=new F;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=this._clickTolerance(),t=new N(e,e);this._rawPxBounds&&(this._pxBounds=new F([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs:function(e,t,n){var o,r,i=e[0]instanceof B,s=e.length;if(i){for(r=[],o=0;o<s;o++)r[o]=this._map.latLngToLayerPoint(e[o]),n.extend(r[o]);t.push(r)}else for(o=0;o<s;o++)this._projectLatlngs(e[o],t,n)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else{var t,n,o,r,i,s,a,l=this._parts;for(t=0,o=0,r=this._rings.length;t<r;t++)for(n=0,i=(a=this._rings[t]).length;n<i-1;n++)(s=Sn(a[n],a[n+1],e,n,!0))&&(l[o]=l[o]||[],l[o].push(s[0]),s[1]===a[n+1]&&n!==i-2||(l[o].push(s[1]),o++))}},_simplifyPoints:function(){for(var e=this._parts,t=this.options.smoothFactor,n=0,o=e.length;n<o;n++)e[n]=yn(e[n],t)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,t){var n,o,r,i,s,a,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(n=0,i=this._parts.length;n<i;n++)for(o=0,r=(s=(a=this._parts[n]).length)-1;o<s;r=o++)if((t||0!==o)&&Cn(e,a[r],a[o])<=l)return!0;return!1}});function oo(e,t){return new no(e,t)}no._flat=Dn;var ro=no.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var e,t,n,o,r,i,s,a,l,u=this._rings[0],c=u.length;if(!c)return null;for(i=s=a=0,e=0,t=c-1;e<c;t=e++)n=u[e],o=u[t],r=n.y*o.x-o.y*n.x,s+=(n.x+o.x)*r,a+=(n.y+o.y)*r,i+=3*r;return l=0===i?u[0]:[s/i,a/i],this._map.layerPointToLatLng(l)},_convertLatLngs:function(e){var t=no.prototype._convertLatLngs.call(this,e),n=t.length;return n>=2&&t[0]instanceof B&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){no.prototype._setLatLngs.call(this,e),An(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return An(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,n=new N(t,t);if(e=new F(e.min.subtract(n),e.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e))if(this.options.noClip)this._parts=this._rings;else for(var o,r=0,i=this._rings.length;r<i;r++)(o=Nn(this._rings[r],e,!0)).length&&this._parts.push(o)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var t,n,o,r,i,s,a,l,u=!1;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(r=0,a=this._parts.length;r<a;r++)for(i=0,s=(l=(t=this._parts[r]).length)-1;i<l;s=i++)n=t[i],o=t[s],n.y>e.y!==o.y>e.y&&e.x<(o.x-n.x)*(e.y-n.y)/(o.y-n.y)+n.x&&(u=!u);return u||no.prototype._containsPoint.call(this,e,!0)}});function io(e,t){return new ro(e,t)}var so=jn.extend({initialize:function(e,t){h(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t,n,o,r=v(e)?e:e.features;if(r){for(t=0,n=r.length;t<n;t++)((o=r[t]).geometries||o.geometry||o.features||o.coordinates)&&this.addData(o);return this}var i=this.options;if(i.filter&&!i.filter(e))return this;var s=ao(e,i);return s?(s.feature=go(e),s.defaultOptions=s.options,this.resetStyle(s),i.onEachFeature&&i.onEachFeature(e,s),this.addLayer(s)):this},resetStyle:function(e){return void 0===e?this.eachLayer(this.resetStyle,this):(e.options=n({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},setStyle:function(e){return this.eachLayer((function(t){this._setLayerStyle(t,e)}),this)},_setLayerStyle:function(e,t){e.setStyle&&("function"===typeof t&&(t=t(e.feature)),e.setStyle(t))}});function ao(e,t){var n,o,r,i,s="Feature"===e.type?e.geometry:e,a=s?s.coordinates:null,l=[],u=t&&t.pointToLayer,c=t&&t.coordsToLatLng||uo;if(!a&&!s)return null;switch(s.type){case"Point":return lo(u,e,n=c(a),t);case"MultiPoint":for(r=0,i=a.length;r<i;r++)n=c(a[r]),l.push(lo(u,e,n,t));return new jn(l);case"LineString":case"MultiLineString":return o=co(a,"LineString"===s.type?0:1,c),new no(o,t);case"Polygon":case"MultiPolygon":return o=co(a,"Polygon"===s.type?1:2,c),new ro(o,t);case"GeometryCollection":for(r=0,i=s.geometries.length;r<i;r++){var p=ao({geometry:s.geometries[r],type:"Feature",properties:e.properties},t);p&&l.push(p)}return new jn(l);default:throw new Error("Invalid GeoJSON object.")}}function lo(e,t,n,o){return e?e(t,n):new qn(n,o&&o.markersInheritOptions&&o)}function uo(e){return new B(e[1],e[0],e[2])}function co(e,t,n){for(var o,r=[],i=0,s=e.length;i<s;i++)o=t?co(e[i],t-1,n):(n||uo)(e[i]),r.push(o);return r}function po(e,t){return void 0!==(e=V(e)).alt?[c(e.lng,t),c(e.lat,t),c(e.alt,t)]:[c(e.lng,t),c(e.lat,t)]}function ho(e,t,n,o){for(var r=[],i=0,s=e.length;i<s;i++)r.push(t?ho(e[i],t-1,n,o):po(e[i],o));return!t&&n&&r.push(r[0]),r}function fo(e,t){return e.feature?n({},e.feature,{geometry:t}):go(t)}function go(e){return"Feature"===e.type||"FeatureCollection"===e.type?e:{type:"Feature",properties:{},geometry:e}}var mo={toGeoJSON:function(e){return fo(this,{type:"Point",coordinates:po(this.getLatLng(),e)})}};function vo(e,t){return new so(e,t)}qn.include(mo),eo.include(mo),Jn.include(mo),no.include({toGeoJSON:function(e){var t=!An(this._latlngs);return fo(this,{type:(t?"Multi":"")+"LineString",coordinates:ho(this._latlngs,t?1:0,!1,e)})}}),ro.include({toGeoJSON:function(e){var t=!An(this._latlngs),n=t&&!An(this._latlngs[0]),o=ho(this._latlngs,n?2:t?1:0,!0,e);return t||(o=[o]),fo(this,{type:(n?"Multi":"")+"Polygon",coordinates:o})}}),Vn.include({toMultiPoint:function(e){var t=[];return this.eachLayer((function(n){t.push(n.toGeoJSON(e).geometry.coordinates)})),fo(this,{type:"MultiPoint",coordinates:t})},toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===t)return this.toMultiPoint(e);var n="GeometryCollection"===t,o=[];return this.eachLayer((function(t){if(t.toGeoJSON){var r=t.toGeoJSON(e);if(n)o.push(r.geometry);else{var i=go(r);"FeatureCollection"===i.type?o.push.apply(o,i.features):o.push(i)}}})),n?fo(this,{geometries:o,type:"GeometryCollection"}):{type:"FeatureCollection",features:o}}});var yo=vo,Co=Bn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(e,t,n){this._url=e,this._bounds=H(t),h(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(vt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){dt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&ft(this._image),this},bringToBack:function(){return this._map&&gt(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=H(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e="IMG"===this._url.tagName,t=this._image=e?this._url:pt("img");vt(t,"leaflet-image-layer"),this._zoomAnimated&&vt(t,"leaflet-zoom-animated"),this.options.className&&vt(t,this.options.className),t.onselectstart=u,t.onmousemove=u,t.onload=r(this.fire,this,"load"),t.onerror=r(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(t.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e?this._url=t.src:(t.src=this._url,t.alt=this.options.alt)},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;St(this._image,n,t)},_reset:function(){var e=this._image,t=new F(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=t.getSize();Rt(e,t.min),e.style.width=n.x+"px",e.style.height=n.y+"px"},_updateOpacity:function(){_t(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),wo=function(e,t,n){return new Co(e,t,n)},_o=Co.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var e="VIDEO"===this._url.tagName,t=this._image=e?this._url:pt("video");if(vt(t,"leaflet-image-layer"),this._zoomAnimated&&vt(t,"leaflet-zoom-animated"),this.options.className&&vt(t,this.options.className),t.onselectstart=u,t.onmousemove=u,t.onloadeddata=r(this.fire,this,"load"),e){for(var n=t.getElementsByTagName("source"),o=[],i=0;i<n.length;i++)o.push(n[i].src);this._url=n.length>0?o:[t.src]}else{v(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,"objectFit")&&(t.style.objectFit="fill"),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted,t.playsInline=!!this.options.playsInline;for(var s=0;s<this._url.length;s++){var a=pt("source");a.src=this._url[s],t.appendChild(a)}}}});function bo(e,t,n){return new _o(e,t,n)}var Eo=Co.extend({_initImage:function(){var e=this._image=this._url;vt(e,"leaflet-image-layer"),this._zoomAnimated&&vt(e,"leaflet-zoom-animated"),this.options.className&&vt(e,this.options.className),e.onselectstart=u,e.onmousemove=u}});function So(e,t,n){return new Eo(e,t,n)}var Ro=Bn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0},initialize:function(e,t){h(this,e),this._source=t},openOn:function(e){return(e=arguments.length?e:this._source._map).hasLayer(this)||e.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(e){return this._map?this.close():(arguments.length?this._source=e:e=this._source,this._prepareOpen(),this.openOn(e._map)),this},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&_t(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&_t(this._container,1),this.bringToFront(),this.options.interactive&&(vt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(e){e._fadeAnimated?(_t(this._container,0),this._removeTimeout=setTimeout(r(dt,void 0,this._container),200)):dt(this._container),this.options.interactive&&(yt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=V(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ft(this._container),this},bringToBack:function(){return this._map&&gt(this._container),this},_prepareOpen:function(e){var t=this._source;if(!t._map)return!1;if(t instanceof jn){t=null;var n=this._source._layers;for(var o in n)if(n[o]._map){t=n[o];break}if(!t)return!1;this._source=t}if(!e)if(t.getCenter)e=t.getCenter();else if(t.getLatLng)e=t.getLatLng();else{if(!t.getBounds)throw new Error("Unable to get source layer LatLng.");e=t.getBounds().getCenter()}return this.setLatLng(e),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var e=this._contentNode,t="function"===typeof this._content?this._content(this._source||this):this._content;if("string"===typeof t)e.innerHTML=t;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(t)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),t=I(this.options.offset),n=this._getAnchor();this._zoomAnimated?Rt(this._container,e.add(n)):t=t.add(e).add(n);var o=this._containerBottom=-t.y,r=this._containerLeft=-Math.round(this._containerWidth/2)+t.x;this._container.style.bottom=o+"px",this._container.style.left=r+"px"}},_getAnchor:function(){return[0,0]}});$t.include({_initOverlay:function(e,t,n,o){var r=t;return r instanceof e||(r=new e(o).setContent(t)),n&&r.setLatLng(n),r}}),Bn.include({_initOverlay:function(e,t,n,o){var r=n;return r instanceof e?(h(r,o),r._source=this):(r=t&&!o?t:new e(o,this)).setContent(n),r}});var Oo=Ro.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(e){return!(e=arguments.length?e:this._source._map).hasLayer(this)&&e._popup&&e._popup.options.autoClose&&e.removeLayer(e._popup),e._popup=this,Ro.prototype.openOn.call(this,e)},onAdd:function(e){Ro.prototype.onAdd.call(this,e),e.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Qn||this._source.on("preclick",Wt))},onRemove:function(e){Ro.prototype.onRemove.call(this,e),e.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Qn||this._source.off("preclick",Wt))},getEvents:function(){var e=Ro.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(e.preclick=this.close),this.options.keepInView&&(e.moveend=this._adjustPan),e},_initLayout:function(){var e="leaflet-popup",t=this._container=pt("div",e+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=pt("div",e+"-content-wrapper",t);if(this._contentNode=pt("div",e+"-content",n),Ut(t),jt(this._contentNode),Lt(t,"contextmenu",Wt),this._tipContainer=pt("div",e+"-tip-container",t),this._tip=pt("div",e+"-tip",this._tipContainer),this.options.closeButton){var o=this._closeButton=pt("a",e+"-close-button",t);o.setAttribute("role","button"),o.setAttribute("aria-label","Close popup"),o.href="#close",o.innerHTML='<span aria-hidden="true">&#215;</span>',Lt(o,"click",this.close,this)}},_updateLayout:function(){var e=this._contentNode,t=e.style;t.width="",t.whiteSpace="nowrap";var n=e.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),t.width=n+1+"px",t.whiteSpace="",t.height="";var o=e.offsetHeight,r=this.options.maxHeight,i="leaflet-popup-scrolled";r&&o>r?(t.height=r+"px",vt(e,i)):yt(e,i),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),n=this._getAnchor();Rt(this._container,t.add(n))},_adjustPan:function(e){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,n=parseInt(ct(this._container,"marginBottom"),10)||0,o=this._container.offsetHeight+n,r=this._containerWidth,i=new N(this._containerLeft,-o-this._containerBottom);i._add(Ot(this._container));var s=t.layerPointToContainerPoint(i),a=I(this.options.autoPanPadding),l=I(this.options.autoPanPaddingTopLeft||a),u=I(this.options.autoPanPaddingBottomRight||a),c=t.getSize(),p=0,d=0;s.x+r+u.x>c.x&&(p=s.x+r-c.x+u.x),s.x-p-l.x<0&&(p=s.x-l.x),s.y+o+u.y>c.y&&(d=s.y+o-c.y+u.y),s.y-d-l.y<0&&(d=s.y-l.y),(p||d)&&t.fire("autopanstart").panBy([p,d],{animate:e&&"moveend"===e.type})}},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),To=function(e,t){return new Oo(e,t)};$t.mergeOptions({closePopupOnClick:!0}),$t.include({openPopup:function(e,t,n){return this._initOverlay(Oo,e,t,n).openOn(this),this},closePopup:function(e){return(e=arguments.length?e:this._popup)&&e.close(),this}}),Bn.include({bindPopup:function(e,t){return this._popup=this._initOverlay(Oo,this._popup,e,t),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(e){return this._popup&&this._popup._prepareOpen(e)&&this._popup.openOn(this._map),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){if(this._popup&&this._map){Zt(e);var t=e.layer||e.target;this._popup._source!==t||t instanceof Qn?(this._popup._source=t,this.openPopup(e.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){13===e.originalEvent.keyCode&&this._openPopup(e)}});var Po=Ro.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){Ro.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(e){Ro.prototype.onRemove.call(this,e),e.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var e=Ro.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=pt("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,n,o=this._map,r=this._container,i=o.latLngToContainerPoint(o.getCenter()),s=o.layerPointToContainerPoint(e),a=this.options.direction,l=r.offsetWidth,u=r.offsetHeight,c=I(this.options.offset),p=this._getAnchor();"top"===a?(t=l/2,n=u):"bottom"===a?(t=l/2,n=0):"center"===a?(t=l/2,n=u/2):"right"===a?(t=0,n=u/2):"left"===a?(t=l,n=u/2):s.x<i.x?(a="right",t=0,n=u/2):(a="left",t=l+2*(c.x+p.x),n=u/2),e=e.subtract(I(t,n,!0)).add(c).add(p),yt(r,"leaflet-tooltip-right"),yt(r,"leaflet-tooltip-left"),yt(r,"leaflet-tooltip-top"),yt(r,"leaflet-tooltip-bottom"),vt(r,"leaflet-tooltip-"+a),Rt(r,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&_t(this._container,e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(t)},_getAnchor:function(){return I(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Ao=function(e,t){return new Po(e,t)};$t.include({openTooltip:function(e,t,n){return this._initOverlay(Po,e,t,n).openOn(this),this},closeTooltip:function(e){return e.close(),this}}),Bn.include({bindTooltip:function(e,t){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Po,this._tooltip,e,t),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(e){if(e||!this._tooltipHandlersAdded){var t=e?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[t](n),this._tooltipHandlersAdded=!e}},openTooltip:function(e){return this._tooltip&&this._tooltip._prepareOpen(e)&&this._tooltip.openOn(this._map),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(e){return this._tooltip&&this._tooltip.setContent(e),this},getTooltip:function(){return this._tooltip},_openTooltip:function(e){!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()||(this._tooltip._source=e.layer||e.target,this.openTooltip(this._tooltip.options.sticky?e.latlng:void 0))},_moveTooltip:function(e){var t,n,o=e.latlng;this._tooltip.options.sticky&&e.originalEvent&&(t=this._map.mouseEventToContainerPoint(e.originalEvent),n=this._map.containerPointToLayerPoint(t),o=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(o)}});var Do=zn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(e){var t=e&&"DIV"===e.tagName?e:document.createElement("div"),n=this.options;if(n.html instanceof Element?(ht(t),t.appendChild(n.html)):t.innerHTML=!1!==n.html?n.html:"",n.bgPos){var o=I(n.bgPos);t.style.backgroundPosition=-o.x+"px "+-o.y+"px"}return this._setIconStyles(t,"icon"),t},createShadow:function(){return null}});function xo(e){return new Do(e)}zn.Default=Yn;var No=Bn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Ie.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(e){h(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),dt(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ft(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(gt(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var e=this._clampZoom(this._map.getZoom());e!==this._tileZoom&&(this._tileZoom=e,this._updateLevels()),this._update()}return this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=a(this._onMoveEnd,this.options.updateInterval,this)),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},createTile:function(){return document.createElement("div")},getTileSize:function(){var e=this.options.tileSize;return e instanceof N?e:new N(e,e)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var t,n=this.getPane().children,o=-e(-1/0,1/0),r=0,i=n.length;r<i;r++)t=n[r].style.zIndex,n[r]!==this._container&&t&&(o=e(o,+t));isFinite(o)&&(this.options.zIndex=o+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Ie.ielt9){_t(this._container,this.options.opacity);var e=+new Date,t=!1,n=!1;for(var o in this._tiles){var r=this._tiles[o];if(r.current&&r.loaded){var i=Math.min(1,(e-r.loaded)/200);_t(r.el,i),i<1?t=!0:(r.active?n=!0:this._onOpaqueTile(r),r.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),t&&(O(this._fadeFrame),this._fadeFrame=R(this._updateOpacity,this))}},_onOpaqueTile:u,_initContainer:function(){this._container||(this._container=pt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,t=this.options.maxZoom;if(void 0!==e){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===e?(this._levels[n].el.style.zIndex=t-Math.abs(e-n),this._onUpdateLevel(n)):(dt(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var o=this._levels[e],r=this._map;return o||((o=this._levels[e]={}).el=pt("div","leaflet-tile-container leaflet-zoom-animated",this._container),o.el.style.zIndex=t,o.origin=r.project(r.unproject(r.getPixelOrigin()),e).round(),o.zoom=e,this._setZoomTransform(o,r.getCenter(),r.getZoom()),u(o.el.offsetWidth),this._onCreateLevel(o)),this._level=o,o}},_onUpdateLevel:u,_onRemoveLevel:u,_onCreateLevel:u,_pruneTiles:function(){if(this._map){var e,t,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(e in this._tiles)(t=this._tiles[e]).retain=t.current;for(e in this._tiles)if((t=this._tiles[e]).current&&!t.active){var o=t.coords;this._retainParent(o.x,o.y,o.z,o.z-5)||this._retainChildren(o.x,o.y,o.z,o.z+2)}for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}}},_removeTilesAtZoom:function(e){for(var t in this._tiles)this._tiles[t].coords.z===e&&this._removeTile(t)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)dt(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,t,n,o){var r=Math.floor(e/2),i=Math.floor(t/2),s=n-1,a=new N(+r,+i);a.z=+s;var l=this._tileCoordsToKey(a),u=this._tiles[l];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),s>o&&this._retainParent(r,i,s,o))},_retainChildren:function(e,t,n,o){for(var r=2*e;r<2*e+2;r++)for(var i=2*t;i<2*t+2;i++){var s=new N(r,i);s.z=n+1;var a=this._tileCoordsToKey(s),l=this._tiles[a];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<o&&this._retainChildren(r,i,n+1,o))}},_resetView:function(e){var t=e&&(e.pinch||e.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var t=this.options;return void 0!==t.minNativeZoom&&e<t.minNativeZoom?t.minNativeZoom:void 0!==t.maxNativeZoom&&t.maxNativeZoom<e?t.maxNativeZoom:e},_setView:function(e,t,n,o){var r=Math.round(t);r=void 0!==this.options.maxZoom&&r>this.options.maxZoom||void 0!==this.options.minZoom&&r<this.options.minZoom?void 0:this._clampZoom(r);var i=this.options.updateWhenZooming&&r!==this._tileZoom;o&&!i||(this._tileZoom=r,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==r&&this._update(e),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(e,t)},_setZoomTransforms:function(e,t){for(var n in this._levels)this._setZoomTransform(this._levels[n],e,t)},_setZoomTransform:function(e,t,n){var o=this._map.getZoomScale(n,e.zoom),r=e.origin.multiplyBy(o).subtract(this._map._getNewPixelOrigin(t,n)).round();Ie.any3d?St(e.el,r,o):Rt(e.el,r)},_resetGrid:function(){var e=this._map,t=e.options.crs,n=this._tileSize=this.getTileSize(),o=this._tileZoom,r=this._map.getPixelWorldBounds(this._tileZoom);r&&(this._globalTileRange=this._pxBoundsToTileRange(r)),this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,t.wrapLng[0]],o).x/n.x),Math.ceil(e.project([0,t.wrapLng[1]],o).x/n.y)],this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([t.wrapLat[0],0],o).y/n.x),Math.ceil(e.project([t.wrapLat[1],0],o).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(e){var t=this._map,n=t._animatingZoom?Math.max(t._animateToZoom,t.getZoom()):t.getZoom(),o=t.getZoomScale(n,this._tileZoom),r=t.project(e,this._tileZoom).floor(),i=t.getSize().divideBy(2*o);return new F(r.subtract(i),r.add(i))},_update:function(e){var t=this._map;if(t){var n=this._clampZoom(t.getZoom());if(void 0===e&&(e=t.getCenter()),void 0!==this._tileZoom){var o=this._getTiledPixelBounds(e),r=this._pxBoundsToTileRange(o),i=r.getCenter(),s=[],a=this.options.keepBuffer,l=new F(r.getBottomLeft().subtract([a,-a]),r.getTopRight().add([a,-a]));if(!(isFinite(r.min.x)&&isFinite(r.min.y)&&isFinite(r.max.x)&&isFinite(r.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var c=this._tiles[u].coords;c.z===this._tileZoom&&l.contains(new N(c.x,c.y))||(this._tiles[u].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(e,n);else{for(var p=r.min.y;p<=r.max.y;p++)for(var d=r.min.x;d<=r.max.x;d++){var h=new N(d,p);if(h.z=this._tileZoom,this._isValidTile(h)){var f=this._tiles[this._tileCoordsToKey(h)];f?f.current=!0:s.push(h)}}if(s.sort((function(e,t){return e.distanceTo(i)-t.distanceTo(i)})),0!==s.length){this._loading||(this._loading=!0,this.fire("loading"));var g=document.createDocumentFragment();for(d=0;d<s.length;d++)this._addTile(s[d],g);this._level.el.appendChild(g)}}}}},_isValidTile:function(e){var t=this._map.options.crs;if(!t.infinite){var n=this._globalTileRange;if(!t.wrapLng&&(e.x<n.min.x||e.x>n.max.x)||!t.wrapLat&&(e.y<n.min.y||e.y>n.max.y))return!1}if(!this.options.bounds)return!0;var o=this._tileCoordsToBounds(e);return H(this.options.bounds).overlaps(o)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,n=this.getTileSize(),o=e.scaleBy(n),r=o.add(n);return[t.unproject(o,e.z),t.unproject(r,e.z)]},_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),n=new G(t[0],t[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(e){return e.x+":"+e.y+":"+e.z},_keyToTileCoords:function(e){var t=e.split(":"),n=new N(+t[0],+t[1]);return n.z=+t[2],n},_removeTile:function(e){var t=this._tiles[e];t&&(dt(t.el),delete this._tiles[e],this.fire("tileunload",{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){vt(e,"leaflet-tile");var t=this.getTileSize();e.style.width=t.x+"px",e.style.height=t.y+"px",e.onselectstart=u,e.onmousemove=u,Ie.ielt9&&this.options.opacity<1&&_t(e,this.options.opacity)},_addTile:function(e,t){var n=this._getTilePos(e),o=this._tileCoordsToKey(e),i=this.createTile(this._wrapCoords(e),r(this._tileReady,this,e));this._initTile(i),this.createTile.length<2&&R(r(this._tileReady,this,e,null,i)),Rt(i,n),this._tiles[o]={el:i,coords:e,current:!0},t.appendChild(i),this.fire("tileloadstart",{tile:i,coords:e})},_tileReady:function(e,t,n){t&&this.fire("tileerror",{error:t,tile:n,coords:e});var o=this._tileCoordsToKey(e);(n=this._tiles[o])&&(n.loaded=+new Date,this._map._fadeAnimated?(_t(n.el,0),O(this._fadeFrame),this._fadeFrame=R(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),t||(vt(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ie.ielt9||!this._map._fadeAnimated?R(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new N(this._wrapX?l(e.x,this._wrapX):e.x,this._wrapY?l(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new F(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}});function Mo(e){return new No(e)}var Io=No.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,t){this._url=e,(t=h(this,t)).detectRetina&&Ie.retina&&t.maxZoom>0&&(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom++):(t.zoomOffset++,t.maxZoom--),t.minZoom=Math.max(0,t.minZoom)),"string"===typeof t.subdomains&&(t.subdomains=t.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(e,t){return this._url===e&&void 0===t&&(t=!0),this._url=e,t||this.redraw(),this},createTile:function(e,t){var n=document.createElement("img");return Lt(n,"load",r(this._tileOnLoad,this,t,n)),Lt(n,"error",r(this._tileOnError,this,t,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"===typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(e),n},getTileUrl:function(e){var t={r:Ie.retina?"@2x":"",s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var o=this._globalTileRange.max.y-e.y;this.options.tms&&(t.y=o),t["-y"]=o}return m(this._url,n(t,this.options))},_tileOnLoad:function(e,t){Ie.ielt9?setTimeout(r(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,n){var o=this.options.errorTileUrl;o&&t.getAttribute("src")!==o&&(t.src=o),e(n,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom;return this.options.zoomReverse&&(e=t-e),e+this.options.zoomOffset},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var e,t;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&((t=this._tiles[e].el).onload=u,t.onerror=u,!t.complete)){t.src=C;var n=this._tiles[e].coords;dt(t),delete this._tiles[e],this.fire("tileabort",{tile:t,coords:n})}},_removeTile:function(e){var t=this._tiles[e];if(t)return t.el.setAttribute("src",C),No.prototype._removeTile.call(this,e)},_tileReady:function(e,t,n){if(this._map&&(!n||n.getAttribute("src")!==C))return No.prototype._tileReady.call(this,e,t,n)}});function Lo(e,t){return new Io(e,t)}var Fo=Io.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(e,t){this._url=e;var o=n({},this.defaultWmsParams);for(var r in t)r in this.options||(o[r]=t[r]);var i=(t=h(this,t)).detectRetina&&Ie.retina?2:1,s=this.getTileSize();o.width=s.x*i,o.height=s.y*i,this.wmsParams=o},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[t]=this._crs.code,Io.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),n=this._crs,o=k(n.project(t[0]),n.project(t[1])),r=o.min,i=o.max,s=(this._wmsVersion>=1.3&&this._crs===Gn?[r.y,r.x,i.y,i.x]:[r.x,r.y,i.x,i.y]).join(","),a=Io.prototype.getTileUrl.call(this,e);return a+f(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+s},setParams:function(e,t){return n(this.wmsParams,e),t||this.redraw(),this}});function ko(e,t){return new Fo(e,t)}Io.WMS=Fo,Lo.wms=ko;var Go=Bn.extend({options:{padding:.1},initialize:function(e){h(this,e),s(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&vt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var n=this._map.getZoomScale(t,this._zoom),o=this._map.getSize().multiplyBy(.5+this.options.padding),r=this._map.project(this._center,t),i=o.multiplyBy(-n).add(r).subtract(this._map._getNewPixelOrigin(e,t));Ie.any3d?St(this._container,i,n):Rt(this._container,i)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,t=this._map.getSize(),n=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();this._bounds=new F(n,n.add(t.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Ho=Go.extend({options:{tolerance:0},getEvents:function(){var e=Go.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Go.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement("canvas");Lt(e,"mousemove",this._onMouseMove,this),Lt(e,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Lt(e,"mouseout",this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext("2d")},_destroyContainer:function(){O(this._redrawRequest),delete this._ctx,dt(this._container),kt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var e in this._redrawBounds=null,this._layers)this._layers[e]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Go.prototype._update.call(this);var e=this._bounds,t=this._container,n=e.getSize(),o=Ie.retina?2:1;Rt(t,e.min),t.width=o*n.x,t.height=o*n.y,t.style.width=n.x+"px",t.style.height=n.y+"px",Ie.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire("update")}},_reset:function(){Go.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[s(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,n=t.next,o=t.prev;n?n.prev=o:this._drawLast=o,o?o.next=n:this._drawFirst=n,delete e._order,delete this._layers[s(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if("string"===typeof e.options.dashArray){var t,n,o=e.options.dashArray.split(/[, ]+/),r=[];for(n=0;n<o.length;n++){if(t=Number(o[n]),isNaN(t))return;r.push(t)}e.options._dashArray=r}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||R(this._redraw,this))},_extendRedrawBounds:function(e){if(e._pxBounds){var t=(e.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new F,this._redrawBounds.extend(e._pxBounds.min.subtract([t,t])),this._redrawBounds.extend(e._pxBounds.max.add([t,t]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var e=this._redrawBounds;if(e){var t=e.getSize();this._ctx.clearRect(e.min.x,e.min.y,t.x,t.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var e,t=this._redrawBounds;if(this._ctx.save(),t){var n=t.getSize();this._ctx.beginPath(),this._ctx.rect(t.min.x,t.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var o=this._drawFirst;o;o=o.next)e=o.layer,(!t||e._pxBounds&&e._pxBounds.intersects(t))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,t){if(this._drawing){var n,o,r,i,s=e._parts,a=s.length,l=this._ctx;if(a){for(l.beginPath(),n=0;n<a;n++){for(o=0,r=s[n].length;o<r;o++)i=s[n][o],l[o?"lineTo":"moveTo"](i.x,i.y);t&&l.closePath()}this._fillStroke(l,e)}}},_updateCircle:function(e){if(this._drawing&&!e._empty()){var t=e._point,n=this._ctx,o=Math.max(Math.round(e._radius),1),r=(Math.max(Math.round(e._radiusY),1)||o)/o;1!==r&&(n.save(),n.scale(1,r)),n.beginPath(),n.arc(t.x,t.y/r,o,0,2*Math.PI,!1),1!==r&&n.restore(),this._fillStroke(n,e)}},_fillStroke:function(e,t){var n=t.options;n.fill&&(e.globalAlpha=n.fillOpacity,e.fillStyle=n.fillColor||n.color,e.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(e.setLineDash&&e.setLineDash(t.options&&t.options._dashArray||[]),e.globalAlpha=n.opacity,e.lineWidth=n.weight,e.strokeStyle=n.color,e.lineCap=n.lineCap,e.lineJoin=n.lineJoin,e.stroke())},_onClick:function(e){for(var t,n,o=this._map.mouseEventToLayerPoint(e),r=this._drawFirst;r;r=r.next)(t=r.layer).options.interactive&&t._containsPoint(o)&&("click"!==e.type&&"preclick"!==e.type||!this._map._draggableMoved(t))&&(n=t);this._fireEvent(!!n&&[n],e)},_onMouseMove:function(e){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var t=this._map.mouseEventToLayerPoint(e);this._handleMouseHover(e,t)}},_handleMouseOut:function(e){var t=this._hoveredLayer;t&&(yt(this._container,"leaflet-interactive"),this._fireEvent([t],e,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,t){if(!this._mouseHoverThrottled){for(var n,o,i=this._drawFirst;i;i=i.next)(n=i.layer).options.interactive&&n._containsPoint(t)&&(o=n);o!==this._hoveredLayer&&(this._handleMouseOut(e),o&&(vt(this._container,"leaflet-interactive"),this._fireEvent([o],e,"mouseover"),this._hoveredLayer=o)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],e),this._mouseHoverThrottled=!0,setTimeout(r((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(e,t,n){this._map._fireDOMEvent(t,n||t.type,e)},_bringToFront:function(e){var t=e._order;if(t){var n=t.next,o=t.prev;n&&(n.prev=o,o?o.next=n:n&&(this._drawFirst=n),t.prev=this._drawLast,this._drawLast.next=t,t.next=null,this._drawLast=t,this._requestRedraw(e))}},_bringToBack:function(e){var t=e._order;if(t){var n=t.next,o=t.prev;o&&(o.next=n,n?n.prev=o:o&&(this._drawLast=o),t.prev=null,t.next=this._drawFirst,this._drawFirst.prev=t,this._drawFirst=t,this._requestRedraw(e))}}});function Bo(e){return Ie.canvas?new Ho(e):null}var Vo=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(e){return document.createElement("<lvml:"+e+' class="lvml">')}}catch(e){}return function(e){return document.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Wo={_initContainer:function(){this._container=pt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Go.prototype._update.call(this),this.fire("update"))},_initPath:function(e){var t=e._container=Vo("shape");vt(t,"leaflet-vml-shape "+(this.options.className||"")),t.coordsize="1 1",e._path=Vo("path"),t.appendChild(e._path),this._updateStyle(e),this._layers[s(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;dt(t),e.removeInteractiveTarget(t),delete this._layers[s(e)]},_updateStyle:function(e){var t=e._stroke,n=e._fill,o=e.options,r=e._container;r.stroked=!!o.stroke,r.filled=!!o.fill,o.stroke?(t||(t=e._stroke=Vo("stroke")),r.appendChild(t),t.weight=o.weight+"px",t.color=o.color,t.opacity=o.opacity,o.dashArray?t.dashStyle=v(o.dashArray)?o.dashArray.join(" "):o.dashArray.replace(/( *, *)/g," "):t.dashStyle="",t.endcap=o.lineCap.replace("butt","flat"),t.joinstyle=o.lineJoin):t&&(r.removeChild(t),e._stroke=null),o.fill?(n||(n=e._fill=Vo("fill")),r.appendChild(n),n.color=o.fillColor||o.color,n.opacity=o.fillOpacity):n&&(r.removeChild(n),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),n=Math.round(e._radius),o=Math.round(e._radiusY||n);this._setPath(e,e._empty()?"M0 0":"AL "+t.x+","+t.y+" "+n+","+o+" 0,23592600")},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){ft(e._container)},_bringToBack:function(e){gt(e._container)}},jo=Ie.vml?Vo:X,Uo=Go.extend({_initContainer:function(){this._container=jo("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=jo("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){dt(this._container),kt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Go.prototype._update.call(this);var e=this._bounds,t=e.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,n.setAttribute("width",t.x),n.setAttribute("height",t.y)),Rt(n,e.min),n.setAttribute("viewBox",[e.min.x,e.min.y,t.x,t.y].join(" ")),this.fire("update")}},_initPath:function(e){var t=e._path=jo("path");e.options.className&&vt(t,e.options.className),e.options.interactive&&vt(t,"leaflet-interactive"),this._updateStyle(e),this._layers[s(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){dt(e._path),e.removeInteractiveTarget(e._path),delete this._layers[s(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,n=e.options;t&&(n.stroke?(t.setAttribute("stroke",n.color),t.setAttribute("stroke-opacity",n.opacity),t.setAttribute("stroke-width",n.weight),t.setAttribute("stroke-linecap",n.lineCap),t.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?t.setAttribute("stroke-dasharray",n.dashArray):t.removeAttribute("stroke-dasharray"),n.dashOffset?t.setAttribute("stroke-dashoffset",n.dashOffset):t.removeAttribute("stroke-dashoffset")):t.setAttribute("stroke","none"),n.fill?(t.setAttribute("fill",n.fillColor||n.color),t.setAttribute("fill-opacity",n.fillOpacity),t.setAttribute("fill-rule",n.fillRule||"evenodd")):t.setAttribute("fill","none"))},_updatePoly:function(e,t){this._setPath(e,Q(e._parts,t))},_updateCircle:function(e){var t=e._point,n=Math.max(Math.round(e._radius),1),o="a"+n+","+(Math.max(Math.round(e._radiusY),1)||n)+" 0 1,0 ",r=e._empty()?"M0 0":"M"+(t.x-n)+","+t.y+o+2*n+",0 "+o+2*-n+",0 ";this._setPath(e,r)},_setPath:function(e,t){e._path.setAttribute("d",t)},_bringToFront:function(e){ft(e._path)},_bringToBack:function(e){gt(e._path)}});function zo(e){return Ie.svg||Ie.vml?new Uo(e):null}Ie.vml&&Uo.include(Wo),$t.include({getRenderer:function(e){var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return t||(t=this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(e){if("overlayPane"===e||void 0===e)return!1;var t=this._paneRenderers[e];return void 0===t&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){return this.options.preferCanvas&&Bo(e)||zo(e)}});var Zo=ro.extend({initialize:function(e,t){ro.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))},_boundsToLatLngs:function(e){return[(e=H(e)).getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});function Yo(e,t){return new Zo(e,t)}Uo.create=jo,Uo.pointsToPath=Q,so.geometryToLayer=ao,so.coordsToLatLng=uo,so.coordsToLatLngs=co,so.latLngToCoords=po,so.latLngsToCoords=ho,so.getFeature=fo,so.asFeature=go,$t.mergeOptions({boxZoom:!0});var Ko=hn.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on("unload",this._destroy,this)},addHooks:function(){Lt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){kt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){dt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||1!==e.which&&1!==e.button)return!1;this._clearDeferredResetState(),this._resetState(),tt(),Pt(),this._startPoint=this._map.mouseEventToContainerPoint(e),Lt(document,{contextmenu:Zt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=pt("div","leaflet-zoom-box",this._container),vt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(e);var t=new F(this._point,this._startPoint),n=t.getSize();Rt(this._box,t.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(dt(this._box),yt(this._container,"leaflet-crosshair")),nt(),At(),kt(document,{contextmenu:Zt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if((1===e.which||1===e.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(r(this._resetState,this),0);var t=new G(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})}},_onKeyDown:function(e){27===e.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});$t.addInitHook("addHandler","boxZoom",Ko),$t.mergeOptions({doubleClickZoom:!0});var qo=hn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom(),o=t.options.zoomDelta,r=e.originalEvent.shiftKey?n-o:n+o;"center"===t.options.doubleClickZoom?t.setZoom(r):t.setZoomAround(e.containerPoint,r)}});$t.addInitHook("addHandler","doubleClickZoom",qo),$t.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Xo=hn.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new vn(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),e.on("zoomend",this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}vt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){yt(this._map._container,"leaflet-grab"),yt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=H(this._map.options.maxBounds);this._offsetLimit=k(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(t),this._prunePositions(t)}this._map.fire("move",e).fire("drag",e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;e.x<t.min.x&&(e.x=this._viscousLimit(e.x,t.min.x)),e.y<t.min.y&&(e.y=this._viscousLimit(e.y,t.min.y)),e.x>t.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,o=this._draggable._newPos.x,r=(o-t+n)%e+t-n,i=(o+t+n)%e-t-n,s=Math.abs(r+n)<Math.abs(i+n)?r:i;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=s},_onDragEnd:function(e){var t=this._map,n=t.options,o=!n.inertia||e.noInertia||this._times.length<2;if(t.fire("dragend",e),o)t.fire("moveend");else{this._prunePositions(+new Date);var r=this._lastPos.subtract(this._positions[0]),i=(this._lastTime-this._times[0])/1e3,s=n.easeLinearity,a=r.multiplyBy(s/i),l=a.distanceTo([0,0]),u=Math.min(n.inertiaMaxSpeed,l),c=a.multiplyBy(u/l),p=u/(n.inertiaDeceleration*s),d=c.multiplyBy(-p/2).round();d.x||d.y?(d=t._limitOffset(d,t.options.maxBounds),R((function(){t.panBy(d,{duration:p,easeLinearity:s,noMoveStart:!0,animate:!0})}))):t.fire("moveend")}}});$t.addInitHook("addHandler","dragging",Xo),$t.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Qo=hn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;e.tabIndex<=0&&(e.tabIndex="0"),Lt(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),kt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var e=document.body,t=document.documentElement,n=e.scrollTop||t.scrollTop,o=e.scrollLeft||t.scrollLeft;this._map._container.focus(),window.scrollTo(o,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(e){var t,n,o=this._panKeys={},r=this.keyCodes;for(t=0,n=r.left.length;t<n;t++)o[r.left[t]]=[-1*e,0];for(t=0,n=r.right.length;t<n;t++)o[r.right[t]]=[e,0];for(t=0,n=r.down.length;t<n;t++)o[r.down[t]]=[0,e];for(t=0,n=r.up.length;t<n;t++)o[r.up[t]]=[0,-1*e]},_setZoomDelta:function(e){var t,n,o=this._zoomKeys={},r=this.keyCodes;for(t=0,n=r.zoomIn.length;t<n;t++)o[r.zoomIn[t]]=e;for(t=0,n=r.zoomOut.length;t<n;t++)o[r.zoomOut[t]]=-e},_addHooks:function(){Lt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){kt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var t,n=e.keyCode,o=this._map;if(n in this._panKeys)o._panAnim&&o._panAnim._inProgress||(t=this._panKeys[n],e.shiftKey&&(t=I(t).multiplyBy(3)),o.panBy(t),o.options.maxBounds&&o.panInsideBounds(o.options.maxBounds));else if(n in this._zoomKeys)o.setZoom(o.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!o._popup||!o._popup.options.closeOnEscapeKey)return;o.closePopup()}Zt(e)}}});$t.addInitHook("addHandler","keyboard",Qo),$t.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Jo=hn.extend({addHooks:function(){Lt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){kt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(e){var t=qt(e),n=this._map.options.wheelDebounceTime;this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||(this._startTime=+new Date);var o=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(r(this._performZoom,this),o),Zt(e)},_performZoom:function(){var e=this._map,t=e.getZoom(),n=this._map.options.zoomSnap||0;e._stop();var o=this._delta/(4*this._map.options.wheelPxPerZoomLevel),r=4*Math.log(2/(1+Math.exp(-Math.abs(o))))/Math.LN2,i=n?Math.ceil(r/n)*n:r,s=e._limitZoom(t+(this._delta>0?i:-i))-t;this._delta=0,this._startTime=null,s&&("center"===e.options.scrollWheelZoom?e.setZoom(t+s):e.setZoomAround(this._lastMousePos,t+s))}});$t.addInitHook("addHandler","scrollWheelZoom",Jo);var $o=600;$t.mergeOptions({tapHold:Ie.touchNative&&Ie.safari&&Ie.mobile,tapTolerance:15});var er=hn.extend({addHooks:function(){Lt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){kt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),1===e.touches.length){var t=e.touches[0];this._startPos=this._newPos=new N(t.clientX,t.clientY),this._holdTimeout=setTimeout(r((function(){this._cancel(),this._isTapValid()&&(Lt(document,"touchend",zt),Lt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",t))}),this),$o),Lt(document,"touchend touchcancel contextmenu",this._cancel,this),Lt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function e(){kt(document,"touchend",zt),kt(document,"touchend touchcancel",e)},_cancel:function(){clearTimeout(this._holdTimeout),kt(document,"touchend touchcancel contextmenu",this._cancel,this),kt(document,"touchmove",this._onMove,this)},_onMove:function(e){var t=e.touches[0];this._newPos=new N(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,t){var n=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY});n._simulated=!0,t.target.dispatchEvent(n)}});$t.addInitHook("addHandler","tapHold",er),$t.mergeOptions({touchZoom:Ie.touch,bounceAtZoomLimits:!0});var tr=hn.extend({addHooks:function(){vt(this._map._container,"leaflet-touch-zoom"),Lt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){yt(this._map._container,"leaflet-touch-zoom"),kt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(e.touches&&2===e.touches.length&&!t._animatingZoom&&!this._zooming){var n=t.mouseEventToContainerPoint(e.touches[0]),o=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),"center"!==t.options.touchZoom&&(this._pinchStartLatLng=t.containerPointToLatLng(n.add(o)._divideBy(2))),this._startDist=n.distanceTo(o),this._startZoom=t.getZoom(),this._moved=!1,this._zooming=!0,t._stop(),Lt(document,"touchmove",this._onTouchMove,this),Lt(document,"touchend touchcancel",this._onTouchEnd,this),zt(e)}},_onTouchMove:function(e){if(e.touches&&2===e.touches.length&&this._zooming){var t=this._map,n=t.mouseEventToContainerPoint(e.touches[0]),o=t.mouseEventToContainerPoint(e.touches[1]),i=n.distanceTo(o)/this._startDist;if(this._zoom=t.getScaleZoom(i,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&i<1||this._zoom>t.getMaxZoom()&&i>1)&&(this._zoom=t._limitZoom(this._zoom)),"center"===t.options.touchZoom){if(this._center=this._startLatLng,1===i)return}else{var s=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(1===i&&0===s.x&&0===s.y)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}this._moved||(t._moveStart(!0,!1),this._moved=!0),O(this._animRequest);var a=r(t._move,t,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=R(a,this,!0),zt(e)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,O(this._animRequest),kt(document,"touchmove",this._onTouchMove,this),kt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});$t.addInitHook("addHandler","touchZoom",tr),$t.BoxZoom=Ko,$t.DoubleClickZoom=qo,$t.Drag=Xo,$t.Keyboard=Qo,$t.ScrollWheelZoom=Jo,$t.TapHold=er,$t.TouchZoom=tr,e.Bounds=F,e.Browser=Ie,e.CRS=W,e.Canvas=Ho,e.Circle=eo,e.CircleMarker=Jn,e.Class=P,e.Control=tn,e.DivIcon=Do,e.DivOverlay=Ro,e.DomEvent=Qt,e.DomUtil=It,e.Draggable=vn,e.Evented=x,e.FeatureGroup=jn,e.GeoJSON=so,e.GridLayer=No,e.Handler=hn,e.Icon=zn,e.ImageOverlay=Co,e.LatLng=B,e.LatLngBounds=G,e.Layer=Bn,e.LayerGroup=Vn,e.LineUtil=xn,e.Map=$t,e.Marker=qn,e.Mixin=gn,e.Path=Qn,e.Point=N,e.PolyUtil=Mn,e.Polygon=ro,e.Polyline=no,e.Popup=Oo,e.PosAnimation=Jt,e.Projection=Fn,e.Rectangle=Zo,e.Renderer=Go,e.SVG=Uo,e.SVGOverlay=Eo,e.TileLayer=Io,e.Tooltip=Po,e.Transformation=Z,e.Util=T,e.VideoOverlay=_o,e.bind=r,e.bounds=k,e.canvas=Bo,e.circle=to,e.circleMarker=$n,e.control=nn,e.divIcon=xo,e.extend=n,e.featureGroup=Un,e.geoJSON=vo,e.geoJson=yo,e.gridLayer=Mo,e.icon=Zn,e.imageOverlay=wo,e.latLng=V,e.latLngBounds=H,e.layerGroup=Wn,e.map=en,e.marker=Xn,e.point=I,e.polygon=io,e.polyline=oo,e.popup=To,e.rectangle=Yo,e.setOptions=h,e.stamp=s,e.svg=zo,e.svgOverlay=So,e.tileLayer=Lo,e.tooltip=Ao,e.transformation=Y,e.version=t,e.videoOverlay=bo;var nr=window.L;e.noConflict=function(){return window.L=nr,this},window.L=e}(t)},888:function(e,t,n){"use strict";var o=n(9047);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,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},2007:function(e,t,n){e.exports=n(888)()},9047:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7511:function(e,t,n){"use strict";t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(2791)),r=l(n(2007)),i=l(n(1511)),s=l(n(9198)),a=n(9051);function l(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){return c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(){return!0},_="suggestions-revealed",b="input-focused",E="input-changed",S="escape-pressed",R=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(c,e);var t,n,r,l,u=(t=c,function(){var e,n=v(t);if(m()){var o=v(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return f(this,e)});function c(e){var t,n=e.alwaysRenderSuggestions;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),C(g(t=u.call(this)),"onDocumentMouseDown",(function(e){t.justClickedOnSuggestionsContainer=!1;for(var n=e.detail&&e.detail.target||e.target;null!==n&&n!==document;){if(n.getAttribute&&null!==n.getAttribute("data-suggestion-index"))return;if(n===t.suggestionsContainer)return void(t.justClickedOnSuggestionsContainer=!0);n=n.parentNode}})),C(g(t),"storeAutowhateverRef",(function(e){null!==e&&(t.autowhatever=e)})),C(g(t),"onSuggestionMouseEnter",(function(e,n){var o=n.sectionIndex,r=n.itemIndex;t.updateHighlightedSuggestion(o,r),e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!0),t.justMouseEntered=!0,setTimeout((function(){t.justMouseEntered=!1}))})),C(g(t),"highlightFirstSuggestion",(function(){t.updateHighlightedSuggestion(t.props.multiSection?0:null,0)})),C(g(t),"onDocumentMouseUp",(function(){t.pressedSuggestion&&!t.justSelectedSuggestion&&t.input.focus(),t.pressedSuggestion=null})),C(g(t),"onSuggestionMouseDown",(function(e){t.justSelectedSuggestion||(t.justSelectedSuggestion=!0,t.pressedSuggestion=e.target)})),C(g(t),"onSuggestionsClearRequested",(function(){var e=t.props.onSuggestionsClearRequested;e&&e()})),C(g(t),"onSuggestionSelected",(function(e,n){var o=t.props,r=o.alwaysRenderSuggestions,i=o.onSuggestionSelected,s=o.onSuggestionsFetchRequested;i&&i(e,n);var a=t.props.shouldKeepSuggestionsOnSelect(n.suggestion);r||a?s({value:n.suggestionValue,reason:"suggestion-selected"}):t.onSuggestionsClearRequested(),t.resetHighlightedSuggestion()})),C(g(t),"onSuggestionClick",(function(e){var n=t.props,o=n.alwaysRenderSuggestions,r=n.focusInputOnSuggestionClick,i=t.getSuggestionIndices(t.findSuggestionElement(e.target)),s=i.sectionIndex,a=i.suggestionIndex,l=t.getSuggestion(s,a),u=t.props.getSuggestionValue(l);t.maybeCallOnChange(e,u,"click"),t.onSuggestionSelected(e,{suggestion:l,suggestionValue:u,suggestionIndex:a,sectionIndex:s,method:"click"});var c=t.props.shouldKeepSuggestionsOnSelect(l);o||c||t.closeSuggestions(),!0===r?t.input.focus():t.onBlur(),setTimeout((function(){t.justSelectedSuggestion=!1}))})),C(g(t),"onBlur",(function(){var e=t.props,n=e.inputProps,o=e.shouldRenderSuggestions,r=n.value,i=n.onBlur,s=t.getHighlightedSuggestion(),a=o(r,"input-blurred");t.setState({isFocused:!1,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!a}),i&&i(t.blurEvent,{highlightedSuggestion:s})})),C(g(t),"onSuggestionMouseLeave",(function(e){t.resetHighlightedSuggestion(!1),t.justSelectedSuggestion&&e.target===t.pressedSuggestion&&(t.justSelectedSuggestion=!1)})),C(g(t),"onSuggestionTouchStart",(function(){t.justSelectedSuggestion=!0})),C(g(t),"onSuggestionTouchMove",(function(){t.justSelectedSuggestion=!1,t.pressedSuggestion=null,t.input.focus()})),C(g(t),"itemProps",(function(e){return{"data-section-index":e.sectionIndex,"data-suggestion-index":e.itemIndex,onMouseEnter:t.onSuggestionMouseEnter,onMouseLeave:t.onSuggestionMouseLeave,onMouseDown:t.onSuggestionMouseDown,onTouchStart:t.onSuggestionTouchStart,onTouchMove:t.onSuggestionTouchMove,onClick:t.onSuggestionClick}})),C(g(t),"renderSuggestionsContainer",(function(e){var n=e.containerProps,o=e.children;return(0,t.props.renderSuggestionsContainer)({containerProps:n,children:o,query:t.getQuery()})})),t.state={isFocused:!1,isCollapsed:!n,highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null},t.justPressedUpDown=!1,t.justMouseEntered=!1,t.pressedSuggestion=null,t}return n=c,r=[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.onDocumentMouseDown),document.addEventListener("mouseup",this.onDocumentMouseUp),this.input=this.autowhatever.input,this.suggestionsContainer=this.autowhatever.itemsContainer}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=0===this.state.highlightedSuggestionIndex&&this.props.highlightFirstSuggestion&&!e.highlightFirstSuggestion;(0,i.default)(e.suggestions,this.props.suggestions)?e.highlightFirstSuggestion&&e.suggestions.length>0&&!1===this.justPressedUpDown&&!1===this.justMouseEntered?this.highlightFirstSuggestion():t&&this.resetHighlightedSuggestion():this.willRenderSuggestions(e,"suggestions-updated")?(this.state.isCollapsed&&!this.justSelectedSuggestion&&this.revealSuggestions(),t&&this.resetHighlightedSuggestion()):this.resetHighlightedSuggestion()}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.suggestions,r=n.onSuggestionHighlighted,s=n.highlightFirstSuggestion;if(!(0,i.default)(o,e.suggestions)&&o.length>0&&s)this.highlightFirstSuggestion();else if(r){var a=this.getHighlightedSuggestion();a!=t.highlightedSuggestion&&r({suggestion:a})}}},{key:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.onDocumentMouseDown),document.removeEventListener("mouseup",this.onDocumentMouseUp)}},{key:"updateHighlightedSuggestion",value:function(e,t,n){var o=this;this.setState((function(r){var i=r.valueBeforeUpDown;return null===t?i=null:null===i&&"undefined"!==typeof n&&(i=n),{highlightedSectionIndex:e,highlightedSuggestionIndex:t,highlightedSuggestion:null===t?null:o.getSuggestion(e,t),valueBeforeUpDown:i}}))}},{key:"resetHighlightedSuggestion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState((function(t){var n=t.valueBeforeUpDown;return{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:e?null:n}}))}},{key:"revealSuggestions",value:function(){this.setState({isCollapsed:!1})}},{key:"closeSuggestions",value:function(){this.setState({highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null,valueBeforeUpDown:null,isCollapsed:!0})}},{key:"getSuggestion",value:function(e,t){var n=this.props,o=n.suggestions,r=n.multiSection,i=n.getSectionSuggestions;return r?i(o[e])[t]:o[t]}},{key:"getHighlightedSuggestion",value:function(){var e=this.state,t=e.highlightedSectionIndex,n=e.highlightedSuggestionIndex;return null===n?null:this.getSuggestion(t,n)}},{key:"getSuggestionValueByIndex",value:function(e,t){return(0,this.props.getSuggestionValue)(this.getSuggestion(e,t))}},{key:"getSuggestionIndices",value:function(e){var t=e.getAttribute("data-section-index"),n=e.getAttribute("data-suggestion-index");return{sectionIndex:"string"===typeof t?parseInt(t,10):null,suggestionIndex:parseInt(n,10)}}},{key:"findSuggestionElement",value:function(e){var t=e;do{if(t.getAttribute&&null!==t.getAttribute("data-suggestion-index"))return t;t=t.parentNode}while(null!==t);throw console.error("Clicked element:",e),new Error("Couldn't find suggestion element")}},{key:"maybeCallOnChange",value:function(e,t,n){var o=this.props.inputProps,r=o.value,i=o.onChange;t!==r&&i(e,{newValue:t,method:n})}},{key:"willRenderSuggestions",value:function(e,t){var n=e.suggestions,o=e.inputProps,r=e.shouldRenderSuggestions,i=o.value;return n.length>0&&r(i,t)}},{key:"getQuery",value:function(){var e=this.props.inputProps.value,t=this.state.valueBeforeUpDown;return(null===t?e:t).trim()}},{key:"render",value:function(){var e=this,t=this.props,n=t.suggestions,r=t.renderInputComponent,i=t.onSuggestionsFetchRequested,l=t.renderSuggestion,u=t.inputProps,c=t.multiSection,p=t.renderSectionTitle,h=t.id,f=t.getSectionSuggestions,g=t.theme,m=t.getSuggestionValue,v=t.alwaysRenderSuggestions,y=t.highlightFirstSuggestion,C=t.containerProps,R=this.state,O=R.isFocused,T=R.isCollapsed,P=R.highlightedSectionIndex,A=R.highlightedSuggestionIndex,D=R.valueBeforeUpDown,x=v?w:this.props.shouldRenderSuggestions,N=u.value,M=u.onFocus,I=u.onKeyDown,L=this.willRenderSuggestions(this.props,"render"),F=v||O&&!T&&L,k=F?n:[],G=d({},u,{onFocus:function(t){if(!e.justSelectedSuggestion&&!e.justClickedOnSuggestionsContainer){var n=x(N,b);e.setState({isFocused:!0,isCollapsed:!n}),M&&M(t),n&&i({value:N,reason:b})}},onBlur:function(t){e.justClickedOnSuggestionsContainer?e.input.focus():(e.blurEvent=t,e.justSelectedSuggestion||(e.onBlur(),e.onSuggestionsClearRequested()))},onChange:function(t){var n=t.target.value,o=x(n,E);e.maybeCallOnChange(t,n,"type"),e.suggestionsContainer&&(e.suggestionsContainer.scrollTop=0),e.setState(d({},y?{}:{highlightedSectionIndex:null,highlightedSuggestionIndex:null,highlightedSuggestion:null},{valueBeforeUpDown:null,isCollapsed:!o})),o?i({value:n,reason:E}):e.onSuggestionsClearRequested()},onKeyDown:function(t,o){var r=t.keyCode;switch(r){case 40:case 38:if(T)x(N,_)&&(i({value:N,reason:_}),e.revealSuggestions(),t.preventDefault());else if(n.length>0){var s,a=o.newHighlightedSectionIndex,l=o.newHighlightedItemIndex;s=null===l?null===D?N:D:e.getSuggestionValueByIndex(a,l),e.updateHighlightedSuggestion(a,l,N),e.maybeCallOnChange(t,s,40===r?"down":"up"),t.preventDefault()}e.justPressedUpDown=!0,setTimeout((function(){e.justPressedUpDown=!1}));break;case 13:if(229===t.keyCode)break;var u=e.getHighlightedSuggestion();if(F&&!v&&e.closeSuggestions(),null!=u){t.preventDefault();var c=m(u);e.maybeCallOnChange(t,c,"enter"),e.onSuggestionSelected(t,{suggestion:u,suggestionValue:c,suggestionIndex:A,sectionIndex:P,method:"enter"}),e.justSelectedSuggestion=!0,setTimeout((function(){e.justSelectedSuggestion=!1}))}break;case 27:F&&t.preventDefault();var p=F&&!v;null===D?p||(e.maybeCallOnChange(t,"","escape"),x("",S)?i({value:"",reason:S}):e.onSuggestionsClearRequested()):e.maybeCallOnChange(t,D,"escape"),p?(e.onSuggestionsClearRequested(),e.closeSuggestions()):e.resetHighlightedSuggestion()}I&&I(t)}}),H={query:this.getQuery()};return o.default.createElement(s.default,{multiSection:c,items:k,renderInputComponent:r,renderItemsContainer:this.renderSuggestionsContainer,renderItem:l,renderItemData:H,renderSectionTitle:p,getSectionItems:f,highlightedSectionIndex:P,highlightedItemIndex:A,containerProps:C,inputProps:G,itemProps:this.itemProps,theme:(0,a.mapToAutowhateverTheme)(g),id:h,ref:this.storeAutowhateverRef})}}],r&&h(n.prototype,r),l&&h(n,l),c}(o.Component);t.default=R,C(R,"propTypes",{suggestions:r.default.array.isRequired,onSuggestionsFetchRequested:function(e,t){var n=e[t];if("function"!==typeof n)throw new Error("'onSuggestionsFetchRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsFetchRequestedProp")},onSuggestionsClearRequested:function(e,t){var n=e[t];if(!1===e.alwaysRenderSuggestions&&"function"!==typeof n)throw new Error("'onSuggestionsClearRequested' must be implemented. See: https://github.com/moroshko/react-autosuggest#onSuggestionsClearRequestedProp")},shouldKeepSuggestionsOnSelect:r.default.func,onSuggestionSelected:r.default.func,onSuggestionHighlighted:r.default.func,renderInputComponent:r.default.func,renderSuggestionsContainer:r.default.func,getSuggestionValue:r.default.func.isRequired,renderSuggestion:r.default.func.isRequired,inputProps:function(e,t){var n=e[t];if(!n)throw new Error("'inputProps' must be passed.");if(!Object.prototype.hasOwnProperty.call(n,"value"))throw new Error("'inputProps' must have 'value'.");if(!Object.prototype.hasOwnProperty.call(n,"onChange"))throw new Error("'inputProps' must have 'onChange'.")},shouldRenderSuggestions:r.default.func,alwaysRenderSuggestions:r.default.bool,multiSection:r.default.bool,renderSectionTitle:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!==typeof n)throw new Error("'renderSectionTitle' must be implemented. See: https://github.com/moroshko/react-autosuggest#renderSectionTitleProp")},getSectionSuggestions:function(e,t){var n=e[t];if(!0===e.multiSection&&"function"!==typeof n)throw new Error("'getSectionSuggestions' must be implemented. See: https://github.com/moroshko/react-autosuggest#getSectionSuggestionsProp")},focusInputOnSuggestionClick:r.default.bool,highlightFirstSuggestion:r.default.bool,theme:r.default.object,id:r.default.string,containerProps:r.default.object}),C(R,"defaultProps",{renderSuggestionsContainer:function(e){var t=e.containerProps,n=e.children;return o.default.createElement("div",t,n)},shouldRenderSuggestions:function(e){return e.trim().length>0},alwaysRenderSuggestions:!1,multiSection:!1,shouldKeepSuggestionsOnSelect:function(){return!1},focusInputOnSuggestionClick:!0,highlightFirstSuggestion:!1,theme:a.defaultTheme,id:"1",containerProps:{}})},9198:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==g(e)&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(2791)),r=u(n(2007)),i=u(n(5201)),s=u(n(1016)),a=u(n(326)),l=u(n(5875));function u(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],o=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(l){r=!0,i=l}finally{try{o||null==a.return||a.return()}finally{if(r)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function g(e){return g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,t){return!t||"object"!==g(t)&&"function"!==typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E={},S=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(p,e);var t,n,r,u,c=(t=p,function(){var e,n=w(t);if(C()){var o=w(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return v(this,e)});function p(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),b(y(t=c.call(this,e)),"storeInputReference",(function(e){null!==e&&(t.input=e);var n=t.props.inputProps.ref;n&&("function"===typeof n?n(e):"object"===g(n)&&Object.prototype.hasOwnProperty.call(n,"current")&&(n.current=e))})),b(y(t),"storeItemsContainerReference",(function(e){null!==e&&(t.itemsContainer=e)})),b(y(t),"onHighlightedItemChange",(function(e){t.highlightedItem=e})),b(y(t),"getItemId",(function(e,n){if(null===n)return null;var o=t.props.id,r=null===e?"":"section-".concat(e);return"react-autowhatever-".concat(o,"-").concat(r,"-item-").concat(n)})),b(y(t),"onFocus",(function(e){var n=t.props.inputProps;t.setState({isInputFocused:!0}),n.onFocus&&n.onFocus(e)})),b(y(t),"onBlur",(function(e){var n=t.props.inputProps;t.setState({isInputFocused:!1}),n.onBlur&&n.onBlur(e)})),b(y(t),"onKeyDown",(function(e){var n=t.props,o=n.inputProps,r=n.highlightedSectionIndex,i=n.highlightedItemIndex,s=e.keyCode;switch(s){case 40:case 38:var a=40===s?"next":"prev",l=h(t.sectionIterator[a]([r,i]),2),u=l[0],c=l[1];o.onKeyDown(e,{newHighlightedSectionIndex:u,newHighlightedItemIndex:c});break;default:o.onKeyDown(e,{highlightedSectionIndex:r,highlightedItemIndex:i})}})),t.highlightedItem=null,t.state={isInputFocused:!1},t.setSectionsItems(e),t.setSectionIterator(e),t.setTheme(e),t}return n=p,(r=[{key:"componentDidMount",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.items!==this.props.items&&this.setSectionsItems(e),e.items===this.props.items&&e.multiSection===this.props.multiSection||this.setSectionIterator(e),e.theme!==this.props.theme&&this.setTheme(e)}},{key:"componentDidUpdate",value:function(){this.ensureHighlightedItemIsVisible()}},{key:"setSectionsItems",value:function(e){e.multiSection&&(this.sectionsItems=e.items.map((function(t){return e.getSectionItems(t)})),this.sectionsLengths=this.sectionsItems.map((function(e){return e.length})),this.allSectionsAreEmpty=this.sectionsLengths.every((function(e){return 0===e})))}},{key:"setSectionIterator",value:function(e){this.sectionIterator=(0,i.default)({multiSection:e.multiSection,data:e.multiSection?this.sectionsLengths:e.items.length})}},{key:"setTheme",value:function(e){this.theme=(0,s.default)(e.theme)}},{key:"renderSections",value:function(){var e=this;if(this.allSectionsAreEmpty)return null;var t=this.theme,n=this.props,r=n.id,i=n.items,s=n.renderItem,u=n.renderItemData,c=n.renderSectionTitle,p=n.highlightedSectionIndex,d=n.highlightedItemIndex,h=n.itemProps;return i.map((function(n,i){var f="react-autowhatever-".concat(r,"-"),g="".concat(f,"section-").concat(i,"-"),m=0===i;return o.default.createElement("div",t("".concat(g,"container"),"sectionContainer",m&&"sectionContainerFirst"),o.default.createElement(a.default,{section:n,renderSectionTitle:c,theme:t,sectionKeyPrefix:g}),o.default.createElement(l.default,{items:e.sectionsItems[i],itemProps:h,renderItem:s,renderItemData:u,sectionIndex:i,highlightedItemIndex:p===i?d:null,onHighlightedItemChange:e.onHighlightedItemChange,getItemId:e.getItemId,theme:t,keyPrefix:f,ref:e.storeItemsListReference}))}))}},{key:"renderItems",value:function(){var e=this.props.items;if(0===e.length)return null;var t=this.theme,n=this.props,r=n.id,i=n.renderItem,s=n.renderItemData,a=n.highlightedSectionIndex,u=n.highlightedItemIndex,c=n.itemProps;return o.default.createElement(l.default,{items:e,itemProps:c,renderItem:i,renderItemData:s,highlightedItemIndex:null===a?u:null,onHighlightedItemChange:this.onHighlightedItemChange,getItemId:this.getItemId,theme:t,keyPrefix:"react-autowhatever-".concat(r,"-")})}},{key:"ensureHighlightedItemIsVisible",value:function(){var e=this.highlightedItem;if(e){var t=this.itemsContainer,n=e.offsetParent===t?e.offsetTop:e.offsetTop-t.offsetTop,o=t.scrollTop;n<o?o=n:n+e.offsetHeight>o+t.offsetHeight&&(o=n+e.offsetHeight-t.offsetHeight),o!==t.scrollTop&&(t.scrollTop=o)}}},{key:"render",value:function(){var e=this.theme,t=this.props,n=t.id,r=t.multiSection,i=t.renderInputComponent,s=t.renderItemsContainer,a=t.highlightedSectionIndex,l=t.highlightedItemIndex,u=this.state.isInputFocused,c=r?this.renderSections():this.renderItems(),p=null!==c,h=this.getItemId(a,l),f="react-autowhatever-".concat(n),g=d({role:"combobox","aria-haspopup":"listbox","aria-owns":f,"aria-expanded":p},e("react-autowhatever-".concat(n,"-container"),"container",p&&"containerOpen"),{},this.props.containerProps),m=i(d({type:"text",value:"",autoComplete:"off","aria-autocomplete":"list","aria-controls":f,"aria-activedescendant":h},e("react-autowhatever-".concat(n,"-input"),"input",p&&"inputOpen",u&&"inputFocused"),{},this.props.inputProps,{onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.props.inputProps.onKeyDown&&this.onKeyDown,ref:this.storeInputReference})),v=s({containerProps:d({id:f,role:"listbox"},e("react-autowhatever-".concat(n,"-items-container"),"itemsContainer",p&&"itemsContainerOpen"),{ref:this.storeItemsContainerReference}),children:c});return o.default.createElement("div",g,m,v)}}])&&m(n.prototype,r),u&&m(n,u),p}(o.Component);t.default=S,b(S,"propTypes",{id:r.default.string,multiSection:r.default.bool,renderInputComponent:r.default.func,renderItemsContainer:r.default.func,items:r.default.array.isRequired,renderItem:r.default.func,renderItemData:r.default.object,renderSectionTitle:r.default.func,getSectionItems:r.default.func,containerProps:r.default.object,inputProps:r.default.object,itemProps:r.default.oneOfType([r.default.object,r.default.func]),highlightedSectionIndex:r.default.number,highlightedItemIndex:r.default.number,theme:r.default.oneOfType([r.default.object,r.default.array])}),b(S,"defaultProps",{id:"1",multiSection:!1,renderInputComponent:function(e){return o.default.createElement("input",e)},renderItemsContainer:function(e){var t=e.containerProps,n=e.children;return o.default.createElement("div",t,n)},renderItem:function(){throw new Error("`renderItem` must be provided")},renderItemData:E,renderSectionTitle:function(){throw new Error("`renderSectionTitle` must be provided")},getSectionItems:function(){throw new Error("`getSectionItems` must be provided")},containerProps:E,inputProps:E,itemProps:E,highlightedSectionIndex:null,highlightedItemIndex:null,theme:{container:"react-autowhatever__container",containerOpen:"react-autowhatever__container--open",input:"react-autowhatever__input",inputOpen:"react-autowhatever__input--open",inputFocused:"react-autowhatever__input--focused",itemsContainer:"react-autowhatever__items-container",itemsContainerOpen:"react-autowhatever__items-container--open",itemsList:"react-autowhatever__items-list",item:"react-autowhatever__item",itemFirst:"react-autowhatever__item--first",itemHighlighted:"react-autowhatever__item--highlighted",sectionContainer:"react-autowhatever__section-container",sectionContainerFirst:"react-autowhatever__section-container--first",sectionTitle:"react-autowhatever__section-title"}})},7391:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(2791)),r=s(n(2007)),i=s(n(8448));function s(e){return e&&e.__esModule?e:{default:e}}function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function l(e){return l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}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},u.apply(this,arguments)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function p(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(l,e);var t,n,r,s,a=(t=l,function(){var e,n=v(t);if(m()){var o=v(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return f(this,e)});function l(){var e;d(this,l);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return C(g(e=a.call.apply(a,[this].concat(n))),"storeItemReference",(function(t){null!==t&&(e.item=t)})),C(g(e),"onMouseEnter",(function(t){var n=e.props,o=n.sectionIndex,r=n.itemIndex;e.props.onMouseEnter(t,{sectionIndex:o,itemIndex:r})})),C(g(e),"onMouseLeave",(function(t){var n=e.props,o=n.sectionIndex,r=n.itemIndex;e.props.onMouseLeave(t,{sectionIndex:o,itemIndex:r})})),C(g(e),"onMouseDown",(function(t){var n=e.props,o=n.sectionIndex,r=n.itemIndex;e.props.onMouseDown(t,{sectionIndex:o,itemIndex:r})})),C(g(e),"onClick",(function(t){var n=e.props,o=n.sectionIndex,r=n.itemIndex;e.props.onClick(t,{sectionIndex:o,itemIndex:r})})),e}return n=l,r=[{key:"shouldComponentUpdate",value:function(e){return(0,i.default)(e,this.props,["renderItemData"])}},{key:"render",value:function(){var e=this.props,t=e.isHighlighted,n=e.item,r=e.renderItem,i=e.renderItemData,s=p(e,["isHighlighted","item","renderItem","renderItemData"]);return delete s.sectionIndex,delete s.itemIndex,"function"===typeof s.onMouseEnter&&(s.onMouseEnter=this.onMouseEnter),"function"===typeof s.onMouseLeave&&(s.onMouseLeave=this.onMouseLeave),"function"===typeof s.onMouseDown&&(s.onMouseDown=this.onMouseDown),"function"===typeof s.onClick&&(s.onClick=this.onClick),o.default.createElement("li",u({role:"option"},s,{ref:this.storeItemReference}),r(n,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({isHighlighted:t},i)))}}],r&&h(n.prototype,r),s&&h(n,s),l}(o.Component);t.default=w,C(w,"propTypes",{sectionIndex:r.default.number,isHighlighted:r.default.bool.isRequired,itemIndex:r.default.number.isRequired,item:r.default.any.isRequired,renderItem:r.default.func.isRequired,renderItemData:r.default.object.isRequired,onMouseEnter:r.default.func,onMouseLeave:r.default.func,onMouseDown:r.default.func,onClick:r.default.func})},5875:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(2791)),r=a(n(2007)),i=a(n(7391)),s=a(n(8448));function a(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function u(e){return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(){return c=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},c.apply(this,arguments)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(u,e);var t,n,r,a,l=(t=u,function(){var e,n=v(t);if(m()){var o=v(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return f(this,e)});function u(){var e;d(this,u);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return C(g(e=l.call.apply(l,[this].concat(n))),"storeHighlightedItemReference",(function(t){e.props.onHighlightedItemChange(null===t?null:t.item)})),e}return n=u,r=[{key:"shouldComponentUpdate",value:function(e){return(0,s.default)(e,this.props,["itemProps"])}},{key:"render",value:function(){var e=this,t=this.props,n=t.items,r=t.itemProps,s=t.renderItem,a=t.renderItemData,l=t.sectionIndex,u=t.highlightedItemIndex,d=t.getItemId,h=t.theme,f=t.keyPrefix,g=null===l?f:"".concat(f,"section-").concat(l,"-"),m="function"===typeof r;return o.default.createElement("ul",c({role:"listbox"},h("".concat(g,"items-list"),"itemsList")),n.map((function(t,n){var f=0===n,v=n===u,y="".concat(g,"item-").concat(n),w=m?r({sectionIndex:l,itemIndex:n}):r,_=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:d(l,n),"aria-selected":v},h(y,"item",f&&"itemFirst",v&&"itemHighlighted"),{},w);return v&&(_.ref=e.storeHighlightedItemReference),o.default.createElement(i.default,c({},_,{sectionIndex:l,isHighlighted:v,itemIndex:n,item:t,renderItem:s,renderItemData:a}))})))}}],r&&h(n.prototype,r),a&&h(n,a),u}(o.Component);t.default=w,C(w,"propTypes",{items:r.default.array.isRequired,itemProps:r.default.oneOfType([r.default.object,r.default.func]),renderItem:r.default.func.isRequired,renderItemData:r.default.object.isRequired,sectionIndex:r.default.number,highlightedItemIndex:r.default.number,onHighlightedItemChange:r.default.func.isRequired,getItemId:r.default.func.isRequired,theme:r.default.func.isRequired,keyPrefix:r.default.string.isRequired}),C(w,"defaultProps",{sectionIndex:null})},326:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!==typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(2791)),r=s(n(2007)),i=s(n(8448));function s(e){return e&&e.__esModule?e:{default:e}}function a(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function l(e){return l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function f(e,t){return f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},f(e,t)}var g,m,v,y=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(l,e);var t,n,r,s,a=(t=l,function(){var e,n=h(t);if(d()){var o=h(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return p(this,e)});function l(){return u(this,l),a.apply(this,arguments)}return n=l,(r=[{key:"shouldComponentUpdate",value:function(e){return(0,i.default)(e,this.props)}},{key:"render",value:function(){var e=this.props,t=e.section,n=e.renderSectionTitle,r=e.theme,i=e.sectionKeyPrefix,s=n(t);return s?o.default.createElement("div",r("".concat(i,"title"),"sectionTitle"),s):null}}])&&c(n.prototype,r),s&&c(n,s),l}(o.Component);t.default=y,g=y,m="propTypes",v={section:r.default.any.isRequired,renderSectionTitle:r.default.func.isRequired,theme:r.default.func.isRequired,sectionKeyPrefix:r.default.string.isRequired},m in g?Object.defineProperty(g,m,{value:v,enumerable:!0,configurable:!0,writable:!0}):g[m]=v},8448:function(e,t){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!0;var s,a,l={};for(s=0,a=o.length;s<a;s++)l[o[s]]=!0;for(s=0,a=r.length;s<a;s++){var u=r[s],c=e[u],p=t[u];if(c!==p){if(!l[u]||null===c||null===p||"object"!==n(c)||"object"!==n(p))return!0;var d=Object.keys(c),h=Object.keys(p);if(d.length!==h.length)return!0;for(var f=0,g=d.length;f<g;f++){var m=d[f];if(c[m]!==p[m])return!0}}}return!1}},9986:function(e,t,n){"use strict";e.exports=n(7511).default},9051:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToAutowhateverTheme=t.defaultTheme=void 0;t.defaultTheme={container:"react-autosuggest__container",containerOpen:"react-autosuggest__container--open",input:"react-autosuggest__input",inputOpen:"react-autosuggest__input--open",inputFocused:"react-autosuggest__input--focused",suggestionsContainer:"react-autosuggest__suggestions-container",suggestionsContainerOpen:"react-autosuggest__suggestions-container--open",suggestionsList:"react-autosuggest__suggestions-list",suggestion:"react-autosuggest__suggestion",suggestionFirst:"react-autosuggest__suggestion--first",suggestionHighlighted:"react-autosuggest__suggestion--highlighted",sectionContainer:"react-autosuggest__section-container",sectionContainerFirst:"react-autosuggest__section-container--first",sectionTitle:"react-autosuggest__section-title"};t.mapToAutowhateverTheme=function(e){var t={};for(var n in e)switch(n){case"suggestionsContainer":t.itemsContainer=e[n];break;case"suggestionsContainerOpen":t.itemsContainerOpen=e[n];break;case"suggestion":t.item=e[n];break;case"suggestionFirst":t.itemFirst=e[n];break;case"suggestionHighlighted":t.itemHighlighted=e[n];break;case"suggestionsList":t.itemsList=e[n];break;default:t[n]=e[n]}return t}},1071:function(e,t,n){"use strict";var o=n(2791);function r(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 i=Object.prototype.hasOwnProperty,s=/^[: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]*$/,a={},l={};function u(e){return!!i.call(l,e)||!i.call(a,e)&&(s.test(e)?l[e]=!0:(a[e]=!0,!1))}function c(e,t,n,o,r,i,s){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,this.removeEmptyString=s}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){p[e]=new c(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];p[t]=new c(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){p[e]=new c(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){p[e]=new c(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){p[e]=new c(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){p[e]=new c(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){p[e]=new c(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){p[e]=new c(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){p[e]=new c(e,5,!1,e.toLowerCase(),null,!1,!1)}));var d=/[\-:]([a-z])/g;function h(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(d,h);p[t]=new c(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(d,h);p[t]=new c(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(d,h);p[t]=new c(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){p[e]=new c(e,1,!1,e.toLowerCase(),null,!1,!1)})),p.xlinkHref=new c("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){p[e]=new c(e,1,!1,e.toLowerCase(),null,!0,!0)}));var f={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},g=["Webkit","ms","Moz","O"];Object.keys(f).forEach((function(e){g.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),f[t]=f[e]}))}));var m=/["'&<>]/;function v(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=m.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}var y=/([A-Z])/g,C=/^ms-/,w=Array.isArray;function _(e,t){return{insertionMode:e,selectedValue:t}}var b=new Map;function E(e,t,n){if("object"!==typeof n)throw Error(r(62));for(var o in t=!0,n)if(i.call(n,o)){var s=n[o];if(null!=s&&"boolean"!==typeof s&&""!==s){if(0===o.indexOf("--")){var a=v(o);s=v((""+s).trim())}else{a=o;var l=b.get(a);void 0!==l||(l=v(a.replace(y,"-$1").toLowerCase().replace(C,"-ms-")),b.set(a,l)),a=l,s="number"===typeof s?0===s||i.call(f,o)?""+s:s+"px":v((""+s).trim())}t?(t=!1,e.push(' style="',a,":",s)):e.push(";",a,":",s)}}t||e.push('"')}function S(e,t,n,o){switch(n){case"style":return void E(e,t,o);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=p.hasOwnProperty(n)?p[n]:null)){switch(typeof o){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:o&&e.push(" ",n,'=""');break;case 4:!0===o?e.push(" ",n,'=""'):!1!==o&&e.push(" ",n,'="',v(o),'"');break;case 5:isNaN(o)||e.push(" ",n,'="',v(o),'"');break;case 6:!isNaN(o)&&1<=o&&e.push(" ",n,'="',v(o),'"');break;default:t.sanitizeURL&&(o=""+o),e.push(" ",n,'="',v(o),'"')}}else if(u(n)){switch(typeof o){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",n,'="',v(o),'"')}}function R(e,t,n){if(null!=t){if(null!=n)throw Error(r(60));if("object"!==typeof t||!("__html"in t))throw Error(r(61));null!==(t=t.__html)&&void 0!==t&&e.push(""+t)}}function O(e,t,n,o){e.push(A(n));var r,s=n=null;for(r in t)if(i.call(t,r)){var a=t[r];if(null!=a)switch(r){case"children":n=a;break;case"dangerouslySetInnerHTML":s=a;break;default:S(e,o,r,a)}}return e.push(">"),R(e,s,n),"string"===typeof n?(e.push(v(n)),null):n}var T=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,P=new Map;function A(e){var t=P.get(e);if(void 0===t){if(!T.test(e))throw Error(r(65,e));t="<"+e,P.set(e,t)}return t}function D(e,t,n,s,a){switch(t){case"select":e.push(A("select"));var l=null,c=null;for(f in n)if(i.call(n,f)){var p=n[f];if(null!=p)switch(f){case"children":l=p;break;case"dangerouslySetInnerHTML":c=p;break;case"defaultValue":case"value":break;default:S(e,s,f,p)}}return e.push(">"),R(e,c,l),l;case"option":c=a.selectedValue,e.push(A("option"));var d=p=null,h=null,f=null;for(l in n)if(i.call(n,l)){var g=n[l];if(null!=g)switch(l){case"children":p=g;break;case"selected":h=g;break;case"dangerouslySetInnerHTML":f=g;break;case"value":d=g;default:S(e,s,l,g)}}if(null!=c)if(n=null!==d?""+d:function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(p),w(c)){for(s=0;s<c.length;s++)if(""+c[s]===n){e.push(' selected=""');break}}else""+c===n&&e.push(' selected=""');else h&&e.push(' selected=""');return e.push(">"),R(e,f,p),p;case"textarea":for(p in e.push(A("textarea")),f=c=l=null,n)if(i.call(n,p)&&null!=(d=n[p]))switch(p){case"children":f=d;break;case"value":l=d;break;case"defaultValue":c=d;break;case"dangerouslySetInnerHTML":throw Error(r(91));default:S(e,s,p,d)}if(null===l&&null!==c&&(l=c),e.push(">"),null!=f){if(null!=l)throw Error(r(92));if(w(f)&&1<f.length)throw Error(r(93));l=""+f}return"string"===typeof l&&"\n"===l[0]&&e.push("\n"),null!==l&&e.push(v(""+l)),null;case"input":for(c in e.push(A("input")),d=f=p=l=null,n)if(i.call(n,c)&&null!=(h=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"input"));case"defaultChecked":d=h;break;case"defaultValue":p=h;break;case"checked":f=h;break;case"value":l=h;break;default:S(e,s,c,h)}return null!==f?S(e,s,"checked",f):null!==d&&S(e,s,"checked",d),null!==l?S(e,s,"value",l):null!==p&&S(e,s,"value",p),e.push("/>"),null;case"menuitem":for(var m in e.push(A("menuitem")),n)if(i.call(n,m)&&null!=(l=n[m]))switch(m){case"children":case"dangerouslySetInnerHTML":throw Error(r(400));default:S(e,s,m,l)}return e.push(">"),null;case"title":for(g in e.push(A("title")),l=null,n)if(i.call(n,g)&&null!=(c=n[g]))switch(g){case"children":l=c;break;case"dangerouslySetInnerHTML":throw Error(r(434));default:S(e,s,g,c)}return e.push(">"),l;case"listing":case"pre":for(d in e.push(A(t)),c=l=null,n)if(i.call(n,d)&&null!=(p=n[d]))switch(d){case"children":l=p;break;case"dangerouslySetInnerHTML":c=p;break;default:S(e,s,d,p)}if(e.push(">"),null!=c){if(null!=l)throw Error(r(60));if("object"!==typeof c||!("__html"in c))throw Error(r(61));null!==(n=c.__html)&&void 0!==n&&("string"===typeof n&&0<n.length&&"\n"===n[0]?e.push("\n",n):e.push(""+n))}return"string"===typeof l&&"\n"===l[0]&&e.push("\n"),l;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var y in e.push(A(t)),n)if(i.call(n,y)&&null!=(l=n[y]))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,t));default:S(e,s,y,l)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return O(e,n,t,s);case"html":return 0===a.insertionMode&&e.push("<!DOCTYPE html>"),O(e,n,t,s);default:if(-1===t.indexOf("-")&&"string"!==typeof n.is)return O(e,n,t,s);for(h in e.push(A(t)),c=l=null,n)if(i.call(n,h)&&null!=(p=n[h]))switch(h){case"children":l=p;break;case"dangerouslySetInnerHTML":c=p;break;case"style":E(e,s,p);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:u(h)&&"function"!==typeof p&&"symbol"!==typeof p&&e.push(" ",h,'="',v(p),'"')}return e.push(">"),R(e,c,l),l}}function x(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(r(395));return e.push(n),e.push('"></template>')}var N=/[<\u2028\u2029]/g;function M(e){return JSON.stringify(e).replace(N,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}function I(e,t,n,o){return n.generateStaticMarkup?(e.push(v(t)),!1):(""===t?e=o:(o&&e.push("\x3c!-- --\x3e"),e.push(v(t)),e=!0),e)}var L=Object.assign,F=Symbol.for("react.element"),k=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),V=Symbol.for("react.provider"),W=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),K=Symbol.for("react.scope"),q=Symbol.for("react.debug_trace_mode"),X=Symbol.for("react.legacy_hidden"),Q=Symbol.for("react.default_value"),J=Symbol.iterator;function $(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 G:return"Fragment";case k:return"Portal";case B:return"Profiler";case H:return"StrictMode";case U:return"Suspense";case z:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case W:return(e.displayName||"Context")+".Consumer";case V:return(e._context.displayName||"Context")+".Provider";case j:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return null!==(t=e.displayName||null)?t:$(e.type)||"Memo";case Y:t=e._payload,e=e._init;try{return $(e(t))}catch(n){}}return null}var ee={};function te(e,t){if(!(e=e.contextTypes))return ee;var n,o={};for(n in e)o[n]=t[n];return o}var ne=null;function oe(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(r(401))}else{if(null===n)throw Error(r(401));oe(e,n)}t.context._currentValue2=t.value}}function re(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&re(e)}function ie(e){var t=e.parent;null!==t&&ie(t),e.context._currentValue2=e.value}function se(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(r(402));e.depth===t.depth?oe(e,t):se(e,t)}function ae(e,t){var n=t.parent;if(null===n)throw Error(r(402));e.depth===n.depth?oe(e,n):ae(e,n),t.context._currentValue2=t.value}function le(e){var t=ne;t!==e&&(null===t?ie(e):null===e?re(t):t.depth===e.depth?oe(t,e):t.depth>e.depth?se(t,e):ae(t,e),ne=e)}var ue={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function ce(e,t,n,o){var r=void 0!==e.state?e.state:null;e.updater=ue,e.props=n,e.state=r;var i={queue:[],replace:!1};e._reactInternals=i;var s=t.contextType;if(e.context="object"===typeof s&&null!==s?s._currentValue2:o,"function"===typeof(s=t.getDerivedStateFromProps)&&(r=null===(s=s(n,r))||void 0===s?r:L({},r,s),e.state=r),"function"!==typeof t.getDerivedStateFromProps&&"function"!==typeof e.getSnapshotBeforeUpdate&&("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount))if(t=e.state,"function"===typeof e.componentWillMount&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&ue.enqueueReplaceState(e,e.state,null),null!==i.queue&&0<i.queue.length)if(t=i.queue,s=i.replace,i.queue=null,i.replace=!1,s&&1===t.length)e.state=t[0];else{for(i=s?t[0]:e.state,r=!0,s=s?1:0;s<t.length;s++){var a=t[s];null!=(a="function"===typeof a?a.call(e,i,n,o):a)&&(r?(r=!1,i=L({},i,a)):L(i,a))}e.state=i}else i.queue=null}var pe={id:1,overflow:""};function de(e,t,n){var o=e.id;e=e.overflow;var r=32-he(o)-1;o&=~(1<<r),n+=1;var i=32-he(t)+r;if(30<i){var s=r-r%5;return i=(o&(1<<s)-1).toString(32),o>>=s,r-=s,{id:1<<32-he(t)+r|n<<r|o,overflow:i+e}}return{id:1<<i|n<<r|o,overflow:e}}var he=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(fe(e)/ge|0)|0},fe=Math.log,ge=Math.LN2;var me="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},ve=null,ye=null,Ce=null,we=null,_e=!1,be=!1,Ee=0,Se=null,Re=0;function Oe(){if(null===ve)throw Error(r(321));return ve}function Te(){if(0<Re)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function Pe(){return null===we?null===Ce?(_e=!1,Ce=we=Te()):(_e=!0,we=Ce):null===we.next?(_e=!1,we=we.next=Te()):(_e=!0,we=we.next),we}function Ae(){ye=ve=null,be=!1,Ce=null,Re=0,we=Se=null}function De(e,t){return"function"===typeof t?t(e):t}function xe(e,t,n){if(ve=Oe(),we=Pe(),_e){var o=we.queue;if(t=o.dispatch,null!==Se&&void 0!==(n=Se.get(o))){Se.delete(o),o=we.memoizedState;do{o=e(o,n.action),n=n.next}while(null!==n);return we.memoizedState=o,[o,t]}return[we.memoizedState,t]}return e=e===De?"function"===typeof t?t():t:void 0!==n?n(t):t,we.memoizedState=e,e=(e=we.queue={last:null,dispatch:null}).dispatch=Me.bind(null,ve,e),[we.memoizedState,e]}function Ne(e,t){if(ve=Oe(),t=void 0===t?null:t,null!==(we=Pe())){var n=we.memoizedState;if(null!==n&&null!==t){var o=n[1];e:if(null===o)o=!1;else{for(var r=0;r<o.length&&r<t.length;r++)if(!me(t[r],o[r])){o=!1;break e}o=!0}if(o)return n[0]}}return e=e(),we.memoizedState=[e,t],e}function Me(e,t,n){if(25<=Re)throw Error(r(301));if(e===ve)if(be=!0,e={action:n,next:null},null===Se&&(Se=new Map),void 0===(n=Se.get(t)))Se.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Ie(){throw Error(r(394))}function Le(){}var Fe={readContext:function(e){return e._currentValue2},useContext:function(e){return Oe(),e._currentValue2},useMemo:Ne,useReducer:xe,useRef:function(e){ve=Oe();var t=(we=Pe()).memoizedState;return null===t?(e={current:e},we.memoizedState=e):t},useState:function(e){return xe(De,e)},useInsertionEffect:Le,useLayoutEffect:function(){},useCallback:function(e,t){return Ne((function(){return e}),t)},useImperativeHandle:Le,useEffect:Le,useDebugValue:Le,useDeferredValue:function(e){return Oe(),e},useTransition:function(){return Oe(),[!1,Ie]},useId:function(){var e=ye.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-he(e)-1)).toString(32)+t;var n=ke;if(null===n)throw Error(r(404));return t=Ee++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Oe(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(r(407));return n()}},ke=null,Ge=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function He(e){return console.error(e),null}function Be(){}function Ve(e,t,n,o,r,i,s,a){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&nt(e)},blockedBoundary:n,blockedSegment:o,abortSet:r,legacyContext:i,context:s,treeContext:a};return r.add(l),l}function We(e,t,n,o,r,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:o,boundary:n,lastPushedText:r,textEmbedded:i}}function je(e,t){if(null!=(e=e.onError(t))&&"string"!==typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function Ue(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function ze(e,t,n,o,r){for(ve={},ye=t,Ee=0,e=n(o,r);be;)be=!1,Ee=0,Re+=1,we=null,e=n(o,r);return Ae(),e}function Ze(e,t,n,o){var i=n.render(),s=o.childContextTypes;if(null!==s&&void 0!==s){var a=t.legacyContext;if("function"!==typeof n.getChildContext)o=a;else{for(var l in n=n.getChildContext())if(!(l in s))throw Error(r(108,$(o)||"Unknown",l));o=L({},a,n)}t.legacyContext=o,qe(e,t,i),t.legacyContext=a}else qe(e,t,i)}function Ye(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Ke(e,t,n,o,i){if("function"===typeof n)if(n.prototype&&n.prototype.isReactComponent){i=te(n,t.legacyContext);var s=n.contextType;ce(s=new n(o,"object"===typeof s&&null!==s?s._currentValue2:i),n,o,i),Ze(e,t,s,n)}else{i=ze(e,t,n,o,s=te(n,t.legacyContext));var a=0!==Ee;if("object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof)ce(i,n,o,s),Ze(e,t,i,n);else if(a){o=t.treeContext,t.treeContext=de(o,1,0);try{qe(e,t,i)}finally{t.treeContext=o}}else qe(e,t,i)}else{if("string"!==typeof n){switch(n){case X:case q:case H:case B:case G:case z:return void qe(e,t,o.children);case K:throw Error(r(343));case U:e:{n=t.blockedBoundary,i=t.blockedSegment,s=o.fallback,o=o.children;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a=new Set,errorDigest:null},u=We(0,i.chunks.length,l,i.formatContext,!1,!1);i.children.push(u),i.lastPushedText=!1;var c=We(0,0,null,i.formatContext,!1,!1);c.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=c;try{if(Qe(e,t,o),e.responseState.generateStaticMarkup||c.lastPushedText&&c.textEmbedded&&c.chunks.push("\x3c!-- --\x3e"),c.status=1,et(l,c),0===l.pendingTasks)break e}catch(p){c.status=4,l.forceClientRender=!0,l.errorDigest=je(e,p)}finally{t.blockedBoundary=n,t.blockedSegment=i}t=Ve(e,s,n,u,a,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"===typeof n&&null!==n)switch(n.$$typeof){case j:if(o=ze(e,t,n.render,o,i),0!==Ee){n=t.treeContext,t.treeContext=de(n,1,0);try{qe(e,t,o)}finally{t.treeContext=n}}else qe(e,t,o);return;case Z:return void Ke(e,t,n=n.type,o=Ye(n,o),i);case V:if(i=o.children,n=n._context,o=o.value,s=n._currentValue2,n._currentValue2=o,ne=o={parent:a=ne,depth:null===a?0:a.depth+1,context:n,parentValue:s,value:o},t.context=o,qe(e,t,i),null===(e=ne))throw Error(r(403));return o=e.parentValue,e.context._currentValue2=o===Q?e.context._defaultValue:o,e=ne=e.parent,void(t.context=e);case W:return void qe(e,t,o=(o=o.children)(n._currentValue2));case Y:return void Ke(e,t,n=(i=n._init)(n._payload),o=Ye(n,o),void 0)}throw Error(r(130,null==n?n:typeof n,""))}switch(s=D((i=t.blockedSegment).chunks,n,o,e.responseState,i.formatContext),i.lastPushedText=!1,a=i.formatContext,i.formatContext=function(e,t,n){switch(t){case"select":return _(1,null!=n.value?n.value:n.defaultValue);case"svg":return _(2,null);case"math":return _(3,null);case"foreignObject":return _(1,null);case"table":return _(4,null);case"thead":case"tbody":case"tfoot":return _(5,null);case"colgroup":return _(7,null);case"tr":return _(6,null)}return 4<=e.insertionMode||0===e.insertionMode?_(1,null):e}(a,n,o),Qe(e,t,s),i.formatContext=a,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:i.chunks.push("</",n,">")}i.lastPushedText=!1}}function qe(e,t,n){if(t.node=n,"object"===typeof n&&null!==n){switch(n.$$typeof){case F:return void Ke(e,t,n.type,n.props,n.ref);case k:throw Error(r(257));case Y:var o=n._init;return void qe(e,t,n=o(n._payload))}if(w(n))return void Xe(e,t,n);if(null===n||"object"!==typeof n?o=null:o="function"===typeof(o=J&&n[J]||n["@@iterator"])?o:null,o&&(o=o.call(n))){if(!(n=o.next()).done){var i=[];do{i.push(n.value),n=o.next()}while(!n.done);Xe(e,t,i)}return}throw e=Object.prototype.toString.call(n),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"===typeof n?(o=t.blockedSegment).lastPushedText=I(t.blockedSegment.chunks,n,e.responseState,o.lastPushedText):"number"===typeof n&&((o=t.blockedSegment).lastPushedText=I(t.blockedSegment.chunks,""+n,e.responseState,o.lastPushedText))}function Xe(e,t,n){for(var o=n.length,r=0;r<o;r++){var i=t.treeContext;t.treeContext=de(i,o,r);try{Qe(e,t,n[r])}finally{t.treeContext=i}}}function Qe(e,t,n){var o=t.blockedSegment.formatContext,r=t.legacyContext,i=t.context;try{return qe(e,t,n)}catch(l){if(Ae(),"object"!==typeof l||null===l||"function"!==typeof l.then)throw t.blockedSegment.formatContext=o,t.legacyContext=r,t.context=i,le(i),l;n=l;var s=t.blockedSegment,a=We(0,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=Ve(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=o,t.legacyContext=r,t.context=i,le(i)}}function Je(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,tt(this,t,e)}function $e(e,t,n){var o=e.blockedBoundary;e.blockedSegment.status=3,null===o?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(o.pendingTasks--,o.forceClientRender||(o.forceClientRender=!0,e=void 0===n?Error(r(432)):n,o.errorDigest=t.onError(e),o.parentFlushed&&t.clientRenderedBoundaries.push(o)),o.fallbackAbortableTasks.forEach((function(e){return $e(e,t,n)})),o.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(o=t.onAllReady)())}function et(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&et(e,n)}else e.completedSegments.push(t)}function tt(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(r(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=Be,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&et(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Je,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(et(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function nt(e){if(2!==e.status){var t=ne,n=Ge.current;Ge.current=Fe;var o=ke;ke=e.responseState;try{var r,i=e.pingedTasks;for(r=0;r<i.length;r++){var s=i[r],a=e,l=s.blockedSegment;if(0===l.status){le(s.context);try{qe(a,s,s.node),a.responseState.generateStaticMarkup||l.lastPushedText&&l.textEmbedded&&l.chunks.push("\x3c!-- --\x3e"),s.abortSet.delete(s),l.status=1,tt(a,s.blockedBoundary,l)}catch(h){if(Ae(),"object"===typeof h&&null!==h&&"function"===typeof h.then){var u=s.ping;h.then(u,u)}else{s.abortSet.delete(s),l.status=4;var c=s.blockedBoundary,p=h,d=je(a,p);if(null===c?Ue(a,p):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=d,c.parentFlushed&&a.clientRenderedBoundaries.push(c))),a.allPendingTasks--,0===a.allPendingTasks)(0,a.onAllReady)()}}}}i.splice(0,r),null!==e.destination&&lt(e,e.destination)}catch(h){je(e,h),Ue(e,h)}finally{ke=o,Ge.current=n,n===Fe&&le(t)}}}function ot(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var o=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=o.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var i=!0;o=n.chunks;var s=0;n=n.children;for(var a=0;a<n.length;a++){for(i=n[a];s<i.index;s++)t.push(o[s]);i=rt(e,t,i)}for(;s<o.length-1;s++)t.push(o[s]);return s<o.length&&(i=t.push(o[s])),i;default:throw Error(r(390))}}function rt(e,t,n){var o=n.boundary;if(null===o)return ot(e,t,n);if(o.parentFlushed=!0,o.forceClientRender)return e.responseState.generateStaticMarkup||(o=o.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),o&&(t.push(' data-dgst="'),o=v(o),t.push(o),t.push('"')),t.push("></template>")),ot(e,t,n),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<o.pendingTasks){o.rootSegmentID=e.nextSegmentId++,0<o.completedSegments.length&&e.partialBoundaries.push(o);var i=e.responseState,s=i.nextSuspenseID++;return i=i.boundaryPrefix+s.toString(16),o=o.id=i,x(t,e.responseState,o),ot(e,t,n),t.push("\x3c!--/$--\x3e")}if(o.byteSize>e.progressiveChunkSize)return o.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(o),x(t,e.responseState,o.id),ot(e,t,n),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(n=o.completedSegments).length)throw Error(r(391));return rt(e,t,n[0]),e=!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function it(e,t,n){return function(e,t,n,o){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');default:throw Error(r(397))}}(t,e.responseState,n.formatContext,n.id),rt(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(r(397))}}(t,n.formatContext)}function st(e,t,n){for(var o=n.completedSegments,i=0;i<o.length;i++)at(e,t,n,o[i]);if(o.length=0,e=e.responseState,o=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===o)throw Error(r(395));return n=n.toString(16),t.push(o),t.push('","'),t.push(e.segmentPrefix),t.push(n),t.push('")<\/script>')}function at(e,t,n,o){if(2===o.status)return!0;var i=o.id;if(-1===i){if(-1===(o.id=n.rootSegmentID))throw Error(r(392));return it(e,t,o)}return it(e,t,o),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),i=i.toString(16),t.push(i),t.push('","'),t.push(e.placeholderPrefix),t.push(i),t.push('")<\/script>')}function lt(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){rt(e,t,n),e.completedRootSegment=null;var o=e.responseState.bootstrapChunks;for(n=0;n<o.length-1;n++)t.push(o[n]);n<o.length&&t.push(o[n])}var i,s=e.clientRenderedBoundaries;for(i=0;i<s.length;i++){var a=s[i];o=t;var l=e.responseState,u=a.id,c=a.errorDigest,p=a.errorMessage,d=a.errorComponentStack;if(o.push(l.startInlineScript),l.sentClientRenderFunction?o.push('$RX("'):(l.sentClientRenderFunction=!0,o.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===u)throw Error(r(395));if(o.push(u),o.push('"'),c||p||d){o.push(",");var h=M(c||"");o.push(h)}if(p||d){o.push(",");var f=M(p||"");o.push(f)}if(d){o.push(",");var g=M(d);o.push(g)}if(!o.push(")<\/script>"))return e.destination=null,i++,void s.splice(0,i)}s.splice(0,i);var m=e.completedBoundaries;for(i=0;i<m.length;i++)if(!st(e,t,m[i]))return e.destination=null,i++,void m.splice(0,i);m.splice(0,i);var v=e.partialBoundaries;for(i=0;i<v.length;i++){var y=v[i];e:{s=e,a=t;var C=y.completedSegments;for(l=0;l<C.length;l++)if(!at(s,a,y,C[l])){l++,C.splice(0,l);var w=!1;break e}C.splice(0,l),w=!0}if(!w)return e.destination=null,i++,void v.splice(0,i)}v.splice(0,i);var _=e.completedBoundaries;for(i=0;i<_.length;i++)if(!st(e,t,_[i]))return e.destination=null,i++,void _.splice(0,i);_.splice(0,i)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function ut(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return $e(n,e,t)})),n.clear(),null!==e.destination&&lt(e,e.destination)}catch(o){je(e,o),Ue(e,o)}}function ct(){}function pt(e,t,n,o){var i=!1,s=null,a="",l={push:function(e){return null!==e&&(a+=e),!0},destroy:function(e){i=!0,s=e}},u=!1;if(e=function(e,t,n,o,r,i,s,a,l){var u=[],c=new Set;return(n=We(t={destination:null,responseState:t,progressiveChunkSize:void 0===o?12800:o,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===r?He:r,onAllReady:void 0===i?Be:i,onShellReady:void 0===s?Be:s,onShellError:void 0===a?Be:a,onFatalError:void 0===l?Be:l},0,null,n,!1,!1)).parentFlushed=!0,e=Ve(t,e,null,n,c,ee,null,pe),u.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(t=void 0===t?"":t)+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(n,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ct,void 0,(function(){u=!0}),void 0,void 0),nt(e),ut(e,o),1===e.status)e.status=2,l.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=l;try{lt(e,l)}catch(c){je(e,c),Ue(e,c)}}if(i)throw s;if(!u)throw Error(r(426));return a}t.renderToNodeStream=function(){throw Error(r(207))},t.renderToStaticMarkup=function(e,t){return pt(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.renderToStaticNodeStream=function(){throw Error(r(208))},t.renderToString=function(e,t){return pt(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.version="18.2.0"},4424:function(e,t,n){"use strict";var o=n(2791);function r(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 i=null,s=0;function a(e,t){if(0!==t.length)if(512<t.length)0<s&&(e.enqueue(new Uint8Array(i.buffer,0,s)),i=new Uint8Array(512),s=0),e.enqueue(t);else{var n=i.length-s;n<t.length&&(0===n?e.enqueue(i):(i.set(t.subarray(0,n),s),e.enqueue(i),t=t.subarray(n)),i=new Uint8Array(512),s=0),i.set(t,s),s+=t.length}}function l(e,t){return a(e,t),!0}function u(e){i&&0<s&&(e.enqueue(new Uint8Array(i.buffer,0,s)),i=null,s=0)}var c=new TextEncoder;function p(e){return c.encode(e)}function d(e){return c.encode(e)}function h(e,t){"function"===typeof e.error?e.error(t):e.close()}var f=Object.prototype.hasOwnProperty,g=/^[: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]*$/,m={},v={};function y(e){return!!f.call(v,e)||!f.call(m,e)&&(g.test(e)?v[e]=!0:(m[e]=!0,!1))}function C(e,t,n,o,r,i,s){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,this.removeEmptyString=s}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){w[e]=new C(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];w[t]=new C(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){w[e]=new C(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){w[e]=new C(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){w[e]=new C(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){w[e]=new C(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){w[e]=new C(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){w[e]=new C(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){w[e]=new C(e,5,!1,e.toLowerCase(),null,!1,!1)}));var _=/[\-:]([a-z])/g;function b(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(_,b);w[t]=new C(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(_,b);w[t]=new C(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(_,b);w[t]=new C(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){w[e]=new C(e,1,!1,e.toLowerCase(),null,!1,!1)})),w.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){w[e]=new C(e,1,!1,e.toLowerCase(),null,!0,!0)}));var E={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},S=["Webkit","ms","Moz","O"];Object.keys(E).forEach((function(e){S.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),E[t]=E[e]}))}));var R=/["'&<>]/;function O(e){if("boolean"===typeof e||"number"===typeof e)return""+e;e=""+e;var t=R.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}var T=/([A-Z])/g,P=/^ms-/,A=Array.isArray,D=d("<script>"),x=d("<\/script>"),N=d('<script src="'),M=d('<script type="module" src="'),I=d('" async=""><\/script>'),L=/(<\/|<)(s)(cript)/gi;function F(e,t,n,o){return t+("s"===n?"\\u0073":"\\u0053")+o}function k(e,t){return{insertionMode:e,selectedValue:t}}var G=d("\x3c!-- --\x3e");function H(e,t,n,o){return""===t?o:(o&&e.push(G),e.push(p(O(t))),!0)}var B=new Map,V=d(' style="'),W=d(":"),j=d(";");function U(e,t,n){if("object"!==typeof n)throw Error(r(62));for(var o in t=!0,n)if(f.call(n,o)){var i=n[o];if(null!=i&&"boolean"!==typeof i&&""!==i){if(0===o.indexOf("--")){var s=p(O(o));i=p(O((""+i).trim()))}else{s=o;var a=B.get(s);void 0!==a||(a=d(O(s.replace(T,"-$1").toLowerCase().replace(P,"-ms-"))),B.set(s,a)),s=a,i="number"===typeof i?0===i||f.call(E,o)?p(""+i):p(i+"px"):p(O((""+i).trim()))}t?(t=!1,e.push(V,s,W,i)):e.push(j,s,W,i)}}t||e.push(Y)}var z=d(" "),Z=d('="'),Y=d('"'),K=d('=""');function q(e,t,n,o){switch(n){case"style":return void U(e,t,o);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=w.hasOwnProperty(n)?w[n]:null)){switch(typeof o){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=p(t.attributeName),t.type){case 3:o&&e.push(z,n,K);break;case 4:!0===o?e.push(z,n,K):!1!==o&&e.push(z,n,Z,p(O(o)),Y);break;case 5:isNaN(o)||e.push(z,n,Z,p(O(o)),Y);break;case 6:!isNaN(o)&&1<=o&&e.push(z,n,Z,p(O(o)),Y);break;default:t.sanitizeURL&&(o=""+o),e.push(z,n,Z,p(O(o)),Y)}}else if(y(n)){switch(typeof o){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(z,p(n),Z,p(O(o)),Y)}}var X=d(">"),Q=d("/>");function J(e,t,n){if(null!=t){if(null!=n)throw Error(r(60));if("object"!==typeof t||!("__html"in t))throw Error(r(61));null!==(t=t.__html)&&void 0!==t&&e.push(p(""+t))}}var $=d(' selected=""');function ee(e,t,n,o){e.push(re(n));var r,i=n=null;for(r in t)if(f.call(t,r)){var s=t[r];if(null!=s)switch(r){case"children":n=s;break;case"dangerouslySetInnerHTML":i=s;break;default:q(e,o,r,s)}}return e.push(X),J(e,i,n),"string"===typeof n?(e.push(p(O(n))),null):n}var te=d("\n"),ne=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,oe=new Map;function re(e){var t=oe.get(e);if(void 0===t){if(!ne.test(e))throw Error(r(65,e));t=d("<"+e),oe.set(e,t)}return t}var ie=d("<!DOCTYPE html>");function se(e,t,n,i,s){switch(t){case"select":e.push(re("select"));var a=null,l=null;for(h in n)if(f.call(n,h)){var u=n[h];if(null!=u)switch(h){case"children":a=u;break;case"dangerouslySetInnerHTML":l=u;break;case"defaultValue":case"value":break;default:q(e,i,h,u)}}return e.push(X),J(e,l,a),a;case"option":l=s.selectedValue,e.push(re("option"));var c=u=null,d=null,h=null;for(a in n)if(f.call(n,a)){var g=n[a];if(null!=g)switch(a){case"children":u=g;break;case"selected":d=g;break;case"dangerouslySetInnerHTML":h=g;break;case"value":c=g;default:q(e,i,a,g)}}if(null!=l)if(n=null!==c?""+c:function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(u),A(l)){for(i=0;i<l.length;i++)if(""+l[i]===n){e.push($);break}}else""+l===n&&e.push($);else d&&e.push($);return e.push(X),J(e,h,u),u;case"textarea":for(u in e.push(re("textarea")),h=l=a=null,n)if(f.call(n,u)&&null!=(c=n[u]))switch(u){case"children":h=c;break;case"value":a=c;break;case"defaultValue":l=c;break;case"dangerouslySetInnerHTML":throw Error(r(91));default:q(e,i,u,c)}if(null===a&&null!==l&&(a=l),e.push(X),null!=h){if(null!=a)throw Error(r(92));if(A(h)&&1<h.length)throw Error(r(93));a=""+h}return"string"===typeof a&&"\n"===a[0]&&e.push(te),null!==a&&e.push(p(O(""+a))),null;case"input":for(l in e.push(re("input")),c=h=u=a=null,n)if(f.call(n,l)&&null!=(d=n[l]))switch(l){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"input"));case"defaultChecked":c=d;break;case"defaultValue":u=d;break;case"checked":h=d;break;case"value":a=d;break;default:q(e,i,l,d)}return null!==h?q(e,i,"checked",h):null!==c&&q(e,i,"checked",c),null!==a?q(e,i,"value",a):null!==u&&q(e,i,"value",u),e.push(Q),null;case"menuitem":for(var m in e.push(re("menuitem")),n)if(f.call(n,m)&&null!=(a=n[m]))switch(m){case"children":case"dangerouslySetInnerHTML":throw Error(r(400));default:q(e,i,m,a)}return e.push(X),null;case"title":for(g in e.push(re("title")),a=null,n)if(f.call(n,g)&&null!=(l=n[g]))switch(g){case"children":a=l;break;case"dangerouslySetInnerHTML":throw Error(r(434));default:q(e,i,g,l)}return e.push(X),a;case"listing":case"pre":for(c in e.push(re(t)),l=a=null,n)if(f.call(n,c)&&null!=(u=n[c]))switch(c){case"children":a=u;break;case"dangerouslySetInnerHTML":l=u;break;default:q(e,i,c,u)}if(e.push(X),null!=l){if(null!=a)throw Error(r(60));if("object"!==typeof l||!("__html"in l))throw Error(r(61));null!==(n=l.__html)&&void 0!==n&&("string"===typeof n&&0<n.length&&"\n"===n[0]?e.push(te,p(n)):e.push(p(""+n)))}return"string"===typeof a&&"\n"===a[0]&&e.push(te),a;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var v in e.push(re(t)),n)if(f.call(n,v)&&null!=(a=n[v]))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,t));default:q(e,i,v,a)}return e.push(Q),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ee(e,n,t,i);case"html":return 0===s.insertionMode&&e.push(ie),ee(e,n,t,i);default:if(-1===t.indexOf("-")&&"string"!==typeof n.is)return ee(e,n,t,i);for(d in e.push(re(t)),l=a=null,n)if(f.call(n,d)&&null!=(u=n[d]))switch(d){case"children":a=u;break;case"dangerouslySetInnerHTML":l=u;break;case"style":U(e,i,u);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:y(d)&&"function"!==typeof u&&"symbol"!==typeof u&&e.push(z,p(d),Z,p(O(u)),Y)}return e.push(X),J(e,l,a),a}}var ae=d("</"),le=d(">"),ue=d('<template id="'),ce=d('"></template>'),pe=d("\x3c!--$--\x3e"),de=d('\x3c!--$?--\x3e<template id="'),he=d('"></template>'),fe=d("\x3c!--$!--\x3e"),ge=d("\x3c!--/$--\x3e"),me=d("<template"),ve=d('"'),ye=d(' data-dgst="');d(' data-msg="'),d(' data-stck="');var Ce=d("></template>");function we(e,t,n){if(a(e,de),null===n)throw Error(r(395));return a(e,n),l(e,he)}var _e=d('<div hidden id="'),be=d('">'),Ee=d("</div>"),Se=d('<svg aria-hidden="true" style="display:none" id="'),Re=d('">'),Oe=d("</svg>"),Te=d('<math aria-hidden="true" style="display:none" id="'),Pe=d('">'),Ae=d("</math>"),De=d('<table hidden id="'),xe=d('">'),Ne=d("</table>"),Me=d('<table hidden><tbody id="'),Ie=d('">'),Le=d("</tbody></table>"),Fe=d('<table hidden><tr id="'),ke=d('">'),Ge=d("</tr></table>"),He=d('<table hidden><colgroup id="'),Be=d('">'),Ve=d("</colgroup></table>");var We=d('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),je=d('$RS("'),Ue=d('","'),ze=d('")<\/script>'),Ze=d('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Ye=d('$RC("'),Ke=d('","'),qe=d('")<\/script>'),Xe=d('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Qe=d('$RX("'),Je=d('"'),$e=d(")<\/script>"),et=d(","),tt=/[<\u2028\u2029]/g;function nt(e){return JSON.stringify(e).replace(tt,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}var ot=Object.assign,rt=Symbol.for("react.element"),it=Symbol.for("react.portal"),st=Symbol.for("react.fragment"),at=Symbol.for("react.strict_mode"),lt=Symbol.for("react.profiler"),ut=Symbol.for("react.provider"),ct=Symbol.for("react.context"),pt=Symbol.for("react.forward_ref"),dt=Symbol.for("react.suspense"),ht=Symbol.for("react.suspense_list"),ft=Symbol.for("react.memo"),gt=Symbol.for("react.lazy"),mt=Symbol.for("react.scope"),vt=Symbol.for("react.debug_trace_mode"),yt=Symbol.for("react.legacy_hidden"),Ct=Symbol.for("react.default_value"),wt=Symbol.iterator;function _t(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 st:return"Fragment";case it:return"Portal";case lt:return"Profiler";case at:return"StrictMode";case dt:return"Suspense";case ht:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case ct:return(e.displayName||"Context")+".Consumer";case ut:return(e._context.displayName||"Context")+".Provider";case pt:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case ft:return null!==(t=e.displayName||null)?t:_t(e.type)||"Memo";case gt:t=e._payload,e=e._init;try{return _t(e(t))}catch(n){}}return null}var bt={};function Et(e,t){if(!(e=e.contextTypes))return bt;var n,o={};for(n in e)o[n]=t[n];return o}var St=null;function Rt(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(r(401))}else{if(null===n)throw Error(r(401));Rt(e,n)}t.context._currentValue=t.value}}function Ot(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&Ot(e)}function Tt(e){var t=e.parent;null!==t&&Tt(t),e.context._currentValue=e.value}function Pt(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(r(402));e.depth===t.depth?Rt(e,t):Pt(e,t)}function At(e,t){var n=t.parent;if(null===n)throw Error(r(402));e.depth===n.depth?Rt(e,n):At(e,n),t.context._currentValue=t.value}function Dt(e){var t=St;t!==e&&(null===t?Tt(e):null===e?Ot(t):t.depth===e.depth?Rt(t,e):t.depth>e.depth?Pt(t,e):At(t,e),St=e)}var xt={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function Nt(e,t,n,o){var r=void 0!==e.state?e.state:null;e.updater=xt,e.props=n,e.state=r;var i={queue:[],replace:!1};e._reactInternals=i;var s=t.contextType;if(e.context="object"===typeof s&&null!==s?s._currentValue:o,"function"===typeof(s=t.getDerivedStateFromProps)&&(r=null===(s=s(n,r))||void 0===s?r:ot({},r,s),e.state=r),"function"!==typeof t.getDerivedStateFromProps&&"function"!==typeof e.getSnapshotBeforeUpdate&&("function"===typeof e.UNSAFE_componentWillMount||"function"===typeof e.componentWillMount))if(t=e.state,"function"===typeof e.componentWillMount&&e.componentWillMount(),"function"===typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&xt.enqueueReplaceState(e,e.state,null),null!==i.queue&&0<i.queue.length)if(t=i.queue,s=i.replace,i.queue=null,i.replace=!1,s&&1===t.length)e.state=t[0];else{for(i=s?t[0]:e.state,r=!0,s=s?1:0;s<t.length;s++){var a=t[s];null!=(a="function"===typeof a?a.call(e,i,n,o):a)&&(r?(r=!1,i=ot({},i,a)):ot(i,a))}e.state=i}else i.queue=null}var Mt={id:1,overflow:""};function It(e,t,n){var o=e.id;e=e.overflow;var r=32-Lt(o)-1;o&=~(1<<r),n+=1;var i=32-Lt(t)+r;if(30<i){var s=r-r%5;return i=(o&(1<<s)-1).toString(32),o>>=s,r-=s,{id:1<<32-Lt(t)+r|n<<r|o,overflow:i+e}}return{id:1<<i|n<<r|o,overflow:e}}var Lt=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(Ft(e)/kt|0)|0},Ft=Math.log,kt=Math.LN2;var Gt="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Ht=null,Bt=null,Vt=null,Wt=null,jt=!1,Ut=!1,zt=0,Zt=null,Yt=0;function Kt(){if(null===Ht)throw Error(r(321));return Ht}function qt(){if(0<Yt)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function Xt(){return null===Wt?null===Vt?(jt=!1,Vt=Wt=qt()):(jt=!0,Wt=Vt):null===Wt.next?(jt=!1,Wt=Wt.next=qt()):(jt=!0,Wt=Wt.next),Wt}function Qt(){Bt=Ht=null,Ut=!1,Vt=null,Yt=0,Wt=Zt=null}function Jt(e,t){return"function"===typeof t?t(e):t}function $t(e,t,n){if(Ht=Kt(),Wt=Xt(),jt){var o=Wt.queue;if(t=o.dispatch,null!==Zt&&void 0!==(n=Zt.get(o))){Zt.delete(o),o=Wt.memoizedState;do{o=e(o,n.action),n=n.next}while(null!==n);return Wt.memoizedState=o,[o,t]}return[Wt.memoizedState,t]}return e=e===Jt?"function"===typeof t?t():t:void 0!==n?n(t):t,Wt.memoizedState=e,e=(e=Wt.queue={last:null,dispatch:null}).dispatch=tn.bind(null,Ht,e),[Wt.memoizedState,e]}function en(e,t){if(Ht=Kt(),t=void 0===t?null:t,null!==(Wt=Xt())){var n=Wt.memoizedState;if(null!==n&&null!==t){var o=n[1];e:if(null===o)o=!1;else{for(var r=0;r<o.length&&r<t.length;r++)if(!Gt(t[r],o[r])){o=!1;break e}o=!0}if(o)return n[0]}}return e=e(),Wt.memoizedState=[e,t],e}function tn(e,t,n){if(25<=Yt)throw Error(r(301));if(e===Ht)if(Ut=!0,e={action:n,next:null},null===Zt&&(Zt=new Map),void 0===(n=Zt.get(t)))Zt.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function nn(){throw Error(r(394))}function on(){}var rn={readContext:function(e){return e._currentValue},useContext:function(e){return Kt(),e._currentValue},useMemo:en,useReducer:$t,useRef:function(e){Ht=Kt();var t=(Wt=Xt()).memoizedState;return null===t?(e={current:e},Wt.memoizedState=e):t},useState:function(e){return $t(Jt,e)},useInsertionEffect:on,useLayoutEffect:function(){},useCallback:function(e,t){return en((function(){return e}),t)},useImperativeHandle:on,useEffect:on,useDebugValue:on,useDeferredValue:function(e){return Kt(),e},useTransition:function(){return Kt(),[!1,nn]},useId:function(){var e=Bt.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-Lt(e)-1)).toString(32)+t;var n=sn;if(null===n)throw Error(r(404));return t=zt++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Kt(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(r(407));return n()}},sn=null,an=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function ln(e){return console.error(e),null}function un(){}function cn(e,t,n,o,r,i,s,a){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var l={node:t,ping:function(){var t=e.pingedTasks;t.push(l),1===t.length&&Rn(e)},blockedBoundary:n,blockedSegment:o,abortSet:r,legacyContext:i,context:s,treeContext:a};return r.add(l),l}function pn(e,t,n,o,r,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:o,boundary:n,lastPushedText:r,textEmbedded:i}}function dn(e,t){if(null!=(e=e.onError(t))&&"string"!==typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function hn(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,h(e.destination,t)):(e.status=1,e.fatalError=t)}function fn(e,t,n,o,r){for(Ht={},Bt=t,zt=0,e=n(o,r);Ut;)Ut=!1,zt=0,Yt+=1,Wt=null,e=n(o,r);return Qt(),e}function gn(e,t,n,o){var i=n.render(),s=o.childContextTypes;if(null!==s&&void 0!==s){var a=t.legacyContext;if("function"!==typeof n.getChildContext)o=a;else{for(var l in n=n.getChildContext())if(!(l in s))throw Error(r(108,_t(o)||"Unknown",l));o=ot({},a,n)}t.legacyContext=o,yn(e,t,i),t.legacyContext=a}else yn(e,t,i)}function mn(e,t){if(e&&e.defaultProps){for(var n in t=ot({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function vn(e,t,n,o,i){if("function"===typeof n)if(n.prototype&&n.prototype.isReactComponent){i=Et(n,t.legacyContext);var s=n.contextType;Nt(s=new n(o,"object"===typeof s&&null!==s?s._currentValue:i),n,o,i),gn(e,t,s,n)}else{i=fn(e,t,n,o,s=Et(n,t.legacyContext));var a=0!==zt;if("object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof)Nt(i,n,o,s),gn(e,t,i,n);else if(a){o=t.treeContext,t.treeContext=It(o,1,0);try{yn(e,t,i)}finally{t.treeContext=o}}else yn(e,t,i)}else{if("string"!==typeof n){switch(n){case yt:case vt:case at:case lt:case st:case ht:return void yn(e,t,o.children);case mt:throw Error(r(343));case dt:e:{n=t.blockedBoundary,i=t.blockedSegment,s=o.fallback,o=o.children;var l={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a=new Set,errorDigest:null},u=pn(0,i.chunks.length,l,i.formatContext,!1,!1);i.children.push(u),i.lastPushedText=!1;var c=pn(0,0,null,i.formatContext,!1,!1);c.parentFlushed=!0,t.blockedBoundary=l,t.blockedSegment=c;try{if(wn(e,t,o),c.lastPushedText&&c.textEmbedded&&c.chunks.push(G),c.status=1,En(l,c),0===l.pendingTasks)break e}catch(d){c.status=4,l.forceClientRender=!0,l.errorDigest=dn(e,d)}finally{t.blockedBoundary=n,t.blockedSegment=i}t=cn(e,s,n,u,a,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"===typeof n&&null!==n)switch(n.$$typeof){case pt:if(o=fn(e,t,n.render,o,i),0!==zt){n=t.treeContext,t.treeContext=It(n,1,0);try{yn(e,t,o)}finally{t.treeContext=n}}else yn(e,t,o);return;case ft:return void vn(e,t,n=n.type,o=mn(n,o),i);case ut:if(i=o.children,n=n._context,o=o.value,s=n._currentValue,n._currentValue=o,St=o={parent:a=St,depth:null===a?0:a.depth+1,context:n,parentValue:s,value:o},t.context=o,yn(e,t,i),null===(e=St))throw Error(r(403));return o=e.parentValue,e.context._currentValue=o===Ct?e.context._defaultValue:o,e=St=e.parent,void(t.context=e);case ct:return void yn(e,t,o=(o=o.children)(n._currentValue));case gt:return void vn(e,t,n=(i=n._init)(n._payload),o=mn(n,o),void 0)}throw Error(r(130,null==n?n:typeof n,""))}switch(s=se((i=t.blockedSegment).chunks,n,o,e.responseState,i.formatContext),i.lastPushedText=!1,a=i.formatContext,i.formatContext=function(e,t,n){switch(t){case"select":return k(1,null!=n.value?n.value:n.defaultValue);case"svg":return k(2,null);case"math":return k(3,null);case"foreignObject":return k(1,null);case"table":return k(4,null);case"thead":case"tbody":case"tfoot":return k(5,null);case"colgroup":return k(7,null);case"tr":return k(6,null)}return 4<=e.insertionMode||0===e.insertionMode?k(1,null):e}(a,n,o),wn(e,t,s),i.formatContext=a,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:i.chunks.push(ae,p(n),le)}i.lastPushedText=!1}}function yn(e,t,n){if(t.node=n,"object"===typeof n&&null!==n){switch(n.$$typeof){case rt:return void vn(e,t,n.type,n.props,n.ref);case it:throw Error(r(257));case gt:var o=n._init;return void yn(e,t,n=o(n._payload))}if(A(n))return void Cn(e,t,n);if(null===n||"object"!==typeof n?o=null:o="function"===typeof(o=wt&&n[wt]||n["@@iterator"])?o:null,o&&(o=o.call(n))){if(!(n=o.next()).done){var i=[];do{i.push(n.value),n=o.next()}while(!n.done);Cn(e,t,i)}return}throw e=Object.prototype.toString.call(n),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"===typeof n?(o=t.blockedSegment).lastPushedText=H(t.blockedSegment.chunks,n,e.responseState,o.lastPushedText):"number"===typeof n&&((o=t.blockedSegment).lastPushedText=H(t.blockedSegment.chunks,""+n,e.responseState,o.lastPushedText))}function Cn(e,t,n){for(var o=n.length,r=0;r<o;r++){var i=t.treeContext;t.treeContext=It(i,o,r);try{wn(e,t,n[r])}finally{t.treeContext=i}}}function wn(e,t,n){var o=t.blockedSegment.formatContext,r=t.legacyContext,i=t.context;try{return yn(e,t,n)}catch(l){if(Qt(),"object"!==typeof l||null===l||"function"!==typeof l.then)throw t.blockedSegment.formatContext=o,t.legacyContext=r,t.context=i,Dt(i),l;n=l;var s=t.blockedSegment,a=pn(0,s.chunks.length,null,s.formatContext,s.lastPushedText,!0);s.children.push(a),s.lastPushedText=!1,e=cn(e,t.node,t.blockedBoundary,a,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=o,t.legacyContext=r,t.context=i,Dt(i)}}function _n(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,Sn(this,t,e)}function bn(e,t,n){var o=e.blockedBoundary;e.blockedSegment.status=3,null===o?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.close())):(o.pendingTasks--,o.forceClientRender||(o.forceClientRender=!0,e=void 0===n?Error(r(432)):n,o.errorDigest=t.onError(e),o.parentFlushed&&t.clientRenderedBoundaries.push(o)),o.fallbackAbortableTasks.forEach((function(e){return bn(e,t,n)})),o.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(o=t.onAllReady)())}function En(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&En(e,n)}else e.completedSegments.push(t)}function Sn(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(r(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=un,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&En(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(_n,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(En(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function Rn(e){if(2!==e.status){var t=St,n=an.current;an.current=rn;var o=sn;sn=e.responseState;try{var r,i=e.pingedTasks;for(r=0;r<i.length;r++){var s=i[r],a=e,l=s.blockedSegment;if(0===l.status){Dt(s.context);try{yn(a,s,s.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(G),s.abortSet.delete(s),l.status=1,Sn(a,s.blockedBoundary,l)}catch(h){if(Qt(),"object"===typeof h&&null!==h&&"function"===typeof h.then){var u=s.ping;h.then(u,u)}else{s.abortSet.delete(s),l.status=4;var c=s.blockedBoundary,p=h,d=dn(a,p);if(null===c?hn(a,p):(c.pendingTasks--,c.forceClientRender||(c.forceClientRender=!0,c.errorDigest=d,c.parentFlushed&&a.clientRenderedBoundaries.push(c))),a.allPendingTasks--,0===a.allPendingTasks)(0,a.onAllReady)()}}}}i.splice(0,r),null!==e.destination&&xn(e,e.destination)}catch(h){dn(e,h),hn(e,h)}finally{sn=o,an.current=n,n===rn&&Dt(t)}}}function On(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var o=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,a(t,ue),a(t,e.placeholderPrefix),a(t,e=p(o.toString(16))),l(t,ce);case 1:n.status=2;var i=!0;o=n.chunks;var s=0;n=n.children;for(var u=0;u<n.length;u++){for(i=n[u];s<i.index;s++)a(t,o[s]);i=Tn(e,t,i)}for(;s<o.length-1;s++)a(t,o[s]);return s<o.length&&(i=l(t,o[s])),i;default:throw Error(r(390))}}function Tn(e,t,n){var o=n.boundary;if(null===o)return On(e,t,n);if(o.parentFlushed=!0,o.forceClientRender)o=o.errorDigest,l(t,fe),a(t,me),o&&(a(t,ye),a(t,p(O(o))),a(t,ve)),l(t,Ce),On(e,t,n);else if(0<o.pendingTasks){o.rootSegmentID=e.nextSegmentId++,0<o.completedSegments.length&&e.partialBoundaries.push(o);var i=e.responseState,s=i.nextSuspenseID++;i=d(i.boundaryPrefix+s.toString(16)),o=o.id=i,we(t,e.responseState,o),On(e,t,n)}else if(o.byteSize>e.progressiveChunkSize)o.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(o),we(t,e.responseState,o.id),On(e,t,n);else{if(l(t,pe),1!==(n=o.completedSegments).length)throw Error(r(391));Tn(e,t,n[0])}return l(t,ge)}function Pn(e,t,n){return function(e,t,n,o){switch(n.insertionMode){case 0:case 1:return a(e,_e),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,be);case 2:return a(e,Se),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,Re);case 3:return a(e,Te),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,Pe);case 4:return a(e,De),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,xe);case 5:return a(e,Me),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,Ie);case 6:return a(e,Fe),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,ke);case 7:return a(e,He),a(e,t.segmentPrefix),a(e,p(o.toString(16))),l(e,Be);default:throw Error(r(397))}}(t,e.responseState,n.formatContext,n.id),Tn(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return l(e,Ee);case 2:return l(e,Oe);case 3:return l(e,Ae);case 4:return l(e,Ne);case 5:return l(e,Le);case 6:return l(e,Ge);case 7:return l(e,Ve);default:throw Error(r(397))}}(t,n.formatContext)}function An(e,t,n){for(var o=n.completedSegments,i=0;i<o.length;i++)Dn(e,t,n,o[i]);if(o.length=0,e=e.responseState,o=n.id,n=n.rootSegmentID,a(t,e.startInlineScript),e.sentCompleteBoundaryFunction?a(t,Ye):(e.sentCompleteBoundaryFunction=!0,a(t,Ze)),null===o)throw Error(r(395));return n=p(n.toString(16)),a(t,o),a(t,Ke),a(t,e.segmentPrefix),a(t,n),l(t,qe)}function Dn(e,t,n,o){if(2===o.status)return!0;var i=o.id;if(-1===i){if(-1===(o.id=n.rootSegmentID))throw Error(r(392));return Pn(e,t,o)}return Pn(e,t,o),a(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?a(t,je):(e.sentCompleteSegmentFunction=!0,a(t,We)),a(t,e.segmentPrefix),a(t,i=p(i.toString(16))),a(t,Ue),a(t,e.placeholderPrefix),a(t,i),l(t,ze)}function xn(e,t){i=new Uint8Array(512),s=0;try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){Tn(e,t,n),e.completedRootSegment=null;var o=e.responseState.bootstrapChunks;for(n=0;n<o.length-1;n++)a(t,o[n]);n<o.length&&l(t,o[n])}var c,d=e.clientRenderedBoundaries;for(c=0;c<d.length;c++){var h=d[c];o=t;var f=e.responseState,g=h.id,m=h.errorDigest,v=h.errorMessage,y=h.errorComponentStack;if(a(o,f.startInlineScript),f.sentClientRenderFunction?a(o,Qe):(f.sentClientRenderFunction=!0,a(o,Xe)),null===g)throw Error(r(395));if(a(o,g),a(o,Je),(m||v||y)&&(a(o,et),a(o,p(nt(m||"")))),(v||y)&&(a(o,et),a(o,p(nt(v||"")))),y&&(a(o,et),a(o,p(nt(y)))),!l(o,$e))return e.destination=null,c++,void d.splice(0,c)}d.splice(0,c);var C=e.completedBoundaries;for(c=0;c<C.length;c++)if(!An(e,t,C[c]))return e.destination=null,c++,void C.splice(0,c);C.splice(0,c),u(t),i=new Uint8Array(512),s=0;var w=e.partialBoundaries;for(c=0;c<w.length;c++){var _=w[c];e:{d=e,h=t;var b=_.completedSegments;for(f=0;f<b.length;f++)if(!Dn(d,h,_,b[f])){f++,b.splice(0,f);var E=!1;break e}b.splice(0,f),E=!0}if(!E)return e.destination=null,c++,void w.splice(0,c)}w.splice(0,c);var S=e.completedBoundaries;for(c=0;c<S.length;c++)if(!An(e,t,S[c]))return e.destination=null,c++,void S.splice(0,c);S.splice(0,c)}finally{u(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function Nn(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return bn(n,e,t)})),n.clear(),null!==e.destination&&xn(e,e.destination)}catch(o){dn(e,o),hn(e,o)}}t.renderToReadableStream=function(e,t){return new Promise((function(n,o){var r,i,s=new Promise((function(e,t){i=e,r=t})),a=function(e,t,n,o,r,i,s,a,l){var u=[],c=new Set;return(n=pn(t={destination:null,responseState:t,progressiveChunkSize:void 0===o?12800:o,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:c,pingedTasks:u,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===r?ln:r,onAllReady:void 0===i?un:i,onShellReady:void 0===s?un:s,onShellError:void 0===a?un:a,onFatalError:void 0===l?un:l},0,null,n,!1,!1)).parentFlushed=!0,e=cn(t,e,null,n,c,bt,null,Mt),u.push(e),t}(e,function(e,t,n,o,r){e=void 0===e?"":e,t=void 0===t?D:d('<script nonce="'+O(t)+'">');var i=[];if(void 0!==n&&i.push(t,p((""+n).replace(L,F)),x),void 0!==o)for(n=0;n<o.length;n++)i.push(N,p(O(o[n])),I);if(void 0!==r)for(o=0;o<r.length;o++)i.push(M,p(O(r[o])),I);return{bootstrapChunks:i,startInlineScript:t,placeholderPrefix:d(e+"P:"),segmentPrefix:d(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),function(e){return k("http://www.w3.org/2000/svg"===e?2:"http://www.w3.org/1998/Math/MathML"===e?3:0,null)}(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,i,(function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===a.status)a.status=2,h(e,a.fatalError);else if(2!==a.status&&null===a.destination){a.destination=e;try{xn(a,e)}catch(t){dn(a,t),hn(a,t)}}},cancel:function(){Nn(a)}},{highWaterMark:0});e.allReady=s,n(e)}),(function(e){s.catch((function(){})),o(e)}),r);if(t&&t.signal){var l=t.signal;l.addEventListener("abort",(function e(){Nn(a,l.reason),l.removeEventListener("abort",e)}))}Rn(a)}))},t.version="18.2.0"},4463:function(e,t,n){"use strict";var o=n(2791),r=n(5296);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=new Set,a={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(a[e]=t,e=0;e<t.length;e++)s.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),p=Object.prototype.hasOwnProperty,d=/^[: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]*$/,h={},f={};function g(e,t,n,o,r,i,s){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,this.removeEmptyString=s}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function C(e,t,n,o){var r=m.hasOwnProperty(t)?m[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||"undefined"===typeof 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!!p.call(f,e)||!p.call(h,e)&&(d.test(e)?f[e]=!0:(h[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))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),b=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),T=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var I=Symbol.iterator;function L(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=I&&e[I]||e["@@iterator"])?e:null}var F,k=Object.assign;function G(e){if(void 0===F)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var H=!1;function B(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var o=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){o=u}e.call(t.prototype)}else{try{throw Error()}catch(u){o=u}e()}}catch(u){if(u&&o&&"string"===typeof u.stack){for(var r=u.stack.split("\n"),i=o.stack.split("\n"),s=r.length-1,a=i.length-1;1<=s&&0<=a&&r[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(r[s]!==i[a]){if(1!==s||1!==a)do{if(s--,0>--a||r[s]!==i[a]){var l="\n"+r[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=s&&0<=a);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?G(e):""}function V(e){switch(e.tag){case 5:return G(e.type);case 16:return G("Lazy");case 13:return G("Suspense");case 19:return G("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function W(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 E:return"Fragment";case b:return"Portal";case R:return"Profiler";case S:return"StrictMode";case A:return"Suspense";case D:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case x:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return W(e(t))}catch(n){}}return null}function j(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function z(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Z(e){e._valueTracker||(e._valueTracker=function(e){var t=z(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof 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 Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=z(e)?e.checked?"true":"false":e.value),(e=o)!==n&&(t.setValue(e),!0)}function K(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function q(e,t){var n=t.checked;return k({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=U(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 Q(e,t){null!=(t=t.checked)&&C(e,"checked",t,!1)}function J(e,t){Q(e,t);var n=U(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")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function $(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 ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(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=""+U(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 oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return k({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function re(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:U(n)}}function ie(e,t){var n=U(t.value),o=U(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 se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(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 le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,pe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,o){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fe=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var o=0===n.indexOf("--"),r=ge(n,t[n],o);"float"===n&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}Object.keys(he).forEach((function(e){fe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ve=k({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 ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function Ce(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 we=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var be=null,Ee=null,Se=null;function Re(e){if(e=wr(e)){if("function"!==typeof be)throw Error(i(280));var t=e.stateNode;t&&(t=br(t),be(e.stateNode,e.type,t))}}function Oe(e){Ee?Se?Se.push(e):Se=[e]:Ee=e}function Te(){if(Ee){var e=Ee,t=Se;if(Se=Ee=null,Re(e),t)for(e=0;e<t.length;e++)Re(t[e])}}function Pe(e,t){return e(t)}function Ae(){}var De=!1;function xe(e,t,n){if(De)return e(t,n);De=!0;try{return Pe(e,t,n)}finally{De=!1,(null!==Ee||null!==Se)&&(Ae(),Te())}}function Ne(e,t){var n=e.stateNode;if(null===n)return null;var o=br(n);if(null===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(i(231,t,typeof n));return n}var Me=!1;if(c)try{var Ie={};Object.defineProperty(Ie,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Ie,Ie),window.removeEventListener("test",Ie,Ie)}catch(ce){Me=!1}function Le(e,t,n,o,r,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Fe=!1,ke=null,Ge=!1,He=null,Be={onError:function(e){Fe=!0,ke=e}};function Ve(e,t,n,o,r,i,s,a,l){Fe=!1,ke=null,Le.apply(Be,arguments)}function We(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function je(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 Ue(e){if(We(e)!==e)throw Error(i(188))}function ze(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,o=t;;){var r=n.return;if(null===r)break;var s=r.alternate;if(null===s){if(null!==(o=r.return)){n=o;continue}break}if(r.child===s.child){for(s=r.child;s;){if(s===n)return Ue(r),e;if(s===o)return Ue(r),t;s=s.sibling}throw Error(i(188))}if(n.return!==o.return)n=r,o=s;else{for(var a=!1,l=r.child;l;){if(l===n){a=!0,n=r,o=s;break}if(l===o){a=!0,o=r,n=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===n){a=!0,n=s,o=r;break}if(l===o){a=!0,o=s,n=r;break}l=l.sibling}if(!a)throw Error(i(189))}}if(n.alternate!==o)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ze(e):null}function Ze(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ze(e);if(null!==t)return t;e=e.sibling}return null}var Ye=r.unstable_scheduleCallback,Ke=r.unstable_cancelCallback,qe=r.unstable_shouldYield,Xe=r.unstable_requestPaint,Qe=r.unstable_now,Je=r.unstable_getCurrentPriorityLevel,$e=r.unstable_ImmediatePriority,et=r.unstable_UserBlockingPriority,tt=r.unstable_NormalPriority,nt=r.unstable_LowPriority,ot=r.unstable_IdlePriority,rt=null,it=null;var st=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(at(e)/lt|0)|0},at=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function pt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var o=0,r=e.suspendedLanes,i=e.pingedLanes,s=268435455&n;if(0!==s){var a=s&~r;0!==a?o=pt(a):0!==(i&=s)&&(o=pt(i))}else 0!==(s=n&~r)?o=pt(s):0!==i&&(o=pt(i));if(0===o)return 0;if(0!==t&&t!==o&&0===(t&r)&&((r=o&-o)>=(i=t&-t)||16===r&&0!==(4194240&i)))return t;if(0!==(4&o)&&(o|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=o;0<t;)r=1<<(n=31-st(t)),o|=e[n],t&=~r;return o}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ut;return 0===(4194240&(ut<<=1))&&(ut=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var o=31-st(n),r=1<<o;r&t|e[o]&t&&(e[o]|=t),n&=~r}}var Ct=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var _t,bt,Et,St,Rt,Ot=!1,Tt=[],Pt=null,At=null,Dt=null,xt=new Map,Nt=new Map,Mt=[],It="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Lt(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":At=null;break;case"mouseover":case"mouseout":Dt=null;break;case"pointerover":case"pointerout":xt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nt.delete(t.pointerId)}}function Ft(e,t,n,o,r,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:o,nativeEvent:i,targetContainers:[r]},null!==t&&(null!==(t=wr(t))&&bt(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,null!==r&&-1===t.indexOf(r)&&t.push(r),e)}function kt(e){var t=Cr(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=je(n)))return e.blockedOn=t,void Rt(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wr(n))&&bt(t),e.blockedOn=n,!1;var o=new(n=e.nativeEvent).constructor(n.type,n);we=o,n.target.dispatchEvent(o),we=null,t.shift()}return!0}function Ht(e,t,n){Gt(e)&&n.delete(t)}function Bt(){Ot=!1,null!==Pt&&Gt(Pt)&&(Pt=null),null!==At&&Gt(At)&&(At=null),null!==Dt&&Gt(Dt)&&(Dt=null),xt.forEach(Ht),Nt.forEach(Ht)}function Vt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Bt)))}function Wt(e){function t(t){return Vt(t,e)}if(0<Tt.length){Vt(Tt[0],e);for(var n=1;n<Tt.length;n++){var o=Tt[n];o.blockedOn===e&&(o.blockedOn=null)}}for(null!==Pt&&Vt(Pt,e),null!==At&&Vt(At,e),null!==Dt&&Vt(Dt,e),xt.forEach(t),Nt.forEach(t),n=0;n<Mt.length;n++)(o=Mt[n]).blockedOn===e&&(o.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)kt(n),null===n.blockedOn&&Mt.shift()}var jt=w.ReactCurrentBatchConfig,Ut=!0;function zt(e,t,n,o){var r=Ct,i=jt.transition;jt.transition=null;try{Ct=1,Yt(e,t,n,o)}finally{Ct=r,jt.transition=i}}function Zt(e,t,n,o){var r=Ct,i=jt.transition;jt.transition=null;try{Ct=4,Yt(e,t,n,o)}finally{Ct=r,jt.transition=i}}function Yt(e,t,n,o){if(Ut){var r=qt(e,t,n,o);if(null===r)zo(e,t,o,Kt,n),Lt(e,o);else if(function(e,t,n,o,r){switch(t){case"focusin":return Pt=Ft(Pt,e,t,n,o,r),!0;case"dragenter":return At=Ft(At,e,t,n,o,r),!0;case"mouseover":return Dt=Ft(Dt,e,t,n,o,r),!0;case"pointerover":var i=r.pointerId;return xt.set(i,Ft(xt.get(i)||null,e,t,n,o,r)),!0;case"gotpointercapture":return i=r.pointerId,Nt.set(i,Ft(Nt.get(i)||null,e,t,n,o,r)),!0}return!1}(r,e,t,n,o))o.stopPropagation();else if(Lt(e,o),4&t&&-1<It.indexOf(e)){for(;null!==r;){var i=wr(r);if(null!==i&&_t(i),null===(i=qt(e,t,n,o))&&zo(e,t,o,Kt,n),i===r)break;r=i}null!==r&&o.stopPropagation()}else zo(e,t,o,null,n)}}var Kt=null;function qt(e,t,n,o){if(Kt=null,null!==(e=Cr(e=_e(o))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=je(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case $e:return 1;case et:return 4;case tt:case nt:return 16;case ot:return 536870912;default:return 16}default:return 16}}var Qt=null,Jt=null,$t=null;function en(){if($t)return $t;var e,t,n=Jt,o=n.length,r="value"in Qt?Qt.value:Qt.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 $t=r.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function on(){return!1}function rn(e){function t(t,n,o,r,i){for(var s in this._reactName=t,this._targetInst=o,this.type=n,this.nativeEvent=r,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(r):r[s]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?nn:on,this.isPropagationStopped=on,this}return k(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var sn,an,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=rn(un),pn=k({},un,{view:0,detail:0}),dn=rn(pn),hn=k({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(sn=e.screenX-ln.screenX,an=e.screenY-ln.screenY):an=sn=0,ln=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:an}}),fn=rn(hn),gn=rn(k({},hn,{dataTransfer:0})),mn=rn(k({},pn,{relatedTarget:0})),vn=rn(k({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=k({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cn=rn(yn),wn=rn(k({},un,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bn={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"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Rn(){return Sn}var On=k({},pn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?bn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=rn(On),Pn=rn(k({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),An=rn(k({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rn})),Dn=rn(k({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),xn=k({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Nn=rn(xn),Mn=[9,13,27,32],In=c&&"CompositionEvent"in window,Ln=null;c&&"documentMode"in document&&(Ln=document.documentMode);var Fn=c&&"TextEvent"in window&&!Ln,kn=c&&(!In||Ln&&8<Ln&&11>=Ln),Gn=String.fromCharCode(32),Hn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1;var jn={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 Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!jn[e.type]:"textarea"===t}function zn(e,t,n,o){Oe(o),0<(t=Yo(t,"onChange")).length&&(n=new cn("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var Zn=null,Yn=null;function Kn(e){Ho(e,0)}function qn(e){if(Y(_r(e)))return e}function Xn(e,t){if("change"===e)return t}var Qn=!1;if(c){var Jn;if(c){var $n="oninput"in document;if(!$n){var eo=document.createElement("div");eo.setAttribute("oninput","return;"),$n="function"===typeof eo.oninput}Jn=$n}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function to(){Zn&&(Zn.detachEvent("onpropertychange",no),Yn=Zn=null)}function no(e){if("value"===e.propertyName&&qn(Yn)){var t=[];zn(t,Yn,e,_e(e)),xe(Kn,t)}}function oo(e,t,n){"focusin"===e?(to(),Yn=n,(Zn=t).attachEvent("onpropertychange",no)):"focusout"===e&&to()}function ro(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Yn)}function io(e,t){if("click"===e)return qn(t)}function so(e,t){if("input"===e||"change"===e)return qn(t)}var ao="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lo(e,t){if(ao(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++){var r=n[o];if(!p.call(t,r)||!ao(e[r],t[r]))return!1}return!0}function uo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function co(e,t){var n,o=uo(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=uo(o)}}function po(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?po(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ho(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(o){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function fo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function go(e){var t=ho(),n=e.focusedElem,o=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&po(n.ownerDocument.documentElement,n)){if(null!==o&&fo(n))if(t=o.start,void 0===(e=o.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var r=n.textContent.length,i=Math.min(o.start,r);o=void 0===o.end?i:Math.min(o.end,r),!e.extend&&i>o&&(r=o,o=i,i=r),r=co(n,i);var s=co(n,o);r&&s&&(1!==e.rangeCount||e.anchorNode!==r.node||e.anchorOffset!==r.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&((t=t.createRange()).setStart(r.node,r.offset),e.removeAllRanges(),i>o?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mo=c&&"documentMode"in document&&11>=document.documentMode,vo=null,yo=null,Co=null,wo=!1;function _o(e,t,n){var o=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wo||null==vo||vo!==K(o)||("selectionStart"in(o=vo)&&fo(o)?o={start:o.selectionStart,end:o.selectionEnd}:o={anchorNode:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset},Co&&lo(Co,o)||(Co=o,0<(o=Yo(yo,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=vo)))}function bo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Eo={animationend:bo("Animation","AnimationEnd"),animationiteration:bo("Animation","AnimationIteration"),animationstart:bo("Animation","AnimationStart"),transitionend:bo("Transition","TransitionEnd")},So={},Ro={};function Oo(e){if(So[e])return So[e];if(!Eo[e])return e;var t,n=Eo[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ro)return So[e]=n[t];return e}c&&(Ro=document.createElement("div").style,"AnimationEvent"in window||(delete Eo.animationend.animation,delete Eo.animationiteration.animation,delete Eo.animationstart.animation),"TransitionEvent"in window||delete Eo.transitionend.transition);var To=Oo("animationend"),Po=Oo("animationiteration"),Ao=Oo("animationstart"),Do=Oo("transitionend"),xo=new Map,No="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Mo(e,t){xo.set(e,t),l(t,[e])}for(var Io=0;Io<No.length;Io++){var Lo=No[Io];Mo(Lo.toLowerCase(),"on"+(Lo[0].toUpperCase()+Lo.slice(1)))}Mo(To,"onAnimationEnd"),Mo(Po,"onAnimationIteration"),Mo(Ao,"onAnimationStart"),Mo("dblclick","onDoubleClick"),Mo("focusin","onFocus"),Mo("focusout","onBlur"),Mo(Do,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ko=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fo));function Go(e,t,n){var o=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,o,r,s,a,l,u){if(Ve.apply(this,arguments),Fe){if(!Fe)throw Error(i(198));var c=ke;Fe=!1,ke=null,Ge||(Ge=!0,He=c)}}(o,t,void 0,e),e.currentTarget=null}function Ho(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var o=e[n],r=o.event;o=o.listeners;e:{var i=void 0;if(t)for(var s=o.length-1;0<=s;s--){var a=o[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==i&&r.isPropagationStopped())break e;Go(r,a,u),i=l}else for(s=0;s<o.length;s++){if(l=(a=o[s]).instance,u=a.currentTarget,a=a.listener,l!==i&&r.isPropagationStopped())break e;Go(r,a,u),i=l}}}if(Ge)throw e=He,Ge=!1,He=null,e}function Bo(e,t){var n=t[mr];void 0===n&&(n=t[mr]=new Set);var o=e+"__bubble";n.has(o)||(Uo(t,e,2,!1),n.add(o))}function Vo(e,t,n){var o=0;t&&(o|=4),Uo(n,e,o,t)}var Wo="_reactListening"+Math.random().toString(36).slice(2);function jo(e){if(!e[Wo]){e[Wo]=!0,s.forEach((function(t){"selectionchange"!==t&&(ko.has(t)||Vo(t,!1,e),Vo(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Wo]||(t[Wo]=!0,Vo("selectionchange",!1,t))}}function Uo(e,t,n,o){switch(Xt(t)){case 1:var r=zt;break;case 4:r=Zt;break;default:r=Yt}n=r.bind(null,t,n,e),r=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r=!0),o?void 0!==r?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):void 0!==r?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function zo(e,t,n,o,r){var i=o;if(0===(1&t)&&0===(2&t)&&null!==o)e:for(;;){if(null===o)return;var s=o.tag;if(3===s||4===s){var a=o.stateNode.containerInfo;if(a===r||8===a.nodeType&&a.parentNode===r)break;if(4===s)for(s=o.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===r||8===l.nodeType&&l.parentNode===r))return;s=s.return}for(;null!==a;){if(null===(s=Cr(a)))return;if(5===(l=s.tag)||6===l){o=i=s;continue e}a=a.parentNode}}o=o.return}xe((function(){var o=i,r=_e(n),s=[];e:{var a=xo.get(e);if(void 0!==a){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Tn;break;case"focusin":u="focus",l=mn;break;case"focusout":u="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=An;break;case To:case Po:case Ao:l=vn;break;case Do:l=Dn;break;case"scroll":l=dn;break;case"wheel":l=Nn;break;case"copy":case"cut":case"paste":l=Cn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Pn}var c=0!==(4&t),p=!c&&"scroll"===e,d=c?null!==a?a+"Capture":null:a;c=[];for(var h,f=o;null!==f;){var g=(h=f).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==d&&(null!=(g=Ne(f,d))&&c.push(Zo(f,g,h)))),p)break;f=f.return}0<c.length&&(a=new l(a,u,null,n,r),s.push({event:a,listeners:c}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===we||!(u=n.relatedTarget||n.fromElement)||!Cr(u)&&!u[gr])&&(l||a)&&(a=r.window===r?r:(a=r.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=o,null!==(u=(u=n.relatedTarget||n.toElement)?Cr(u):null)&&(u!==(p=We(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=o),l!==u)){if(c=fn,g="onMouseLeave",d="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(c=Pn,g="onPointerLeave",d="onPointerEnter",f="pointer"),p=null==l?a:_r(l),h=null==u?a:_r(u),(a=new c(g,f+"leave",l,n,r)).target=p,a.relatedTarget=h,g=null,Cr(r)===o&&((c=new c(d,f+"enter",u,n,r)).target=h,c.relatedTarget=p,g=c),p=g,l&&u)e:{for(d=u,f=0,h=c=l;h;h=Ko(h))f++;for(h=0,g=d;g;g=Ko(g))h++;for(;0<f-h;)c=Ko(c),f--;for(;0<h-f;)d=Ko(d),h--;for(;f--;){if(c===d||null!==d&&c===d.alternate)break e;c=Ko(c),d=Ko(d)}c=null}else c=null;null!==l&&qo(s,a,l,c,!1),null!==u&&null!==p&&qo(s,p,u,c,!0)}if("select"===(l=(a=o?_r(o):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var m=Xn;else if(Un(a))if(Qn)m=so;else{m=ro;var v=oo}else(l=a.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(m=io);switch(m&&(m=m(e,o))?zn(s,m,n,r):(v&&v(e,a,o),"focusout"===e&&(v=a._wrapperState)&&v.controlled&&"number"===a.type&&ee(a,"number",a.value)),v=o?_r(o):window,e){case"focusin":(Un(v)||"true"===v.contentEditable)&&(vo=v,yo=o,Co=null);break;case"focusout":Co=yo=vo=null;break;case"mousedown":wo=!0;break;case"contextmenu":case"mouseup":case"dragend":wo=!1,_o(s,n,r);break;case"selectionchange":if(mo)break;case"keydown":case"keyup":_o(s,n,r)}var y;if(In)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else Wn?Bn(e,n)&&(C="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(C="onCompositionStart");C&&(kn&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==C?"onCompositionEnd"===C&&Wn&&(y=en()):(Jt="value"in(Qt=r)?Qt.value:Qt.textContent,Wn=!0)),0<(v=Yo(o,C)).length&&(C=new wn(C,e,null,n,r),s.push({event:C,listeners:v}),y?C.data=y:null!==(y=Vn(n))&&(C.data=y))),(y=Fn?function(e,t){switch(e){case"compositionend":return Vn(t);case"keypress":return 32!==t.which?null:(Hn=!0,Gn);case"textInput":return(e=t.data)===Gn&&Hn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!In&&Bn(e,t)?(e=en(),$t=Jt=Qt=null,Wn=!1,e):null;switch(e){case"paste":default: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 kn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(o=Yo(o,"onBeforeInput")).length&&(r=new wn("onBeforeInput","beforeinput",null,n,r),s.push({event:r,listeners:o}),r.data=y))}Ho(s,t)}))}function Zo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yo(e,t){for(var n=t+"Capture",o=[];null!==e;){var r=e,i=r.stateNode;5===r.tag&&null!==i&&(r=i,null!=(i=Ne(e,n))&&o.unshift(Zo(e,i,r)),null!=(i=Ne(e,t))&&o.push(Zo(e,i,r))),e=e.return}return o}function Ko(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function qo(e,t,n,o,r){for(var i=t._reactName,s=[];null!==n&&n!==o;){var a=n,l=a.alternate,u=a.stateNode;if(null!==l&&l===o)break;5===a.tag&&null!==u&&(a=u,r?null!=(l=Ne(n,i))&&s.unshift(Zo(n,l,a)):r||null!=(l=Ne(n,i))&&s.push(Zo(n,l,a))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Xo=/\r\n?/g,Qo=/\u0000|\uFFFD/g;function Jo(e){return("string"===typeof e?e:""+e).replace(Xo,"\n").replace(Qo,"")}function $o(e,t,n){if(t=Jo(t),Jo(e)!==t&&n)throw Error(i(425))}function er(){}var tr=null,nr=null;function or(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var rr="function"===typeof setTimeout?setTimeout:void 0,ir="function"===typeof clearTimeout?clearTimeout:void 0,sr="function"===typeof Promise?Promise:void 0,ar="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof sr?function(e){return sr.resolve(null).then(e).catch(lr)}:rr;function lr(e){setTimeout((function(){throw e}))}function ur(e,t){var n=t,o=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===o)return e.removeChild(r),void Wt(t);o--}else"$"!==n&&"$?"!==n&&"$!"!==n||o++;n=r}while(n);Wt(t)}function cr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function pr(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 dr=Math.random().toString(36).slice(2),hr="__reactFiber$"+dr,fr="__reactProps$"+dr,gr="__reactContainer$"+dr,mr="__reactEvents$"+dr,vr="__reactListeners$"+dr,yr="__reactHandles$"+dr;function Cr(e){var t=e[hr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gr]||n[hr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=pr(e);null!==e;){if(n=e[hr])return n;e=pr(e)}return t}n=(e=n).parentNode}return null}function wr(e){return!(e=e[hr]||e[gr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function _r(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function br(e){return e[fr]||null}var Er=[],Sr=-1;function Rr(e){return{current:e}}function Or(e){0>Sr||(e.current=Er[Sr],Er[Sr]=null,Sr--)}function Tr(e,t){Sr++,Er[Sr]=e.current,e.current=t}var Pr={},Ar=Rr(Pr),Dr=Rr(!1),xr=Pr;function Nr(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 Mr(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ir(){Or(Dr),Or(Ar)}function Lr(e,t,n){if(Ar.current!==Pr)throw Error(i(168));Tr(Ar,t),Tr(Dr,n)}function Fr(e,t,n){var o=e.stateNode;if(t=t.childContextTypes,"function"!==typeof o.getChildContext)return n;for(var r in o=o.getChildContext())if(!(r in t))throw Error(i(108,j(e)||"Unknown",r));return k({},n,o)}function kr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pr,xr=Ar.current,Tr(Ar,e),Tr(Dr,Dr.current),!0}function Gr(e,t,n){var o=e.stateNode;if(!o)throw Error(i(169));n?(e=Fr(e,t,xr),o.__reactInternalMemoizedMergedChildContext=e,Or(Dr),Or(Ar),Tr(Ar,e)):Or(Dr),Tr(Dr,n)}var Hr=null,Br=!1,Vr=!1;function Wr(e){null===Hr?Hr=[e]:Hr.push(e)}function jr(){if(!Vr&&null!==Hr){Vr=!0;var e=0,t=Ct;try{var n=Hr;for(Ct=1;e<n.length;e++){var o=n[e];do{o=o(!0)}while(null!==o)}Hr=null,Br=!1}catch(r){throw null!==Hr&&(Hr=Hr.slice(e+1)),Ye($e,jr),r}finally{Ct=t,Vr=!1}}return null}var Ur=[],zr=0,Zr=null,Yr=0,Kr=[],qr=0,Xr=null,Qr=1,Jr="";function $r(e,t){Ur[zr++]=Yr,Ur[zr++]=Zr,Zr=e,Yr=t}function ei(e,t,n){Kr[qr++]=Qr,Kr[qr++]=Jr,Kr[qr++]=Xr,Xr=e;var o=Qr;e=Jr;var r=32-st(o)-1;o&=~(1<<r),n+=1;var i=32-st(t)+r;if(30<i){var s=r-r%5;i=(o&(1<<s)-1).toString(32),o>>=s,r-=s,Qr=1<<32-st(t)+r|n<<r|o,Jr=i+e}else Qr=1<<i|n<<r|o,Jr=e}function ti(e){null!==e.return&&($r(e,1),ei(e,1,0))}function ni(e){for(;e===Zr;)Zr=Ur[--zr],Ur[zr]=null,Yr=Ur[--zr],Ur[zr]=null;for(;e===Xr;)Xr=Kr[--qr],Kr[qr]=null,Jr=Kr[--qr],Kr[qr]=null,Qr=Kr[--qr],Kr[qr]=null}var oi=null,ri=null,ii=!1,si=null;function ai(e,t){var n=xu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(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,oi=e,ri=cr(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,oi=e,ri=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xr?{id:Qr,overflow:Jr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=xu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,oi=e,ri=null,!0);default:return!1}}function ui(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ci(e){if(ii){var t=ri;if(t){var n=t;if(!li(e,t)){if(ui(e))throw Error(i(418));t=cr(n.nextSibling);var o=oi;t&&li(e,t)?ai(o,n):(e.flags=-4097&e.flags|2,ii=!1,oi=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,oi=e}}}function pi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;oi=e}function di(e){if(e!==oi)return!1;if(!ii)return pi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!or(e.type,e.memoizedProps)),t&&(t=ri)){if(ui(e))throw hi(),Error(i(418));for(;t;)ai(e,t),t=cr(t.nextSibling)}if(pi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ri=cr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ri=null}}else ri=oi?cr(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=ri;e;)e=cr(e.nextSibling)}function fi(){ri=oi=null,ii=!1}function gi(e){null===si?si=[e]:si.push(e)}var mi=w.ReactCurrentBatchConfig;function vi(e,t){if(e&&e.defaultProps){for(var n in t=k({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var yi=Rr(null),Ci=null,wi=null,_i=null;function bi(){_i=wi=Ci=null}function Ei(e){var t=yi.current;Or(yi),e._currentValue=t}function Si(e,t,n){for(;null!==e;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==o&&(o.childLanes|=t)):null!==o&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function Ri(e,t){Ci=e,_i=wi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(wa=!0),e.firstContext=null)}function Oi(e){var t=e._currentValue;if(_i!==e)if(e={context:e,memoizedValue:t,next:null},null===wi){if(null===Ci)throw Error(i(308));wi=e,Ci.dependencies={lanes:0,firstContext:e}}else wi=wi.next=e;return t}var Ti=null;function Pi(e){null===Ti?Ti=[e]:Ti.push(e)}function Ai(e,t,n,o){var r=t.interleaved;return null===r?(n.next=n,Pi(t)):(n.next=r.next,r.next=n),t.interleaved=n,Di(e,o)}function Di(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var xi=!1;function Ni(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ii(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Li(e,t,n){var o=e.updateQueue;if(null===o)return null;if(o=o.shared,0!==(2&Pl)){var r=o.pending;return null===r?t.next=t:(t.next=r.next,r.next=t),o.pending=t,Di(e,n)}return null===(r=o.interleaved)?(t.next=t,Pi(o)):(t.next=r.next,r.next=t),o.interleaved=t,Di(e,n)}function Fi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var o=t.lanes;n|=o&=e.pendingLanes,t.lanes=n,yt(e,n)}}function ki(e,t){var n=e.updateQueue,o=e.alternate;if(null!==o&&n===(o=o.updateQueue)){var r=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?r=i=s:i=i.next=s,n=n.next}while(null!==n);null===i?r=i=t:i=i.next=t}else r=i=t;return n={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:o.shared,effects:o.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Gi(e,t,n,o){var r=e.updateQueue;xi=!1;var i=r.firstBaseUpdate,s=r.lastBaseUpdate,a=r.shared.pending;if(null!==a){r.shared.pending=null;var l=a,u=l.next;l.next=null,null===s?i=u:s.next=u,s=l;var c=e.alternate;null!==c&&((a=(c=c.updateQueue).lastBaseUpdate)!==s&&(null===a?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(null!==i){var p=r.baseState;for(s=0,c=u=l=null,a=i;;){var d=a.lane,h=a.eventTime;if((o&d)===d){null!==c&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var f=e,g=a;switch(d=t,h=n,g.tag){case 1:if("function"===typeof(f=g.payload)){p=f.call(h,p,d);break e}p=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null===(d="function"===typeof(f=g.payload)?f.call(h,p,d):f)||void 0===d)break e;p=k({},p,d);break e;case 2:xi=!0}}null!==a.callback&&0!==a.lane&&(e.flags|=64,null===(d=r.effects)?r.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===c?(u=c=h,l=p):c=c.next=h,s|=d;if(null===(a=a.next)){if(null===(a=r.shared.pending))break;a=(d=a).next,d.next=null,r.lastBaseUpdate=d,r.shared.pending=null}}if(null===c&&(l=p),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,null!==(t=r.shared.interleaved)){r=t;do{s|=r.lane,r=r.next}while(r!==t)}else null===i&&(r.shared.lanes=0);Fl|=s,e.lanes=s,e.memoizedState=p}}function Hi(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=n,"function"!==typeof r)throw Error(i(191,r));r.call(o)}}}var Bi=(new o.Component).refs;function Vi(e,t,n,o){n=null===(n=n(o,t=e.memoizedState))||void 0===n?t:k({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Wi={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var o=eu(),r=tu(e),i=Ii(o,r);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Li(e,i,r))&&(nu(t,e,r,o),Fi(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=eu(),r=tu(e),i=Ii(o,r);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Li(e,i,r))&&(nu(t,e,r,o),Fi(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),o=tu(e),r=Ii(n,o);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),null!==(t=Li(e,r,o))&&(nu(t,e,o,n),Fi(t,e,o))}};function ji(e,t,n,o,r,i,s){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,i,s):!t.prototype||!t.prototype.isPureReactComponent||(!lo(n,o)||!lo(r,i))}function Ui(e,t,n){var o=!1,r=Pr,i=t.contextType;return"object"===typeof i&&null!==i?i=Oi(i):(r=Mr(t)?xr:Ar.current,i=(o=null!==(o=t.contextTypes)&&void 0!==o)?Nr(e,r):Pr),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Wi,e.stateNode=t,t._reactInternals=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),t}function zi(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&&Wi.enqueueReplaceState(t,t.state,null)}function Zi(e,t,n,o){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=Bi,Ni(e);var i=t.contextType;"object"===typeof i&&null!==i?r.context=Oi(i):(i=Mr(t)?xr:Ar.current,r.context=Nr(e,i)),r.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(Vi(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&&Wi.enqueueReplaceState(r,r.state,null),Gi(e,n,r,o),r.state=e.memoizedState),"function"===typeof r.componentDidMount&&(e.flags|=4194308)}function Yi(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(i(309));var o=n.stateNode}if(!o)throw Error(i(147,e));var r=o,s=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===s?t.ref:(t=function(e){var t=r.refs;t===Bi&&(t=r.refs={}),null===e?delete t[s]:t[s]=e},t._stringRef=s,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Ki(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function qi(e){return(0,e._init)(e._payload)}function Xi(e){function t(t,n){if(e){var o=t.deletions;null===o?(t.deletions=[n],t.flags|=16):o.push(n)}}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=Mu(e,t)).index=0,e.sibling=null,e}function s(t,n,o){return t.index=o,e?null!==(o=t.alternate)?(o=o.index)<n?(t.flags|=2,n):o:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,o){return null===t||6!==t.tag?((t=ku(n,e.mode,o)).return=e,t):((t=r(t,n)).return=e,t)}function u(e,t,n,o){var i=n.type;return i===E?p(e,t,n.props.children,o,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===N&&qi(i)===t.type)?((o=r(t,n.props)).ref=Yi(e,t,n),o.return=e,o):((o=Iu(n.type,n.key,n.props,null,e.mode,o)).ref=Yi(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=Gu(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=Lu(n,e.mode,o,i)).return=e,t):((t=r(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=ku(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Iu(t.type,t.key,t.props,null,e.mode,n)).ref=Yi(e,null,t),n.return=e,n;case b:return(t=Gu(t,e.mode,n)).return=e,t;case N:return d(e,(0,t._init)(t._payload),n)}if(te(t)||L(t))return(t=Lu(t,e.mode,n,null)).return=e,t;Ki(e,t)}return null}function h(e,t,n,o){var r=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==r?null:l(e,t,""+n,o);if("object"===typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===r?u(e,t,n,o):null;case b:return n.key===r?c(e,t,n,o):null;case N:return h(e,t,(r=n._init)(n._payload),o)}if(te(n)||L(n))return null!==r?null:p(e,t,n,o,null);Ki(e,n)}return null}function f(e,t,n,o,r){if("string"===typeof o&&""!==o||"number"===typeof o)return l(t,e=e.get(n)||null,""+o,r);if("object"===typeof o&&null!==o){switch(o.$$typeof){case _:return u(t,e=e.get(null===o.key?n:o.key)||null,o,r);case b:return c(t,e=e.get(null===o.key?n:o.key)||null,o,r);case N:return f(e,t,n,(0,o._init)(o._payload),r)}if(te(o)||L(o))return p(t,e=e.get(n)||null,o,r,null);Ki(t,o)}return null}function g(r,i,a,l){for(var u=null,c=null,p=i,g=i=0,m=null;null!==p&&g<a.length;g++){p.index>g?(m=p,p=null):m=p.sibling;var v=h(r,p,a[g],l);if(null===v){null===p&&(p=m);break}e&&p&&null===v.alternate&&t(r,p),i=s(v,i,g),null===c?u=v:c.sibling=v,c=v,p=m}if(g===a.length)return n(r,p),ii&&$r(r,g),u;if(null===p){for(;g<a.length;g++)null!==(p=d(r,a[g],l))&&(i=s(p,i,g),null===c?u=p:c.sibling=p,c=p);return ii&&$r(r,g),u}for(p=o(r,p);g<a.length;g++)null!==(m=f(p,r,g,a[g],l))&&(e&&null!==m.alternate&&p.delete(null===m.key?g:m.key),i=s(m,i,g),null===c?u=m:c.sibling=m,c=m);return e&&p.forEach((function(e){return t(r,e)})),ii&&$r(r,g),u}function m(r,a,l,u){var c=L(l);if("function"!==typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var p=c=null,g=a,m=a=0,v=null,y=l.next();null!==g&&!y.done;m++,y=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var C=h(r,g,y.value,u);if(null===C){null===g&&(g=v);break}e&&g&&null===C.alternate&&t(r,g),a=s(C,a,m),null===p?c=C:p.sibling=C,p=C,g=v}if(y.done)return n(r,g),ii&&$r(r,m),c;if(null===g){for(;!y.done;m++,y=l.next())null!==(y=d(r,y.value,u))&&(a=s(y,a,m),null===p?c=y:p.sibling=y,p=y);return ii&&$r(r,m),c}for(g=o(r,g);!y.done;m++,y=l.next())null!==(y=f(g,r,m,y.value,u))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),a=s(y,a,m),null===p?c=y:p.sibling=y,p=y);return e&&g.forEach((function(e){return t(r,e)})),ii&&$r(r,m),c}return function e(o,i,s,l){if("object"===typeof s&&null!==s&&s.type===E&&null===s.key&&(s=s.props.children),"object"===typeof s&&null!==s){switch(s.$$typeof){case _:e:{for(var u=s.key,c=i;null!==c;){if(c.key===u){if((u=s.type)===E){if(7===c.tag){n(o,c.sibling),(i=r(c,s.props.children)).return=o,o=i;break e}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===N&&qi(u)===c.type){n(o,c.sibling),(i=r(c,s.props)).ref=Yi(o,c,s),i.return=o,o=i;break e}n(o,c);break}t(o,c),c=c.sibling}s.type===E?((i=Lu(s.props.children,o.mode,l,s.key)).return=o,o=i):((l=Iu(s.type,s.key,s.props,null,o.mode,l)).ref=Yi(o,i,s),l.return=o,o=l)}return a(o);case b:e:{for(c=s.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===s.containerInfo&&i.stateNode.implementation===s.implementation){n(o,i.sibling),(i=r(i,s.children||[])).return=o,o=i;break e}n(o,i);break}t(o,i),i=i.sibling}(i=Gu(s,o.mode,l)).return=o,o=i}return a(o);case N:return e(o,i,(c=s._init)(s._payload),l)}if(te(s))return g(o,i,s,l);if(L(s))return m(o,i,s,l);Ki(o,s)}return"string"===typeof s&&""!==s||"number"===typeof s?(s=""+s,null!==i&&6===i.tag?(n(o,i.sibling),(i=r(i,s)).return=o,o=i):(n(o,i),(i=ku(s,o.mode,l)).return=o,o=i),a(o)):n(o,i)}}var Qi=Xi(!0),Ji=Xi(!1),$i={},es=Rr($i),ts=Rr($i),ns=Rr($i);function os(e){if(e===$i)throw Error(i(174));return e}function rs(e,t){switch(Tr(ns,t),Tr(ts,e),Tr(es,$i),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Or(es),Tr(es,t)}function is(){Or(es),Or(ts),Or(ns)}function ss(e){os(ns.current);var t=os(es.current),n=le(t,e.type);t!==n&&(Tr(ts,e),Tr(es,n))}function as(e){ts.current===e&&(Or(es),Or(ts))}var ls=Rr(0);function us(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var cs=[];function ps(){for(var e=0;e<cs.length;e++)cs[e]._workInProgressVersionPrimary=null;cs.length=0}var ds=w.ReactCurrentDispatcher,hs=w.ReactCurrentBatchConfig,fs=0,gs=null,ms=null,vs=null,ys=!1,Cs=!1,ws=0,_s=0;function bs(){throw Error(i(321))}function Es(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ao(e[n],t[n]))return!1;return!0}function Ss(e,t,n,o,r,s){if(fs=s,gs=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ds.current=null===e||null===e.memoizedState?aa:la,e=n(o,r),Cs){s=0;do{if(Cs=!1,ws=0,25<=s)throw Error(i(301));s+=1,vs=ms=null,t.updateQueue=null,ds.current=ua,e=n(o,r)}while(Cs)}if(ds.current=sa,t=null!==ms&&null!==ms.next,fs=0,vs=ms=gs=null,ys=!1,t)throw Error(i(300));return e}function Rs(){var e=0!==ws;return ws=0,e}function Os(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vs?gs.memoizedState=vs=e:vs=vs.next=e,vs}function Ts(){if(null===ms){var e=gs.alternate;e=null!==e?e.memoizedState:null}else e=ms.next;var t=null===vs?gs.memoizedState:vs.next;if(null!==t)vs=t,ms=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ms=e).memoizedState,baseState:ms.baseState,baseQueue:ms.baseQueue,queue:ms.queue,next:null},null===vs?gs.memoizedState=vs=e:vs=vs.next=e}return vs}function Ps(e,t){return"function"===typeof t?t(e):t}function As(e){var t=Ts(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var o=ms,r=o.baseQueue,s=n.pending;if(null!==s){if(null!==r){var a=r.next;r.next=s.next,s.next=a}o.baseQueue=r=s,n.pending=null}if(null!==r){s=r.next,o=o.baseState;var l=a=null,u=null,c=s;do{var p=c.lane;if((fs&p)===p)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var d={lane:p,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=d,a=o):u=u.next=d,gs.lanes|=p,Fl|=p}c=c.next}while(null!==c&&c!==s);null===u?a=o:u.next=l,ao(o,t.memoizedState)||(wa=!0),t.memoizedState=o,t.baseState=a,t.baseQueue=u,n.lastRenderedState=o}if(null!==(e=n.interleaved)){r=e;do{s=r.lane,gs.lanes|=s,Fl|=s,r=r.next}while(r!==e)}else null===r&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ds(e){var t=Ts(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var o=n.dispatch,r=n.pending,s=t.memoizedState;if(null!==r){n.pending=null;var a=r=r.next;do{s=e(s,a.action),a=a.next}while(a!==r);ao(s,t.memoizedState)||(wa=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,o]}function xs(){}function Ns(e,t){var n=gs,o=Ts(),r=t(),s=!ao(o.memoizedState,r);if(s&&(o.memoizedState=r,wa=!0),o=o.queue,Us(Ls.bind(null,n,o,e),[e]),o.getSnapshot!==t||s||null!==vs&&1&vs.memoizedState.tag){if(n.flags|=2048,Hs(9,Is.bind(null,n,o,r,t),void 0,null),null===Al)throw Error(i(349));0!==(30&fs)||Ms(n,t,r)}return r}function Ms(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=gs.updateQueue)?(t={lastEffect:null,stores:null},gs.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Is(e,t,n,o){t.value=n,t.getSnapshot=o,Fs(t)&&ks(e)}function Ls(e,t,n){return n((function(){Fs(t)&&ks(e)}))}function Fs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ao(e,n)}catch(o){return!0}}function ks(e){var t=Di(e,1);null!==t&&nu(t,e,1,-1)}function Gs(e){var t=Os();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ps,lastRenderedState:e},t.queue=e,e=e.dispatch=na.bind(null,gs,e),[t.memoizedState,e]}function Hs(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===(t=gs.updateQueue)?(t={lastEffect:null,stores:null},gs.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 Bs(){return Ts().memoizedState}function Vs(e,t,n,o){var r=Os();gs.flags|=e,r.memoizedState=Hs(1|t,n,void 0,void 0===o?null:o)}function Ws(e,t,n,o){var r=Ts();o=void 0===o?null:o;var i=void 0;if(null!==ms){var s=ms.memoizedState;if(i=s.destroy,null!==o&&Es(o,s.deps))return void(r.memoizedState=Hs(t,n,i,o))}gs.flags|=e,r.memoizedState=Hs(1|t,n,i,o)}function js(e,t){return Vs(8390656,8,e,t)}function Us(e,t){return Ws(2048,8,e,t)}function zs(e,t){return Ws(4,2,e,t)}function Zs(e,t){return Ws(4,4,e,t)}function Ys(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ks(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ws(4,4,Ys.bind(null,t,e),n)}function qs(){}function Xs(e,t){var n=Ts();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Es(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function Qs(e,t){var n=Ts();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Es(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function Js(e,t,n){return 0===(21&fs)?(e.baseState&&(e.baseState=!1,wa=!0),e.memoizedState=n):(ao(n,t)||(n=gt(),gs.lanes|=n,Fl|=n,e.baseState=!0),t)}function $s(e,t){var n=Ct;Ct=0!==n&&4>n?n:4,e(!0);var o=hs.transition;hs.transition={};try{e(!1),t()}finally{Ct=n,hs.transition=o}}function ea(){return Ts().memoizedState}function ta(e,t,n){var o=tu(e);if(n={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null},oa(e))ra(t,n);else if(null!==(n=Ai(e,t,n,o))){nu(n,e,o,eu()),ia(n,t,o)}}function na(e,t,n){var o=tu(e),r={lane:o,action:n,hasEagerState:!1,eagerState:null,next:null};if(oa(e))ra(t,r);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,a=i(s,n);if(r.hasEagerState=!0,r.eagerState=a,ao(a,s)){var l=t.interleaved;return null===l?(r.next=r,Pi(t)):(r.next=l.next,l.next=r),void(t.interleaved=r)}}catch(u){}null!==(n=Ai(e,t,r,o))&&(nu(n,e,o,r=eu()),ia(n,t,o))}}function oa(e){var t=e.alternate;return e===gs||null!==t&&t===gs}function ra(e,t){Cs=ys=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ia(e,t,n){if(0!==(4194240&n)){var o=t.lanes;n|=o&=e.pendingLanes,t.lanes=n,yt(e,n)}}var sa={readContext:Oi,useCallback:bs,useContext:bs,useEffect:bs,useImperativeHandle:bs,useInsertionEffect:bs,useLayoutEffect:bs,useMemo:bs,useReducer:bs,useRef:bs,useState:bs,useDebugValue:bs,useDeferredValue:bs,useTransition:bs,useMutableSource:bs,useSyncExternalStore:bs,useId:bs,unstable_isNewReconciler:!1},aa={readContext:Oi,useCallback:function(e,t){return Os().memoizedState=[e,void 0===t?null:t],e},useContext:Oi,useEffect:js,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Vs(4194308,4,Ys.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Vs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Vs(4,2,e,t)},useMemo:function(e,t){var n=Os();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=Os();return t=void 0!==n?n(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=ta.bind(null,gs,e),[o.memoizedState,e]},useRef:function(e){return e={current:e},Os().memoizedState=e},useState:Gs,useDebugValue:qs,useDeferredValue:function(e){return Os().memoizedState=e},useTransition:function(){var e=Gs(!1),t=e[0];return e=$s.bind(null,e[1]),Os().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var o=gs,r=Os();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Al)throw Error(i(349));0!==(30&fs)||Ms(o,t,n)}r.memoizedState=n;var s={value:n,getSnapshot:t};return r.queue=s,js(Ls.bind(null,o,s,e),[e]),o.flags|=2048,Hs(9,Is.bind(null,o,s,n,t),void 0,null),n},useId:function(){var e=Os(),t=Al.identifierPrefix;if(ii){var n=Jr;t=":"+t+"R"+(n=(Qr&~(1<<32-st(Qr)-1)).toString(32)+n),0<(n=ws++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=_s++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},la={readContext:Oi,useCallback:Xs,useContext:Oi,useEffect:Us,useImperativeHandle:Ks,useInsertionEffect:zs,useLayoutEffect:Zs,useMemo:Qs,useReducer:As,useRef:Bs,useState:function(){return As(Ps)},useDebugValue:qs,useDeferredValue:function(e){return Js(Ts(),ms.memoizedState,e)},useTransition:function(){return[As(Ps)[0],Ts().memoizedState]},useMutableSource:xs,useSyncExternalStore:Ns,useId:ea,unstable_isNewReconciler:!1},ua={readContext:Oi,useCallback:Xs,useContext:Oi,useEffect:Us,useImperativeHandle:Ks,useInsertionEffect:zs,useLayoutEffect:Zs,useMemo:Qs,useReducer:Ds,useRef:Bs,useState:function(){return Ds(Ps)},useDebugValue:qs,useDeferredValue:function(e){var t=Ts();return null===ms?t.memoizedState=e:Js(t,ms.memoizedState,e)},useTransition:function(){return[Ds(Ps)[0],Ts().memoizedState]},useMutableSource:xs,useSyncExternalStore:Ns,useId:ea,unstable_isNewReconciler:!1};function ca(e,t){try{var n="",o=t;do{n+=V(o),o=o.return}while(o);var r=n}catch(i){r="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:r,digest:null}}function pa(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function da(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ha="function"===typeof WeakMap?WeakMap:Map;function fa(e,t,n){(n=Ii(-1,n)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Ul||(Ul=!0,zl=o),da(0,t)},n}function ga(e,t,n){(n=Ii(-1,n)).tag=3;var o=e.type.getDerivedStateFromError;if("function"===typeof o){var r=t.value;n.payload=function(){return o(r)},n.callback=function(){da(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){da(0,t),"function"!==typeof o&&(null===Zl?Zl=new Set([this]):Zl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ma(e,t,n){var o=e.pingCache;if(null===o){o=e.pingCache=new ha;var r=new Set;o.set(t,r)}else void 0===(r=o.get(t))&&(r=new Set,o.set(t,r));r.has(n)||(r.add(n),e=Ru.bind(null,e,t,n),t.then(e,e))}function va(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ya(e,t,n,o,r){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ii(-1,1)).tag=2,Li(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=r,e)}var Ca=w.ReactCurrentOwner,wa=!1;function _a(e,t,n,o){t.child=null===e?Ji(t,null,n,o):Qi(t,e.child,n,o)}function ba(e,t,n,o,r){n=n.render;var i=t.ref;return Ri(t,r),o=Ss(e,t,n,o,i,r),n=Rs(),null===e||wa?(ii&&n&&ti(t),t.flags|=1,_a(e,t,o,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Ua(e,t,r))}function Ea(e,t,n,o,r){if(null===e){var i=n.type;return"function"!==typeof i||Nu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Iu(n.type,null,o,t,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Sa(e,t,i,o,r))}if(i=e.child,0===(e.lanes&r)){var s=i.memoizedProps;if((n=null!==(n=n.compare)?n:lo)(s,o)&&e.ref===t.ref)return Ua(e,t,r)}return t.flags|=1,(e=Mu(i,o)).ref=t.ref,e.return=t,t.child=e}function Sa(e,t,n,o,r){if(null!==e){var i=e.memoizedProps;if(lo(i,o)&&e.ref===t.ref){if(wa=!1,t.pendingProps=o=i,0===(e.lanes&r))return t.lanes=e.lanes,Ua(e,t,r);0!==(131072&e.flags)&&(wa=!0)}}return Ta(e,t,n,o,r)}function Ra(e,t,n){var o=t.pendingProps,r=o.children,i=null!==e?e.memoizedState:null;if("hidden"===o.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Tr(Ml,Nl),Nl|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Tr(Ml,Nl),Nl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=null!==i?i.baseLanes:n,Tr(Ml,Nl),Nl|=o}else null!==i?(o=i.baseLanes|n,t.memoizedState=null):o=n,Tr(Ml,Nl),Nl|=o;return _a(e,t,r,n),t.child}function Oa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ta(e,t,n,o,r){var i=Mr(n)?xr:Ar.current;return i=Nr(t,i),Ri(t,r),n=Ss(e,t,n,o,i,r),o=Rs(),null===e||wa?(ii&&o&&ti(t),t.flags|=1,_a(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r,Ua(e,t,r))}function Pa(e,t,n,o,r){if(Mr(n)){var i=!0;kr(t)}else i=!1;if(Ri(t,r),null===t.stateNode)ja(e,t),Ui(t,n,o),Zi(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=Oi(u):u=Nr(t,u=Mr(n)?xr:Ar.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)&&zi(t,s,o,u),xi=!1;var d=t.memoizedState;s.state=d,Gi(t,o,s,r),l=t.memoizedState,a!==o||d!==l||Dr.current||xi?("function"===typeof c&&(Vi(t,n,c,o),l=t.memoizedState),(a=xi||ji(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.flags|=4194308)):("function"===typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=l),s.props=o,s.state=l,s.context=u,o=a):("function"===typeof s.componentDidMount&&(t.flags|=4194308),o=!1)}else{s=t.stateNode,Mi(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:vi(t.type,a),s.props=u,p=t.pendingProps,d=s.context,"object"===typeof(l=n.contextType)&&null!==l?l=Oi(l):l=Nr(t,l=Mr(n)?xr:Ar.current);var h=n.getDerivedStateFromProps;(c="function"===typeof h||"function"===typeof s.getSnapshotBeforeUpdate)||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(a!==p||d!==l)&&zi(t,s,o,l),xi=!1,d=t.memoizedState,s.state=d,Gi(t,o,s,r);var f=t.memoizedState;a!==p||d!==f||Dr.current||xi?("function"===typeof h&&(Vi(t,n,h,o),f=t.memoizedState),(u=xi||ji(t,n,u,o,d,f,l)||!1)?(c||"function"!==typeof s.UNSAFE_componentWillUpdate&&"function"!==typeof s.componentWillUpdate||("function"===typeof s.componentWillUpdate&&s.componentWillUpdate(o,f,l),"function"===typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(o,f,l)),"function"===typeof s.componentDidUpdate&&(t.flags|=4),"function"===typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=f),s.props=o,s.state=f,s.context=l,o=u):("function"!==typeof s.componentDidUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),o=!1)}return Aa(e,t,n,o,i,r)}function Aa(e,t,n,o,r,i){Oa(e,t);var s=0!==(128&t.flags);if(!o&&!s)return r&&Gr(t,n,!1),Ua(e,t,i);o=t.stateNode,Ca.current=t;var a=s&&"function"!==typeof n.getDerivedStateFromError?null:o.render();return t.flags|=1,null!==e&&s?(t.child=Qi(t,e.child,null,i),t.child=Qi(t,null,a,i)):_a(e,t,a,i),t.memoizedState=o.state,r&&Gr(t,n,!0),t.child}function Da(e){var t=e.stateNode;t.pendingContext?Lr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Lr(0,t.context,!1),rs(e,t.containerInfo)}function xa(e,t,n,o,r){return fi(),gi(r),t.flags|=256,_a(e,t,n,o),t.child}var Na,Ma,Ia,La={dehydrated:null,treeContext:null,retryLane:0};function Fa(e){return{baseLanes:e,cachePool:null,transitions:null}}function ka(e,t,n){var o,r=t.pendingProps,s=ls.current,a=!1,l=0!==(128&t.flags);if((o=l)||(o=(null===e||null!==e.memoizedState)&&0!==(2&s)),o?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(s|=1),Tr(ls,1&s),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=r.children,e=r.fallback,a?(r=t.mode,a=t.child,l={mode:"hidden",children:l},0===(1&r)&&null!==a?(a.childLanes=0,a.pendingProps=l):a=Fu(l,r,0,null),e=Lu(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Fa(n),t.memoizedState=La,e):Ga(t,l));if(null!==(s=e.memoizedState)&&null!==(o=s.dehydrated))return function(e,t,n,o,r,s,a){if(n)return 256&t.flags?(t.flags&=-257,Ha(e,t,a,o=pa(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=o.fallback,r=t.mode,o=Fu({mode:"visible",children:o.children},r,0,null),(s=Lu(s,r,a,null)).flags|=2,o.return=t,s.return=t,o.sibling=s,t.child=o,0!==(1&t.mode)&&Qi(t,e.child,null,a),t.child.memoizedState=Fa(a),t.memoizedState=La,s);if(0===(1&t.mode))return Ha(e,t,a,null);if("$!"===r.data){if(o=r.nextSibling&&r.nextSibling.dataset)var l=o.dgst;return o=l,Ha(e,t,a,o=pa(s=Error(i(419)),o,void 0))}if(l=0!==(a&e.childLanes),wa||l){if(null!==(o=Al)){switch(a&-a){case 4:r=2;break;case 16:r=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:r=32;break;case 536870912:r=268435456;break;default:r=0}0!==(r=0!==(r&(o.suspendedLanes|a))?0:r)&&r!==s.retryLane&&(s.retryLane=r,Di(e,r),nu(o,e,r,-1))}return gu(),Ha(e,t,a,o=pa(Error(i(421))))}return"$?"===r.data?(t.flags|=128,t.child=e.child,t=Tu.bind(null,e),r._reactRetry=t,null):(e=s.treeContext,ri=cr(r.nextSibling),oi=t,ii=!0,si=null,null!==e&&(Kr[qr++]=Qr,Kr[qr++]=Jr,Kr[qr++]=Xr,Qr=e.id,Jr=e.overflow,Xr=t),(t=Ga(t,o.children)).flags|=4096,t)}(e,t,l,r,o,s,n);if(a){a=r.fallback,l=t.mode,o=(s=e.child).sibling;var u={mode:"hidden",children:r.children};return 0===(1&l)&&t.child!==s?((r=t.child).childLanes=0,r.pendingProps=u,t.deletions=null):(r=Mu(s,u)).subtreeFlags=14680064&s.subtreeFlags,null!==o?a=Mu(o,a):(a=Lu(a,l,n,null)).flags|=2,a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,l=null===(l=e.child.memoizedState)?Fa(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=La,r}return e=(a=e.child).sibling,r=Mu(a,{mode:"visible",children:r.children}),0===(1&t.mode)&&(r.lanes=n),r.return=t,r.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ga(e,t){return(t=Fu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ha(e,t,n,o){return null!==o&&gi(o),Qi(t,e.child,null,n),(e=Ga(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ba(e,t,n){e.lanes|=t;var o=e.alternate;null!==o&&(o.lanes|=t),Si(e.return,t,n)}function Va(e,t,n,o,r){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=n,i.tailMode=r)}function Wa(e,t,n){var o=t.pendingProps,r=o.revealOrder,i=o.tail;if(_a(e,t,o.children,n),0!==(2&(o=ls.current)))o=1&o|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ba(e,n,t);else if(19===e.tag)Ba(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(Tr(ls,o),0===(1&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===us(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Va(t,!1,r,n,i);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===us(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Va(t,!0,n,null,i);break;case"together":Va(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ja(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ua(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Mu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Mu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function za(e,t){if(!ii)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 Za(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,o=0;if(t)for(var r=e.child;null!==r;)n|=r.lanes|r.childLanes,o|=14680064&r.subtreeFlags,o|=14680064&r.flags,r.return=e,r=r.sibling;else for(r=e.child;null!==r;)n|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=o,e.childLanes=n,t}function Ya(e,t,n){var o=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Za(t),null;case 1:case 17:return Mr(t.type)&&Ir(),Za(t),null;case 3:return o=t.stateNode,is(),Or(Dr),Or(Ar),ps(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==si&&(su(si),si=null))),Za(t),null;case 5:as(t);var r=os(ns.current);if(n=t.type,null!==e&&null!=t.stateNode)Ma(e,t,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(null===t.stateNode)throw Error(i(166));return Za(t),null}if(e=os(es.current),di(t)){o=t.stateNode,n=t.type;var s=t.memoizedProps;switch(o[hr]=t,o[fr]=s,e=0!==(1&t.mode),n){case"dialog":Bo("cancel",o),Bo("close",o);break;case"iframe":case"object":case"embed":Bo("load",o);break;case"video":case"audio":for(r=0;r<Fo.length;r++)Bo(Fo[r],o);break;case"source":Bo("error",o);break;case"img":case"image":case"link":Bo("error",o),Bo("load",o);break;case"details":Bo("toggle",o);break;case"input":X(o,s),Bo("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!s.multiple},Bo("invalid",o);break;case"textarea":re(o,s),Bo("invalid",o)}for(var l in ye(n,s),r=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"===typeof u?o.textContent!==u&&(!0!==s.suppressHydrationWarning&&$o(o.textContent,u,e),r=["children",u]):"number"===typeof u&&o.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&$o(o.textContent,u,e),r=["children",""+u]):a.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Bo("scroll",o)}switch(n){case"input":Z(o),$(o,s,!0);break;case"textarea":Z(o),se(o);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(o.onclick=er)}o=r,t.updateQueue=o,null!==o&&(t.flags|=4)}else{l=9===r.nodeType?r:r.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof o.is?e=l.createElement(n,{is:o.is}):(e=l.createElement(n),"select"===n&&(l=e,o.multiple?l.multiple=!0:o.size&&(l.size=o.size))):e=l.createElementNS(e,n),e[hr]=t,e[fr]=o,Na(e,t),t.stateNode=e;e:{switch(l=Ce(n,o),n){case"dialog":Bo("cancel",e),Bo("close",e),r=o;break;case"iframe":case"object":case"embed":Bo("load",e),r=o;break;case"video":case"audio":for(r=0;r<Fo.length;r++)Bo(Fo[r],e);r=o;break;case"source":Bo("error",e),r=o;break;case"img":case"image":case"link":Bo("error",e),Bo("load",e),r=o;break;case"details":Bo("toggle",e),r=o;break;case"input":X(e,o),r=q(e,o),Bo("invalid",e);break;case"option":default:r=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},r=k({},o,{value:void 0}),Bo("invalid",e);break;case"textarea":re(e,o),r=oe(e,o),Bo("invalid",e)}for(s in ye(n,r),u=r)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?me(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&pe(e,c):"children"===s?"string"===typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"===typeof c&&de(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Bo("scroll",e):null!=c&&C(e,s,c,l))}switch(n){case"input":Z(e),$(e,o,!1);break;case"textarea":Z(e),se(e);break;case"option":null!=o.value&&e.setAttribute("value",""+U(o.value));break;case"select":e.multiple=!!o.multiple,null!=(s=o.value)?ne(e,!!o.multiple,s,!1):null!=o.defaultValue&&ne(e,!!o.multiple,o.defaultValue,!0);break;default:"function"===typeof r.onClick&&(e.onclick=er)}switch(n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Za(t),null;case 6:if(e&&null!=t.stateNode)Ia(0,t,e.memoizedProps,o);else{if("string"!==typeof o&&null===t.stateNode)throw Error(i(166));if(n=os(ns.current),os(es.current),di(t)){if(o=t.stateNode,n=t.memoizedProps,o[hr]=t,(s=o.nodeValue!==n)&&null!==(e=oi))switch(e.tag){case 3:$o(o.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&$o(o.nodeValue,n,0!==(1&e.mode))}s&&(t.flags|=4)}else(o=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[hr]=t,t.stateNode=o}return Za(t),null;case 13:if(Or(ls),o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==ri&&0!==(1&t.mode)&&0===(128&t.flags))hi(),fi(),t.flags|=98560,s=!1;else if(s=di(t),null!==o&&null!==o.dehydrated){if(null===e){if(!s)throw Error(i(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(i(317));s[hr]=t}else fi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Za(t),s=!1}else null!==si&&(su(si),si=null),s=!0;if(!s)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((o=null!==o)!==(null!==e&&null!==e.memoizedState)&&o&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ls.current)?0===Il&&(Il=3):gu())),null!==t.updateQueue&&(t.flags|=4),Za(t),null);case 4:return is(),null===e&&jo(t.stateNode.containerInfo),Za(t),null;case 10:return Ei(t.type._context),Za(t),null;case 19:if(Or(ls),null===(s=t.memoizedState))return Za(t),null;if(o=0!==(128&t.flags),null===(l=s.rendering))if(o)za(s,!1);else{if(0!==Il||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=us(e))){for(t.flags|=128,za(s,!1),null!==(o=l.updateQueue)&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=n,n=t.child;null!==n;)e=o,(s=n).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Tr(ls,1&ls.current|2),t.child}e=e.sibling}null!==s.tail&&Qe()>Wl&&(t.flags|=128,o=!0,za(s,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=us(l))){if(t.flags|=128,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),za(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ii)return Za(t),null}else 2*Qe()-s.renderingStartTime>Wl&&1073741824!==n&&(t.flags|=128,o=!0,za(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=s.last)?n.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Qe(),t.sibling=null,n=ls.current,Tr(ls,o?1&n|2:1&n),t):(Za(t),null);case 22:case 23:return pu(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&0!==(1&t.mode)?0!==(1073741824&Nl)&&(Za(t),6&t.subtreeFlags&&(t.flags|=8192)):Za(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Ka(e,t){switch(ni(t),t.tag){case 1:return Mr(t.type)&&Ir(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return is(),Or(Dr),Or(Ar),ps(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return as(t),null;case 13:if(Or(ls),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));fi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Or(ls),null;case 4:return is(),null;case 10:return Ei(t.type._context),null;case 22:case 23:return pu(),null;default:return null}}Na=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}},Ma=function(e,t,n,o){var r=e.memoizedProps;if(r!==o){e=t.stateNode,os(es.current);var i,s=null;switch(n){case"input":r=q(e,r),o=q(e,o),s=[];break;case"select":r=k({},r,{value:void 0}),o=k({},o,{value:void 0}),s=[];break;case"textarea":r=oe(e,r),o=oe(e,o),s=[];break;default:"function"!==typeof r.onClick&&"function"===typeof o.onClick&&(e.onclick=er)}for(c in ye(n,o),n=null,r)if(!o.hasOwnProperty(c)&&r.hasOwnProperty(c)&&null!=r[c])if("style"===c){var l=r[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(a.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in o){var u=o[c];if(l=null!=r?r[c]:void 0,o.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(a.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Bo("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Ia=function(e,t,n,o){n!==o&&(t.flags|=4)};var qa=!1,Xa=!1,Qa="function"===typeof WeakSet?WeakSet:Set,Ja=null;function $a(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(o){Su(e,t,o)}else n.current=null}function el(e,t,n){try{n()}catch(o){Su(e,t,o)}}var tl=!1;function nl(e,t,n){var o=t.updateQueue;if(null!==(o=null!==o?o.lastEffect:null)){var r=o=o.next;do{if((r.tag&e)===e){var i=r.destroy;r.destroy=void 0,void 0!==i&&el(t,n,i)}r=r.next}while(r!==o)}}function ol(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 rl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[hr],delete t[fr],delete t[mr],delete t[vr],delete t[yr])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function al(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var o=e.tag;if(5===o||6===o)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=er));else if(4!==o&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var o=e.tag;if(5===o||6===o)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==o&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,pl=!1;function dl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(rt,n)}catch(a){}switch(n.tag){case 5:Xa||$a(n,t);case 6:var o=cl,r=pl;cl=null,dl(e,t,n),pl=r,null!==(cl=o)&&(pl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(pl?(e=cl,n=n.stateNode,8===e.nodeType?ur(e.parentNode,n):1===e.nodeType&&ur(e,n),Wt(e)):ur(cl,n.stateNode));break;case 4:o=cl,r=pl,cl=n.stateNode.containerInfo,pl=!0,dl(e,t,n),cl=o,pl=r;break;case 0:case 11:case 14:case 15:if(!Xa&&(null!==(o=n.updateQueue)&&null!==(o=o.lastEffect))){r=o=o.next;do{var i=r,s=i.destroy;i=i.tag,void 0!==s&&(0!==(2&i)||0!==(4&i))&&el(n,t,s),r=r.next}while(r!==o)}dl(e,t,n);break;case 1:if(!Xa&&($a(n,t),"function"===typeof(o=n.stateNode).componentWillUnmount))try{o.props=n.memoizedProps,o.state=n.memoizedState,o.componentWillUnmount()}catch(a){Su(n,t,a)}dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:1&n.mode?(Xa=(o=Xa)||null!==n.memoizedState,dl(e,t,n),Xa=o):dl(e,t,n);break;default:dl(e,t,n)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qa),t.forEach((function(t){var o=Pu.bind(null,e,t);n.has(t)||(n.add(t),t.then(o,o))}))}}function gl(e,t){var n=t.deletions;if(null!==n)for(var o=0;o<n.length;o++){var r=n[o];try{var s=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,pl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,pl=!0;break e}l=l.return}if(null===cl)throw Error(i(160));hl(s,a,r),cl=null,pl=!1;var u=r.alternate;null!==u&&(u.return=null),r.return=null}catch(c){Su(r,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ml(t,e),t=t.sibling}function ml(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),vl(e),4&o){try{nl(3,e,e.return),ol(3,e)}catch(m){Su(e,e.return,m)}try{nl(5,e,e.return)}catch(m){Su(e,e.return,m)}}break;case 1:gl(t,e),vl(e),512&o&&null!==n&&$a(n,n.return);break;case 5:if(gl(t,e),vl(e),512&o&&null!==n&&$a(n,n.return),32&e.flags){var r=e.stateNode;try{de(r,"")}catch(m){Su(e,e.return,m)}}if(4&o&&null!=(r=e.stateNode)){var s=e.memoizedProps,a=null!==n?n.memoizedProps:s,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===s.type&&null!=s.name&&Q(r,s),Ce(l,a);var c=Ce(l,s);for(a=0;a<u.length;a+=2){var p=u[a],d=u[a+1];"style"===p?me(r,d):"dangerouslySetInnerHTML"===p?pe(r,d):"children"===p?de(r,d):C(r,p,d,c)}switch(l){case"input":J(r,s);break;case"textarea":ie(r,s);break;case"select":var h=r._wrapperState.wasMultiple;r._wrapperState.wasMultiple=!!s.multiple;var f=s.value;null!=f?ne(r,!!s.multiple,f,!1):h!==!!s.multiple&&(null!=s.defaultValue?ne(r,!!s.multiple,s.defaultValue,!0):ne(r,!!s.multiple,s.multiple?[]:"",!1))}r[fr]=s}catch(m){Su(e,e.return,m)}}break;case 6:if(gl(t,e),vl(e),4&o){if(null===e.stateNode)throw Error(i(162));r=e.stateNode,s=e.memoizedProps;try{r.nodeValue=s}catch(m){Su(e,e.return,m)}}break;case 3:if(gl(t,e),vl(e),4&o&&null!==n&&n.memoizedState.isDehydrated)try{Wt(t.containerInfo)}catch(m){Su(e,e.return,m)}break;case 4:default:gl(t,e),vl(e);break;case 13:gl(t,e),vl(e),8192&(r=e.child).flags&&(s=null!==r.memoizedState,r.stateNode.isHidden=s,!s||null!==r.alternate&&null!==r.alternate.memoizedState||(Vl=Qe())),4&o&&fl(e);break;case 22:if(p=null!==n&&null!==n.memoizedState,1&e.mode?(Xa=(c=Xa)||p,gl(t,e),Xa=c):gl(t,e),vl(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!p&&0!==(1&e.mode))for(Ja=e,p=e.child;null!==p;){for(d=Ja=p;null!==Ja;){switch(f=(h=Ja).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:$a(h,h.return);var g=h.stateNode;if("function"===typeof g.componentWillUnmount){o=h,n=h.return;try{t=o,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){Su(o,n,m)}}break;case 5:$a(h,h.return);break;case 22:if(null!==h.memoizedState){_l(d);continue}}null!==f?(f.return=h,Ja=f):_l(d)}p=p.sibling}e:for(p=null,d=e;;){if(5===d.tag){if(null===p){p=d;try{r=d.stateNode,c?"function"===typeof(s=r.style).setProperty?s.setProperty("display","none","important"):s.display="none":(l=d.stateNode,a=void 0!==(u=d.memoizedProps.style)&&null!==u&&u.hasOwnProperty("display")?u.display:null,l.style.display=ge("display",a))}catch(m){Su(e,e.return,m)}}}else if(6===d.tag){if(null===p)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(m){Su(e,e.return,m)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;p===d&&(p=null),d=d.return}p===d&&(p=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:gl(t,e),vl(e),4&o&&fl(e);case 21:}}function vl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var o=n;break e}n=n.return}throw Error(i(160))}switch(o.tag){case 5:var r=o.stateNode;32&o.flags&&(de(r,""),o.flags&=-33),ul(e,al(e),r);break;case 3:case 4:var s=o.stateNode.containerInfo;ll(e,al(e),s);break;default:throw Error(i(161))}}catch(a){Su(e,e.return,a)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Ja=e,Cl(e,t,n)}function Cl(e,t,n){for(var o=0!==(1&e.mode);null!==Ja;){var r=Ja,i=r.child;if(22===r.tag&&o){var s=null!==r.memoizedState||qa;if(!s){var a=r.alternate,l=null!==a&&null!==a.memoizedState||Xa;a=qa;var u=Xa;if(qa=s,(Xa=l)&&!u)for(Ja=r;null!==Ja;)l=(s=Ja).child,22===s.tag&&null!==s.memoizedState?bl(r):null!==l?(l.return=s,Ja=l):bl(r);for(;null!==i;)Ja=i,Cl(i,t,n),i=i.sibling;Ja=r,qa=a,Xa=u}wl(e)}else 0!==(8772&r.subtreeFlags)&&null!==i?(i.return=r,Ja=i):wl(e)}}function wl(e){for(;null!==Ja;){var t=Ja;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xa||ol(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Xa)if(null===n)o.componentDidMount();else{var r=t.elementType===t.type?n.memoizedProps:vi(t.type,n.memoizedProps);o.componentDidUpdate(r,n.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;null!==s&&Hi(t,s,o);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Hi(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var p=c.memoizedState;if(null!==p){var d=p.dehydrated;null!==d&&Wt(d)}}}break;default:throw Error(i(163))}Xa||512&t.flags&&rl(t)}catch(h){Su(t,t.return,h)}}if(t===e){Ja=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ja=n;break}Ja=t.return}}function _l(e){for(;null!==Ja;){var t=Ja;if(t===e){Ja=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ja=n;break}Ja=t.return}}function bl(e){for(;null!==Ja;){var t=Ja;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ol(4,t)}catch(l){Su(t,n,l)}break;case 1:var o=t.stateNode;if("function"===typeof o.componentDidMount){var r=t.return;try{o.componentDidMount()}catch(l){Su(t,r,l)}}var i=t.return;try{rl(t)}catch(l){Su(t,i,l)}break;case 5:var s=t.return;try{rl(t)}catch(l){Su(t,s,l)}}}catch(l){Su(t,t.return,l)}if(t===e){Ja=null;break}var a=t.sibling;if(null!==a){a.return=t.return,Ja=a;break}Ja=t.return}}var El,Sl=Math.ceil,Rl=w.ReactCurrentDispatcher,Ol=w.ReactCurrentOwner,Tl=w.ReactCurrentBatchConfig,Pl=0,Al=null,Dl=null,xl=0,Nl=0,Ml=Rr(0),Il=0,Ll=null,Fl=0,kl=0,Gl=0,Hl=null,Bl=null,Vl=0,Wl=1/0,jl=null,Ul=!1,zl=null,Zl=null,Yl=!1,Kl=null,ql=0,Xl=0,Ql=null,Jl=-1,$l=0;function eu(){return 0!==(6&Pl)?Qe():-1!==Jl?Jl:Jl=Qe()}function tu(e){return 0===(1&e.mode)?1:0!==(2&Pl)&&0!==xl?xl&-xl:null!==mi.transition?(0===$l&&($l=gt()),$l):0!==(e=Ct)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function nu(e,t,n,o){if(50<Xl)throw Xl=0,Ql=null,Error(i(185));vt(e,n,o),0!==(2&Pl)&&e===Al||(e===Al&&(0===(2&Pl)&&(kl|=n),4===Il&&au(e,xl)),ou(e,o),1===n&&0===Pl&&0===(1&t.mode)&&(Wl=Qe()+500,Br&&jr()))}function ou(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,r=e.expirationTimes,i=e.pendingLanes;0<i;){var s=31-st(i),a=1<<s,l=r[s];-1===l?0!==(a&n)&&0===(a&o)||(r[s]=ht(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}(e,t);var o=dt(e,e===Al?xl:0);if(0===o)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){Br=!0,Wr(e)}(lu.bind(null,e)):Wr(lu.bind(null,e)),ar((function(){0===(6&Pl)&&jr()})),n=null;else{switch(wt(o)){case 1:n=$e;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=ot}n=Au(n,ru.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ru(e,t){if(Jl=-1,$l=0,0!==(6&Pl))throw Error(i(327));var n=e.callbackNode;if(bu()&&e.callbackNode!==n)return null;var o=dt(e,e===Al?xl:0);if(0===o)return null;if(0!==(30&o)||0!==(o&e.expiredLanes)||t)t=mu(e,o);else{t=o;var r=Pl;Pl|=2;var s=fu();for(Al===e&&xl===t||(jl=null,Wl=Qe()+500,du(e,t));;)try{yu();break}catch(l){hu(e,l)}bi(),Rl.current=s,Pl=r,null!==Dl?t=0:(Al=null,xl=0,t=Il)}if(0!==t){if(2===t&&(0!==(r=ft(e))&&(o=r,t=iu(e,r))),1===t)throw n=Ll,du(e,0),au(e,o),ou(e,Qe()),n;if(6===t)au(e,o);else{if(r=e.current.alternate,0===(30&o)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var o=0;o<n.length;o++){var r=n[o],i=r.getSnapshot;r=r.value;try{if(!ao(i(),r))return!1}catch(a){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(r)&&(2===(t=mu(e,o))&&(0!==(s=ft(e))&&(o=s,t=iu(e,s))),1===t))throw n=Ll,du(e,0),au(e,o),ou(e,Qe()),n;switch(e.finishedWork=r,e.finishedLanes=o,t){case 0:case 1:throw Error(i(345));case 2:case 5:_u(e,Bl,jl);break;case 3:if(au(e,o),(130023424&o)===o&&10<(t=Vl+500-Qe())){if(0!==dt(e,0))break;if(((r=e.suspendedLanes)&o)!==o){eu(),e.pingedLanes|=e.suspendedLanes&r;break}e.timeoutHandle=rr(_u.bind(null,e,Bl,jl),t);break}_u(e,Bl,jl);break;case 4:if(au(e,o),(4194240&o)===o)break;for(t=e.eventTimes,r=-1;0<o;){var a=31-st(o);s=1<<a,(a=t[a])>r&&(r=a),o&=~s}if(o=r,10<(o=(120>(o=Qe()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Sl(o/1960))-o)){e.timeoutHandle=rr(_u.bind(null,e,Bl,jl),o);break}_u(e,Bl,jl);break;default:throw Error(i(329))}}}return ou(e,Qe()),e.callbackNode===n?ru.bind(null,e):null}function iu(e,t){var n=Hl;return e.current.memoizedState.isDehydrated&&(du(e,t).flags|=256),2!==(e=mu(e,t))&&(t=Bl,Bl=n,null!==t&&su(t)),e}function su(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function au(e,t){for(t&=~Gl,t&=~kl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),o=1<<n;e[n]=-1,t&=~o}}function lu(e){if(0!==(6&Pl))throw Error(i(327));bu();var t=dt(e,0);if(0===(1&t))return ou(e,Qe()),null;var n=mu(e,t);if(0!==e.tag&&2===n){var o=ft(e);0!==o&&(t=o,n=iu(e,o))}if(1===n)throw n=Ll,du(e,0),au(e,t),ou(e,Qe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_u(e,Bl,jl),ou(e,Qe()),null}function uu(e,t){var n=Pl;Pl|=1;try{return e(t)}finally{0===(Pl=n)&&(Wl=Qe()+500,Br&&jr())}}function cu(e){null!==Kl&&0===Kl.tag&&0===(6&Pl)&&bu();var t=Pl;Pl|=1;var n=Tl.transition,o=Ct;try{if(Tl.transition=null,Ct=1,e)return e()}finally{Ct=o,Tl.transition=n,0===(6&(Pl=t))&&jr()}}function pu(){Nl=Ml.current,Or(Ml)}function du(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ir(n)),null!==Dl)for(n=Dl.return;null!==n;){var o=n;switch(ni(o),o.tag){case 1:null!==(o=o.type.childContextTypes)&&void 0!==o&&Ir();break;case 3:is(),Or(Dr),Or(Ar),ps();break;case 5:as(o);break;case 4:is();break;case 13:case 19:Or(ls);break;case 10:Ei(o.type._context);break;case 22:case 23:pu()}n=n.return}if(Al=e,Dl=e=Mu(e.current,null),xl=Nl=t,Il=0,Ll=null,Gl=kl=Fl=0,Bl=Hl=null,null!==Ti){for(t=0;t<Ti.length;t++)if(null!==(o=(n=Ti[t]).interleaved)){n.interleaved=null;var r=o.next,i=n.pending;if(null!==i){var s=i.next;i.next=r,o.next=s}n.pending=o}Ti=null}return e}function hu(e,t){for(;;){var n=Dl;try{if(bi(),ds.current=sa,ys){for(var o=gs.memoizedState;null!==o;){var r=o.queue;null!==r&&(r.pending=null),o=o.next}ys=!1}if(fs=0,vs=ms=gs=null,Cs=!1,ws=0,Ol.current=null,null===n||null===n.return){Il=1,Ll=t,Dl=null;break}e:{var s=e,a=n.return,l=n,u=t;if(t=xl,l.flags|=32768,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u,p=l,d=p.tag;if(0===(1&p.mode)&&(0===d||11===d||15===d)){var h=p.alternate;h?(p.updateQueue=h.updateQueue,p.memoizedState=h.memoizedState,p.lanes=h.lanes):(p.updateQueue=null,p.memoizedState=null)}var f=va(a);if(null!==f){f.flags&=-257,ya(f,a,l,0,t),1&f.mode&&ma(s,c,t),u=c;var g=(t=f).updateQueue;if(null===g){var m=new Set;m.add(u),t.updateQueue=m}else g.add(u);break e}if(0===(1&t)){ma(s,c,t),gu();break e}u=Error(i(426))}else if(ii&&1&l.mode){var v=va(a);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),ya(v,a,l,0,t),gi(ca(u,l));break e}}s=u=ca(u,l),4!==Il&&(Il=2),null===Hl?Hl=[s]:Hl.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t,ki(s,fa(0,u,t));break e;case 1:l=u;var y=s.type,C=s.stateNode;if(0===(128&s.flags)&&("function"===typeof y.getDerivedStateFromError||null!==C&&"function"===typeof C.componentDidCatch&&(null===Zl||!Zl.has(C)))){s.flags|=65536,t&=-t,s.lanes|=t,ki(s,ga(s,l,t));break e}}s=s.return}while(null!==s)}wu(n)}catch(w){t=w,Dl===n&&null!==n&&(Dl=n=n.return);continue}break}}function fu(){var e=Rl.current;return Rl.current=sa,null===e?sa:e}function gu(){0!==Il&&3!==Il&&2!==Il||(Il=4),null===Al||0===(268435455&Fl)&&0===(268435455&kl)||au(Al,xl)}function mu(e,t){var n=Pl;Pl|=2;var o=fu();for(Al===e&&xl===t||(jl=null,du(e,t));;)try{vu();break}catch(r){hu(e,r)}if(bi(),Pl=n,Rl.current=o,null!==Dl)throw Error(i(261));return Al=null,xl=0,Il}function vu(){for(;null!==Dl;)Cu(Dl)}function yu(){for(;null!==Dl&&!qe();)Cu(Dl)}function Cu(e){var t=El(e.alternate,e,Nl);e.memoizedProps=e.pendingProps,null===t?wu(e):Dl=t,Ol.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ya(n,t,Nl)))return void(Dl=n)}else{if(null!==(n=Ka(n,t)))return n.flags&=32767,void(Dl=n);if(null===e)return Il=6,void(Dl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Dl=t);Dl=t=e}while(null!==t);0===Il&&(Il=5)}function _u(e,t,n){var o=Ct,r=Tl.transition;try{Tl.transition=null,Ct=1,function(e,t,n,o){do{bu()}while(null!==Kl);if(0!==(6&Pl))throw Error(i(327));n=e.finishedWork;var r=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<n;){var r=31-st(n),i=1<<r;t[r]=0,o[r]=-1,e[r]=-1,n&=~i}}(e,s),e===Al&&(Dl=Al=null,xl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Yl||(Yl=!0,Au(tt,(function(){return bu(),null}))),s=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||s){s=Tl.transition,Tl.transition=null;var a=Ct;Ct=1;var l=Pl;Pl|=4,Ol.current=null,function(e,t){if(tr=Ut,fo(e=ho())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(o&&0!==o.rangeCount){n=o.anchorNode;var r=o.anchorOffset,s=o.focusNode;o=o.focusOffset;try{n.nodeType,s.nodeType}catch(_){n=null;break e}var a=0,l=-1,u=-1,c=0,p=0,d=e,h=null;t:for(;;){for(var f;d!==n||0!==r&&3!==d.nodeType||(l=a+r),d!==s||0!==o&&3!==d.nodeType||(u=a+o),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)h=d,d=f;for(;;){if(d===e)break t;if(h===n&&++c===r&&(l=a),h===s&&++p===o&&(u=a),null!==(f=d.nextSibling))break;h=(d=h).parentNode}d=f}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(nr={focusedElem:e,selectionRange:n},Ut=!1,Ja=t;null!==Ja;)if(e=(t=Ja).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Ja=e;else for(;null!==Ja;){t=Ja;try{var g=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,v=g.memoizedState,y=t.stateNode,C=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:vi(t.type,m),v);y.__reactInternalSnapshotBeforeUpdate=C}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(_){Su(t,t.return,_)}if(null!==(e=t.sibling)){e.return=t.return,Ja=e;break}Ja=t.return}g=tl,tl=!1}(e,n),ml(n,e),go(nr),Ut=!!tr,nr=tr=null,e.current=n,yl(n,e,r),Xe(),Pl=l,Ct=a,Tl.transition=s}else e.current=n;if(Yl&&(Yl=!1,Kl=e,ql=r),0===(s=e.pendingLanes)&&(Zl=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(rt,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),ou(e,Qe()),null!==t)for(o=e.onRecoverableError,n=0;n<t.length;n++)o((r=t[n]).value,{componentStack:r.stack,digest:r.digest});if(Ul)throw Ul=!1,e=zl,zl=null,e;0!==(1&ql)&&0!==e.tag&&bu(),0!==(1&(s=e.pendingLanes))?e===Ql?Xl++:(Xl=0,Ql=e):Xl=0,jr()}(e,t,n,o)}finally{Tl.transition=r,Ct=o}return null}function bu(){if(null!==Kl){var e=wt(ql),t=Tl.transition,n=Ct;try{if(Tl.transition=null,Ct=16>e?16:e,null===Kl)var o=!1;else{if(e=Kl,Kl=null,ql=0,0!==(6&Pl))throw Error(i(331));var r=Pl;for(Pl|=4,Ja=e.current;null!==Ja;){var s=Ja,a=s.child;if(0!==(16&Ja.flags)){var l=s.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Ja=c;null!==Ja;){var p=Ja;switch(p.tag){case 0:case 11:case 15:nl(8,p,s)}var d=p.child;if(null!==d)d.return=p,Ja=d;else for(;null!==Ja;){var h=(p=Ja).sibling,f=p.return;if(il(p),p===c){Ja=null;break}if(null!==h){h.return=f,Ja=h;break}Ja=f}}}var g=s.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}Ja=s}}if(0!==(2064&s.subtreeFlags)&&null!==a)a.return=s,Ja=a;else e:for(;null!==Ja;){if(0!==(2048&(s=Ja).flags))switch(s.tag){case 0:case 11:case 15:nl(9,s,s.return)}var y=s.sibling;if(null!==y){y.return=s.return,Ja=y;break e}Ja=s.return}}var C=e.current;for(Ja=C;null!==Ja;){var w=(a=Ja).child;if(0!==(2064&a.subtreeFlags)&&null!==w)w.return=a,Ja=w;else e:for(a=C;null!==Ja;){if(0!==(2048&(l=Ja).flags))try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(b){Su(l,l.return,b)}if(l===a){Ja=null;break e}var _=l.sibling;if(null!==_){_.return=l.return,Ja=_;break e}Ja=l.return}}if(Pl=r,jr(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(rt,e)}catch(b){}o=!0}return o}finally{Ct=n,Tl.transition=t}}return!1}function Eu(e,t,n){e=Li(e,t=fa(0,t=ca(n,t),1),1),t=eu(),null!==e&&(vt(e,1,t),ou(e,t))}function Su(e,t,n){if(3===e.tag)Eu(e,e,n);else for(;null!==t;){if(3===t.tag){Eu(t,e,n);break}if(1===t.tag){var o=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof o.componentDidCatch&&(null===Zl||!Zl.has(o))){t=Li(t,e=ga(t,e=ca(n,e),1),1),e=eu(),null!==t&&(vt(t,1,e),ou(t,e));break}}t=t.return}}function Ru(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Al===e&&(xl&n)===n&&(4===Il||3===Il&&(130023424&xl)===xl&&500>Qe()-Vl?du(e,0):Gl|=n),ou(e,t)}function Ou(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=eu();null!==(e=Di(e,t))&&(vt(e,t,n),ou(e,n))}function Tu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ou(e,n)}function Pu(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,r=e.memoizedState;null!==r&&(n=r.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(i(314))}null!==o&&o.delete(t),Ou(e,n)}function Au(e,t){return Ye(e,t)}function Du(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.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xu(e,t,n,o){return new Du(e,t,n,o)}function Nu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mu(e,t){var n=e.alternate;return null===n?((n=xu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Iu(e,t,n,o,r,s){var a=2;if(o=e,"function"===typeof e)Nu(e)&&(a=1);else if("string"===typeof e)a=5;else e:switch(e){case E:return Lu(n.children,r,s,t);case S:a=8,r|=8;break;case R:return(e=xu(12,n,t,2|r)).elementType=R,e.lanes=s,e;case A:return(e=xu(13,n,t,r)).elementType=A,e.lanes=s,e;case D:return(e=xu(19,n,t,r)).elementType=D,e.lanes=s,e;case M:return Fu(n,r,s,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case O:a=10;break e;case T:a=9;break e;case P:a=11;break e;case x:a=14;break e;case N:a=16,o=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=xu(a,n,t,r)).elementType=e,t.type=o,t.lanes=s,t}function Lu(e,t,n,o){return(e=xu(7,e,o,t)).lanes=n,e}function Fu(e,t,n,o){return(e=xu(22,e,o,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function ku(e,t,n){return(e=xu(6,e,null,t)).lanes=n,e}function Gu(e,t,n){return(t=xu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hu(e,t,n,o,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=o,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null}function Bu(e,t,n,o,r,i,s,a,l){return e=new Hu(e,t,n,a,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=xu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ni(i),e}function Vu(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:b,key:null==o?null:""+o,children:e,containerInfo:t,implementation:n}}function Wu(e){if(!e)return Pr;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mr(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Mr(n))return Fr(e,n,t)}return t}function ju(e,t,n,o,r,i,s,a,l){return(e=Bu(n,o,!0,e,0,i,0,a,l)).context=Wu(null),n=e.current,(i=Ii(o=eu(),r=tu(n))).callback=void 0!==t&&null!==t?t:null,Li(n,i,r),e.current.lanes=r,vt(e,r,o),ou(e,o),e}function Uu(e,t,n,o){var r=t.current,i=eu(),s=tu(r);return n=Wu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ii(i,s)).payload={element:e},null!==(o=void 0===o?null:o)&&(t.callback=o),null!==(e=Li(r,t,s))&&(nu(e,r,s,i),Fi(e,r,s)),s}function zu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Zu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Yu(e,t){Zu(e,t),(e=e.alternate)&&Zu(e,t)}El=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Dr.current)wa=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return wa=!1,function(e,t,n){switch(t.tag){case 3:Da(t),fi();break;case 5:ss(t);break;case 1:Mr(t.type)&&kr(t);break;case 4:rs(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,r=t.memoizedProps.value;Tr(yi,o._currentValue),o._currentValue=r;break;case 13:if(null!==(o=t.memoizedState))return null!==o.dehydrated?(Tr(ls,1&ls.current),t.flags|=128,null):0!==(n&t.child.childLanes)?ka(e,t,n):(Tr(ls,1&ls.current),null!==(e=Ua(e,t,n))?e.sibling:null);Tr(ls,1&ls.current);break;case 19:if(o=0!==(n&t.childLanes),0!==(128&e.flags)){if(o)return Wa(e,t,n);t.flags|=128}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null,r.lastEffect=null),Tr(ls,ls.current),o)break;return null;case 22:case 23:return t.lanes=0,Ra(e,t,n)}return Ua(e,t,n)}(e,t,n);wa=0!==(131072&e.flags)}else wa=!1,ii&&0!==(1048576&t.flags)&&ei(t,Yr,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;ja(e,t),e=t.pendingProps;var r=Nr(t,Ar.current);Ri(t,n),r=Ss(null,t,o,e,r,n);var s=Rs();return t.flags|=1,"object"===typeof r&&null!==r&&"function"===typeof r.render&&void 0===r.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mr(o)?(s=!0,kr(t)):s=!1,t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,Ni(t),r.updater=Wi,t.stateNode=r,r._reactInternals=t,Zi(t,o,e,n),t=Aa(null,t,o,!0,s,n)):(t.tag=0,ii&&s&&ti(t),_a(null,t,r,n),t=t.child),t;case 16:o=t.elementType;e:{switch(ja(e,t),e=t.pendingProps,o=(r=o._init)(o._payload),t.type=o,r=t.tag=function(e){if("function"===typeof e)return Nu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===P)return 11;if(e===x)return 14}return 2}(o),e=vi(o,e),r){case 0:t=Ta(null,t,o,e,n);break e;case 1:t=Pa(null,t,o,e,n);break e;case 11:t=ba(null,t,o,e,n);break e;case 14:t=Ea(null,t,o,vi(o.type,e),n);break e}throw Error(i(306,o,""))}return t;case 0:return o=t.type,r=t.pendingProps,Ta(e,t,o,r=t.elementType===o?r:vi(o,r),n);case 1:return o=t.type,r=t.pendingProps,Pa(e,t,o,r=t.elementType===o?r:vi(o,r),n);case 3:e:{if(Da(t),null===e)throw Error(i(387));o=t.pendingProps,r=(s=t.memoizedState).element,Mi(e,t),Gi(t,o,null,n);var a=t.memoizedState;if(o=a.element,s.isDehydrated){if(s={element:o,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=xa(e,t,o,n,r=ca(Error(i(423)),t));break e}if(o!==r){t=xa(e,t,o,n,r=ca(Error(i(424)),t));break e}for(ri=cr(t.stateNode.containerInfo.firstChild),oi=t,ii=!0,si=null,n=Ji(t,null,o,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(fi(),o===r){t=Ua(e,t,n);break e}_a(e,t,o,n)}t=t.child}return t;case 5:return ss(t),null===e&&ci(t),o=t.type,r=t.pendingProps,s=null!==e?e.memoizedProps:null,a=r.children,or(o,r)?a=null:null!==s&&or(o,s)&&(t.flags|=32),Oa(e,t),_a(e,t,a,n),t.child;case 6:return null===e&&ci(t),null;case 13:return ka(e,t,n);case 4:return rs(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Qi(t,null,o,n):_a(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,ba(e,t,o,r=t.elementType===o?r:vi(o,r),n);case 7:return _a(e,t,t.pendingProps,n),t.child;case 8:case 12:return _a(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,r=t.pendingProps,s=t.memoizedProps,a=r.value,Tr(yi,o._currentValue),o._currentValue=a,null!==s)if(ao(s.value,a)){if(s.children===r.children&&!Dr.current){t=Ua(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){a=s.child;for(var u=l.firstContext;null!==u;){if(u.context===o){if(1===s.tag){(u=Ii(-1,n&-n)).tag=2;var c=s.updateQueue;if(null!==c){var p=(c=c.shared).pending;null===p?u.next=u:(u.next=p.next,p.next=u),c.pending=u}}s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),Si(s.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===s.tag)a=s.type===t.type?null:s.child;else if(18===s.tag){if(null===(a=s.return))throw Error(i(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Si(a,n,t),a=s.sibling}else a=s.child;if(null!==a)a.return=s;else for(a=s;null!==a;){if(a===t){a=null;break}if(null!==(s=a.sibling)){s.return=a.return,a=s;break}a=a.return}s=a}_a(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=t.pendingProps.children,Ri(t,n),o=o(r=Oi(r)),t.flags|=1,_a(e,t,o,n),t.child;case 14:return r=vi(o=t.type,t.pendingProps),Ea(e,t,o,r=vi(o.type,r),n);case 15:return Sa(e,t,t.type,t.pendingProps,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:vi(o,r),ja(e,t),t.tag=1,Mr(o)?(e=!0,kr(t)):e=!1,Ri(t,n),Ui(t,o,r),Zi(t,o,r,n),Aa(null,t,o,!0,e,n);case 19:return Wa(e,t,n);case 22:return Ra(e,t,n)}throw Error(i(156,t.tag))};var Ku="function"===typeof reportError?reportError:function(e){console.error(e)};function qu(e){this._internalRoot=e}function Xu(e){this._internalRoot=e}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function $u(){}function ec(e,t,n,o,r){var i=n._reactRootContainer;if(i){var s=i;if("function"===typeof r){var a=r;r=function(){var e=zu(s);a.call(e)}}Uu(t,s,e,r)}else s=function(e,t,n,o,r){if(r){if("function"===typeof o){var i=o;o=function(){var e=zu(s);i.call(e)}}var s=ju(t,o,e,0,null,!1,0,"",$u);return e._reactRootContainer=s,e[gr]=s.current,jo(8===e.nodeType?e.parentNode:e),cu(),s}for(;r=e.lastChild;)e.removeChild(r);if("function"===typeof o){var a=o;o=function(){var e=zu(l);a.call(e)}}var l=Bu(e,0,!1,null,0,!1,0,"",$u);return e._reactRootContainer=l,e[gr]=l.current,jo(8===e.nodeType?e.parentNode:e),cu((function(){Uu(t,l,n,o)})),l}(n,t,e,r,o);return zu(s)}Xu.prototype.render=qu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Uu(e,t,null,null)},Xu.prototype.unmount=qu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){Uu(null,e,null,null)})),t[gr]=null}},Xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&kt(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pt(t.pendingLanes);0!==n&&(yt(t,1|n),ou(t,Qe()),0===(6&Pl)&&(Wl=Qe()+500,jr()))}break;case 13:cu((function(){var t=Di(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),Yu(e,1)}},bt=function(e){if(13===e.tag){var t=Di(e,134217728);if(null!==t)nu(t,e,134217728,eu());Yu(e,134217728)}},Et=function(e){if(13===e.tag){var t=tu(e),n=Di(e,t);if(null!==n)nu(n,e,t,eu());Yu(e,t)}},St=function(){return Ct},Rt=function(e,t){var n=Ct;try{return Ct=e,t()}finally{Ct=n}},be=function(e,t,n){switch(t){case"input":if(J(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=br(o);if(!r)throw Error(i(90));Y(o),J(o,r)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Pe=uu,Ae=cu;var tc={usingClientEntryPoint:!1,Events:[wr,_r,br,Oe,Te,uu]},nc={findFiberByHostInstance:Cr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},oc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=ze(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{rt=rc.inject(oc),it=rc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qu(t))throw Error(i(200));return Vu(e,t,null,n)},t.createRoot=function(e,t){if(!Qu(e))throw Error(i(299));var n=!1,o="",r=Ku;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(r=t.onRecoverableError)),t=Bu(e,1,!1,null,0,n,0,o,r),e[gr]=t.current,jo(8===e.nodeType?e.parentNode:e),new qu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=ze(t))?null:e.stateNode},t.flushSync=function(e){return cu(e)},t.hydrate=function(e,t,n){if(!Ju(t))throw Error(i(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qu(e))throw Error(i(405));var o=null!=n&&n.hydratedSources||null,r=!1,s="",a=Ku;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(s=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=ju(t,null,e,1,null!=n?n:null,r,0,s,a),e[gr]=t.current,jo(e),o)for(e=0;e<o.length;e++)r=(r=(n=o[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,r]:t.mutableSourceEagerHydrationData.push(n,r);return new Xu(t)},t.render=function(e,t,n){if(!Ju(t))throw Error(i(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(i(40));return!!e._reactRootContainer&&(cu((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[gr]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!Ju(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(e,t,n,!1,o)},t.version="18.2.0-next-9e3b772b8-20220608"},1250:function(e,t,n){"use strict";var o=n(4164);t.createRoot=o.createRoot,t.hydrateRoot=o.hydrateRoot},4164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4463)},8340:function(e,t,n){"use strict";var o,r;o=n(1071),r=n(4424),t.version=o.version,t.renderToString=o.renderToString,t.renderToStaticMarkup=o.renderToStaticMarkup,t.renderToNodeStream=o.renderToNodeStream,t.renderToStaticNodeStream=o.renderToStaticNodeStream,t.renderToReadableStream=r.renderToReadableStream},1372:function(e,t){"use strict";var n,o=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case i:case a:case s:case d:case h:return e;default:switch(e=e&&e.$$typeof){case c:case u:case p:case g:case f:case l:return e;default:return t}}case r:return t}}}n=Symbol.for("react.module.reference"),t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===a||e===s||e===d||e===h||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=v},7441:function(e,t,n){"use strict";e.exports=n(1372)},3688:function(e,t,n){"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function i(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function s(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,s=null,a=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?s="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(s="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?a="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(a="UNSAFE_componentWillUpdate"),null!==n||null!==s||null!==a){var l=e.displayName||e.name,u="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==s?"\n  "+s:"")+(null!==a?"\n  "+a:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=r),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,o)}}return e}n.r(t),n.d(t,{polyfill:function(){return s}}),o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},2240:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=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},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(2791),s=f(i),a=f(n(4164)),l=f(n(2007)),u=f(n(4334)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(5858)),p=n(3663),d=f(p),h=n(3688);function f(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var v=t.portalClassName="ReactModalPortal",y=t.bodyOpenClassName="ReactModal__Body--open",C=p.canUseDOM&&void 0!==a.default.createPortal,w=function(e){return document.createElement(e)},_=function(){return C?a.default.createPortal:a.default.unstable_renderSubtreeIntoContainer};function b(e){return e()}var E=function(e){function t(){var e,n,r;g(this,t);for(var i=arguments.length,l=Array(i),c=0;c<i;c++)l[c]=arguments[c];return n=r=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.removePortal=function(){!C&&a.default.unmountComponentAtNode(r.node);var e=b(r.props.parentSelector);e&&e.contains(r.node)?e.removeChild(r.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},r.portalRef=function(e){r.portal=e},r.renderPortal=function(e){var n=_()(r,s.default.createElement(u.default,o({defaultStyles:t.defaultStyles},e)),r.node);r.portalRef(n)},m(r,n)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){p.canUseDOM&&(C||(this.node=w("div")),this.node.className=this.props.portalClassName,b(this.props.parentSelector).appendChild(this.node),!C&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:b(e.parentSelector),nextParent:b(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(p.canUseDOM){var o=this.props,r=o.isOpen,i=o.portalClassName;e.portalClassName!==i&&(this.node.className=i);var s=n.prevParent,a=n.nextParent;a!==s&&(s.removeChild(this.node),a.appendChild(this.node)),(e.isOpen||r)&&!C&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(p.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return p.canUseDOM&&C?(!this.node&&C&&(this.node=w("div")),_()(s.default.createElement(u.default,o({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){c.setElement(e)}}]),t}(i.Component);E.propTypes={isOpen:l.default.bool.isRequired,style:l.default.shape({content:l.default.object,overlay:l.default.object}),portalClassName:l.default.string,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,className:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),overlayClassName:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),appElement:l.default.oneOfType([l.default.instanceOf(d.default),l.default.instanceOf(p.SafeHTMLCollection),l.default.instanceOf(p.SafeNodeList),l.default.arrayOf(l.default.instanceOf(d.default))]),onAfterOpen:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,ariaHideApp:l.default.bool,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,parentSelector:l.default.func,aria:l.default.object,data:l.default.object,role:l.default.string,contentLabel:l.default.string,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func},E.defaultProps={isOpen:!1,portalClassName:v,bodyOpenClassName:y,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return s.default.createElement("div",e,t)},contentElement:function(e,t){return s.default.createElement("div",e,t)}},E.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,h.polyfill)(E),t.default=E},4334:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=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},r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(2791),a=m(n(2007)),l=g(n(8844)),u=m(n(870)),c=g(n(5858)),p=g(n(6554)),d=n(3663),h=m(d),f=m(n(8484));function g(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function m(e){return e&&e.__esModule?e:{default:e}}n(5670);var v={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},y=0,C=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,o=e.ariaHideApp,r=e.htmlOpenClassName,i=e.bodyOpenClassName;i&&p.remove(document.body,i),r&&p.remove(document.getElementsByTagName("html")[0],r),o&&y>0&&0===(y-=1)&&c.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),f.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){9===e.keyCode&&(0,u.default)(n.content,e),n.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var o="object"===("undefined"===typeof t?"undefined":r(t))?t:{base:v[e],afterOpen:v[e]+"--after-open",beforeClose:v[e]+"--before-close"},i=o.base;return n.state.afterOpen&&(i=i+" "+o.afterOpen),n.state.beforeClose&&(i=i+" "+o.beforeClose),"string"===typeof t&&t?i+" "+t:i},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,o){return n[e+"-"+o]=t[o],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,o=e.htmlOpenClassName,r=e.bodyOpenClassName;r&&p.add(document.body,r),o&&p.add(document.getElementsByTagName("html")[0],o),n&&(y+=1,c.hide(t)),f.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,r=e.overlayClassName,i=e.defaultStyles,s=e.children,a=n?{}:i.content,l=r?{}:i.overlay;if(this.shouldBeClosed())return null;var u={ref:this.setOverlayRef,className:this.buildClassName("overlay",r),style:o({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},c=o({id:t,ref:this.setContentRef,style:o({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),p=this.props.contentElement(c,s);return this.props.overlayElement(u,p)}}]),t}(s.Component);C.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},C.propTypes={isOpen:a.default.bool.isRequired,defaultStyles:a.default.shape({content:a.default.object,overlay:a.default.object}),style:a.default.shape({content:a.default.object,overlay:a.default.object}),className:a.default.oneOfType([a.default.string,a.default.object]),overlayClassName:a.default.oneOfType([a.default.string,a.default.object]),bodyOpenClassName:a.default.string,htmlOpenClassName:a.default.string,ariaHideApp:a.default.bool,appElement:a.default.oneOfType([a.default.instanceOf(h.default),a.default.instanceOf(d.SafeHTMLCollection),a.default.instanceOf(d.SafeNodeList),a.default.arrayOf(a.default.instanceOf(h.default))]),onAfterOpen:a.default.func,onAfterClose:a.default.func,onRequestClose:a.default.func,closeTimeoutMS:a.default.number,shouldFocusAfterRender:a.default.bool,shouldCloseOnOverlayClick:a.default.bool,shouldReturnFocusAfterClose:a.default.bool,preventScroll:a.default.bool,role:a.default.string,contentLabel:a.default.string,aria:a.default.object,data:a.default.object,children:a.default.node,shouldCloseOnEsc:a.default.bool,overlayRef:a.default.func,contentRef:a.default.func,id:a.default.string,overlayElement:a.default.func,contentElement:a.default.func,testId:a.default.string},t.default=C,e.exports=t.default},5858:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a&&(a.removeAttribute?a.removeAttribute("aria-hidden"):null!=a.length?a.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(a).forEach((function(e){return e.removeAttribute("aria-hidden")})));a=null},t.log=function(){0},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"===typeof t&&s.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t=n}return a=t||a},t.validateElement=u,t.hide=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=u(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0){r.value.setAttribute("aria-hidden","true")}}catch(s){n=!0,o=s}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.show=function(e){var t=!0,n=!1,o=void 0;try{for(var r,i=u(e)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0){r.value.removeAttribute("aria-hidden")}}catch(s){n=!0,o=s}finally{try{!t&&i.return&&i.return()}finally{if(n)throw o}}},t.documentNotReadyOrSSRTesting=function(){a=null};var o,r=n(2391),i=(o=r)&&o.__esModule?o:{default:o},s=n(3663);var a=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function u(e){var t=e||a;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,i.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},5670:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[s,a],t=0;t<e.length;t++){var n=e[t];n&&(n.parentNode&&n.parentNode.removeChild(n))}s=a=null,l=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(l.length);for(var e=[s,a],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var o,r=n(8484),i=(o=r)&&o.__esModule?o:{default:o};var s=void 0,a=void 0,l=[];function u(){0!==l.length&&l[l.length-1].focusContent()}i.default.subscribe((function(e,t){s||a||((s=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),s.style.position="absolute",s.style.opacity="0",s.setAttribute("tabindex","0"),s.addEventListener("focus",u),(a=s.cloneNode()).addEventListener("focus",u)),(l=t).length>0?(document.body.firstChild!==s&&document.body.insertBefore(s,document.body.firstChild),document.body.lastChild!==a&&document.body.appendChild(a)):(s.parentElement&&s.parentElement.removeChild(s),a.parentElement&&a.parentElement.removeChild(a))}))},6554:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in n)r(e,n[t]);var i=document.body;for(var s in o)r(i,o[s]);n={},o={}},t.log=function(){0};var n={},o={};function r(e,t){e.classList.remove(t)}t.add=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(i,e),r.add(e)}));var r,i},t.remove=function(e,t){return r=e.classList,i="html"==e.nodeName.toLowerCase()?n:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(i,e),0===i[e]&&r.remove(e)}));var r,i}},8844:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s=[]},t.log=function(){0},t.handleBlur=u,t.handleFocus=c,t.markForFocusLater=function(){s.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==s.length&&(t=s.pop()).focus({preventScroll:e}))}catch(n){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){s.length>0&&s.pop()},t.setupScopedFocus=function(e){a=e,window.addEventListener?(window.addEventListener("blur",u,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",u),document.attachEvent("onFocus",c))},t.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",u),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",u),document.detachEvent("onFocus",c))};var o,r=n(9750),i=(o=r)&&o.__esModule?o:{default:o};var s=[],a=null,l=!1;function u(){l=!0}function c(){if(l){if(l=!1,!a)return;setTimeout((function(){a.contains(document.activeElement)||((0,i.default)(a)[0]||a).focus()}),0)}}},8484:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new n};var n=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},o=new n;t.default=o},3663:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var o,r=n(2618);var i=((o=r)&&o.__esModule?o:{default:o}).default,s=i.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=i.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=i.canUseDOM?window.NodeList:{},t.canUseDOM=i.canUseDOM;t.default=s},870:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,i.default)(e);if(!n.length)return void t.preventDefault();var o=void 0,r=t.shiftKey,a=n[0],l=n[n.length-1],u=s();if(e===u){if(!r)return;o=l}l!==u||r||(o=a);a===u&&r&&(o=l);if(o)return t.preventDefault(),void o.focus();var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==c||"Chrome"==c[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var p=n.indexOf(u);p>-1&&(p+=r?-1:1);if("undefined"===typeof(o=n[p]))return t.preventDefault(),void(o=r?l:a).focus();t.preventDefault(),o.focus()};var o,r=n(9750),i=(o=r)&&o.__esModule?o:{default:o};function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return e.activeElement.shadowRoot?s(e.activeElement.shadowRoot):e.activeElement}e.exports=t.default},9750:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,n){return t.concat(n.shadowRoot?e(n.shadowRoot):[n])}),[]);return n.filter(i)};var n=/input|select|textarea|button|object|iframe/;function o(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}catch(o){return console.warn("Failed to inspect element style"),!1}}function r(e,t){var r=e.nodeName.toLowerCase();return(n.test(r)&&!e.disabled||"a"===r&&e.href||t)&&function(e){for(var t=e,n=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(n&&t===n&&(t=n.host.parentNode),o(t))return!1;t=t.parentNode}return!0}(e)}function i(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&r(e,!n)}e.exports=t.default},7948:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(2240),i=(o=r)&&o.__esModule?o:{default:o};t.default=i.default,e.exports=t.default},1016:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(l){r=!0,i=l}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i,s=n(6722),a=(i=s)&&i.__esModule?i:{default:i},l=function(e){return e};t.default=function(e){var t=Array.isArray(e)&&2===e.length?e:[e,null],n=o(t,2),i=n[0],s=n[1];return function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var u=n.map((function(e){return i[e]})).filter(l);return"string"===typeof u[0]||"function"===typeof s?{key:e,className:s?s.apply(void 0,r(u)):u.join(" ")}:{key:e,style:a.default.apply(void 0,[{}].concat(r(u)))}}},e.exports=t.default},6722:function(e){"use strict";var t=Object.prototype.propertyIsEnumerable;function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(e){var n=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(e))),n.filter((function(n){return t.call(e,n)}))}e.exports=Object.assign||function(e,t){for(var r,i,s=n(e),a=1;a<arguments.length;a++){r=arguments[a],i=o(Object(r));for(var l=0;l<i.length;l++)s[i[l]]=r[i[l]]}return s}},6374:function(e,t,n){"use strict";var o=n(2791),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var o,i={},u=null,c=null;for(o in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)s.call(t,o)&&!l.hasOwnProperty(o)&&(i[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===i[o]&&(i[o]=t[o]);return{$$typeof:r,type:e,key:u,ref:c,props:i,_owner:a.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},9117:function(e,t){"use strict";var n=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function y(){}function C(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=C.prototype=new y;w.constructor=C,g(w,v.prototype),w.isPureReactComponent=!0;var _=Array.isArray,b=Object.prototype.hasOwnProperty,E={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,o){var r,i={},s=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)b.call(t,r)&&!S.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=o;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:n,type:e,key:s,ref:a,props:i,_owner:E.current}}function O(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var T=/\/+/g;function P(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 A(e,t,r,i,s){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case o:l=!0}}if(l)return s=s(l=e),e=""===i?"."+P(l,0):i,_(s)?(r="",null!=e&&(r=e.replace(T,"$&/")+"/"),A(s,t,r,"",(function(e){return e}))):null!=s&&(O(s)&&(s=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,r+(!s.key||l&&l.key===s.key?"":(""+s.key).replace(T,"$&/")+"/")+e)),t.push(s)),1;if(l=0,i=""===i?".":i+":",_(e))for(var u=0;u<e.length;u++){var c=i+P(a=e[u],u);l+=A(a,t,r,c,s)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),u=0;!(a=e.next()).done;)l+=A(a=a.value,t,r,c=i+P(a,u++),s);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function D(e,t,n){if(null==e)return e;var o=[],r=0;return A(e,o,"","",(function(e){return t.call(n,e,r++)})),o}function x(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var N={current:null},M={transition:null},I={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:M,ReactCurrentOwner:E};t.Children={map:D,forEach:function(e,t,n){D(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return D(e,(function(){t++})),t},toArray:function(e){return D(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=r,t.Profiler=s,t.PureComponent=C,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,o){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=g({},e.props),i=e.key,s=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,a=E.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)b.call(t,u)&&!S.hasOwnProperty(u)&&(r[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)r.children=o;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:n,type:e.type,key:i,ref:s,props:r,_owner:a}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=R,t.createFactory=function(e){var t=R.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:x}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return N.current.useCallback(e,t)},t.useContext=function(e){return N.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return N.current.useDeferredValue(e)},t.useEffect=function(e,t){return N.current.useEffect(e,t)},t.useId=function(){return N.current.useId()},t.useImperativeHandle=function(e,t,n){return N.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return N.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return N.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return N.current.useMemo(e,t)},t.useReducer=function(e,t,n){return N.current.useReducer(e,t,n)},t.useRef=function(e){return N.current.useRef(e)},t.useState=function(e){return N.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return N.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return N.current.useTransition()},t.version="18.2.0"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},6813:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var o=n-1>>>1,r=e[o];if(!(0<i(r,t)))break e;e[o]=t,e[n]=r,n=o}}function o(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var o=0,r=e.length,s=r>>>1;o<s;){var a=2*(o+1)-1,l=e[a],u=a+1,c=e[u];if(0>i(l,n))u<r&&0>i(c,l)?(e[o]=c,e[u]=n,o=u):(e[o]=l,e[a]=n,o=a);else{if(!(u<r&&0>i(c,n)))break e;e[o]=c,e[u]=n,o=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var u=[],c=[],p=1,d=null,h=3,f=!1,g=!1,m=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,C="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=o(c);null!==t;){if(null===t.callback)r(c);else{if(!(t.startTime<=e))break;r(c),t.sortIndex=t.expirationTime,n(u,t)}t=o(c)}}function _(e){if(m=!1,w(e),!g)if(null!==o(u))g=!0,M(b);else{var t=o(c);null!==t&&I(_,t.startTime-e)}}function b(e,n){g=!1,m&&(m=!1,y(O),O=-1),f=!0;var i=h;try{for(w(n),d=o(u);null!==d&&(!(d.expirationTime>n)||e&&!A());){var s=d.callback;if("function"===typeof s){d.callback=null,h=d.priorityLevel;var a=s(d.expirationTime<=n);n=t.unstable_now(),"function"===typeof a?d.callback=a:d===o(u)&&r(u),w(n)}else r(u);d=o(u)}if(null!==d)var l=!0;else{var p=o(c);null!==p&&I(_,p.startTime-n),l=!1}return l}finally{d=null,h=i,f=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var E,S=!1,R=null,O=-1,T=5,P=-1;function A(){return!(t.unstable_now()-P<T)}function D(){if(null!==R){var e=t.unstable_now();P=e;var n=!0;try{n=R(!0,e)}finally{n?E():(S=!1,R=null)}}else S=!1}if("function"===typeof C)E=function(){C(D)};else if("undefined"!==typeof MessageChannel){var x=new MessageChannel,N=x.port2;x.port1.onmessage=D,E=function(){N.postMessage(null)}}else E=function(){v(D,0)};function M(e){R=e,S||(S=!0,E())}function I(e,n){O=v((function(){e(t.unstable_now())}),n)}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(){g||f||(g=!0,M(b))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return o(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,r,i){var s=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?s+i:s:i=s,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:p++,callback:r,priorityLevel:e,startTime:i,expirationTime:a=i+a,sortIndex:-1},i>s?(e.sortIndex=i,n(c,e),null===o(u)&&e===o(c)&&(m?(y(O),O=-1):m=!0,I(_,i-s))):(e.sortIndex=a,n(u,e),g||f||(g=!0,M(b))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},5201:function(e){"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(l){r=!0,i=l}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.exports=function(e){var n=e.data,o=e.multiSection;function r(e){var r=t(e,2),i=r[0],s=r[1];return o?null===s||s===n[i]-1?null===(i=function(e){for(null===e?e=0:e++;e<n.length&&0===n[e];)e++;return e===n.length?null:e}(i))?[null,null]:[i,0]:[i,s+1]:0===n||s===n-1?[null,null]:null===s?[null,0]:[null,s+1]}return{next:r,prev:function(e){var r=t(e,2),i=r[0],s=r[1];return o?null===s||0===s?null===(i=function(e){for(null===e?e=n.length-1:e--;e>=0&&0===n[e];)e--;return-1===e?null:e}(i))?[null,null]:[i,n[i]-1]:[i,s-1]:0===n||0===s?[null,null]:null===s?[null,n-1]:[null,s-1]},isLast:function(e){return null===r(e)[1]}}}},1511:function(e){"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var o=0;o<n;o++)if(e[o]!==t[o])return!1;return!0}},9613:function(e){e.exports=function(e,t,n,o){var r=n?n.call(o,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!a(u))return!1;var c=e[u],p=t[u];if(!1===(r=n?n.call(o,c,p,u):void 0)||void 0===r&&c!==p)return!1}return!0}},2391:function(e){"use strict";var t=function(){};e.exports=t},907:function(e,t,n){"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}n.d(t,{Z:function(){return o}})},7326:function(e,t,n){"use strict";function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return o}})},5671:function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return o}})},3144:function(e,t,n){"use strict";function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:function(){return r}})},7762:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(181);function r(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,o.Z)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw s}}}}},7277:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(1120),r=n(8814),i=n(1002),s=n(7326);function a(e,t){if(t&&("object"===(0,i.Z)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,s.Z)(e)}function l(e){var t=(0,r.Z)();return function(){var n,r=(0,o.Z)(e);if(t){var i=(0,o.Z)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return a(this,n)}}},4942:function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return o}})},1752:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(1120);function r(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,o.Z)(e)););return e}function i(){return i="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},i.apply(this,arguments)}},1120:function(e,t,n){"use strict";function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}n.d(t,{Z:function(){return o}})},136:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(9611);function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,o.Z)(e,t)}},8814:function(e,t,n){"use strict";function o(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return o}})},1413:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(4942);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},9611:function(e,t,n){"use strict";function o(e,t){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},o(e,t)}n.d(t,{Z:function(){return o}})},885:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(181);function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);s=!0);}catch(l){a=!0,r=l}finally{try{s||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,t)||(0,o.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2982:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(907);var r=n(181);function i(e){return function(e){if(Array.isArray(e))return(0,o.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,r.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},1002:function(e,t,n){"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}n.d(t,{Z:function(){return o}})},181:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(907);function r(e,t){if(e){if("string"===typeof e)return(0,o.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,o.Z)(e,t):void 0}}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={id:o,loaded:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,o){return n.f[o](e,t),t}),[]))},n.u=function(e){return"files/static/js/"+e+".9d42efaa.chunk.js"},n.miniCssF=function(e){},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="server-admin:";n.l=function(o,r,i,s){if(e[o])e[o].push(r);else{var a,l;if(void 0!==i)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var p=u[c];if(p.getAttribute("src")==o||p.getAttribute("data-webpack")==t+i){a=p;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,n.nc&&a.setAttribute("nonce",n.nc),a.setAttribute("data-webpack",t+i),a.src=o),e[o]=[r];var d=function(t,n){a.onerror=a.onload=null,clearTimeout(h);var r=e[o];if(delete e[o],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((function(e){return e(n)})),t)return t(n)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),l&&document.head.appendChild(a)}}}(),n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",function(){var e={179:0};n.f.j=function(t,o){var r=n.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else{var i=new Promise((function(n,o){r=e[t]=[n,o]}));o.push(r[2]=i);var s=n.p+n.u(t),a=new Error;n.l(s,(function(o){if(n.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.src;a.message="Loading chunk "+t+" failed.\n("+i+": "+s+")",a.name="ChunkLoadError",a.type=i,a.request=s,r[1](a)}}),"chunk-"+t,t)}};var t=function(t,o){var r,i,s=o[0],a=o[1],l=o[2],u=0;if(s.some((function(t){return 0!==e[t]}))){for(r in a)n.o(a,r)&&(n.m[r]=a[r]);if(l)l(n)}for(t&&t(o);u<s.length;u++)i=s[u],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},o=self.webpackChunkserver_admin=self.webpackChunkserver_admin||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))}(),function(){"use strict";var e,t=n(885),o=n(2791);function r(){return r=Object.assign?Object.assign.bind():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},r.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(e||(e={}));var i=function(e){return e};var s="beforeunload",a="popstate";function l(e){e.preventDefault(),e.returnValue=""}function u(){var e=[];return{get length(){return e.length},push:function(t){return e.push(t),function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function c(){return Math.random().toString(36).substr(2,8)}function p(e){var t=e.pathname,n=void 0===t?"/":t,o=e.search,r=void 0===o?"":o,i=e.hash,s=void 0===i?"":i;return r&&"?"!==r&&(n+="?"===r.charAt(0)?r:"?"+r),s&&"#"!==s&&(n+="#"===s.charAt(0)?s:"#"+s),n}function d(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var o=e.indexOf("?");o>=0&&(t.search=e.substr(o),e=e.substr(0,o)),e&&(t.pathname=e)}return t}var h=(0,o.createContext)(null);var f=(0,o.createContext)(null);var g=(0,o.createContext)({outlet:null,matches:[]});function m(e,t){if(!e)throw new Error(t)}function v(e,t,n){void 0===n&&(n="/");var o=R(("string"===typeof t?d(t):t).pathname||"/",n);if(null==o)return null;var r=y(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(r);for(var i=null,s=0;null==i&&s<r.length;++s)i=b(r[s],o);return i}function y(e,t,n,o){return void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===o&&(o=""),e.forEach((function(e,r){var i={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};i.relativePath.startsWith("/")&&(i.relativePath.startsWith(o)||m(!1),i.relativePath=i.relativePath.slice(o.length));var s=O([o,i.relativePath]),a=n.concat(i);e.children&&e.children.length>0&&(!0===e.index&&m(!1),y(e.children,t,a,s)),(null!=e.path||e.index)&&t.push({path:s,score:_(s,e.index),routesMeta:a})})),t}var C=/^:\w+$/,w=function(e){return"*"===e};function _(e,t){var n=e.split("/"),o=n.length;return n.some(w)&&(o+=-2),t&&(o+=2),n.filter((function(e){return!w(e)})).reduce((function(e,t){return e+(C.test(t)?3:""===t?1:10)}),o)}function b(e,t){for(var n=e.routesMeta,o={},r="/",i=[],s=0;s<n.length;++s){var a=n[s],l=s===n.length-1,u="/"===r?t:t.slice(r.length)||"/",c=E({path:a.relativePath,caseSensitive:a.caseSensitive,end:l},u);if(!c)return null;Object.assign(o,c.params);var p=a.route;i.push({params:o,pathname:O([r,c.pathname]),pathnameBase:T(O([r,c.pathnameBase])),route:p}),"/"!==c.pathnameBase&&(r=O([r,c.pathnameBase]))}return i}function E(e,n){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});var o=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);var o=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(function(e,t){return o.push(t),"([^\\/]+)"}));e.endsWith("*")?(o.push("*"),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)";return[new RegExp(r,t?void 0:"i"),o]}(e.path,e.caseSensitive,e.end),r=(0,t.Z)(o,2),i=r[0],s=r[1],a=n.match(i);if(!a)return null;var l=a[0],u=l.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:s.reduce((function(e,t,n){if("*"===t){var o=c[n]||"";u=l.slice(0,l.length-o.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return e}}(c[n]||""),e}),{}),pathname:l,pathnameBase:u,pattern:e}}function S(e,t,n){var o,r="string"===typeof e?d(e):e,i=""===e||""===r.pathname?"/":r.pathname;if(null==i)o=n;else{var s=t.length-1;if(i.startsWith("..")){for(var a=i.split("/");".."===a[0];)a.shift(),s-=1;r.pathname=a.join("/")}o=s>=0?t[s]:"/"}var l=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?d(e):e,o=n.pathname,r=n.search,i=void 0===r?"":r,s=n.hash,a=void 0===s?"":s,l=o?o.startsWith("/")?o:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(o,t):t;return{pathname:l,search:P(i),hash:A(a)}}(r,o);return i&&"/"!==i&&i.endsWith("/")&&!l.pathname.endsWith("/")&&(l.pathname+="/"),l}function R(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var n=e.charAt(t.length);return n&&"/"!==n?null:e.slice(t.length)||"/"}var O=function(e){return e.join("/").replace(/\/\/+/g,"/")},T=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},P=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},A=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""};function D(e){x()||m(!1);var t=(0,o.useContext)(h),n=t.basename,r=t.navigator,i=I(e),s=i.hash,a=i.pathname,l=i.search,u=a;if("/"!==n){var c=function(e){return""===e||""===e.pathname?"/":"string"===typeof e?d(e).pathname:e.pathname}(e),p=null!=c&&c.endsWith("/");u="/"===a?n+(p?"/":""):O([n,a])}return r.createHref({pathname:u,search:l,hash:s})}function x(){return null!=(0,o.useContext)(f)}function N(){return x()||m(!1),(0,o.useContext)(f).location}function M(){x()||m(!1);var e=(0,o.useContext)(h),t=e.basename,n=e.navigator,r=(0,o.useContext)(g).matches,i=N().pathname,s=JSON.stringify(r.map((function(e){return e.pathnameBase}))),a=(0,o.useRef)(!1);(0,o.useEffect)((function(){a.current=!0}));var l=(0,o.useCallback)((function(e,o){if(void 0===o&&(o={}),a.current)if("number"!==typeof e){var r=S(e,JSON.parse(s),i);"/"!==t&&(r.pathname=O([t,r.pathname])),(o.replace?n.replace:n.push)(r,o.state)}else n.go(e)}),[t,n,s,i]);return l}function I(e){var t=(0,o.useContext)(g).matches,n=N().pathname,r=JSON.stringify(t.map((function(e){return e.pathnameBase})));return(0,o.useMemo)((function(){return S(e,JSON.parse(r),n)}),[e,r,n])}function L(e,t){return void 0===t&&(t=[]),null==e?null:e.reduceRight((function(n,r,i){return(0,o.createElement)(g.Provider,{children:void 0!==r.route.element?r.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,i+1))}})}),null)}function F(e){m(!1)}function k(t){var n=t.basename,r=void 0===n?"/":n,i=t.children,s=void 0===i?null:i,a=t.location,l=t.navigationType,u=void 0===l?e.Pop:l,c=t.navigator,p=t.static,g=void 0!==p&&p;x()&&m(!1);var v=T(r),y=(0,o.useMemo)((function(){return{basename:v,navigator:c,static:g}}),[v,c,g]);"string"===typeof a&&(a=d(a));var C=a,w=C.pathname,_=void 0===w?"/":w,b=C.search,E=void 0===b?"":b,S=C.hash,O=void 0===S?"":S,P=C.state,A=void 0===P?null:P,D=C.key,N=void 0===D?"default":D,M=(0,o.useMemo)((function(){var e=R(_,v);return null==e?null:{pathname:e,search:E,hash:O,state:A,key:N}}),[v,_,E,O,A,N]);return null==M?null:(0,o.createElement)(h.Provider,{value:y},(0,o.createElement)(f.Provider,{children:s,value:{location:M,navigationType:u}}))}function G(e){var t=e.children,n=e.location;return function(e,t){x()||m(!1);var n,r=(0,o.useContext)(g).matches,i=r[r.length-1],s=i?i.params:{},a=(i&&i.pathname,i?i.pathnameBase:"/"),l=(i&&i.route,N());if(t){var u,c="string"===typeof t?d(t):t;"/"===a||(null==(u=c.pathname)?void 0:u.startsWith(a))||m(!1),n=c}else n=l;var p=n.pathname||"/",h=v(e,{pathname:"/"===a?p:p.slice(a.length)||"/"});return L(h&&h.map((function(e){return Object.assign({},e,{params:Object.assign({},s,e.params),pathname:O([a,e.pathname]),pathnameBase:"/"===e.pathnameBase?a:O([a,e.pathnameBase])})})),r)}(H(t),n)}function H(e){var t=[];return o.Children.forEach(e,(function(e){if((0,o.isValidElement)(e))if(e.type!==o.Fragment){e.type!==F&&m(!1);var n={caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path};e.props.children&&(n.children=H(e.props.children)),t.push(n)}else t.push.apply(t,H(e.props.children))})),t}function B(){return B=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},B.apply(this,arguments)}function V(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}var W=["onClick","reloadDocument","replace","state","target","to"];function j(n){var h=n.basename,f=n.children,g=n.window,m=(0,o.useRef)();null==m.current&&(m.current=function(t){void 0===t&&(t={});var n=t.window,o=void 0===n?document.defaultView:n,h=o.history;function f(){var e=o.location,t=e.pathname,n=e.search,r=e.hash,s=h.state||{};return[s.idx,i({pathname:t,search:n,hash:r,state:s.usr||null,key:s.key||"default"})]}var g=null;o.addEventListener(a,(function(){if(g)_.call(g),g=null;else{var t=e.Pop,n=f(),o=n[0],r=n[1];if(_.length){if(null!=o){var i=y-o;i&&(g={action:t,location:r,retry:function(){T(-1*i)}},T(i))}}else O(t)}}));var m=e.Pop,v=f(),y=v[0],C=v[1],w=u(),_=u();function b(e){return"string"===typeof e?e:p(e)}function E(e,t){return void 0===t&&(t=null),i(r({pathname:C.pathname,hash:"",search:""},"string"===typeof e?d(e):e,{state:t,key:c()}))}function S(e,t){return[{usr:e.state,key:e.key,idx:t},b(e)]}function R(e,t,n){return!_.length||(_.call({action:e,location:t,retry:n}),!1)}function O(e){m=e;var t=f();y=t[0],C=t[1],w.call({action:m,location:C})}function T(e){h.go(e)}null==y&&(y=0,h.replaceState(r({},h.state,{idx:y}),""));var P={get action(){return m},get location(){return C},createHref:b,push:function t(n,r){var i=e.Push,s=E(n,r);if(R(i,s,(function(){t(n,r)}))){var a=S(s,y+1),l=a[0],u=a[1];try{h.pushState(l,"",u)}catch(c){o.location.assign(u)}O(i)}},replace:function t(n,o){var r=e.Replace,i=E(n,o);if(R(r,i,(function(){t(n,o)}))){var s=S(i,y),a=s[0],l=s[1];h.replaceState(a,"",l),O(r)}},go:T,back:function(){T(-1)},forward:function(){T(1)},listen:function(e){return w.push(e)},block:function(e){var t=_.push(e);return 1===_.length&&o.addEventListener(s,l),function(){t(),_.length||o.removeEventListener(s,l)}}};return P}({window:g}));var v=m.current,y=(0,o.useState)({action:v.action,location:v.location}),C=(0,t.Z)(y,2),w=C[0],_=C[1];return(0,o.useLayoutEffect)((function(){return v.listen(_)}),[v]),(0,o.createElement)(k,{basename:h,children:f,location:w.location,navigationType:w.action,navigator:v})}var U=(0,o.forwardRef)((function(e,t){var n=e.onClick,r=e.reloadDocument,i=e.replace,s=void 0!==i&&i,a=e.state,l=e.target,u=e.to,c=V(e,W),d=D(u),h=function(e,t){var n=void 0===t?{}:t,r=n.target,i=n.replace,s=n.state,a=M(),l=N(),u=I(e);return(0,o.useCallback)((function(t){if(0===t.button&&(!r||"_self"===r)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t)){t.preventDefault();var n=!!i||p(l)===p(u);a(e,{replace:n,state:s})}}),[l,a,u,i,s,r,e])}(u,{replace:s,state:a,target:l});return(0,o.createElement)("a",B({},c,{href:d,onClick:function(e){n&&n(e),e.defaultPrevented||r||h(e)},ref:t,target:l}))}));var z=n(1250),Z=n(7441),Y=n(9613),K=n.n(Y);var q=function(e){function t(e,o,l,u,d){for(var h,f,g,m,w,b=0,E=0,S=0,R=0,O=0,N=0,I=g=h=0,F=0,k=0,G=0,H=0,B=l.length,V=B-1,W="",j="",U="",z="";F<B;){if(f=l.charCodeAt(F),F===V&&0!==E+R+S+b&&(0!==E&&(f=47===E?10:47),R=S=b=0,B++,V++),0===E+R+S+b){if(F===V&&(0<k&&(W=W.replace(p,"")),0<W.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:W+=l.charAt(F)}f=59}switch(f){case 123:for(h=(W=W.trim()).charCodeAt(0),g=1,H=++F;F<B;){switch(f=l.charCodeAt(F)){case 123:g++;break;case 125:g--;break;case 47:switch(f=l.charCodeAt(F+1)){case 42:case 47:e:{for(I=F+1;I<V;++I)switch(l.charCodeAt(I)){case 47:if(42===f&&42===l.charCodeAt(I-1)&&F+2!==I){F=I+1;break e}break;case 10:if(47===f){F=I+1;break e}}F=I}}break;case 91:f++;case 40:f++;case 34:case 39:for(;F++<V&&l.charCodeAt(F)!==f;);}if(0===g)break;F++}if(g=l.substring(H,F),0===h&&(h=(W=W.replace(c,"").trim()).charCodeAt(0)),64===h){switch(0<k&&(W=W.replace(p,"")),f=W.charCodeAt(1)){case 100:case 109:case 115:case 45:k=o;break;default:k=x}if(H=(g=t(o,k,g,f,d+1)).length,0<M&&(w=a(3,g,k=n(x,W,G),o,P,T,H,f,d,u),W=k.join(""),void 0!==w&&0===(H=(g=w.trim()).length)&&(f=0,g="")),0<H)switch(f){case 115:W=W.replace(_,s);case 100:case 109:case 45:g=W+"{"+g+"}";break;case 107:g=(W=W.replace(v,"$1 $2"))+"{"+g+"}",g=1===D||2===D&&i("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=W+g,112===u&&(j+=g,g="")}else g=""}else g=t(o,n(o,W,G),g,u,d+1);U+=g,g=G=k=I=h=0,W="",f=l.charCodeAt(++F);break;case 125:case 59:if(1<(H=(W=(0<k?W.replace(p,""):W).trim()).length))switch(0===I&&(h=W.charCodeAt(0),45===h||96<h&&123>h)&&(H=(W=W.replace(" ",":")).length),0<M&&void 0!==(w=a(1,W,o,e,P,T,j.length,u,d,u))&&0===(H=(W=w.trim()).length)&&(W="\0\0"),h=W.charCodeAt(0),f=W.charCodeAt(1),h){case 0:break;case 64:if(105===f||99===f){z+=W+l.charAt(F);break}default:58!==W.charCodeAt(H-1)&&(j+=r(W,h,f,W.charCodeAt(2)))}G=k=I=h=0,W="",f=l.charCodeAt(++F)}}switch(f){case 13:case 10:47===E?E=0:0===1+h&&107!==u&&0<W.length&&(k=1,W+="\0"),0<M*L&&a(0,W,o,e,P,T,j.length,u,d,u),T=1,P++;break;case 59:case 125:if(0===E+R+S+b){T++;break}default:switch(T++,m=l.charAt(F),f){case 9:case 32:if(0===R+b+E)switch(O){case 44:case 58:case 9:case 32:m="";break;default:32!==f&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===R+E+b&&(k=G=1,m="\f"+m);break;case 108:if(0===R+E+b+A&&0<I)switch(F-I){case 2:112===O&&58===l.charCodeAt(F-3)&&(A=O);case 8:111===N&&(A=N)}break;case 58:0===R+E+b&&(I=F);break;case 44:0===E+S+R+b&&(k=1,m+="\r");break;case 34:case 39:0===E&&(R=R===f?0:0===R?f:R);break;case 91:0===R+E+S&&b++;break;case 93:0===R+E+S&&b--;break;case 41:0===R+E+b&&S--;break;case 40:if(0===R+E+b){if(0===h)if(2*O+3*N===533);else h=1;S++}break;case 64:0===E+S+R+b+I+g&&(g=1);break;case 42:case 47:if(!(0<R+b+S))switch(E){case 0:switch(2*f+3*l.charCodeAt(F+1)){case 235:E=47;break;case 220:H=F,E=42}break;case 42:47===f&&42===O&&H+2!==F&&(33===l.charCodeAt(H+2)&&(j+=l.substring(H,F+1)),m="",E=0)}}0===E&&(W+=m)}N=O,O=f,F++}if(0<(H=j.length)){if(k=o,0<M&&(void 0!==(w=a(2,j,k,e,P,T,H,u,d,u))&&0===(j=w).length))return z+j+U;if(j=k.join(",")+"{"+j+"}",0!==D*A){switch(2!==D||i(j,2)||(A=0),A){case 111:j=j.replace(C,":-moz-$1")+j;break;case 112:j=j.replace(y,"::-webkit-input-$1")+j.replace(y,"::-moz-$1")+j.replace(y,":-ms-input-$1")+j}A=0}}return z+j+U}function n(e,t,n){var r=t.trim().split(g);t=r;var i=r.length,s=e.length;switch(s){case 0:case 1:var a=0;for(e=0===s?"":e[0]+" ";a<i;++a)t[a]=o(e,t[a],n).trim();break;default:var l=a=0;for(t=[];a<i;++a)for(var u=0;u<s;++u)t[l++]=o(e[u]+" ",r[a],n).trim()}return t}function o(e,t,n){var o=t.charCodeAt(0);switch(33>o&&(o=(t=t.trim()).charCodeAt(0)),o){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,o){var s=e+";",a=2*t+3*n+4*o;if(944===a){e=s.indexOf(":",9)+1;var l=s.substring(e,s.length-1).trim();return l=s.substring(0,e).trim()+l+";",1===D||2===D&&i(l,1)?"-webkit-"+l+l:l}if(0===D||2===D&&!i(s,1))return s;switch(a){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace(O,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(l=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+l+s;case 1005:return h.test(s)?s.replace(d,":-webkit-")+s.replace(d,":-moz-")+s:s;case 1e3:switch(t=(l=s.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=s.replace(w,"tb");break;case 232:l=s.replace(w,"tb-rl");break;case 220:l=s.replace(w,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+l+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,a=(l=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:s=s.replace(l,"-webkit-"+l)+";"+s;break;case 207:case 102:s=s.replace(l,"-webkit-"+(102<a?"inline-":"")+"box")+";"+s.replace(l,"-webkit-"+l)+";"+s.replace(l,"-ms-"+l+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return l=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+l+"-ms-flex-"+l+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(E,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(E,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===R.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,o).replace(":fill-available",":stretch"):s.replace(l,"-webkit-"+l)+s.replace(l,"-moz-"+l.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===n+o&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(f,"$1-webkit-$2")+s}return s}function i(e,t){var n=e.indexOf(1===t?":":"{"),o=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),I(2!==t?o:o.replace(S,"$1"),n,t)}function s(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(b," or ($1)").substring(4):"("+t+")"}function a(e,t,n,o,r,i,s,a,l,c){for(var p,d=0,h=t;d<M;++d)switch(p=N[d].call(u,e,h,n,o,r,i,s,a,l,c)){case void 0:case!1:case!0:case null:break;default:h=p}if(h!==t)return h}function l(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!==typeof e?D=1:(D=2,I=e):D=0),l}function u(e,n){var o=e;if(33>o.charCodeAt(0)&&(o=o.trim()),o=[o],0<M){var r=a(-1,n,o,o,P,T,0,0,0,0);void 0!==r&&"string"===typeof r&&(n=r)}var i=t(x,o,n,0,0);return 0<M&&(void 0!==(r=a(-2,i,o,o,P,T,i.length,0,0,0))&&(i=r)),"",A=0,T=P=1,i}var c=/^\0+/g,p=/[\0\r\f]/g,d=/: */g,h=/zoo|gra/,f=/([,: ])(transform)/g,g=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,C=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,b=/([\s\S]*?);/g,E=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,R=/stretch|:\s*\w+\-(?:conte|avail)/,O=/([^-])(image-set\()/,T=1,P=1,A=0,D=1,x=[],N=[],M=0,I=null,L=0;return u.use=function e(t){switch(t){case void 0:case null:M=N.length=0;break;default:if("function"===typeof t)N[M++]=t;else if("object"===typeof t)for(var n=0,o=t.length;n<o;++n)e(t[n]);else L=0|!!t}return e},u.set=l,void 0!==e&&l(e),u},X={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Q=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,J=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return Q.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),$=n(2110),ee=n.n($);function te(){return(te=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 ne=function(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n},oe=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,Z.typeOf)(e)},re=Object.freeze([]),ie=Object.freeze({});function se(e){return"function"==typeof e}function ae(e){return e.displayName||e.name||"Component"}function le(e){return e&&"string"==typeof e.styledComponentId}var ue="undefined"!=typeof process&&({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_ATTR||{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_ATTR)||"data-styled",ce="undefined"!=typeof window&&"HTMLElement"in window,pe=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&("false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY));function de(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var he=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)(r<<=1)<0&&de(16,""+e);this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var i=o;i<r;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),a=0,l=t.length;a<l;a++)this.tag.insertRule(s,t[a])&&(this.groupSizes[e]++,s++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,i=o;i<r;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),fe=new Map,ge=new Map,me=1,ve=function(e){if(fe.has(e))return fe.get(e);for(;ge.has(me);)me++;var t=me++;return fe.set(e,t),ge.set(t,e),t},ye=function(e){return ge.get(e)},Ce=function(e,t){t>=me&&(me=t+1),fe.set(e,t),ge.set(t,e)},we="style["+ue+'][data-styled-version="5.3.5"]',_e=new RegExp("^"+ue+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),be=function(e,t,n){for(var o,r=n.split(","),i=0,s=r.length;i<s;i++)(o=r[i])&&e.registerName(t,o)},Ee=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),o=[],r=0,i=n.length;r<i;r++){var s=n[r].trim();if(s){var a=s.match(_e);if(a){var l=0|parseInt(a[1],10),u=a[2];0!==l&&(Ce(u,l),be(e,u,a[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(s)}}},Se=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},Re=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var o=t[n];if(o&&1===o.nodeType&&o.hasAttribute(ue))return o}}(n),i=void 0!==r?r.nextSibling:null;o.setAttribute(ue,"active"),o.setAttribute("data-styled-version","5.3.5");var s=Se();return s&&o.setAttribute("nonce",s),n.insertBefore(o,i),o},Oe=function(){function e(e){var t=this.element=Re(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}de(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),Te=function(){function e(e){var t=this.element=Re(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),o=this.nodes[e];return this.element.insertBefore(n,o||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Pe=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Ae=ce,De={isServer:!ce,useCSSOMInjection:!pe},xe=function(){function e(e,t,n){void 0===e&&(e=ie),void 0===t&&(t={}),this.options=te({},De,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&ce&&Ae&&(Ae=!1,function(e){for(var t=document.querySelectorAll(we),n=0,o=t.length;n<o;n++){var r=t[n];r&&"active"!==r.getAttribute(ue)&&(Ee(e,r),r.parentNode&&r.parentNode.removeChild(r))}}(this))}e.registerId=function(e){return ve(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(te({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,o=t.useCSSOMInjection,r=t.target,e=n?new Pe(r):o?new Oe(r):new Te(r),new he(e)));var e,t,n,o,r},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(ve(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(ve(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(ve(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=0;r<n;r++){var i=ye(r);if(void 0!==i){var s=e.names.get(i),a=t.getGroup(r);if(s&&a&&s.size){var l=ue+".g"+r+'[id="'+i+'"]',u="";void 0!==s&&s.forEach((function(e){e.length>0&&(u+=e+",")})),o+=""+a+l+'{content:"'+u+'"}/*!sc*/\n'}}}return o}(this)},e}(),Ne=/(a)(d)/gi,Me=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ie(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Me(t%52)+n;return(Me(t%52)+n).replace(Ne,"$1-$2")}var Le=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Fe=function(e){return Le(5381,e)};function ke(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(se(n)&&!le(n))return!1}return!0}var Ge=Fe("5.3.5"),He=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&ke(e),this.componentId=t,this.baseHash=Le(Ge,t),this.baseStyle=n,xe.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.componentId,r=[];if(this.baseStyle&&r.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(o,this.staticRulesId))r.push(this.staticRulesId);else{var i=ot(this.rules,e,t,n).join(""),s=Ie(Le(this.baseHash,i)>>>0);if(!t.hasNameForId(o,s)){var a=n(i,"."+s,void 0,o);t.insertRules(o,s,a)}r.push(s),this.staticRulesId=s}else{for(var l=this.rules.length,u=Le(this.baseHash,n.hash),c="",p=0;p<l;p++){var d=this.rules[p];if("string"==typeof d)c+=d;else if(d){var h=ot(d,e,t,n),f=Array.isArray(h)?h.join(""):h;u=Le(u,f+p),c+=f}}if(c){var g=Ie(u>>>0);if(!t.hasNameForId(o,g)){var m=n(c,"."+g,void 0,o);t.insertRules(o,g,m)}r.push(g)}}return r.join(" ")},e}(),Be=/^\s*\/\/.*$/gm,Ve=[":","[",".","#"];function We(e){var t,n,o,r,i=void 0===e?ie:e,s=i.options,a=void 0===s?ie:s,l=i.plugins,u=void 0===l?re:l,c=new q(a),p=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,o,r,i,s,a,l,u,c,p){switch(n){case 1:if(0===c&&64===o.charCodeAt(0))return e(o+";"),"";break;case 2:if(0===u)return o+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(r[0]+o),"";default:return o+(0===p?"/*|*/":"")}case-2:o.split("/*|*/}").forEach(t)}}}((function(e){p.push(e)})),h=function(e,o,i){return 0===o&&-1!==Ve.indexOf(i[n.length])||i.match(r)?e:"."+t};function f(e,i,s,a){void 0===a&&(a="&");var l=e.replace(Be,""),u=i&&s?s+" "+i+" { "+l+" }":l;return t=a,n=i,o=new RegExp("\\"+n+"\\b","g"),r=new RegExp("(\\"+n+"\\b){2,}"),c(s||!i?"":i,u)}return c.use([].concat(u,[function(e,t,r){2===e&&r.length&&r[0].lastIndexOf(n)>0&&(r[0]=r[0].replace(o,h))},d,function(e){if(-2===e){var t=p;return p=[],t}}])),f.hash=u.length?u.reduce((function(e,t){return t.name||de(15),Le(e,t.name)}),5381).toString():"",f}var je=o.createContext(),Ue=(je.Consumer,o.createContext()),ze=(Ue.Consumer,new xe),Ze=We();function Ye(){return(0,o.useContext)(je)||ze}function Ke(){return(0,o.useContext)(Ue)||Ze}function qe(e){var t=(0,o.useState)(e.stylisPlugins),n=t[0],r=t[1],i=Ye(),s=(0,o.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=(0,o.useMemo)((function(){return We({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,o.useEffect)((function(){K()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),o.createElement(je.Provider,{value:s},o.createElement(Ue.Provider,{value:a},e.children))}var Xe=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ze);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"))},this.toString=function(){return de(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=Ze),this.name+e.hash},e}(),Qe=/([A-Z])/,Je=/([A-Z])/g,$e=/^ms-/,et=function(e){return"-"+e.toLowerCase()};function tt(e){return Qe.test(e)?e.replace(Je,et).replace($e,"-ms-"):e}var nt=function(e){return null==e||!1===e||""===e};function ot(e,t,n,o){if(Array.isArray(e)){for(var r,i=[],s=0,a=e.length;s<a;s+=1)""!==(r=ot(e[s],t,n,o))&&(Array.isArray(r)?i.push.apply(i,r):i.push(r));return i}return nt(e)?"":le(e)?"."+e.styledComponentId:se(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:ot(e(t),t,n,o):e instanceof Xe?n?(e.inject(n,o),e.getName(o)):e:oe(e)?function e(t,n){var o,r,i=[];for(var s in t)t.hasOwnProperty(s)&&!nt(t[s])&&(Array.isArray(t[s])&&t[s].isCss||se(t[s])?i.push(tt(s)+":",t[s],";"):oe(t[s])?i.push.apply(i,e(t[s],s)):i.push(tt(s)+": "+(o=s,(null==(r=t[s])||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||o in X?String(r).trim():r+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var l}var rt=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function it(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return se(e)||oe(e)?rt(ot(ne(re,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:rt(ot(ne(e,n)))}new Set;var st=function(e,t,n){return void 0===n&&(n=ie),e.theme!==n.theme&&e.theme||t||n.theme},at=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,lt=/(^-|-$)/g;function ut(e){return e.replace(at,"-").replace(lt,"")}var ct=function(e){return Ie(Fe(e)>>>0)};function pt(e){return"string"==typeof e&&!0}var dt=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ht=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ft(e,t,n){var o=e[n];dt(t)&&dt(o)?gt(o,t):e[n]=t}function gt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];for(var r=0,i=n;r<i.length;r++){var s=i[r];if(dt(s))for(var a in s)ht(a)&&ft(e,s[a],a)}return e}var mt=o.createContext();mt.Consumer;function vt(e){var t=(0,o.useContext)(mt),n=(0,o.useMemo)((function(){return function(e,t){return e?se(e)?e(t):Array.isArray(e)||"object"!=typeof e?de(8):t?te({},t,{},e):e:de(14)}(e.theme,t)}),[e.theme,t]);return e.children?o.createElement(mt.Provider,{value:n},e.children):null}var yt={};function Ct(e,t,n){var r=le(e),i=!pt(e),s=t.attrs,a=void 0===s?re:s,l=t.componentId,u=void 0===l?function(e,t){var n="string"!=typeof e?"sc":ut(e);yt[n]=(yt[n]||0)+1;var o=n+"-"+ct("5.3.5"+n+yt[n]);return t?t+"-"+o:o}(t.displayName,t.parentComponentId):l,c=t.displayName,p=void 0===c?function(e){return pt(e)?"styled."+e:"Styled("+ae(e)+")"}(e):c,d=t.displayName&&t.componentId?ut(t.displayName)+"-"+t.componentId:t.componentId||u,h=r&&e.attrs?Array.prototype.concat(e.attrs,a).filter(Boolean):a,f=t.shouldForwardProp;r&&e.shouldForwardProp&&(f=t.shouldForwardProp?function(n,o,r){return e.shouldForwardProp(n,o,r)&&t.shouldForwardProp(n,o,r)}:e.shouldForwardProp);var g,m=new He(n,d,r?e.componentStyle:void 0),v=m.isStatic&&0===a.length,y=function(e,t){return function(e,t,n,r){var i=e.attrs,s=e.componentStyle,a=e.defaultProps,l=e.foldedComponentIds,u=e.shouldForwardProp,c=e.styledComponentId,p=e.target,d=function(e,t,n){void 0===e&&(e=ie);var o=te({},t,{theme:e}),r={};return n.forEach((function(e){var t,n,i,s=e;for(t in se(s)&&(s=s(o)),s)o[t]=r[t]="className"===t?(n=r[t],i=s[t],n&&i?n+" "+i:n||i):s[t]})),[o,r]}(st(t,(0,o.useContext)(mt),a)||ie,t,i),h=d[0],f=d[1],g=function(e,t,n,o){var r=Ye(),i=Ke();return t?e.generateAndInjectStyles(ie,r,i):e.generateAndInjectStyles(n,r,i)}(s,r,h),m=n,v=f.$as||t.$as||f.as||t.as||p,y=pt(v),C=f!==t?te({},t,{},f):t,w={};for(var _ in C)"$"!==_[0]&&"as"!==_&&("forwardedAs"===_?w.as=C[_]:(u?u(_,J,v):!y||J(_))&&(w[_]=C[_]));return t.style&&f.style!==t.style&&(w.style=te({},t.style,{},f.style)),w.className=Array.prototype.concat(l,c,g!==c?g:null,t.className,f.className).filter(Boolean).join(" "),w.ref=m,(0,o.createElement)(v,w)}(g,e,t,v)};return y.displayName=p,(g=o.forwardRef(y)).attrs=h,g.componentStyle=m,g.displayName=p,g.shouldForwardProp=f,g.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):re,g.styledComponentId=d,g.target=r?e.target:e,g.withComponent=function(e){var o=t.componentId,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(t,["componentId"]),i=o&&o+"-"+(pt(e)?e:ut(ae(e)));return Ct(e,te({},r,{attrs:h,componentId:i}),n)},Object.defineProperty(g,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?gt({},e.defaultProps,t):t}}),g.toString=function(){return"."+g.styledComponentId},i&&ee()(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),g}var wt=function(e){return function e(t,n,o){if(void 0===o&&(o=ie),!(0,Z.isValidElementType)(n))return de(1,String(n));var r=function(){return t(n,o,it.apply(void 0,arguments))};return r.withConfig=function(r){return e(t,n,te({},o,{},r))},r.attrs=function(r){return e(t,n,te({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},r}(Ct,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){wt[e]=wt(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ke(e),xe.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,o){var r=o(ot(this.rules,t,n,o).join(""),""),i=this.componentId+e;n.insertRules(i,i,r)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,o){e>2&&xe.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,o)}}();!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=Se();return"<style "+[n&&'nonce="'+n+'"',ue+'="true"','data-styled-version="5.3.5"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?de(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return de(2);var n=((t={})[ue]="",t["data-styled-version"]="5.3.5",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=Se();return r&&(n.nonce=r),[o.createElement("style",te({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new xe({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?de(2):o.createElement(qe,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return de(3)}}();var _t=function(){return(0,o.useContext)(mt)},bt=wt,Et=n(1413),St=n(1002);function Rt(){Rt=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function a(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{a({},"")}catch(O){a=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var r=t&&t.prototype instanceof p?t:p,i=Object.create(r.prototype),s=new E(o||[]);return i._invoke=function(e,t,n){var o="suspendedStart";return function(r,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===r)throw i;return R()}for(n.method=r,n.arg=i;;){var s=n.delegate;if(s){var a=w(s,n);if(a){if(a===c)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var l=u(e,t,n);if("normal"===l.type){if(o=n.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o="completed",n.method="throw",n.arg=l.arg)}}}(e,n,s),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(O){return{type:"throw",arg:O}}}e.wrap=l;var c={};function p(){}function d(){}function h(){}var f={};a(f,r,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(S([])));m&&m!==t&&n.call(m,r)&&(f=m);var v=h.prototype=p.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){a(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function o(r,i,s,a){var l=u(e[r],e,i);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"==(0,St.Z)(p)&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){o("next",e,s,a)}),(function(e){o("throw",e,s,a)})):t.resolve(p).then((function(e){c.value=e,s(c)}),(function(e){return o("throw",e,s,a)}))}a(l.arg)}var r;this._invoke=function(e,n){function i(){return new t((function(t,r){o(e,n,t,r)}))}return r=r?r.then(i,i):i()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var o=u(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,c;var r=o.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function b(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function S(e){if(e){var t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function t(){for(;++o<e.length;)if(n.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:R}}function R(){return{value:void 0,done:!0}}return d.prototype=h,a(v,"constructor",h),a(h,"constructor",d),d.displayName=a(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,a(e,s,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(C.prototype),a(C.prototype,i,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,o,r,i){void 0===i&&(i=Promise);var s=new C(l(t,n,o,r),i);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},y(v),a(v,s,"Generator"),a(v,r,(function(){return this})),a(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var o=t.pop();if(o in e)return n.value=o,n.done=!1,n}return n.done=!0,n}},e.values=S,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(n,o){return s.type="throw",s.arg=e,t.next=n,o&&(t.method="next",t.arg=void 0),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],s=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(a&&l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=e,s.arg=t,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),b(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if("throw"===o.type){var r=o.arg;b(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}function Ot(e,t,n,o,r,i,s){try{var a=e[i](s),l=a.value}catch(u){return void n(u)}a.done?t(l):Promise.resolve(l).then(o,r)}function Tt(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function s(e){Ot(i,o,r,s,a,"next",e)}function a(e){Ot(i,o,r,s,a,"throw",e)}s(void 0)}))}}var Pt=n(9611),At=n(136);function Dt(){Dt=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,o,r){var i=new RegExp(e,o);return t.set(i,r||t.get(e)),(0,Pt.Z)(i,n.prototype)}function o(e,n){var o=t.get(n);return Object.keys(o).reduce((function(t,n){return t[n]=e[o[n]],t}),Object.create(null))}return(0,At.Z)(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=o(n,this)),n},n.prototype[Symbol.replace]=function(n,r){if("string"==typeof r){var i=t.get(this);return e[Symbol.replace].call(this,n,r.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+i[t]})))}if("function"==typeof r){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=(0,St.Z)(e[e.length-1])&&(e=[].slice.call(e)).push(o(e,s)),r.apply(this,e)}))}return e[Symbol.replace].call(this,n,r)},Dt.apply(this,arguments)}var xt=n(5671),Nt=n(3144),Mt=n(4569),It=n.n(Mt);function Lt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Ft=n(2982),kt=n(4942),Gt={data:""},Ht=function(e){return"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Gt},Bt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Vt=/\/\*[^]*?\*\/|  +/g,Wt=/\n+/g,jt=function e(t,n){var o="",r="",i="",s=function(s){var l=t[s];"@"==s[0]?"i"==s[1]?o=s+" "+l+";":r+="f"==s[1]?e(l,s):s+"{"+e(l,"k"==s[1]?"":n)+"}":"object"==typeof l?r+=e(l,n?n.replace(/([^,])+/g,(function(e){return s.replace(/(^:.*)|([^,])+/g,(function(t){return/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t}))})):s):null!=l&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=e.p?e.p(s,l):s+":"+l+";"),a=s};for(var a in t)s(a);return o+(n&&i?n+"{"+i+"}":i)+r},Ut={},zt=function e(t){if("object"==typeof t){var n="";for(var o in t)n+=o+e(t[o]);return n}return t},Zt=function(e,t,n,o,r){var i=zt(e),s=Ut[i]||(Ut[i]=function(e){for(var t=0,n=11;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n}(i));if(!Ut[s]){var a=i!==e?e:function(e){for(var t,n,o=[{}];t=Bt.exec(e.replace(Vt,""));)t[4]?o.shift():t[3]?(n=t[3].replace(Wt," ").trim(),o.unshift(o[0][n]=o[0][n]||{})):o[0][t[1]]=t[2].replace(Wt," ").trim();return o[0]}(e);Ut[s]=jt(r?(0,kt.Z)({},"@keyframes "+s,a):a,n?"":"."+s)}return function(e,t,n){-1==t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)}(Ut[s],t,o),s},Yt=function(e,t,n){return e.reduce((function(e,o,r){var i=t[r];if(i&&i.call){var s=i(n),a=s&&s.props&&s.props.className||/^go/.test(s)&&s;i=a?"."+a:s&&"object"==typeof s?s.props?"":jt(s,""):!1===s?"":s}return e+o+(null==i?"":i)}),"")};function Kt(e){var t=this||{},n=e.call?e(t.p):e;return Zt(n.unshift?n.raw?Yt(n,[].slice.call(arguments,1),t.p):n.reduce((function(e,n){return Object.assign(e,n&&n.call?n(t.p):n)}),{}):n,Ht(t.target),t.g,t.o,t.k)}Kt.bind({g:1});var qt,Xt,Qt,Jt,$t,en,tn,nn,on,rn,sn,an,ln,un,cn,pn,dn,hn,fn,gn=Kt.bind({k:1});function mn(e,t){var n=this||{};return function(){var o=arguments;function r(i,s){var a=Object.assign({},i),l=a.className||r.className;n.p=Object.assign({theme:Xt&&Xt()},a),n.o=/ *go\d+/.test(l),a.className=Kt.apply(n,o)+(l?" "+l:""),t&&(a.ref=s);var u=e;return e[0]&&(u=a.as||e,delete a.as),Qt&&u[0]&&Qt(a),qt(u,a)}return t?t(r):r}}var vn=function(e,t){return function(e){return"function"==typeof e}(e)?e(t):e},yn=function(){var e=0;return function(){return(++e).toString()}}(),Cn=function(){var e;return function(){if(void 0===e&&typeof window<"u"){var t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}}(),wn=new Map,_n=function(e){if(!wn.has(e)){var t=setTimeout((function(){wn.delete(e),Rn({type:4,toastId:e})}),1e3);wn.set(e,t)}},bn=function e(t,n){switch(n.type){case 0:return(0,Et.Z)((0,Et.Z)({},t),{},{toasts:[n.toast].concat((0,Ft.Z)(t.toasts)).slice(0,20)});case 1:return n.toast.id&&function(e){var t=wn.get(e);t&&clearTimeout(t)}(n.toast.id),(0,Et.Z)((0,Et.Z)({},t),{},{toasts:t.toasts.map((function(e){return e.id===n.toast.id?(0,Et.Z)((0,Et.Z)({},e),n.toast):e}))});case 2:var o=n.toast;return t.toasts.find((function(e){return e.id===o.id}))?e(t,{type:1,toast:o}):e(t,{type:0,toast:o});case 3:var r=n.toastId;return r?_n(r):t.toasts.forEach((function(e){_n(e.id)})),(0,Et.Z)((0,Et.Z)({},t),{},{toasts:t.toasts.map((function(e){return e.id===r||void 0===r?(0,Et.Z)((0,Et.Z)({},e),{},{visible:!1}):e}))});case 4:return void 0===n.toastId?(0,Et.Z)((0,Et.Z)({},t),{},{toasts:[]}):(0,Et.Z)((0,Et.Z)({},t),{},{toasts:t.toasts.filter((function(e){return e.id!==n.toastId}))});case 5:return(0,Et.Z)((0,Et.Z)({},t),{},{pausedAt:n.time});case 6:var i=n.time-(t.pausedAt||0);return(0,Et.Z)((0,Et.Z)({},t),{},{pausedAt:void 0,toasts:t.toasts.map((function(e){return(0,Et.Z)((0,Et.Z)({},e),{},{pauseDuration:e.pauseDuration+i})}))})}},En=[],Sn={toasts:[],pausedAt:void 0},Rn=function(e){Sn=bn(Sn,e),En.forEach((function(e){e(Sn)}))},On={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Tn=function(e){return function(t,n){var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",n=arguments.length>2?arguments[2]:void 0;return(0,Et.Z)((0,Et.Z)({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0},n),{},{id:(null==n?void 0:n.id)||yn()})}(t,e,n);return Rn({type:2,toast:o}),o.id}},Pn=function(e,t){return Tn("blank")(e,t)};Pn.error=Tn("error"),Pn.success=Tn("success"),Pn.loading=Tn("loading"),Pn.custom=Tn("custom"),Pn.dismiss=function(e){Rn({type:3,toastId:e})},Pn.remove=function(e){return Rn({type:4,toastId:e})},Pn.promise=function(e,t,n){var o=Pn.loading(t.loading,(0,Et.Z)((0,Et.Z)({},n),null==n?void 0:n.loading));return e.then((function(e){return Pn.success(vn(t.success,e),(0,Et.Z)((0,Et.Z)({id:o},n),null==n?void 0:n.success)),e})).catch((function(e){Pn.error(vn(t.error,e),(0,Et.Z)((0,Et.Z)({id:o},n),null==n?void 0:n.error))})),e};var An=function(e){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,o.useState)(Sn),r=(0,t.Z)(n,2),i=r[0],s=r[1];(0,o.useEffect)((function(){return En.push(s),function(){var e=En.indexOf(s);e>-1&&En.splice(e,1)}}),[i]);var a=i.toasts.map((function(t){var n,o;return(0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)({},e),e[t.type]),t),{},{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||On[t.type],style:(0,Et.Z)((0,Et.Z)((0,Et.Z)({},e.style),null==(o=e[t.type])?void 0:o.style),t.style)})}));return(0,Et.Z)((0,Et.Z)({},i),{},{toasts:a})}(e),r=n.toasts,i=n.pausedAt;(0,o.useEffect)((function(){if(!i){var e=Date.now(),t=r.map((function(t){if(t.duration!==1/0){var n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((function(){return Pn.dismiss(t.id)}),n);t.visible&&Pn.dismiss(t.id)}}));return function(){t.forEach((function(e){return e&&clearTimeout(e)}))}}}),[r,i]);var s=(0,o.useMemo)((function(){return{startPause:function(){Rn({type:5,time:Date.now()})},endPause:function(){i&&Rn({type:6,time:Date.now()})},updateHeight:function(e,t){return Rn({type:1,toast:{id:e,height:t}})},calculateOffset:function(e,t){var n,o=t||{},i=o.reverseOrder,s=void 0!==i&&i,a=o.gutter,l=void 0===a?8:a,u=o.defaultPosition,c=r.filter((function(t){return(t.position||u)===(e.position||u)&&t.height})),p=c.findIndex((function(t){return t.id===e.id})),d=c.filter((function(e,t){return t<p&&e.visible})).length;return(n=c.filter((function(e){return e.visible}))).slice.apply(n,(0,Ft.Z)(s?[d+1]:[0,d])).reduce((function(e,t){return e+(t.height||0)+l}),0)}}}),[r,i]);return{toasts:r,handlers:s}},Dn=gn(Jt||(Jt=Lt(["\nfrom {\n  transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n  opacity: 1;\n}"]))),xn=gn($t||($t=Lt(["\nfrom {\n  transform: scale(0);\n  opacity: 0;\n}\nto {\n  transform: scale(1);\n  opacity: 1;\n}"]))),Nn=gn(en||(en=Lt(["\nfrom {\n  transform: scale(0) rotate(90deg);\n\topacity: 0;\n}\nto {\n  transform: scale(1) rotate(90deg);\n\topacity: 1;\n}"]))),Mn=mn("div")(tn||(tn=Lt(["\n  width: 20px;\n  opacity: 0;\n  height: 20px;\n  border-radius: 10px;\n  background: ",";\n  position: relative;\n  transform: rotate(45deg);\n\n  animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n    forwards;\n  animation-delay: 100ms;\n\n  &:after,\n  &:before {\n    content: '';\n    animation: "," 0.15s ease-out forwards;\n    animation-delay: 150ms;\n    position: absolute;\n    border-radius: 3px;\n    opacity: 0;\n    background: ",";\n    bottom: 9px;\n    left: 4px;\n    height: 2px;\n    width: 12px;\n  }\n\n  &:before {\n    animation: "," 0.15s ease-out forwards;\n    animation-delay: 180ms;\n    transform: rotate(90deg);\n  }\n"])),(function(e){return e.primary||"#ff4b4b"}),Dn,xn,(function(e){return e.secondary||"#fff"}),Nn),In=gn(nn||(nn=Lt(["\n  from {\n    transform: rotate(0deg);\n  }\n  to {\n    transform: rotate(360deg);\n  }\n"]))),Ln=mn("div")(on||(on=Lt(["\n  width: 12px;\n  height: 12px;\n  box-sizing: border-box;\n  border: 2px solid;\n  border-radius: 100%;\n  border-color: ",";\n  border-right-color: ",";\n  animation: "," 1s linear infinite;\n"])),(function(e){return e.secondary||"#e0e0e0"}),(function(e){return e.primary||"#616161"}),In),Fn=gn(rn||(rn=Lt(["\nfrom {\n  transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n  transform: scale(1) rotate(45deg);\n\topacity: 1;\n}"]))),kn=gn(sn||(sn=Lt(["\n0% {\n\theight: 0;\n\twidth: 0;\n\topacity: 0;\n}\n40% {\n  height: 0;\n\twidth: 6px;\n\topacity: 1;\n}\n100% {\n  opacity: 1;\n  height: 10px;\n}"]))),Gn=mn("div")(an||(an=Lt(["\n  width: 20px;\n  opacity: 0;\n  height: 20px;\n  border-radius: 10px;\n  background: ",";\n  position: relative;\n  transform: rotate(45deg);\n\n  animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n    forwards;\n  animation-delay: 100ms;\n  &:after {\n    content: '';\n    box-sizing: border-box;\n    animation: "," 0.2s ease-out forwards;\n    opacity: 0;\n    animation-delay: 200ms;\n    position: absolute;\n    border-right: 2px solid;\n    border-bottom: 2px solid;\n    border-color: ",";\n    bottom: 6px;\n    left: 6px;\n    height: 10px;\n    width: 6px;\n  }\n"])),(function(e){return e.primary||"#61d345"}),Fn,kn,(function(e){return e.secondary||"#fff"})),Hn=mn("div")(ln||(ln=Lt(["\n  position: absolute;\n"]))),Bn=mn("div")(un||(un=Lt(["\n  position: relative;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  min-width: 20px;\n  min-height: 20px;\n"]))),Vn=gn(cn||(cn=Lt(["\nfrom {\n  transform: scale(0.6);\n  opacity: 0.4;\n}\nto {\n  transform: scale(1);\n  opacity: 1;\n}"]))),Wn=mn("div")(pn||(pn=Lt(["\n  position: relative;\n  transform: scale(0.6);\n  opacity: 0.4;\n  min-width: 20px;\n  animation: "," 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n    forwards;\n"])),Vn),jn=function(e){var t=e.toast,n=t.icon,r=t.type,i=t.iconTheme;return void 0!==n?"string"==typeof n?o.createElement(Wn,null,n):n:"blank"===r?null:o.createElement(Bn,null,o.createElement(Ln,(0,Et.Z)({},i)),"loading"!==r&&o.createElement(Hn,null,"error"===r?o.createElement(Mn,(0,Et.Z)({},i)):o.createElement(Gn,(0,Et.Z)({},i))))},Un=function(e){return"\n0% {transform: translate3d(0,".concat(-200*e,"%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n")},zn=function(e){return"\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,".concat(-150*e,"%,-1px) scale(.6); opacity:0;}\n")},Zn=mn("div",o.forwardRef)(dn||(dn=Lt(["\n  display: flex;\n  align-items: center;\n  background: #fff;\n  color: #363636;\n  line-height: 1.3;\n  will-change: transform;\n  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);\n  max-width: 350px;\n  pointer-events: auto;\n  padding: 8px 10px;\n  border-radius: 8px;\n"]))),Yn=mn("div")(hn||(hn=Lt(["\n  display: flex;\n  justify-content: center;\n  margin: 4px 10px;\n  color: inherit;\n  flex: 1 1 auto;\n  white-space: pre-line;\n"]))),Kn=o.memo((function(e){var n=e.toast,r=e.position,i=e.style,s=e.children,a=null!=n&&n.height?function(e,n){var o=e.includes("top")?1:-1,r=Cn()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[Un(o),zn(o)],i=(0,t.Z)(r,2),s=i[0],a=i[1];return{animation:n?"".concat(gn(s)," 0.35s cubic-bezier(.21,1.02,.73,1) forwards"):"".concat(gn(a)," 0.4s forwards cubic-bezier(.06,.71,.55,1)")}}(n.position||r||"top-center",n.visible):{opacity:0},l=o.createElement(jn,{toast:n}),u=o.createElement(Yn,(0,Et.Z)({},n.ariaProps),vn(n.message,n));return o.createElement(Zn,{className:n.className,style:(0,Et.Z)((0,Et.Z)((0,Et.Z)({},a),i),n.style)},"function"==typeof s?s({icon:l,message:u}):o.createElement(o.Fragment,null,l,u))}));!function(e,t,n,o){jt.p=t,qt=e,Xt=n,Qt=o}(o.createElement);var qn=Kt(fn||(fn=Lt(["\n  z-index: 9999;\n  > * {\n    pointer-events: auto;\n  }\n"]))),Xn=function(e){var t=e.reverseOrder,n=e.position,r=void 0===n?"top-center":n,i=e.toastOptions,s=e.gutter,a=e.children,l=e.containerStyle,u=e.containerClassName,c=An(i),p=c.toasts,d=c.handlers;return o.createElement("div",{style:(0,Et.Z)({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},l),className:u,onMouseEnter:d.startPause,onMouseLeave:d.endPause},p.map((function(e){var n=e.position||r,i=function(e,t){var n=e.includes("top"),o=n?{top:0}:{bottom:0},r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return(0,Et.Z)((0,Et.Z)({left:0,right:0,display:"flex",position:"absolute",transition:Cn()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY(".concat(t*(n?1:-1),"px)")},o),r)}(n,d.calculateOffset(e,{reverseOrder:t,gutter:s,defaultPosition:r})),l=e.height?void 0:function(e){return function(t){t&&setTimeout((function(){var n=t.getBoundingClientRect();e(n)}))}}((function(t){d.updateHeight(e.id,t.height)}));return o.createElement("div",{ref:l,className:e.visible?qn:"",key:e.id,style:i},"custom"===e.type?vn(e.message,e):a?a(e):o.createElement(Kn,{toast:e,position:n}))})))},Qn=Pn;function Jn(e){Qn.success(e)}function $n(e){Qn.error(e)}var eo=It().create({withCredentials:!0,headers:{"Content-Type":"application/json"}});eo.interceptors.response.use((function(e){return e}),(function(e){return console.error(e),403===e.response.status?$n("Authentication error"):e.response.data&&e.response.data.meta&&e.response.data.meta.errorCode?$n(e.response.data.meta.errorCode):$n("Unknown HTTP error"),Promise.reject(e)}));var to=function(){function e(){(0,xt.Z)(this,e)}return(0,Nt.Z)(e,null,[{key:"get",value:function(){var e=Tt(Rt().mark((function e(t){var n;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eo.get(t);case 2:return n=e.sent,e.abrupt("return",n.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"post",value:function(){var e=Tt(Rt().mark((function e(t,n){var o;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eo.post(t,n);case 2:return o=e.sent,e.abrupt("return",o.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"delete",value:function(){var e=Tt(Rt().mark((function e(t,n){var o;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eo.delete(t,n);case 2:return o=e.sent,e.abrupt("return",o.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"put",value:function(){var e=Tt(Rt().mark((function e(t,n){var o;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eo.put(t,n);case 2:return o=e.sent,e.abrupt("return",o.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"executeCommand",value:function(){var e=Tt(Rt().mark((function e(t){var n;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eo.post("/api/command",{command:t});case 2:return n=e.sent,e.abrupt("return",n.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"getMods",value:function(){var e=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.next=3;break;case 3:return e.next=5,eo.get("/api/mods");case 5:return t=e.sent,e.abrupt("return",t.data.data);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"getAnimals",value:function(){var e=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eo.get("/api/animal");case 2:return t=e.sent,e.abrupt("return",t.data.data);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"getHostiles",value:function(){var e=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eo.get("/api/hostile");case 2:return t=e.sent,e.abrupt("return",t.data.data);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"getAdminList",value:function(){var e=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.executeCommand("admin list");case 2:return t=e.sent,e.abrupt("return",t.result.split("\n").slice(2,-3).map((function(e){var t=e.trim(),n=Dt(/(\d+): (\w+) \(.*stored name: ((\w+)|)\)/g,{level:1,ID:2,name:3}).exec(t).groups;return{level:n.level,ID:n.ID,name:n.name}})));case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getCommandPermissions",value:function(){var e=Tt(Rt().mark((function e(){var t,n;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.executeCommand("commandpermission list");case 2:return t=e.sent,n=t.result.split("\n").slice(2).map((function(e){return e.trim()})).filter(Boolean).map((function(e){var t=Dt(/(\d+): (.+)/g,{level:1,command:2}).exec(e).groups;return{level:t.level,command:t.command}})),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getWebPermissions",value:function(){var e=Tt(Rt().mark((function e(){var t,n;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.executeCommand("webpermission list");case 2:return t=e.sent,n=t.result.split("\n").slice(2).map((function(e){return e.trim()})).filter(Boolean).map((function(e){var t=Dt(/(\d+): (.+)/g,{level:1,permission:2}).exec(e).groups;return{level:t.level,permission:t.permission}})),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getWebTokens",value:function(){var e=Tt(Rt().mark((function e(){var t,n;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.executeCommand("webtokens list");case 2:return t=e.sent,n=t.result.split("\n").slice(2).map((function(e){return e.trim()})).filter(Boolean).map((function(e){var t=Dt(/(\d+): (.+) \/ (.+)/g,{level:1,name:2,token:3}).exec(e).groups,n=t.level,o=t.name;return{level:n,token:t.token,name:o}})),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getBans",value:function(){var e=Tt(Rt().mark((function e(){var t,n;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.executeCommand("ban list");case 2:return t=e.sent,n=t.result.split("\n").slice(2).map((function(e){return e.trim()})).filter(Boolean).map((function(e){var t=Dt(/(.+) \x2D (.+) (.+) \x2D(.*)/g,{date:1,ID:2,name:3,reason:4}).exec(e).groups,n=t.date,o=t.ID,r=t.name,i=t.reason;return{date:new Date(n),ID:o,name:r,reason:i}})),e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getLatestLogLines",value:function(){var e=Tt(Rt().mark((function e(t){var n;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eo.get("/api/log?count=".concat(t));case 2:return n=e.sent,e.abrupt("return",n.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"login",value:function(){var e=Tt(Rt().mark((function e(t,n){var o;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eo.post("/session/login",{username:t,password:n});case 2:return o=e.sent,e.abrupt("return",o.data.data);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"registerUser",value:function(){var e=Tt(Rt().mark((function e(t,n,o){return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,eo.post("/api/registeruser",{username:t,password:n,token:o});case 3:e.next=11;break;case 5:if(e.prev=5,e.t0=e.catch(0),!(e.t0 instanceof Mt.AxiosError)){e.next=10;break}if(!(e.t0.response.status>400&&e.t0.response.status<500)){e.next=10;break}throw new Error(e.t0.response.data.meta.errorCode);case 10:throw new Error("Internal server error");case 11:return e.abrupt("return");case 12:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t,n,o){return e.apply(this,arguments)}}()},{key:"getPlayers",value:function(){var e=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eo.get("/api/player");case 2:return t=e.sent,e.abrupt("return",t.data.data.players);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"getMapConfig",value:function(){var e=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eo.get("/api/map/config");case 2:return t=e.sent,e.abrupt("return",t.data.data);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}]),e}(),no=n(2953),oo=(0,o.createContext)({command:"",setCommand:function(){}}),ro={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},io=o.createContext&&o.createContext(ro),so=function(){return so=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},so.apply(this,arguments)},ao=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};function lo(e){return e&&e.map((function(e,t){return o.createElement(e.tag,so({key:t},e.attr),lo(e.child))}))}function uo(e){return function(t){return o.createElement(co,so({attr:so({},e.attr)},t),lo(e.child))}}function co(e){var t=function(t){var n,r=e.attr,i=e.size,s=e.title,a=ao(e,["attr","size","title"]),l=i||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),o.createElement("svg",so({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,a,{className:n,style:so(so({color:e.color||t.color},t.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),s&&o.createElement("title",null,s),e.children)};return void 0!==io?o.createElement(io.Consumer,null,(function(e){return t(e)})):t(ro)}function po(e){return uo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"}}]})(e)}function ho(e){return uo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"}}]})(e)}function fo(e){return uo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"}}]})(e)}function go(e){return uo({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M511.988 288.9c-.478 17.43-15.217 31.1-32.653 31.1H424v16c0 21.864-4.882 42.584-13.6 61.145l60.228 60.228c12.496 12.497 12.496 32.758 0 45.255-12.498 12.497-32.759 12.496-45.256 0l-54.736-54.736C345.886 467.965 314.351 480 280 480V236c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v244c-34.351 0-65.886-12.035-90.636-32.108l-54.736 54.736c-12.498 12.497-32.759 12.496-45.256 0-12.496-12.497-12.496-32.758 0-45.255l60.228-60.228C92.882 378.584 88 357.864 88 336v-16H32.666C15.23 320 .491 306.33.013 288.9-.484 270.816 14.028 256 32 256h56v-58.745l-46.628-46.628c-12.496-12.497-12.496-32.758 0-45.255 12.498-12.497 32.758-12.497 45.256 0L141.255 160h229.489l54.627-54.627c12.498-12.497 32.758-12.497 45.256 0 12.496 12.497 12.496 32.758 0 45.255L424 197.255V256h56c17.972 0 32.484 14.816 31.988 32.9zM257 0c-61.856 0-112 50.144-112 112h224C369 50.144 318.856 0 257 0z"}}]})(e)}function mo(e){return uo({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M512.1 191l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0L552 6.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zm-10.5-58.8c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.7-82.4 14.3-52.8 52.8zM386.3 286.1l33.7 16.8c10.1 5.8 14.5 18.1 10.5 29.1-8.9 24.2-26.4 46.4-42.6 65.8-7.4 8.9-20.2 11.1-30.3 5.3l-29.1-16.8c-16 13.7-34.6 24.6-54.9 31.7v33.6c0 11.6-8.3 21.6-19.7 23.6-24.6 4.2-50.4 4.4-75.9 0-11.5-2-20-11.9-20-23.6V418c-20.3-7.2-38.9-18-54.9-31.7L74 403c-10 5.8-22.9 3.6-30.3-5.3-16.2-19.4-33.3-41.6-42.2-65.7-4-10.9.4-23.2 10.5-29.1l33.3-16.8c-3.9-20.9-3.9-42.4 0-63.4L12 205.8c-10.1-5.8-14.6-18.1-10.5-29 8.9-24.2 26-46.4 42.2-65.8 7.4-8.9 20.2-11.1 30.3-5.3l29.1 16.8c16-13.7 34.6-24.6 54.9-31.7V57.1c0-11.5 8.2-21.5 19.6-23.5 24.6-4.2 50.5-4.4 76-.1 11.5 2 20 11.9 20 23.6v33.6c20.3 7.2 38.9 18 54.9 31.7l29.1-16.8c10-5.8 22.9-3.6 30.3 5.3 16.2 19.4 33.2 41.6 42.1 65.8 4 10.9.1 23.2-10 29.1l-33.7 16.8c3.9 21 3.9 42.5 0 63.5zm-117.6 21.1c59.2-77-28.7-164.9-105.7-105.7-59.2 77 28.7 164.9 105.7 105.7zm243.4 182.7l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0l8.2-14.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zM501.6 431c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.6-82.4 14.3-52.8 52.8z"}}]})(e)}function vo(e){return uo({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32z"}}]})(e)}function yo(e){return uo({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"}}]})(e)}function Co(e){return uo({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"}}]})(e)}function wo(e){return uo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M437.2 403.5L320 215V64h8c13.3 0 24-10.7 24-24V24c0-13.3-10.7-24-24-24H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h8v151L10.8 403.5C-18.5 450.6 15.3 512 70.9 512h306.2c55.7 0 89.4-61.5 60.1-108.5zM137.9 320l48.2-77.6c3.7-5.2 5.8-11.6 5.8-18.4V64h64v160c0 6.9 2.2 13.2 5.8 18.4l48.2 77.6h-172z"}}]})(e)}function _o(e){return uo({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"}}]})(e)}function bo(e){return uo({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"}}]})(e)}function Eo(e){return uo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"}}]})(e)}function So(e){return uo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"}}]})(e)}function Ro(e){return uo({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"}}]})(e)}function Oo(e){return uo({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M257.981 272.971L63.638 467.314c-9.373 9.373-24.569 9.373-33.941 0L7.029 444.647c-9.357-9.357-9.375-24.522-.04-33.901L161.011 256 6.99 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L257.981 239.03c9.373 9.372 9.373 24.568 0 33.941zM640 456v-32c0-13.255-10.745-24-24-24H312c-13.255 0-24 10.745-24 24v32c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24z"}}]})(e)}function To(e){return uo({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"}}]})(e)}var Po=n(184),Ao=bt.div.withConfig({displayName:"collapseIndicator__CollapseIconContainer",componentId:"sc-jxuh5c-0"})(["float:left;margin-left:auto;margin-right:1rem;line-height:",";"],(function(e){return e.collapsed?"1.1rem":"0.5rem"}));function Do(e){var t=e.collapsed,n=e.canCollapse,o=_t();return n?(0,Po.jsx)(Ao,{children:t?(0,Po.jsx)(po,{"data-tip":"React-tooltip","data-for":"tooltip-collapse"}):(0,Po.jsx)(fo,{color:o.colors.tfpRed,"data-tip":"React-tooltip","data-for":"tooltip-collapse"})}):null}var xo=bt.div.withConfig({displayName:"Cell__StyledTableCellContainer",componentId:"sc-ubq4vg-0"})(["cursor:",";"],(function(e){return e.canCollapse?"pointer":"default"})),No=bt.div.withConfig({displayName:"Cell__StyledTableCellLine",componentId:"sc-ubq4vg-1"})(["line-height:1.1rem;white-space:pre;"]);function Mo(e){var n=e.text,r=function(e){return!!e&&e.length>150}(n),i=(0,o.useState)(r),s=(0,t.Z)(i,2),a=s[0],l=s[1],u=(0,o.useContext)(oo),c=u.command,p=u.setCommand;if(!n)return"";var d=n.toString().split("\n");function h(e){switch(e.detail){case 1:"Range"!==window.getSelection().type&&l(!a);break;case 2:r||(" "===c[c.length-1]?p("".concat(c).concat(e.target.textContent)):c.length?p("".concat(c," ").concat(e.target.textContent)):p(e.target.textContent))}}return a?(0,Po.jsxs)(xo,{onClick:h,canCollapse:r,children:[(0,Po.jsx)(Do,{canCollapse:r,collapsed:a}),(0,Po.jsx)(No,{children:d.join(" ").slice(0,150)})]}):(0,Po.jsxs)(xo,{onClick:h,canCollapse:r,children:[(0,Po.jsx)(Do,{canCollapse:r,collapsed:a}),d.map((function(e,t){return(0,Po.jsx)(No,{children:e},t)}))]})}var Io={filter:"agDateColumnFilter",cellRenderer:function(e){return e.value?new Date(e.value).toLocaleString():""}},Lo=bt.span.withConfig({displayName:"types__RedText",componentId:"sc-18lssv1-0"})(["color:",";"],(function(e){return e.theme.colors.tfpRed})),Fo={date:Io,command:{filter:"agTextColumnFilter",cellRenderer:function(e){return e.value?e.data.allowed?e.value:(0,Po.jsx)(Lo,{children:e.value}):""}}},ko={flex:1,wrapText:!0,autoHeight:!0,resizable:!0,sortable:!0,cellStyle:{textAlign:"left"},cellRenderer:function(e){return(0,Po.jsx)(Mo,{text:e.value})},comparator:function(e,t){return e&&t?e.toLowerCase().localeCompare(t.toLowerCase()):0}};function Go(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n={theme:"ag-theme-balham-dark",enableCellTextSelection:!0,suppressCellFocus:!0,enableRangeSelection:!1},r=(0,Et.Z)((0,Et.Z)({},n),e),i=(0,o.useState)(null),s=(0,t.Z)(i,2),a=s[1],l=(0,o.useState)(null),u=(0,t.Z)(l,2),c=u[1],p=function(t){a(t.api),c(t.columnApi),e.onGridReady&&e.onGridReady(t)};return(0,Po.jsx)("div",{className:r.theme,style:{height:"100%",width:"100%"},children:(0,Po.jsx)(no.AgGridReact,(0,Et.Z)({rowData:r.rowData,columnDefs:r.columnDef,defaultColDef:ko,columnTypes:Fo,alwaysShowHorizontalScroll:!0,onGridReady:p},r))})}function Ho(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={theme:"ag-theme-balham-dark"},n=(0,Et.Z)((0,Et.Z)({},t),e),o=function(e){if(!e.editing){var t=8===e.event.keyCode,o=46===e.event.keyCode;if(t||o){var r=e.api.getSelectedRows();return n.deleteRowFn?r.forEach((function(e){n.deleteRowFn(e)})):console.warn("No deleteRowFn provided in table options, rows will not actually get deleted"),n.reloadFn(),!0}return!1}};return(0,Po.jsx)(Go,(0,Et.Z)({rowData:n.rowData,columnDef:n.columnDef,defaultColDef:(0,Et.Z)((0,Et.Z)({},ko),{},{suppressKeyboardEvent:o}),onCellValueChanged:n.editRowFn,editType:"fullRow",rowSelection:"multiple"},n))}var Bo=n(7762),Vo=(0,o.createContext)({});function Wo(e){var n=e.children,r=(0,o.useState)(null),i=(0,t.Z)(r,2),s=i[0],a=i[1];(0,o.useEffect)((function(){function e(){return(e=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,to.getMods();case 2:t=e.sent,a(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]);var l=function(e){var n=(0,o.useState)(!0),r=(0,t.Z)(n,2),i=r[0],s=r[1],a=(0,o.useState)(0),l=(0,t.Z)(a,2),u=l[0],c=l[1],p=(0,o.useState)([]),d=(0,t.Z)(p,2),h=d[0],f=d[1];return(0,o.useEffect)((function(){var t=function(e){"load"===e.type&&c((function(e){return e+1})),"error"===e.type&&(console.error("Failed to load ".concat(e.target.src)),c((function(e){return e+1})))};if(e){var n,o=e.filter((function(e){return e.web})),r=(0,Bo.Z)(o.map((function(e){return e.web.bundle})));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!document.querySelector('script[src="'.concat(i,'"]'))){var s=document.createElement("script");s.type="text/javascript",s.src=i,s.async=!0,document.body.appendChild(s),s.addEventListener("load",t),s.addEventListener("error",t)}}}catch(a){r.e(a)}finally{r.f()}}}),[e]),(0,o.useEffect)((function(){if(e){var t=e.filter((function(e){return e.web}));if(u===t.length){var n=t.filter((function(e){return window[e.name]})).map((function(e){return(0,Et.Z)((0,Et.Z)({},e),{},{external:window[e.name]})}));f(n),s(!1)}}}),[e,u]),i?{loading:i,loadedScripts:u}:{loading:i,webMods:h}}(s),u=l.webMods,c=l.loading;u&&!c&&u.length!==s.filter((function(e){return e.web})).length&&console.error("Mods length mismatch, are all IDs mapped correctly between js mods and backend response?",u,s);var p=[];return u&&u.forEach((function(e){for(var t in e.external.routes)if(Object.hasOwnProperty.call(e.external.routes,t)){var n=e.external.routes[t],r=e.name.toLowerCase().split(" ").join("");p.push({path:"mods/".concat(r,"/").concat(t),name:t,element:Uo(n,{React:o})})}})),(0,Po.jsx)(Vo.Provider,{value:{mods:s,webMods:u,modRoutes:p},children:n})}function jo(){return(0,o.useContext)(Vo)}function Uo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.createElement)(e,(0,Et.Z)({React:o,styled:bt,HTTP:to,Table:Go,EditableTable:Ho},t))}var zo=n.p+"files/static/media/7d2d-logo.fb3c6004228951242783.png",Zo=n.p+"files/static/media/7d2d-square.8d1f92bcf774cf9ed887.webp",Yo="webevent.log",Ko="webapi.Animal",qo="webapi.Command",Xo="webapi.Hostile",Qo="webapi.Log",Jo="webapi.Player",$o="webapi.ServerStats",er="webapi.Mods",tr="web.map";function nr(){return or.apply(this,arguments)}function or(){return(or=Tt(Rt().mark((function e(){return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",to.get("/userstatus"));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var rr=(0,o.createContext)({status:{loggedin:!1}});function ir(e){var n=e.children,r=(0,o.useState)({}),i=(0,t.Z)(r,2),s=i[0],a=i[1],l=(0,o.useState)(!0),u=(0,t.Z)(l,2),c=u[0],p=u[1],d=(0,o.useState)([]),h=(0,t.Z)(d,2),f=h[0],g=h[1];function m(){return v.apply(this,arguments)}function v(){return v=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,nr();case 2:t=e.sent,a(t),g(t.permissions),p(!1);case 6:case"end":return e.stop()}}),e)}))),v.apply(this,arguments)}return(0,o.useEffect)((function(){m()}),[]),c?null:(0,Po.jsx)(rr.Provider,{value:{status:s,loading:c,permissions:f,checkPermission:function(e){for(var t=Array.isArray(e)?e:[e],n=function(e){var n=s.permissions.find((function(n){return n.module.toLowerCase()===t[e].module.toLowerCase()}));if(!n||!n.allowed[t[e].method])return{v:!1}},o=0;o<t.length;o++){var r=n(o);if("object"===typeof r)return r.v}return!0},refreshStatus:m},children:n})}function sr(){return(0,o.useContext)(rr)}var ar=n(7948),lr=n.n(ar),ur=bt.div.withConfig({displayName:"button__ButtonContainer",componentId:"sc-13s7063-0"})(["background-color:",";color:",";border-radius:5px;padding:0.5rem;width:fit-content;cursor:pointer;margin:0.25rem;"],(function(e){return e.theme.colors.tfpDarkGrey}),(function(e){return e.theme.colors.tfpWhite}));function cr(e){return(0,Po.jsx)(ur,{onClick:e.onClick,children:e.text})}var pr=bt.form.withConfig({displayName:"loginForm__FormContainer",componentId:"sc-gwxwcm-0"})(["margin:1rem;display:flex;flex-direction:column;align-items:center;justify-content:center;"]),dr=bt.input.withConfig({displayName:"loginForm__StyledInput",componentId:"sc-gwxwcm-1"})(["margin-top:1rem;margin-bottom:1rem;border-radius:5px;outline:none;"]);function hr(e){var n=e.onSubmit,r=(0,o.useState)(""),i=(0,t.Z)(r,2),s=i[0],a=i[1],l=(0,o.useState)(""),u=(0,t.Z)(l,2),c=u[0],p=u[1];return(0,Po.jsxs)(pr,{onSubmit:function(e){return n(e,s,c)},children:[(0,Po.jsx)("label",{htmlFor:"username",children:"Username"}),(0,Po.jsx)(dr,{id:"username",type:"text",value:s,onChange:function(e){a(e.target.value)}}),(0,Po.jsx)("label",{htmlFor:"password",children:"Password"}),(0,Po.jsx)(dr,{id:"password",type:"password",value:c,onChange:function(e){p(e.target.value)}}),(0,Po.jsx)(cr,{text:"Submit",onClick:function(e){return n(e,s,c)}}),(0,Po.jsx)("input",{type:"submit",hidden:!0})]})}lr().setAppElement("#root");var fr=bt.div.withConfig({displayName:"loginModal__Container",componentId:"sc-1yk7ggv-0"})(["margin:1rem;display:flex;flex-direction:column;align-items:center;justify-content:center;"]),gr=bt.p.withConfig({displayName:"loginModal__ErrorMessage",componentId:"sc-1yk7ggv-1"})(["color:",";font-size:14px;margin-top:10px;"],(function(e){return e.theme.colors.tfpRed}));function mr(e){var n=e.OpenComponent,r=e.modalIsOpen,i=e.setIsModalOpen,s=_t(),a=(0,o.useState)(null),l=(0,t.Z)(a,2),u=l[0],c=l[1],p={content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",backgroundColor:s.colors.tfpDarkGrey80,color:s.colors.tfpWhite},overlay:{zIndex:1e3,backgroundColor:s.colors.tfpDarkGrey60}};return(0,Po.jsxs)(Po.Fragment,{children:[(0,Po.jsx)("div",{onClick:function(){i(!0)},children:n}),(0,Po.jsxs)(lr(),{isOpen:r,onRequestClose:function(){i(!1)},style:p,contentLabel:"Example Modal",children:[(0,Po.jsx)(fr,{children:(0,Po.jsx)("p",{children:'If you do not have an account yet, you can create one by executing the "createwebuser" command ingame'})}),(0,Po.jsx)("hr",{}),(0,Po.jsx)(hr,{onSubmit:function(e,t,n){e.preventDefault(),to.login(t,n).then((function(e){location.reload()})).catch((function(e){console.error(e),c(e.response.data)}))}}),u&&(0,Po.jsx)(gr,{children:u})]})]})}function vr(e){return uo({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"}},{tag:"polyline",attr:{points:"10 17 15 12 10 7"}},{tag:"line",attr:{x1:"15",y1:"12",x2:"3",y2:"12"}}]})(e)}function yr(e){return uo({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}},{tag:"polyline",attr:{points:"16 17 21 12 16 7"}},{tag:"line",attr:{x1:"21",y1:"12",x2:"9",y2:"12"}}]})(e)}function Cr(e){var n=e.collapsed,r=sr().status,i=(0,o.useState)(!1),s=(0,t.Z)(i,2),a=s[0],l=s[1],u=(0,Po.jsx)(Ir,{collapsed:n,icon:(0,Po.jsx)(vr,{}),title:"Log in",to:"#"});return r.loggedIn?(0,Po.jsx)(Ir,{collapsed:n,icon:(0,Po.jsx)(yr,{}),title:"Log out",to:"../session/logout",external:!0}):(0,Po.jsx)(mr,{modalIsOpen:a,setIsModalOpen:l,OpenComponent:u})}var wr=bt(U).withConfig({displayName:"NavLink",componentId:"sc-pj17un-0"})(["color:",";text-decoration:none;"],(function(e){return e.theme.colors.tfpWhite})),_r=n(2007),br=n.n(_r),Er=function(e){var t=e.requiredPermission,n=e.children,o=sr().checkPermission;if(!t)throw new Error("requiredPermission is required");return o(t)?n:null};Er.propTypes={requiredPermission:br().shape({module:br().string.isRequired,method:br().string.isRequired}).isRequired,children:br().node.isRequired};var Sr=bt.div.withConfig({displayName:"sidebar__Container",componentId:"sc-152a2hf-0"})(["height:100vh;width:",";position:relative;font-size:2rem;text-align:center;display:flex;flex-direction:column;justify-content:space-between;"],(function(e){return e.collapsed?"100px":"250px"})),Rr=bt.ul.withConfig({displayName:"sidebar__StyledUl",componentId:"sc-152a2hf-1"})(["list-style-type:none;padding-left:1rem;position:relative;"]),Or=bt.li.withConfig({displayName:"sidebar__StyledLi",componentId:"sc-152a2hf-2"})(["height:42px;display:flex;align-items:center;justify-content:flex-start;"]),Tr=bt(wr).withConfig({displayName:"sidebar__StyledNavLink",componentId:"sc-152a2hf-3"})(["text-decoration:none;color:",";display:flex;align-items:center;justify-content:flex-start;> *{margin:0 0.5rem;}"],(function(e){return e.isActive?"red":"white"})),Pr=bt.div.withConfig({displayName:"sidebar__ImageContainer",componentId:"sc-152a2hf-4"})(["width:",";height:200px;top:0;"],(function(e){return e.collapsed?"100px":"250px"})),Ar=bt.img.withConfig({displayName:"sidebar__SdtdLogoContainer",componentId:"sc-152a2hf-5"})(["width:100%;height:",";"],(function(e){return e.collapsed?"50%":"100%"})),Dr=bt.div.withConfig({displayName:"sidebar__StyledCollapse",componentId:"sc-152a2hf-6"})(["width:100%;height:50px;cursor:pointer;"]),xr=bt.a.withConfig({displayName:"sidebar__ExternalLink",componentId:"sc-152a2hf-7"})(["text-decoration:none;color:",";display:flex;align-items:center;justify-content:flex-start;> *{margin:0 0.5rem;}"],(function(e){return e.isActive?"red":"white"}));function Nr(e){return(0,Po.jsx)(Pr,{collapsed:e.collapsed,children:(0,Po.jsx)(Ar,{collapsed:e.collapsed,src:e.collapsed?Zo:zo,alt:"Image"})})}function Mr(e){var t=e.children;return(0,Po.jsx)(Or,{children:(0,Po.jsx)("nav",{children:t})})}function Ir(e){var t=e.icon,n=e.title,o=e.component,r=e.to,i=e.collapsed,s=e.external,a=void 0!==s&&s,l=N(),u=l.pathname===r||l.pathname.startsWith("/mods/")&&l.pathname.endsWith(r),c=n||o;return a?(0,Po.jsxs)(xr,{isActive:u,href:r,children:[t,i?"":c]}):(0,Po.jsxs)(Tr,{to:r,isActive:u,children:[t,i?"":c]})}function Lr(e){var t=e.collapsed,n=e.setCollapsed;var o=sr().status,r=jo().modRoutes;return(0,Po.jsxs)(Sr,{collapsed:t,children:[(0,Po.jsx)(Nr,{collapsed:t}),(0,Po.jsxs)(Rr,{children:[(0,Po.jsx)(Er,{requiredPermission:{module:tr,method:"GET"},children:(0,Po.jsx)(Mr,{children:(0,Po.jsx)(Ir,{collapsed:t,icon:(0,Po.jsx)(bo,{}),title:"Map",to:"/"})})}),(0,Po.jsx)(Er,{requiredPermission:{module:qo,method:"GET"},children:(0,Po.jsx)(Mr,{children:(0,Po.jsx)(Ir,{collapsed:t,icon:(0,Po.jsx)(Oo,{}),title:"Console",to:"/console"})})}),(0,Po.jsx)(Er,{requiredPermission:{module:qo,method:"GET"},children:(0,Po.jsx)(Mr,{children:(0,Po.jsx)(Ir,{collapsed:t,icon:(0,Po.jsx)(mo,{}),title:"Settings",to:"/settings"})})}),(0,Po.jsx)(Er,{requiredPermission:{module:er,method:"GET"},children:(0,Po.jsx)(Mr,{children:(0,Po.jsx)(Ir,{collapsed:t,icon:(0,Po.jsx)(wo,{}),title:"Mods",to:"/mods"})})}),r.map((function(e){return(0,Po.jsx)(Mr,{children:(0,Po.jsx)(Ir,{collapsed:t,icon:(0,Po.jsx)(wo,{}),title:e.name,to:e.path})},e.path)}))]}),(0,Po.jsxs)(Rr,{children:[o.loggedIn&&(0,Po.jsx)(Mr,{children:(0,Po.jsx)(Ir,{collapsed:t,icon:(0,Po.jsx)(To,{}),title:"".concat(o.username),to:"/profile"})}),(0,Po.jsx)(Mr,{children:(0,Po.jsx)(Cr,{collapsed:t})})]}),(0,Po.jsx)(Dr,{onClick:function(){n(!t)},children:t?(0,Po.jsx)(fo,{}):(0,Po.jsx)(ho,{})})]})}var Fr=n.p+"files/static/media/bg-forest.a0037883583931c1c7e3.jpg",kr=bt.div.withConfig({displayName:"sc-404__CenterContainer",componentId:"sc-13rbdbz-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;"]);function Gr(){return(0,Po.jsxs)(kr,{children:[(0,Po.jsx)("h1",{children:"404"}),(0,Po.jsx)("p",{children:"You have gotten lost in the wilderness, there's nothing here!"}),(0,Po.jsx)("br",{}),(0,Po.jsxs)(wr,{to:"/",children:[" ",(0,Po.jsx)(_o,{})," Go home"]})]})}var Hr=bt.div.withConfig({displayName:"accordion__AccordionTitle",componentId:"sc-8ip8u1-0"})(["font-size:1,5rem;width:100%;height:2.5rem;margin-bottom:1rem;background-color:",";color:",";border-radius:5px;padding:0% 5%;cursor:pointer;display:flex;justify-content:space-between;align-items:center;"],(function(e){return e.theme.colors.tfpDarkGrey40}),(function(e){return e.open?e.theme.colors.tfpRed:e.theme.colors.tfpWhite})),Br=bt.div.withConfig({displayName:"accordion__AccordionItemContainer",componentId:"sc-8ip8u1-1"})(["width:100%;height:",";margin-top:1rem;"],(function(e){return e.open?"80%":"5%"})),Vr=bt.div.withConfig({displayName:"accordion__AccordionChildrenContainer",componentId:"sc-8ip8u1-2"})(["display:flex;flex-grow:1;flex-direction:column;margin-right:3rem;"]),Wr=bt.div.withConfig({displayName:"accordion__AccordionItemComponentContainer",componentId:"sc-8ip8u1-3"})(["width:100%;height:90%;"]);function jr(e){var n=e.items,r=(0,o.useState)(),i=(0,t.Z)(r,2),s=i[0],a=i[1],l=function(e){a(s!==e?e:null)};return(0,Po.jsx)(Vr,{children:n.map((function(e){var t=e.title,n=e.component;return(0,Po.jsx)(Ur,{title:t,component:n,toggle:l,open:s===t},t)}))})}function Ur(e){var t=e.component,n=e.title,o=e.open,r=e.toggle;return(0,Po.jsxs)(Br,{open:o,children:[(0,Po.jsx)(Hr,{open:o,onClick:function(){return r(n)},children:(0,Po.jsx)("h3",{children:n})}),o&&(0,Po.jsx)(Wr,{children:t})]})}function zr(){var e=(0,o.useState)([]),n=(0,t.Z)(e,2),r=n[0],i=n[1];function s(){return a.apply(this,arguments)}function a(){return(a=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,to.getAdminList();case 2:t=e.sent,i(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,o.useEffect)((function(){s()}),[]),(0,Po.jsx)(Po.Fragment,{children:(0,Po.jsx)(Ho,{columnDef:[{field:"level",filter:"agNumberColumnFilter",checkboxSelection:!0},{field:"ID",filter:"agTextColumnFilter"},{field:"name",filter:"agTextColumnFilter"}],deleteRowFn:function(e){to.executeCommand("admin remove ".concat(e.ID))},reloadFn:s,rowData:r,onGridReady:function(e){e.columnApi.applyColumnState({state:[{colId:"name",sort:"asc"}]})}})})}function Zr(){var e=(0,o.useState)([]),n=(0,t.Z)(e,2),r=n[0],i=n[1];function s(){return a.apply(this,arguments)}function a(){return a=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,to.getCommandPermissions();case 2:t=e.sent,i(t);case 4:case"end":return e.stop()}}),e)}))),a.apply(this,arguments)}return(0,o.useEffect)((function(){s()}),[]),(0,Po.jsx)(Po.Fragment,{children:(0,Po.jsx)(Ho,{columnDef:[{field:"level",filter:"agNumberColumnFilter",checkboxSelection:!0},{field:"command",filter:"agTextColumnFilter"}],deleteRowFn:function(e){to.executeCommand("commandpermission remove ".concat(e.command))},reloadFn:s,rowData:r,onGridReady:function(e){e.columnApi.applyColumnState({state:[{colId:"command",sort:"asc"}]})}})})}function Yr(){var e=(0,o.useState)([]),n=(0,t.Z)(e,2),r=n[0],i=n[1];function s(){return a.apply(this,arguments)}function a(){return a=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,to.getWebPermissions();case 2:t=e.sent,i(t);case 4:case"end":return e.stop()}}),e)}))),a.apply(this,arguments)}return(0,o.useEffect)((function(){s()}),[]),(0,Po.jsx)(Po.Fragment,{children:(0,Po.jsx)(Ho,{columnDef:[{field:"level",filter:"agNumberColumnFilter",checkboxSelection:!0},{field:"permission",filter:"agTextColumnFilter"}],deleteRowFn:function(e){to.executeCommand("webpermission remove ".concat(e.permission))},reloadFn:s,rowData:r,onGridReady:function(e){e.columnApi.applyColumnState({state:[{colId:"permission",sort:"asc"}]})}})})}function Kr(){var e=(0,o.useState)([]),n=(0,t.Z)(e,2),r=n[0],i=n[1];function s(){return a.apply(this,arguments)}function a(){return a=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,to.getWebTokens();case 2:t=e.sent,i(t);case 4:case"end":return e.stop()}}),e)}))),a.apply(this,arguments)}return(0,o.useEffect)((function(){s()}),[]),(0,Po.jsx)(Ho,{columnDef:[{field:"level",filter:"agNumberColumnFilter",checkboxSelection:!0},{field:"name",filter:"agTextColumnFilter"},{field:"token",filter:"agTextColumnFilter"}],deleteRowFn:function(e){to.executeCommand("webtokens remove ".concat(e.name))},reloadFn:s,rowData:r,onGridReady:function(e){e.columnApi.applyColumnState({state:[{colId:"level",sort:"desc"}]})}})}function qr(){var e=(0,o.useState)([]),n=(0,t.Z)(e,2),r=n[0],i=n[1];function s(){return a.apply(this,arguments)}function a(){return a=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,to.getBans();case 2:t=e.sent,i(t);case 4:case"end":return e.stop()}}),e)}))),a.apply(this,arguments)}return(0,o.useEffect)((function(){s()}),[]),(0,Po.jsx)(Po.Fragment,{children:(0,Po.jsx)(Ho,{columnDef:[{field:"date",type:["date"],checkboxSelection:!0},{field:"ID",filter:"agTextColumnFilter"},{field:"name",filter:"agTextColumnFilter"},{field:"reason",filter:"agTextColumnFilter"}],deleteRowFn:function(e){to.executeCommand("ban remove ".concat(e.ID))},reloadFn:s,rowData:r,onGridReady:function(e){e.columnApi.applyColumnState({state:[{colId:"date",sort:"asc"}]})}})})}var Xr=bt.div.withConfig({displayName:"Settings__SettingsContainer",componentId:"sc-mzo7ay-0"})(["height:100vh;width:100%;display:flex;flex-direction:column;text-align:left;overflow-y:scroll;"]);function Qr(){var e=jo().webMods,t=sr().checkPermission,n=[];e&&e.forEach((function(e){for(var o in e.external.settings)if(Object.hasOwnProperty.call(e.external.settings,o)){var r=e.external.settings[o];n.push({title:o,component:Uo(r,{checkPermission:t})})}}));var o=[];return t({module:qo,method:"POST"})&&(o.push({title:"User permissions",component:(0,Po.jsx)(zr,{})}),o.push({title:"Command permissions",component:(0,Po.jsx)(Zr,{})}),o.push({title:"Web permissions",component:(0,Po.jsx)(Yr,{})}),o.push({title:"Web tokens",component:(0,Po.jsx)(Kr,{})}),o.push({title:"Bans",component:(0,Po.jsx)(qr,{})})),o.push.apply(o,n),(0,Po.jsxs)(Xr,{children:[(0,Po.jsx)("h1",{children:"Settings "}),(0,Po.jsx)(jr,{items:o})]})}var Jr=bt.div.withConfig({displayName:"Error__CenterContainer",componentId:"sc-mbd7nn-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;width:100%;"]);function $r(){var e=function(){var e=(0,o.useContext)(g).matches,t=e[e.length-1];return t?t.params:{}}().code;return(0,Po.jsxs)(Jr,{children:[(0,Po.jsx)("h1",{children:"Error!"}),(0,Po.jsxs)("p",{children:[e," happened \ud83d\ude22"]}),(0,Po.jsx)("br",{}),(0,Po.jsxs)(wr,{to:"/",children:[" ",(0,Po.jsx)(_o,{})," Go home"]})]})}function ei(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return function(){for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];clearTimeout(t),t=setTimeout((function(){return e.apply(void 0,r)}),n)}}var ti=bt.div.withConfig({displayName:"Register__Container",componentId:"sc-1vk5lyq-0"})(["display:flex;justify-content:center;align-items:center;height:100%;width:100%;"]),ni=bt.form.withConfig({displayName:"Register__Form",componentId:"sc-1vk5lyq-1"})(["display:flex;flex-direction:column;align-items:center;padding:20px;width:75%;"]),oi=bt.h1.withConfig({displayName:"Register__Heading",componentId:"sc-1vk5lyq-2"})(["font-size:24px;margin-bottom:20px;"]),ri=bt.label.withConfig({displayName:"Register__Label",componentId:"sc-1vk5lyq-3"})(["display:flex;flex-direction:column;margin-bottom:10px;text-align:center;width:100%;"]),ii=bt.input.withConfig({displayName:"Register__Input",componentId:"sc-1vk5lyq-4"})(["border:1px solid #ccc;border-radius:5px;font-size:16px;padding:5px;width:100%;"]),si=bt.p.withConfig({displayName:"Register__ExtraText",componentId:"sc-1vk5lyq-5"})(["font-size:14px;margin-top:20px;text-align:center;a{color:'#4CAF50';text-decoration:none;}a:hover{text-decoration:underline;}"]),ai=bt.p.withConfig({displayName:"Register__ErrorMessage",componentId:"sc-1vk5lyq-6"})(["color:",";font-size:14px;margin-top:10px;min-height:20px;max-width:75%;"],(function(e){return e.theme.colors.tfpRed}));function li(){var e=(0,o.useState)(""),n=(0,t.Z)(e,2),r=n[0],i=n[1],s=(0,o.useState)(""),a=(0,t.Z)(s,2),l=a[0],u=a[1],c=(0,o.useState)(null),p=(0,t.Z)(c,2),d=p[0],h=p[1],f=M(),g=sr().refreshStatus,m=function(e){return h(null),/^\w{4,16}$/.test(e.username)?!!/^\w{4,16}$/.test(e.password)||(h("Your password must be between 4 and 16 characters long and may only contain letters, numbers, and underscores."),!1):(h("Your username must be between 4 and 16 characters long and may only contain letters, numbers, and underscores."),!1)},v=ei(m,500),y=function(e){if(e.preventDefault(),m({username:r,password:l})){var t=new URLSearchParams(window.location.search).get("token");to.registerUser(r,l,t).then((function(){return g()})).then((function(e){f("/")})).catch((function(e){var t;console.error(e),h(null!==(t=e.message)&&void 0!==t?t:"Something went wrong")}))}};return(0,Po.jsx)(ti,{children:(0,Po.jsxs)(ni,{onSubmit:y,children:[(0,Po.jsx)(oi,{children:"Register"}),(0,Po.jsxs)(ri,{children:["Username",(0,Po.jsx)(ii,{type:"text",value:r,onChange:function(e){i(e.target.value),v({username:e.target.value,password:l})}})]}),(0,Po.jsxs)(ri,{children:["Password",(0,Po.jsx)(ii,{type:"password",value:l,onChange:function(e){u(e.target.value),v({username:r,password:e.target.value})}})]}),(0,Po.jsx)(cr,{type:"submit",text:"Submit",onClick:y}),(0,Po.jsx)("input",{type:"submit",hidden:!0}),(0,Po.jsx)(ai,{children:null!==d&&void 0!==d?d:""}),(0,Po.jsxs)(si,{children:["This is a place to put some extra text, read our privacy policy or check out how we ",(0,Po.jsx)("s",{children:"ab"}),"use cookies to track you."]})]})})}var ui="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),ci=new Uint8Array(16);function pi(){if(!ui)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ui(ci)}for(var di=[],hi=0;hi<256;++hi)di[hi]=(hi+256).toString(16).substr(1);var fi=function(e,t){var n=t||0,o=di;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 gi=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||pi)();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||fi(r)};function mi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function vi(e,t,n){return t&&mi(e.prototype,t),n&&mi(e,n),e}function yi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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},Ci.apply(this,arguments)}function wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wi(Object(n),!0).forEach((function(t){yi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bi(e){return bi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},bi(e)}function Ei(e,t){return Ei=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ei(e,t)}function Si(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}var Ri={HIDE:"__react_tooltip_hide_event",REBUILD:"__react_tooltip_rebuild_event",SHOW:"__react_tooltip_show_event"},Oi=function(e,t){var n;"function"===typeof window.CustomEvent?n=new window.CustomEvent(e,{detail:t}):(n=document.createEvent("Event")).initEvent(e,!1,!0,t),window.dispatchEvent(n)};var Ti=function(e,t){var n=this.state.show,o=this.props.id,r=this.isCapture(t.currentTarget),i=t.currentTarget.getAttribute("currentItem");r||t.stopPropagation(),n&&"true"===i?e||this.hideTooltip(t):(t.currentTarget.setAttribute("currentItem","true"),Pi(t.currentTarget,this.getTargetArray(o)),this.showTooltip(t))},Pi=function(e,t){for(var n=0;n<t.length;n++)e!==t[n]?t[n].setAttribute("currentItem","false"):t[n].setAttribute("currentItem","true")},Ai={id:"9b69f92e-d3fe-498b-b1b4-c5e63a51b0cf",set:function(e,t,n){this.id in e?e[this.id][t]=n:Object.defineProperty(e,this.id,{configurable:!0,value:yi({},t,n)})},get:function(e,t){var n=e[this.id];if(void 0!==n)return n[t]}};var Di=function(e,t,n){var o=t.respectEffect,r=void 0!==o&&o,i=t.customEvent,s=void 0!==i&&i,a=this.props.id,l=n.target.getAttribute("data-tip")||null,u=n.target.getAttribute("data-for")||null,c=n.target;if(!this.isCustomEvent(c)||s){var p=null==a&&null==u||u===a;if(null!=l&&(!r||"float"===this.getEffect(c))&&p){var d=function(e){var t={};for(var n in e)"function"===typeof e[n]?t[n]=e[n].bind(e):t[n]=e[n];return t}(n);d.currentTarget=c,e(d)}}},xi=function(e,t){var n={};return e.forEach((function(e){var o=e.getAttribute(t);o&&o.split(" ").forEach((function(e){return n[e]=!0}))})),n},Ni=function(){return document.getElementsByTagName("body")[0]};function Mi(e,t,n,o,r,i,s){for(var a=Ii(n),l=a.width,u=a.height,c=Ii(t),p=c.width,d=c.height,h=Li(e,t,i),f=h.mouseX,g=h.mouseY,m=Fi(i,p,d,l,u),v=ki(s),y=v.extraOffsetX,C=v.extraOffsetY,w=window.innerWidth,_=window.innerHeight,b=Gi(n),E=b.parentTop,S=b.parentLeft,R=function(e){var t=m[e].l;return f+t+y},O=function(e){var t=m[e].t;return g+t+C},T=function(e){return function(e){var t=m[e].r;return f+t+y}(e)>w},P=function(e){return function(e){var t=m[e].b;return g+t+C}(e)>_},A=function(e){return function(e){return R(e)<0}(e)||T(e)||function(e){return O(e)<0}(e)||P(e)},D=function(e){return!A(e)},x=["top","bottom","left","right"],N=[],M=0;M<4;M++){var I=x[M];D(I)&&N.push(I)}var L,F=!1,k=r!==o;return D(r)&&k?(F=!0,L=r):N.length>0&&A(r)&&A(o)&&(F=!0,L=N[0]),F?{isNewState:!0,newState:{place:L}}:{isNewState:!1,position:{left:parseInt(R(o)-S,10),top:parseInt(O(o)-E,10)}}}var Ii=function(e){var t=e.getBoundingClientRect(),n=t.height,o=t.width;return{height:parseInt(n,10),width:parseInt(o,10)}},Li=function(e,t,n){var o=t.getBoundingClientRect(),r=o.top,i=o.left,s=Ii(t),a=s.width,l=s.height;return"float"===n?{mouseX:e.clientX,mouseY:e.clientY}:{mouseX:i+a/2,mouseY:r+l/2}},Fi=function(e,t,n,o,r){var i,s,a,l;return"float"===e?(i={l:-o/2,r:o/2,t:-(r+3+2),b:-3},a={l:-o/2,r:o/2,t:15,b:r+3+2+12},l={l:-(o+3+2),r:-3,t:-r/2,b:r/2},s={l:3,r:o+3+2,t:-r/2,b:r/2}):"solid"===e&&(i={l:-o/2,r:o/2,t:-(n/2+r+2),b:-n/2},a={l:-o/2,r:o/2,t:n/2,b:n/2+r+2},l={l:-(o+t/2+2),r:-t/2,t:-r/2,b:r/2},s={l:t/2,r:o+t/2+2,t:-r/2,b:r/2}),{top:i,bottom:a,left:l,right:s}},ki=function(e){var t=0,n=0;for(var o in"[object String]"===Object.prototype.toString.apply(e)&&(e=JSON.parse(e.toString().replace(/'/g,'"'))),e)"top"===o?n-=parseInt(e[o],10):"bottom"===o?n+=parseInt(e[o],10):"left"===o?t-=parseInt(e[o],10):"right"===o&&(t+=parseInt(e[o],10));return{extraOffsetX:t,extraOffsetY:n}},Gi=function(e){for(var t=e;t;){var n=window.getComputedStyle(t);if("none"!==n.getPropertyValue("transform")||"transform"===n.getPropertyValue("will-change"))break;t=t.parentElement}return{parentTop:t&&t.getBoundingClientRect().top||0,parentLeft:t&&t.getBoundingClientRect().left||0}};function Hi(e,t,n,r){if(t)return t;if(void 0!==n&&null!==n)return n;if(null===n)return null;var i=/<br\s*\/?>/;return r&&"false"!==r&&i.test(e)?e.split(i).map((function(e,t){return o.createElement("span",{key:t,className:"multi-line"},e)})):e}function Bi(e){var t={};return Object.keys(e).filter((function(e){return/(^aria-\w+$|^role$)/.test(e)})).forEach((function(n){t[n]=e[n]})),t}function Vi(e){var t=e.length;return e.hasOwnProperty?Array.prototype.slice.call(e):new Array(t).fill().map((function(t){return e[t]}))}var Wi={dark:{text:"#fff",background:"#222",border:"transparent",arrow:"#222"},success:{text:"#fff",background:"#8DC572",border:"transparent",arrow:"#8DC572"},warning:{text:"#fff",background:"#F0AD4E",border:"transparent",arrow:"#F0AD4E"},error:{text:"#fff",background:"#BE6464",border:"transparent",arrow:"#BE6464"},info:{text:"#fff",background:"#337AB7",border:"transparent",arrow:"#337AB7"},light:{text:"#222",background:"#fff",border:"transparent",arrow:"#fff"}};function ji(e,t,n,o){return function(e,t){var n=t.text,o=t.background,r=t.border,i=t.arrow;return"\n  \t.".concat(e," {\n\t    color: ").concat(n,";\n\t    background: ").concat(o,";\n\t    border: 1px solid ").concat(r,";\n  \t}\n\n  \t.").concat(e,".place-top {\n        margin-top: -10px;\n    }\n    .").concat(e,".place-top::before {\n        border-top: 8px solid ").concat(r,";\n    }\n    .").concat(e,".place-top::after {\n        border-left: 8px solid transparent;\n        border-right: 8px solid transparent;\n        bottom: -6px;\n        left: 50%;\n        margin-left: -8px;\n        border-top-color: ").concat(i,";\n        border-top-style: solid;\n        border-top-width: 6px;\n    }\n\n    .").concat(e,".place-bottom {\n        margin-top: 10px;\n    }\n    .").concat(e,".place-bottom::before {\n        border-bottom: 8px solid ").concat(r,";\n    }\n    .").concat(e,".place-bottom::after {\n        border-left: 8px solid transparent;\n        border-right: 8px solid transparent;\n        top: -6px;\n        left: 50%;\n        margin-left: -8px;\n        border-bottom-color: ").concat(i,";\n        border-bottom-style: solid;\n        border-bottom-width: 6px;\n    }\n\n    .").concat(e,".place-left {\n        margin-left: -10px;\n    }\n    .").concat(e,".place-left::before {\n        border-left: 8px solid ").concat(r,";\n    }\n    .").concat(e,".place-left::after {\n        border-top: 5px solid transparent;\n        border-bottom: 5px solid transparent;\n        right: -6px;\n        top: 50%;\n        margin-top: -4px;\n        border-left-color: ").concat(i,";\n        border-left-style: solid;\n        border-left-width: 6px;\n    }\n\n    .").concat(e,".place-right {\n        margin-left: 10px;\n    }\n    .").concat(e,".place-right::before {\n        border-right: 8px solid ").concat(r,";\n    }\n    .").concat(e,".place-right::after {\n        border-top: 5px solid transparent;\n        border-bottom: 5px solid transparent;\n        left: -6px;\n        top: 50%;\n        margin-top: -4px;\n        border-right-color: ").concat(i,";\n        border-right-style: solid;\n        border-right-width: 6px;\n    }\n  ")}(e,function(e,t,n){var o=e.text,r=e.background,i=e.border,s=e.arrow?e.arrow:e.background,a=function(e){return Wi[e]?_i({},Wi[e]):void 0}(t);o&&(a.text=o);r&&(a.background=r);n&&(a.border=i||("light"===t?"black":"white"));s&&(a.arrow=s);return a}(t,n,o))}var Ui="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};function zi(e,t){return e(t={exports:{}},t.exports),t.exports}var Zi=function(e){return e&&e.Math==Math&&e},Yi=Zi("object"==typeof globalThis&&globalThis)||Zi("object"==typeof window&&window)||Zi("object"==typeof self&&self)||Zi("object"==typeof Ui&&Ui)||function(){return this}()||Function("return this")(),Ki=function(e){try{return!!e()}catch(t){return!0}},qi=!Ki((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Xi={}.propertyIsEnumerable,Qi=Object.getOwnPropertyDescriptor,Ji=Qi&&!Xi.call({1:2},1)?function(e){var t=Qi(this,e);return!!t&&t.enumerable}:Xi,$i={f:Ji},es=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ts={}.toString,ns=function(e){return ts.call(e).slice(8,-1)},os="".split,rs=Ki((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==ns(e)?os.call(e,""):Object(e)}:Object,is=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e},ss=function(e){return rs(is(e))},as=function(e){return"object"===typeof e?null!==e:"function"===typeof e},ls=function(e,t){if(!as(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!as(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!as(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!as(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")},us=function(e){return Object(is(e))},cs={}.hasOwnProperty,ps=function(e,t){return cs.call(us(e),t)},ds=Yi.document,hs=as(ds)&&as(ds.createElement),fs=function(e){return hs?ds.createElement(e):{}},gs=!qi&&!Ki((function(){return 7!=Object.defineProperty(fs("div"),"a",{get:function(){return 7}}).a})),ms=Object.getOwnPropertyDescriptor,vs=qi?ms:function(e,t){if(e=ss(e),t=ls(t,!0),gs)try{return ms(e,t)}catch(n){}if(ps(e,t))return es(!$i.f.call(e,t),e[t])},ys={f:vs},Cs=function(e){if(!as(e))throw TypeError(String(e)+" is not an object");return e},ws=Object.defineProperty,_s=qi?ws:function(e,t,n){if(Cs(e),t=ls(t,!0),Cs(n),gs)try{return ws(e,t,n)}catch(o){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e},bs={f:_s},Es=qi?function(e,t,n){return bs.f(e,t,es(1,n))}:function(e,t,n){return e[t]=n,e},Ss=function(e,t){try{Es(Yi,e,t)}catch(n){Yi[e]=t}return t},Rs="__core-js_shared__",Os=Yi[Rs]||Ss(Rs,{}),Ts=Function.toString;"function"!=typeof Os.inspectSource&&(Os.inspectSource=function(e){return Ts.call(e)});var Ps,As,Ds,xs=Os.inspectSource,Ns=Yi.WeakMap,Ms="function"===typeof Ns&&/native code/.test(xs(Ns)),Is=zi((function(e){(e.exports=function(e,t){return Os[e]||(Os[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.12.1",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})})),Ls=0,Fs=Math.random(),ks=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Ls+Fs).toString(36)},Gs=Is("keys"),Hs=function(e){return Gs[e]||(Gs[e]=ks(e))},Bs={},Vs="Object already initialized",Ws=Yi.WeakMap;if(Ms||Os.state){var js=Os.state||(Os.state=new Ws),Us=js.get,zs=js.has,Zs=js.set;Ps=function(e,t){if(zs.call(js,e))throw new TypeError(Vs);return t.facade=e,Zs.call(js,e,t),t},As=function(e){return Us.call(js,e)||{}},Ds=function(e){return zs.call(js,e)}}else{var Ys=Hs("state");Bs[Ys]=!0,Ps=function(e,t){if(ps(e,Ys))throw new TypeError(Vs);return t.facade=e,Es(e,Ys,t),t},As=function(e){return ps(e,Ys)?e[Ys]:{}},Ds=function(e){return ps(e,Ys)}}var Ks,qs,Xs={set:Ps,get:As,has:Ds,enforce:function(e){return Ds(e)?As(e):Ps(e,{})},getterFor:function(e){return function(t){var n;if(!as(t)||(n=As(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Qs=zi((function(e){var t=Xs.get,n=Xs.enforce,o=String(String).split("String");(e.exports=function(e,t,r,i){var s,a=!!i&&!!i.unsafe,l=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof r&&("string"!=typeof t||ps(r,"name")||Es(r,"name",t),(s=n(r)).source||(s.source=o.join("string"==typeof t?t:""))),e!==Yi?(a?!u&&e[t]&&(l=!0):delete e[t],l?e[t]=r:Es(e,t,r)):l?e[t]=r:Ss(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||xs(this)}))})),Js=Yi,$s=function(e){return"function"==typeof e?e:void 0},ea=function(e,t){return arguments.length<2?$s(Js[e])||$s(Yi[e]):Js[e]&&Js[e][t]||Yi[e]&&Yi[e][t]},ta=Math.ceil,na=Math.floor,oa=function(e){return isNaN(e=+e)?0:(e>0?na:ta)(e)},ra=Math.min,ia=function(e){return e>0?ra(oa(e),9007199254740991):0},sa=Math.max,aa=Math.min,la=function(e){return function(t,n,o){var r,i=ss(t),s=ia(i.length),a=function(e,t){var n=oa(e);return n<0?sa(n+t,0):aa(n,t)}(o,s);if(e&&n!=n){for(;s>a;)if((r=i[a++])!=r)return!0}else for(;s>a;a++)if((e||a in i)&&i[a]===n)return e||a||0;return!e&&-1}},ua={includes:la(!0),indexOf:la(!1)}.indexOf,ca=function(e,t){var n,o=ss(e),r=0,i=[];for(n in o)!ps(Bs,n)&&ps(o,n)&&i.push(n);for(;t.length>r;)ps(o,n=t[r++])&&(~ua(i,n)||i.push(n));return i},pa=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],da=pa.concat("length","prototype"),ha=Object.getOwnPropertyNames||function(e){return ca(e,da)},fa={f:ha},ga={f:Object.getOwnPropertySymbols},ma=ea("Reflect","ownKeys")||function(e){var t=fa.f(Cs(e)),n=ga.f;return n?t.concat(n(e)):t},va=function(e,t){for(var n=ma(t),o=bs.f,r=ys.f,i=0;i<n.length;i++){var s=n[i];ps(e,s)||o(e,s,r(t,s))}},ya=/#|\.prototype\./,Ca=function(e,t){var n=_a[wa(e)];return n==Ea||n!=ba&&("function"==typeof t?Ki(t):!!t)},wa=Ca.normalize=function(e){return String(e).replace(ya,".").toLowerCase()},_a=Ca.data={},ba=Ca.NATIVE="N",Ea=Ca.POLYFILL="P",Sa=Ca,Ra=ys.f,Oa=function(e,t,n){if(function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function")}(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}},Ta=Array.isArray||function(e){return"Array"==ns(e)},Pa=ea("navigator","userAgent")||"",Aa=Yi.process,Da=Aa&&Aa.versions,xa=Da&&Da.v8;xa?qs=(Ks=xa.split("."))[0]<4?1:Ks[0]+Ks[1]:Pa&&(!(Ks=Pa.match(/Edge\/(\d+)/))||Ks[1]>=74)&&(Ks=Pa.match(/Chrome\/(\d+)/))&&(qs=Ks[1]);var Na,Ma=qs&&+qs,Ia=!!Object.getOwnPropertySymbols&&!Ki((function(){return!String(Symbol())||!Symbol.sham&&Ma&&Ma<41})),La=Ia&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Fa=Is("wks"),ka=Yi.Symbol,Ga=La?ka:ka&&ka.withoutSetter||ks,Ha=function(e){return ps(Fa,e)&&(Ia||"string"==typeof Fa[e])||(Ia&&ps(ka,e)?Fa[e]=ka[e]:Fa[e]=Ga("Symbol."+e)),Fa[e]},Ba=Ha("species"),Va=function(e,t){var n;return Ta(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Ta(n.prototype)?as(n)&&null===(n=n[Ba])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},Wa=[].push,ja=function(e){var t=1==e,n=2==e,o=3==e,r=4==e,i=6==e,s=7==e,a=5==e||i;return function(l,u,c,p){for(var d,h,f=us(l),g=rs(f),m=Oa(u,c,3),v=ia(g.length),y=0,C=p||Va,w=t?C(l,v):n||s?C(l,0):void 0;v>y;y++)if((a||y in g)&&(h=m(d=g[y],y,f),e))if(t)w[y]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:Wa.call(w,d)}else switch(e){case 4:return!1;case 7:Wa.call(w,d)}return i?-1:o||r?r:w}},Ua={forEach:ja(0),map:ja(1),filter:ja(2),some:ja(3),every:ja(4),find:ja(5),findIndex:ja(6),filterOut:ja(7)},za=Object.keys||function(e){return ca(e,pa)},Za=qi?Object.defineProperties:function(e,t){Cs(e);for(var n,o=za(t),r=o.length,i=0;r>i;)bs.f(e,n=o[i++],t[n]);return e},Ya=ea("document","documentElement"),Ka=Hs("IE_PROTO"),qa=function(){},Xa=function(e){return"<script>"+e+"</"+"script>"},Qa=function(){try{Na=document.domain&&new ActiveXObject("htmlfile")}catch(t){}Qa=Na?function(e){e.write(Xa("")),e.close();var t=e.parentWindow.Object;return e=null,t}(Na):function(){var e,t=fs("iframe");return t.style.display="none",Ya.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Xa("document.F=Object")),e.close(),e.F}();for(var e=pa.length;e--;)delete Qa.prototype[pa[e]];return Qa()};Bs[Ka]=!0;var Ja=Object.create||function(e,t){var n;return null!==e?(qa.prototype=Cs(e),n=new qa,qa.prototype=null,n[Ka]=e):n=Qa(),void 0===t?n:Za(n,t)},$a=Ha("unscopables"),el=Array.prototype;void 0==el[$a]&&bs.f(el,$a,{configurable:!0,value:Ja(null)});var tl,nl,ol,rl,il=Ua.find,sl="find",al=!0;sl in[]&&Array(1).find((function(){al=!1})),function(e,t){var n,o,r,i,s,a=e.target,l=e.global,u=e.stat;if(n=l?Yi:u?Yi[a]||Ss(a,{}):(Yi[a]||{}).prototype)for(o in t){if(i=t[o],r=e.noTargetGet?(s=Ra(n,o))&&s.value:n[o],!Sa(l?o:a+(u?".":"#")+o,e.forced)&&void 0!==r){if(typeof i===typeof r)continue;va(i,r)}(e.sham||r&&r.sham)&&Es(i,"sham",!0),Qs(n,o,i,e)}}({target:"Array",proto:!0,forced:al},{find:function(e){return il(this,e,arguments.length>1?arguments[1]:void 0)}}),tl=sl,el[$a][tl]=!0;var ll,ul=function(e){e.hide=function(e){Oi(Ri.HIDE,{target:e})},e.rebuild=function(){Oi(Ri.REBUILD)},e.show=function(e){Oi(Ri.SHOW,{target:e})},e.prototype.globalRebuild=function(){this.mount&&(this.unbindListener(),this.bindListener())},e.prototype.globalShow=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.showTooltip({currentTarget:t&&e.detail.target},!0)}},e.prototype.globalHide=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.hideTooltip({currentTarget:t&&e.detail.target},t)}}}(nl=function(e){e.prototype.bindWindowEvents=function(e){window.removeEventListener(Ri.HIDE,this.globalHide),window.addEventListener(Ri.HIDE,this.globalHide,!1),window.removeEventListener(Ri.REBUILD,this.globalRebuild),window.addEventListener(Ri.REBUILD,this.globalRebuild,!1),window.removeEventListener(Ri.SHOW,this.globalShow),window.addEventListener(Ri.SHOW,this.globalShow,!1),e&&(window.removeEventListener("resize",this.onWindowResize),window.addEventListener("resize",this.onWindowResize,!1))},e.prototype.unbindWindowEvents=function(){window.removeEventListener(Ri.HIDE,this.globalHide),window.removeEventListener(Ri.REBUILD,this.globalRebuild),window.removeEventListener(Ri.SHOW,this.globalShow),window.removeEventListener("resize",this.onWindowResize)},e.prototype.onWindowResize=function(){this.mount&&this.hideTooltip()}}(nl=function(e){e.prototype.isCustomEvent=function(e){return this.state.event||!!e.getAttribute("data-event")},e.prototype.customBindListener=function(e){var t=this,n=this.state,o=n.event,r=n.eventOff,i=e.getAttribute("data-event")||o,s=e.getAttribute("data-event-off")||r;i.split(" ").forEach((function(n){e.removeEventListener(n,Ai.get(e,n));var o=Ti.bind(t,s);Ai.set(e,n,o),e.addEventListener(n,o,!1)})),s&&s.split(" ").forEach((function(n){e.removeEventListener(n,t.hideTooltip),e.addEventListener(n,t.hideTooltip,!1)}))},e.prototype.customUnbindListener=function(e){var t=this.state,n=t.event,o=t.eventOff,r=n||e.getAttribute("data-event"),i=o||e.getAttribute("data-event-off");e.removeEventListener(r,Ai.get(e,n)),i&&e.removeEventListener(i,this.hideTooltip)}}(nl=function(e){e.prototype.isCapture=function(e){return e&&"true"===e.getAttribute("data-iscapture")||this.props.isCapture||!1}}(nl=function(e){e.prototype.getEffect=function(e){return e.getAttribute("data-effect")||this.props.effect||"float"}}(nl=function(e){e.prototype.isBodyMode=function(){return!!this.props.bodyMode},e.prototype.bindBodyListener=function(e){var t=this,n=this.state,o=n.event,r=n.eventOff,i=n.possibleCustomEvents,s=n.possibleCustomEventsOff,a=Ni(),l=xi(e,"data-event"),u=xi(e,"data-event-off");null!=o&&(l[o]=!0),null!=r&&(u[r]=!0),i.split(" ").forEach((function(e){return l[e]=!0})),s.split(" ").forEach((function(e){return u[e]=!0})),this.unbindBodyListener(a);var c=this.bodyModeListeners={};for(var p in null==o&&(c.mouseover=Di.bind(this,this.showTooltip,{}),c.mousemove=Di.bind(this,this.updateTooltip,{respectEffect:!0}),c.mouseout=Di.bind(this,this.hideTooltip,{})),l)c[p]=Di.bind(this,(function(e){var n=e.currentTarget.getAttribute("data-event-off")||r;Ti.call(t,n,e)}),{customEvent:!0});for(var d in u)c[d]=Di.bind(this,this.hideTooltip,{customEvent:!0});for(var h in c)a.addEventListener(h,c[h])},e.prototype.unbindBodyListener=function(e){e=e||Ni();var t=this.bodyModeListeners;for(var n in t)e.removeEventListener(n,t[n])}}((rl=ol=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Si(this,bi(t).call(this,e))).state={uuid:e.uuid||"t"+gi(),place:e.place||"top",desiredPlace:e.place||"top",type:"dark",effect:"float",show:!1,border:!1,customColors:{},offset:{},extraClass:"",html:!1,delayHide:0,delayShow:0,event:e.event||null,eventOff:e.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:Bi(e),isEmptyTip:!1,disable:!1,possibleCustomEvents:e.possibleCustomEvents||"",possibleCustomEventsOff:e.possibleCustomEventsOff||"",originTooltip:null,isMultiline:!1},n.bind(["showTooltip","updateTooltip","hideTooltip","hideTooltipOnScroll","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),n.mount=!0,n.delayShowLoop=null,n.delayHideLoop=null,n.delayReshow=null,n.intervalUpdateContent=null,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ei(e,t)}(t,e),vi(t,null,[{key:"propTypes",get:function(){return{uuid:br().string,children:br().any,place:br().string,type:br().string,effect:br().string,offset:br().object,multiline:br().bool,border:br().bool,textColor:br().string,backgroundColor:br().string,borderColor:br().string,arrowColor:br().string,insecure:br().bool,class:br().string,className:br().string,id:br().string,html:br().bool,delayHide:br().number,delayUpdate:br().number,delayShow:br().number,event:br().string,eventOff:br().string,isCapture:br().bool,globalEventOff:br().string,getContent:br().any,afterShow:br().func,afterHide:br().func,overridePosition:br().func,disable:br().bool,scrollHide:br().bool,resizeHide:br().bool,wrapper:br().string,bodyMode:br().bool,possibleCustomEvents:br().string,possibleCustomEventsOff:br().string,clickable:br().bool}}}]),vi(t,[{key:"bind",value:function(e){var t=this;e.forEach((function(e){t[e]=t[e].bind(t)}))}},{key:"componentDidMount",value:function(){var e=this.props,t=(e.insecure,e.resizeHide);this.bindListener(),this.bindWindowEvents(t),this.injectStyles()}},{key:"componentWillUnmount",value:function(){this.mount=!1,this.clearTimer(),this.unbindListener(),this.removeScrollListener(this.state.currentTarget),this.unbindWindowEvents()}},{key:"injectStyles",value:function(){var e=this.tooltipRef;if(e){for(var t,n=e.parentNode;n.parentNode;)n=n.parentNode;switch(n.constructor.name){case"Document":case"HTMLDocument":case void 0:t=n.head;break;default:t=n}if(!t.querySelector("style[data-react-tooltip]")){var o=document.createElement("style");o.textContent='.__react_component_tooltip {\n  border-radius: 3px;\n  display: inline-block;\n  font-size: 13px;\n  left: -999em;\n  opacity: 0;\n  padding: 8px 21px;\n  position: fixed;\n  pointer-events: none;\n  transition: opacity 0.3s ease-out;\n  top: -999em;\n  visibility: hidden;\n  z-index: 999;\n}\n.__react_component_tooltip.allow_hover, .__react_component_tooltip.allow_click {\n  pointer-events: auto;\n}\n.__react_component_tooltip::before, .__react_component_tooltip::after {\n  content: "";\n  width: 0;\n  height: 0;\n  position: absolute;\n}\n.__react_component_tooltip.show {\n  opacity: 0.9;\n  margin-top: 0;\n  margin-left: 0;\n  visibility: visible;\n}\n.__react_component_tooltip.place-top::before {\n  border-left: 10px solid transparent;\n  border-right: 10px solid transparent;\n  bottom: -8px;\n  left: 50%;\n  margin-left: -10px;\n}\n.__react_component_tooltip.place-bottom::before {\n  border-left: 10px solid transparent;\n  border-right: 10px solid transparent;\n  top: -8px;\n  left: 50%;\n  margin-left: -10px;\n}\n.__react_component_tooltip.place-left::before {\n  border-top: 6px solid transparent;\n  border-bottom: 6px solid transparent;\n  right: -8px;\n  top: 50%;\n  margin-top: -5px;\n}\n.__react_component_tooltip.place-right::before {\n  border-top: 6px solid transparent;\n  border-bottom: 6px solid transparent;\n  left: -8px;\n  top: 50%;\n  margin-top: -5px;\n}\n.__react_component_tooltip .multi-line {\n  display: block;\n  padding: 2px 0;\n  text-align: center;\n}',o.setAttribute("data-react-tooltip","true"),t.appendChild(o)}}}},{key:"mouseOnToolTip",value:function(){return!(!this.state.show||!this.tooltipRef)&&(this.tooltipRef.matches||(this.tooltipRef.msMatchesSelector?this.tooltipRef.matches=this.tooltipRef.msMatchesSelector:this.tooltipRef.matches=this.tooltipRef.mozMatchesSelector),this.tooltipRef.matches(":hover"))}},{key:"getTargetArray",value:function(e){var t,n=[];if(e){var o=e.replace(/\\/g,"\\\\").replace(/"/g,'\\"');t='[data-tip][data-for="'.concat(o,'"]')}else t="[data-tip]:not([data-for])";return Vi(document.getElementsByTagName("*")).filter((function(e){return e.shadowRoot})).forEach((function(e){n=n.concat(Vi(e.shadowRoot.querySelectorAll(t)))})),n.concat(Vi(document.querySelectorAll(t)))}},{key:"bindListener",value:function(){var e=this,t=this.props,n=t.id,o=t.globalEventOff,r=t.isCapture,i=this.getTargetArray(n);i.forEach((function(t){null===t.getAttribute("currentItem")&&t.setAttribute("currentItem","false"),e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),this.isBodyMode()?this.bindBodyListener(i):i.forEach((function(t){var n=e.isCapture(t),o=e.getEffect(t);e.isCustomEvent(t)?e.customBindListener(t):(t.addEventListener("mouseenter",e.showTooltip,n),t.addEventListener("focus",e.showTooltip,n),"float"===o&&t.addEventListener("mousemove",e.updateTooltip,n),t.addEventListener("mouseleave",e.hideTooltip,n),t.addEventListener("blur",e.hideTooltip,n))})),o&&(window.removeEventListener(o,this.hideTooltip),window.addEventListener(o,this.hideTooltip,r)),this.bindRemovalTracker()}},{key:"unbindListener",value:function(){var e=this,t=this.props,n=t.id,o=t.globalEventOff;this.isBodyMode()?this.unbindBodyListener():this.getTargetArray(n).forEach((function(t){e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),o&&window.removeEventListener(o,this.hideTooltip),this.unbindRemovalTracker()}},{key:"unbindBasicListener",value:function(e){var t=this.isCapture(e);e.removeEventListener("mouseenter",this.showTooltip,t),e.removeEventListener("mousemove",this.updateTooltip,t),e.removeEventListener("mouseleave",this.hideTooltip,t)}},{key:"getTooltipContent",value:function(){var e,t=this.props,n=t.getContent,o=t.children;return n&&(e=Array.isArray(n)?n[0]&&n[0](this.state.originTooltip):n(this.state.originTooltip)),Hi(this.state.originTooltip,o,e,this.state.isMultiline)}},{key:"isEmptyTip",value:function(e){return"string"===typeof e&&""===e||null===e}},{key:"showTooltip",value:function(e,t){if(this.tooltipRef){if(t&&!this.getTargetArray(this.props.id).some((function(t){return t===e.currentTarget})))return;var n=this.props,o=n.multiline,r=n.getContent,i=e.currentTarget.getAttribute("data-tip"),s=e.currentTarget.getAttribute("data-multiline")||o||!1,a=e instanceof window.FocusEvent||t,l=!0;e.currentTarget.getAttribute("data-scroll-hide")?l="true"===e.currentTarget.getAttribute("data-scroll-hide"):null!=this.props.scrollHide&&(l=this.props.scrollHide),e&&e.currentTarget&&e.currentTarget.setAttribute&&e.currentTarget.setAttribute("aria-describedby",this.state.uuid);var u=e.currentTarget.getAttribute("data-place")||this.props.place||"top",c=a?"solid":this.getEffect(e.currentTarget),p=e.currentTarget.getAttribute("data-offset")||this.props.offset||{},d=Mi(e,e.currentTarget,this.tooltipRef,u,u,c,p);d.position&&this.props.overridePosition&&(d.position=this.props.overridePosition(d.position,e,e.currentTarget,this.tooltipRef,u,u,c,p));var h=d.isNewState?d.newState.place:u;this.clearTimer();var f=e.currentTarget,g=this.state.show?f.getAttribute("data-delay-update")||this.props.delayUpdate:0,m=this,v=function(){m.setState({originTooltip:i,isMultiline:s,desiredPlace:u,place:h,type:f.getAttribute("data-type")||m.props.type||"dark",customColors:{text:f.getAttribute("data-text-color")||m.props.textColor||null,background:f.getAttribute("data-background-color")||m.props.backgroundColor||null,border:f.getAttribute("data-border-color")||m.props.borderColor||null,arrow:f.getAttribute("data-arrow-color")||m.props.arrowColor||null},effect:c,offset:p,html:(f.getAttribute("data-html")?"true"===f.getAttribute("data-html"):m.props.html)||!1,delayShow:f.getAttribute("data-delay-show")||m.props.delayShow||0,delayHide:f.getAttribute("data-delay-hide")||m.props.delayHide||0,delayUpdate:f.getAttribute("data-delay-update")||m.props.delayUpdate||0,border:(f.getAttribute("data-border")?"true"===f.getAttribute("data-border"):m.props.border)||!1,extraClass:f.getAttribute("data-class")||m.props.class||m.props.className||"",disable:(f.getAttribute("data-tip-disable")?"true"===f.getAttribute("data-tip-disable"):m.props.disable)||!1,currentTarget:f},(function(){l&&m.addScrollListener(m.state.currentTarget),m.updateTooltip(e),r&&Array.isArray(r)&&(m.intervalUpdateContent=setInterval((function(){if(m.mount){var e=m.props.getContent,t=Hi(i,"",e[0](),s),n=m.isEmptyTip(t);m.setState({isEmptyTip:n}),m.updatePosition()}}),r[1]))}))};g?this.delayReshow=setTimeout(v,g):v()}}},{key:"updateTooltip",value:function(e){var t=this,n=this.state,o=n.delayShow,r=n.disable,i=this.props.afterShow,s=this.getTooltipContent(),a=e.currentTarget||e.target;if(!this.mouseOnToolTip()&&!this.isEmptyTip(s)&&!r){var l=this.state.show?0:parseInt(o,10),u=function(){if(Array.isArray(s)&&s.length>0||s){var n=!t.state.show;t.setState({currentEvent:e,currentTarget:a,show:!0},(function(){t.updatePosition(),n&&i&&i(e)}))}};clearTimeout(this.delayShowLoop),l?this.delayShowLoop=setTimeout(u,l):u()}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isScroll:!1},r=this.state.disable,i=o.isScroll,s=i?0:this.state.delayHide,a=this.props.afterHide,l=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(l)&&!r){if(t){var u=this.getTargetArray(this.props.id),c=u.some((function(t){return t===e.currentTarget}));if(!c||!this.state.show)return}e&&e.currentTarget&&e.currentTarget.removeAttribute&&e.currentTarget.removeAttribute("aria-describedby");var p=function(){var t=n.state.show;n.mouseOnToolTip()?n.listenForTooltipExit():(n.removeListenerForTooltipExit(),n.setState({show:!1},(function(){n.removeScrollListener(n.state.currentTarget),t&&a&&a(e)})))};this.clearTimer(),s?this.delayHideLoop=setTimeout(p,parseInt(s,10)):p()}}},{key:"hideTooltipOnScroll",value:function(e,t){this.hideTooltip(e,t,{isScroll:!0})}},{key:"addScrollListener",value:function(e){var t=this.isCapture(e);window.addEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"removeScrollListener",value:function(e){var t=this.isCapture(e);window.removeEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"updatePosition",value:function(){var e=this,t=this.state,n=t.currentEvent,o=t.currentTarget,r=t.place,i=t.desiredPlace,s=t.effect,a=t.offset,l=this.tooltipRef,u=Mi(n,o,l,r,i,s,a);if(u.position&&this.props.overridePosition&&(u.position=this.props.overridePosition(u.position,n,o,l,r,i,s,a)),u.isNewState)return this.setState(u.newState,(function(){e.updatePosition()}));l.style.left=u.position.left+"px",l.style.top=u.position.top+"px"}},{key:"clearTimer",value:function(){clearTimeout(this.delayShowLoop),clearTimeout(this.delayHideLoop),clearTimeout(this.delayReshow),clearInterval(this.intervalUpdateContent)}},{key:"hasCustomColors",value:function(){var e=this;return Boolean(Object.keys(this.state.customColors).find((function(t){return"border"!==t&&e.state.customColors[t]}))||this.state.border&&this.state.customColors.border)}},{key:"render",value:function(){var e=this,n=this.state,r=n.extraClass,i=n.html,s=n.ariaProps,a=n.disable,l=n.uuid,u=this.getTooltipContent(),c=this.isEmptyTip(u),p=ji(this.state.uuid,this.state.customColors,this.state.type,this.state.border),d="__react_component_tooltip"+" ".concat(this.state.uuid)+(!this.state.show||a||c?"":" show")+(this.state.border?" border":"")+" place-".concat(this.state.place)+" type-".concat(this.hasCustomColors()?"custom":this.state.type)+(this.props.delayUpdate?" allow_hover":"")+(this.props.clickable?" allow_click":""),h=this.props.wrapper;t.supportedWrappers.indexOf(h)<0&&(h=t.defaultProps.wrapper);var f=[d,r].filter(Boolean).join(" ");if(i){var g="".concat(u,'\n<style aria-hidden="true">').concat(p,"</style>");return o.createElement(h,Ci({className:"".concat(f),id:this.props.id||l,ref:function(t){return e.tooltipRef=t}},s,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:g}}))}return o.createElement(h,Ci({className:"".concat(f),id:this.props.id||l},s,{ref:function(t){return e.tooltipRef=t},"data-id":"tooltip"}),o.createElement("style",{dangerouslySetInnerHTML:{__html:p},"aria-hidden":"true"}),u)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.ariaProps,o=Bi(e);return Object.keys(o).some((function(e){return o[e]!==n[e]}))?_i({},t,{ariaProps:o}):null}}]),t}(o.Component),yi(ol,"defaultProps",{insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1}),yi(ol,"supportedWrappers",["div","span"]),yi(ol,"displayName","ReactTooltip"),(ll=nl=rl).prototype.bindRemovalTracker=function(){var e=this,t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(null!=t){var n=new t((function(t){for(var n=0;n<t.length;n++)for(var o=t[n],r=0;r<o.removedNodes.length;r++)if(o.removedNodes[r]===e.state.currentTarget)return void e.hideTooltip()}));n.observe(window.document,{childList:!0,subtree:!0}),this.removalTracker=n}},nl=void(ll.prototype.unbindRemovalTracker=function(){this.removalTracker&&(this.removalTracker.disconnect(),this.removalTracker=null)})||nl))||nl)||nl)||nl)||nl)||nl)||nl,cl=ul,pl=bt.div.withConfig({displayName:"consoleLine__StyledConsoleLineContainer",componentId:"sc-5hqen8-0"})(["cursor:",";"],(function(e){return e.canCollapse?"pointer":"default"})),dl=bt.div.withConfig({displayName:"consoleLine__StyledTimestamp",componentId:"sc-5hqen8-1"})(["margin-left:1rem;margin-right:1rem;white-space:pre;"]),hl=bt.div.withConfig({displayName:"consoleLine__StyledConsoleLine",componentId:"sc-5hqen8-2"})(["max-width:100%;vertical-align:top;display:flex;white-space:",";text-align:left;margin:0;text-overflow:",";overflow:hidden;"],(function(e){return e.collapsed?"pre":"pre-wrap"}),(function(e){return e.collapsed?"ellipsis":""})),fl=bt.div.withConfig({displayName:"consoleLine__StyledConsoleLineBody",componentId:"sc-5hqen8-3"})(["text-overflow:inherit;overflow:inherit;"]),gl=bt.div.withConfig({displayName:"consoleLine__StyledConsoleLineHeader",componentId:"sc-5hqen8-4"})(["text-overflow:inherit;overflow:inherit;"]),ml=bt.strong.withConfig({displayName:"consoleLine__StyledConsoleLineCommandInput",componentId:"sc-5hqen8-5"})(["text-overflow:inherit;overflow:inherit;color:",";"],(function(e){return e.theme.colors.tfpBlue}));function vl(e){var t=Cl(e.message).header;return(0,Po.jsx)(gl,{children:t})}function yl(e){var t=Cl(e.message),n=t.header,o=t.body;return(0,Po.jsxs)(fl,{children:[(0,Po.jsx)(gl,{children:n}),(0,Po.jsx)("p",{children:o})]})}function Cl(e){return"executedCommand"===e.type?{header:(0,Po.jsx)(ml,{children:e.input}),body:e.output}:e.trace?{header:e.msg,body:e.trace}:{header:e.msg.split("\n")[0],body:(e.msg+"\n"+e.trace).split("\n").slice(1).join("\n")}}function wl(e,t,n){switch(e){case"Log":return(0,Po.jsxs)(Po.Fragment,{children:[(0,Po.jsx)(vo,{style:{maxWidth:"14px",minWidth:"14px"},"data-tip":"React-tooltip","data-for":"tooltip-log"},"console-type-icon-".concat(t)),(0,Po.jsx)(cl,{id:"tooltip-log",children:"Log"},"console-type-tooltip-".concat(t))]});case"Warning":return(0,Po.jsxs)(Po.Fragment,{children:[(0,Po.jsx)(Co,{style:{maxWidth:"14px",minWidth:"14px"},color:"yellow","data-tip":"React-tooltip","data-for":"tooltip-warning"},"console-type-icon-".concat(t)),(0,Po.jsx)(cl,{id:"tooltip-warning",children:"Warning"},"console-type-tooltip-".concat(t))]});case"Exception":return(0,Po.jsxs)(Po.Fragment,{children:[(0,Po.jsx)(go,{style:{maxWidth:"14px",minWidth:"14px"},color:"red","data-tip":"React-tooltip","data-for":"tooltip-exception"},"console-type-icon-".concat(t)),(0,Po.jsx)(cl,{id:"tooltip-exception",children:"Exception"},"console-type-tooltip-".concat(t))]});case"Error":return(0,Po.jsxs)(Po.Fragment,{children:[(0,Po.jsx)(yo,{style:{maxWidth:"14px",minWidth:"14px"},color:"red","data-tip":"React-tooltip","data-for":"tooltip-error"},"console-type-icon-".concat(t)),(0,Po.jsx)(cl,{id:"tooltip-error",children:"Error"},"console-type-tooltip-".concat(t))]});case"Assert":return(0,Po.jsxs)(Po.Fragment,{children:[(0,Po.jsx)(yo,{style:{maxWidth:"14px",minWidth:"14px"},color:"red","data-tip":"React-tooltip","data-for":"tooltip-assert"},"console-type-icon-".concat(t)),(0,Po.jsx)(cl,{id:"tooltip-assert",children:"Assert"},"console-type-tooltip-".concat(t))]});case"executedCommand":return(0,Po.jsxs)(Po.Fragment,{children:[(0,Po.jsx)(Oo,{style:{maxWidth:"14px",minWidth:"14px"},color:n.colors.tfpBlue,"data-tip":"React-tooltip","data-for":"tooltip-input"},"console-type-icon-".concat(t)),(0,Po.jsx)(cl,{id:"tooltip-input",children:"Executed command"},"console-type-tooltip-".concat(t))]});default:return(0,Po.jsx)(vo,{})}}function _l(e){var n,r,i=e.message,s=(0,o.useRef)(null),a=!!(r=i)&&("executedCommand"===r.type||!!r.trace||r.msg.length>125),l=(0,o.useState)(null===(n=i.startCollapsed)||void 0===n||n),u=(0,t.Z)(l,2),c=u[0],p=u[1],d=_t();return(0,o.useEffect)((function(){var e;null===(e=s.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})}),[c]),(0,Po.jsx)(pl,{onClick:function(e){a&&"Range"!==window.getSelection().type&&p(!c)},canCollapse:a,children:(0,Po.jsxs)(hl,{ref:s,collapsed:c,children:[wl(i.type,"".concat(i.timestamp,"-").concat(i.msg),d),(0,Po.jsx)(dl,{children:i.timestamp.toLocaleString()}),c?(0,Po.jsx)(vl,{message:i}):(0,Po.jsx)(yl,{message:i}),(0,Po.jsx)(Do,{canCollapse:a,collapsed:c})]})})}var bl=bt.div.withConfig({displayName:"consoleWindow__StyledConsoleWindow",componentId:"sc-3ztljt-0"})(["background-color:",";height:100%;min-width:100%;border-radius:5px;text-align:left;padding-left:1rem;overflow-y:scroll;flex-grow:1;font-family:monospace;"],(function(e){return e.theme.colors.tfpDarkGrey40}));function El(e){var t=e.messages,n=(0,o.useRef)(null);return(0,o.useEffect)((function(){var e;null===(e=n.current)||void 0===e||e.scrollIntoView()}),[t]),(0,Po.jsxs)(bl,{children:[t.map((function(e,t){return(0,Po.jsx)(_l,{message:e},"console-line-".concat(t))})),(0,Po.jsx)("div",{ref:n})]})}var Sl=bt.div.withConfig({displayName:"helpWindow__HelpWindow",componentId:"sc-19frvue-0"})(["color:",";border-radius:5px;flex-grow:1;margin-bottom:3%;"],(function(e){return e.theme.colors.tfpBlack})),Rl=bt.div.withConfig({displayName:"helpWindow__FlexRow",componentId:"sc-19frvue-1"})(["background-color:",";height:3rem;border-radius:5px 5px 0 0;display:flex;width:100%;flex-direction:row;justify-content:space-between;align-items:center;margin-right:5%;> *{margin-left:2rem;margin-right:2rem;}"],(function(e){return e.theme.colors.tfpDarkGrey})),Ol=bt.div.withConfig({displayName:"helpWindow__HelpHeader",componentId:"sc-19frvue-2"})(["color:",";font-size:150%;font-weight:bold;cursor:pointer;"],(function(e){return e.highlighted?e.theme.colors.tfpRed:e.theme.colors.tfpWhite})),Tl=[{field:"allowed",flex:.2,sort:"desc",cellRenderer:function(e){return e.value?"\ud83d\udfe2":"\ud83d\udd34"},comparator:function(e,t){return e-t},cellStyle:{textAlign:"center"}},{field:"command",filter:"agTextColumnFilter"},{field:"description",filter:"agTextColumnFilter"},{field:"help",filter:"agTextColumnFilter",flex:2}],Pl=[{field:"name",filter:"agTextColumnFilter"},{field:"platformId.combinedString",filter:"agTextColumnFilter",headerName:"Platform ID"},{field:"crossplatformId.combinedString",filter:"agTextColumnFilter",headerName:"Crossplatform ID"},{field:"ip",filter:"agTextColumnFilter"},{field:"entityId",filter:"agTextColumnFilter"},{field:"ping"},{field:"lastOnline",type:["date"]},{field:"totalPlayTimeSeconds",filter:"agNumberColumnFilter",headerName:"Total play time"},{field:"position.x",filter:"agNumberColumnFilter",headerName:"X"},{field:"position.y",filter:"agNumberColumnFilter",headerName:"Y"},{field:"position.z",filter:"agNumberColumnFilter",headerName:"Z"}],Al=[{field:"id",filter:"agNumberColumnFilter"},{field:"name",filter:"agTextColumnFilter",flex:4}],Dl=[{field:"name",filter:"agTextColumnFilter"}],xl=[{field:"timestamp",type:["date"]},{field:"input",filter:"agTextColumnFilter"},{field:"output",filter:"agTextColumnFilter"}];function Nl(e){var n=e.executedCommands,r=(0,o.useState)([]),i=(0,t.Z)(r,2),s=i[0],a=i[1],l=(0,o.useState)(Tl),u=(0,t.Z)(l,2),c=u[0],p=u[1],d=(0,o.useState)("Commands"),h=(0,t.Z)(d,2),f=h[0],g=h[1];function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"name",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"asc";e.applyColumnState({state:[{colId:t,sort:n}]})}(0,o.useEffect)((function(){function e(){return(e=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,to.get("/api/command");case 3:t=e.sent,p(Tl),a(t.commands),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),p(Tl),a([]);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)}function t(){return t=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,to.getPlayers();case 3:t=e.sent,p(Pl),a(t.map((function(e){return(0,Et.Z)((0,Et.Z)({},e),{},{lastonline:new Date(e.lastonline)})}))),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),p(Pl),a([]);case 12:case"end":return e.stop()}}),e,null,[[0,8]])}))),t.apply(this,arguments)}function o(){return o=Tt(Rt().mark((function e(){var t,n;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,to.executeCommand("spawnentity");case 3:t=e.sent,n=t.result.split("\n").slice(3,-1).map((function(e){var t=e.split("-").map((function(e){return e.trim()}));return{id:t[0],name:t[1]}})),p(Al),a(n),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),p(Al),a([]);case 13:case"end":return e.stop()}}),e,null,[[0,9]])}))),o.apply(this,arguments)}function r(){return r=Tt(Rt().mark((function e(){var t,n;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,to.executeCommand("listitems *");case 3:t=e.sent,n=t.result.split("\n").slice(0,-1).map((function(e){return{name:e.trim()}})),p(Dl),a(n),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),p(Dl),a([]);case 13:case"end":return e.stop()}}),e,null,[[0,9]])}))),r.apply(this,arguments)}switch(f){case"Commands":!function(){e.apply(this,arguments)}();break;case"Command history":a(n),p(xl);break;case"Players":!function(){t.apply(this,arguments)}();break;case"Entities":!function(){o.apply(this,arguments)}();break;case"Items":!function(){r.apply(this,arguments)}()}}),[f,n]);var v=function(e){g(e.target.innerText)};return(0,Po.jsxs)(Sl,{children:[(0,Po.jsxs)(Rl,{children:[(0,Po.jsx)(Ol,{onClick:v,highlighted:"Commands"===f,children:"Commands"}),(0,Po.jsx)(Ol,{onClick:v,highlighted:"Command history"===f,children:"Command history"}),(0,Po.jsx)(Ol,{onClick:v,highlighted:"Players"===f,children:"Players"}),(0,Po.jsx)(Ol,{onClick:v,highlighted:"Items"===f,children:"Items"}),(0,Po.jsx)(Ol,{onClick:v,highlighted:"Entities"===f,children:"Entities"})]}),(0,Po.jsx)(Go,{rowData:s,columnDef:c,alwaysShowHorizontalScroll:!0,onComponentStateChanged:ei((function(e){var t=e.columnApi;switch(f){case"Commands":m(t,"command","asc");break;case"Command history":m(t,"timestamp","desc");break;case"Players":case"Entities":case"Items":m(t,"name")}}),100)})]})}var Ml=n(9986),Il=n.n(Ml),Ll=bt.div.withConfig({displayName:"autosuggest__SuggestionTitle",componentId:"sc-1bxvksr-0"})(["color:",";border-radius:5px;min-width:40%;cursor:pointer;"],(function(e){return e.selected?e.theme.colors.tfpRed:e.theme.colors.tfpBlack})),Fl=bt.div.withConfig({displayName:"autosuggest__SuggestionContainer",componentId:"sc-1bxvksr-1"})(["display:flex;max-height:60%;"]),kl=bt.div.withConfig({displayName:"autosuggest__SuggestionHelp",componentId:"sc-1bxvksr-2"})(["color:",";white-space:pre-wrap;padding-top:1rem;padding-bottom:1rem;text-align:left;"],(function(e){return e.theme.colors.tfpBlack}));function Gl(e){var n=e.command,r=e.setCommand,i=e.sendCommand,s=e.shouldRenderSuggestions,a=(0,o.useState)([]),l=(0,t.Z)(a,2),u=l[0],c=l[1],p=(0,o.useState)([]),d=(0,t.Z)(p,2),h=d[0],f=d[1],g=(0,o.useState)(0),m=(0,t.Z)(g,2),v=m[0],y=m[1],C=_t();(0,o.useEffect)((function(){y(0)}),[n]);var w={suggestionsContainerOpen:{backgroundColor:C.colors.tfpLightGrey,position:"absolute",bottom:"10%",width:"80%",height:"auto",borderRadius:"5px",overflowY:"scroll",overflowX:"wrap"},input:{width:"100%",padding:"1rem",borderRadius:"5px",backgroundColor:C.colors.tfpLightGrey,color:C.colors.tfpBlack,border:"none",lineHeight:"1rem",outline:"none"},suggestionsList:{listStyle:"none",textAlign:"left"}};function _(e){r(e.command),y(0),b({value:e.command})}function b(e){var t=e.value;f(function(e){if(!u)return[];if(!e)return[];e.includes(" ")&&(e=e.split(" ")[0]);var t=u.filter((function(t){return t.command.includes(e)||t.overloads.join(" ").includes(e)})),n=t.slice(0,20);return t.length>20?(n.push({command:"...",help:"More suggestions are available, narrow your search to see them",overloads:[]}),n):n}(t))}return(0,o.useEffect)((function(){function e(){return(e=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,to.get("/api/command");case 3:t=e.sent,c(t.commands),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0),$n("Error loading command suggestions");case 11:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]),(0,Po.jsx)(Il(),{suggestions:h,onSuggestionsFetchRequested:function(e){return b(e)},onSuggestionsClearRequested:function(){f([])},getSuggestionValue:function(e){return e.command},renderSuggestion:function(e){if(!e)return null;var t=h.indexOf(e),n=e.overloads.filter((function(t){return t!==e.command})).join(" ");return t===v?(0,Po.jsx)(Po.Fragment,{children:(0,Po.jsxs)(Ll,{selected:!0,onClick:function(){_(e)},onMouseEnter:function(){y(t)},children:[e.command," ",n.length?n:""]})}):(0,Po.jsxs)(Ll,{onClick:function(){_(e)},onMouseEnter:function(){y(t)},children:[e.command," ",n.length?n:""]})},theme:w,shouldRenderSuggestions:s,inputProps:{onChange:function(e){(e.target.value||""===e.target.value)&&r(e.target.value)},onKeyDown:function(e){if("Enter"===e.key&&(i(),e.preventDefault()),"ArrowDown"===e.key){var t=v+1;t<h.length?y(t):y(0),e.preventDefault()}if("ArrowUp"===e.key){var n=v-1;y(n>=0?n:h.length-1),e.preventDefault()}if("Tab"===e.key){if(e.preventDefault(),"..."===h[v].command)return;_(h[v])}},value:n},containerProps:{style:{width:"80%",flexGrow:1}},renderSuggestionsContainer:function(e){var t,n=e.containerProps,o=e.children;return e.query,o?(0,Po.jsxs)(Fl,(0,Et.Z)((0,Et.Z)({},n),{},{children:[(0,Po.jsx)(Ll,{children:o}),(0,Po.jsx)(kl,{children:null===(t=h[v])||void 0===t?void 0:t.help})]})):null}})}bt.div.withConfig({displayName:"input__ConsoleInputField",componentId:"sc-sci9ws-0"})(["flex-grow:1;padding:1rem;border-radius:5px;background-color:",";color:",";border:none;line-height:1rem;"],(function(e){return e.theme.colors.tfpLightGrey}),(function(e){return e.theme.colors.tfpBlack}));var Hl=bt.div.withConfig({displayName:"input__SendButton",componentId:"sc-sci9ws-1"})(["background-color:",";color:",";width:10%;height:3rem;display:flex;justify-content:center;align-items:center;border-radius:5px;font-size:150%;"],(function(e){return e.theme.colors.tfpLightGrey}),(function(e){return e.theme.colors.tfpBlack})),Bl=bt.div.withConfig({displayName:"input__RoundButtonContainer",componentId:"sc-sci9ws-2"})(["border-radius:100%;background-color:",";color:",";min-width:4rem;min-height:4rem;font-size:1.75rem;display:flex;justify-content:center;align-items:center;cursor:pointer;"],(function(e){return e.theme.colors.tfpLightGrey}),(function(e){return e.theme.colors.tfpRed})),Vl=bt.div.withConfig({displayName:"input__FlexRow",componentId:"sc-sci9ws-3"})(["display:flex;min-width:100%;flex-direction:row;justify-content:flex-end;align-items:center;margin-top:2%;margin-right:5%;> *{margin-left:1rem;margin-right:1rem;}"]);function Wl(e){var n=e.addMessage,r=e.helpActiveState,i=e.sseActive,s=e.setSseActive,a=(0,o.useContext)(oo),l=a.command,u=a.setCommand,c=(0,t.Z)(r,2),p=c[0],d=c[1];function h(){return f.apply(this,arguments)}function f(){return(f=Tt(Rt().mark((function e(){var t,o,r;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={type:"executedCommand",timestamp:new Date,input:l,output:""},e.prev=1,e.next=4,to.executeCommand(l);case 4:o=e.sent,t.output=o.result,Jn("Command executed"),e.next=15;break;case 9:e.prev=9,e.t0=e.catch(1),console.error(e.t0),r="Unknown error",e.t0&&e.t0.response&&e.t0.response.data&&(r=e.t0.response.data.meta&&"NO_PERMISSION"===e.t0.response.data.meta.errorCode?"You do not have permission to execute this command":JSON.stringify(e.t0.response.data,null,2)),t.output=r;case 15:return e.prev=15,n(t,!1),u(""),d(!1),e.finish(15);case 20:case"end":return e.stop()}}),e,null,[[1,9,15,20]])})))).apply(this,arguments)}function g(){return g=Tt(Rt().mark((function e(t){return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.preventDefault(),h();case 2:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}return(0,Po.jsxs)(Vl,{children:[(0,Po.jsxs)(Er,{requiredPermission:{module:qo,method:"POST"},children:[(0,Po.jsx)(Gl,{command:l,setCommand:u,sendCommand:h,shouldRenderSuggestions:function(){return!p}}),(0,Po.jsx)(Hl,{onClick:function(e){return g.apply(this,arguments)},children:"Send"})]}),(0,Po.jsx)(Bl,{"data-tip":"React-tooltip","data-for":i?"tooltip-pause":"tooltip-start",onClick:function(e){e.preventDefault(),s(!i)},children:i?(0,Po.jsxs)(Po.Fragment,{children:[(0,Po.jsx)(Eo,{}),(0,Po.jsx)(cl,{id:"tooltip-pause",children:"Pause log stream"})]}):(0,Po.jsxs)(Po.Fragment,{children:[(0,Po.jsx)(So,{}),(0,Po.jsx)(cl,{id:"tooltip-start",children:"Start log stream"})]})}),(0,Po.jsxs)(Bl,{"data-for":"tooltip-help","data-tip":"React-tooltip",onClick:function(e){e.preventDefault(),d(!p)},children:[(0,Po.jsx)(Ro,{}),(0,Po.jsx)(cl,{id:"tooltip-help",children:"Help"})]})]})}function jl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;return e.length>t?e.slice(e.length-t):e}var Ul=bt.div.withConfig({displayName:"Console__ConsoleContainer",componentId:"sc-1w2ewjb-0"})(["width:100%;height:100%;display:flex;flex-direction:column;"]);function zl(){var e=function(e,n){var r=(0,o.useState)((function(){try{var t=window.localStorage.getItem(e);return t?JSON.parse(t):n}catch(o){return console.error(o),n}})),i=(0,t.Z)(r,2),s=i[0],a=i[1];return(0,o.useEffect)((function(){try{window.localStorage.setItem(e,JSON.stringify(s))}catch(t){$n("Error saving data"),console.error(t)}}),[e,s]),[s,a]}("executedCommands",[]),n=(0,t.Z)(e,2),r=n[0],i=n[1],s=(0,o.useState)([]),a=(0,t.Z)(s,2),l=a[0],u=a[1],c=(0,o.useState)(!0),p=(0,t.Z)(c,2),d=p[0],h=p[1],f=(0,o.useState)(!1),g=(0,t.Z)(f,1)[0],m=sr().checkPermission;function v(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.type,o=e.msg;e.timestamp=e.isotime?new Date(e.isotime):new Date,(""!==o||o.input)&&("executedCommand"===n&&i((function(t){return jl([].concat((0,Ft.Z)(t),[e]),100)})),u((function(n){return jl([].concat((0,Ft.Z)(n),[(0,Et.Z)((0,Et.Z)({},e),{},{startCollapsed:t})]),100)})))}return(0,o.useEffect)((function(){function e(){return e=Tt(Rt().mark((function e(){var t,n;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(m({module:Qo,method:"GET"})){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,to.getLatestLogLines(-50);case 4:t=e.sent,n=t.entries.map((function(e){return(0,Et.Z)({timestamp:new Date(e.isotime)},e)})),u((function(e){return[].concat((0,Ft.Z)(r.map((function(e){return(0,Et.Z)((0,Et.Z)({},e),{},{timestamp:new Date(e.timestamp)})}))),(0,Ft.Z)(n)).sort((function(e,t){return new Date(e.timestamp)-new Date(t.timestamp)}))}));case 7:case"end":return e.stop()}}),e)}))),e.apply(this,arguments)}d&&function(){e.apply(this,arguments)}()}),[d]),(0,o.useEffect)((function(){if(d&&m({module:Yo,method:"GET"})){var e=new EventSource("/sse/log",{withCredentials:!0});return e.addEventListener("logLine",(function(e){v(JSON.parse(e.data))})),e.addEventListener("error",(function(e){e.readyState===EventSource.CLOSED&&console.log("Connection was closed")})),e.addEventListener("open",(function(e){console.log("Console: SSE opened")})),function(){e.close()}}}),[d]),(0,Po.jsxs)(Ul,{children:[g?(0,Po.jsx)(Nl,{executedCommands:r}):(0,Po.jsx)(El,{messages:l}),(0,Po.jsx)(Wl,{linkToHelp:!0,addMessage:v,helpActiveState:f,sseActive:d,setSseActive:h})]})}var Zl=bt.div.withConfig({displayName:"Mods__ModsContainer",componentId:"sc-x6jqah-0"})(["flex:1;flex-direction:column;text-align:left;"]),Yl=bt((function(e){return uo({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"}}]})(e)})).withConfig({displayName:"Mods__StyledLinkIcon",componentId:"sc-x6jqah-1"})(["cursor:pointer;margin:0 1rem;&:hover{color:",";}"],(function(e){return e.theme.colors.tfpRed}));function Kl(e){var t=e.url;return t?(0,Po.jsx)(Yl,{onClick:function(){return window.open(t,"_blank")}}):null}function ql(){var e=jo().mods;if(!e)return(0,Po.jsx)("p",{children:"Mods still loading..."});var t=e.filter((function(e){return e.displayName})).map((function(e){return(0,Po.jsxs)("div",{children:[(0,Po.jsxs)("h2",{children:[e.displayName,(0,Po.jsx)(Kl,{url:e.website})]}),(0,Po.jsxs)("small",{children:["Author: ",e.author,", version: v",e.version]}),(0,Po.jsx)("p",{children:e.description})]},e.name)}));return(0,Po.jsxs)(Zl,{children:[(0,Po.jsx)("h1",{children:"Mods"}),t]})}function Xl(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ql(e,t){return Object.freeze((0,Et.Z)((0,Et.Z)({},e),t))}var Jl=(0,o.createContext)(null),$l=Jl.Provider;function eu(){var e=(0,o.useContext)(Jl);if(null==e)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}var tu=n(8559),nu=n.n(tu),ou=["bounds","boundsOptions","center","children","className","id","placeholder","style","whenReady","zoom"];function ru(){return ru=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},ru.apply(this,arguments)}function iu(e,n){var r=e.bounds,i=e.boundsOptions,s=e.center,a=e.children,l=e.className,u=e.id,c=e.placeholder,p=e.style,d=e.whenReady,h=e.zoom,f=Xl(e,ou),g=(0,o.useState)({className:l,id:u,style:p}),m=(0,t.Z)(g,1)[0],v=(0,o.useState)(null),y=(0,t.Z)(v,2),C=y[0],w=y[1];(0,o.useImperativeHandle)(n,(function(){var e;return null!==(e=null===C||void 0===C?void 0:C.map)&&void 0!==e?e:null}),[C]);var _=(0,o.useCallback)((function(e){if(null!==e&&null===C){var t=new tu.Map(e,f);null!=s&&null!=h?t.setView(s,h):null!=r&&t.fitBounds(r,i),null!=d&&t.whenReady(d),w(function(e){return Object.freeze({__version:1,map:e})}(t))}}),[]);(0,o.useEffect)((function(){return function(){null===C||void 0===C||C.map.remove()}}),[C]);var b=C?o.createElement($l,{value:C},a):null!==c&&void 0!==c?c:null;return o.createElement("div",ru({},m,{ref:_}),b)}var su=(0,o.forwardRef)(iu);function au(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function lu(e,t){return null==t?function(t,n){return(0,o.useRef)(e(t,n))}:function(n,r){var i=(0,o.useRef)(e(n,r)),s=(0,o.useRef)(n),a=i.current.instance;return(0,o.useEffect)((function(){s.current!==n&&(t(a,n,s.current),s.current=n)}),[a,n,r]),i}}var uu=n(4164);function cu(e){function t(t,n){var r=e(t).current,i=r.instance,s=r.context;return(0,o.useImperativeHandle)(n,(function(){return i})),null==t.children?null:o.createElement($l,{value:s},t.children)}return(0,o.forwardRef)(t)}var pu,du=["children"],hu=lu((function(e,t){e.children;var n=Xl(e,du),o=new tu.Control.Layers(void 0,void 0,n);return au(o,Ql(t,{layersControl:o}))}),(function(e,t,n){t.collapsed!==n.collapsed&&(!0===t.collapsed?e.collapse():e.expand())})),fu=cu((pu=hu,function(e){var t=eu(),n=pu(e,t),r=n.current.instance,i=(0,o.useRef)(e.position),s=e.position;return(0,o.useEffect)((function(){return r.addTo(t.map),function(){r.remove()}}),[t.map,r]),(0,o.useEffect)((function(){null!=s&&s!==i.current&&(r.setPosition(s),i.current=s)}),[r,s]),n}));function gu(e){return function(n){var r=eu(),i=(0,o.useRef)(n),s=(0,o.useState)(null),a=(0,t.Z)(s,2),l=a[0],u=a[1],c=r.layersControl,p=r.map,d=(0,o.useCallback)((function(t){null!=c&&(i.current.checked&&p.addLayer(t),e(c,t,i.current.name),u(t))}),[c,p]),h=(0,o.useCallback)((function(e){null===c||void 0===c||c.removeLayer(e),u(null)}),[c]),f=(0,o.useMemo)((function(){return Ql(r,{layerContainer:{addLayer:d,removeLayer:h}})}),[r,d,h]);return(0,o.useEffect)((function(){null!==l&&i.current!==n&&(!0!==n.checked||null!=i.current.checked&&!1!==i.current.checked?!0!==i.current.checked||null!=n.checked&&!1!==n.checked||p.removeLayer(l):p.addLayer(l),i.current=n)})),n.children?o.createElement($l,{value:f},n.children):null}}function mu(){return eu().map}function vu(e,t){var n=(0,o.useRef)(t);(0,o.useEffect)((function(){t!==n.current&&null!=e.attributionControl&&(null!=n.current&&e.attributionControl.removeAttribution(n.current),null!=t&&e.attributionControl.addAttribution(t)),n.current=t}),[e,t])}function yu(e,t){var n=(0,o.useRef)();(0,o.useEffect)((function(){return null!=t&&e.instance.on(t),n.current=t,function(){null!=n.current&&e.instance.off(n.current),n.current=null}}),[e,t])}function Cu(e,t){var n,o=null!==(n=e.pane)&&void 0!==n?n:t.pane;return o?(0,Et.Z)((0,Et.Z)({},e),{},{pane:o}):e}function wu(e){return function(t){var n=eu(),r=e(Cu(t,n),n);return vu(n.map,t.attribution),yu(r.current,t.eventHandlers),function(e,t){(0,o.useEffect)((function(){var n;return(null!==(n=t.layerContainer)&&void 0!==n?n:t.map).addLayer(e.instance),function(){var n;null===(n=t.layerContainer)||void 0===n||n.removeLayer(e.instance),t.map.removeLayer(e.instance)}}),[t,e])}(r.current,n),r}}function _u(e,t){return cu(wu(lu(e,t)))}fu.BaseLayer=gu((function(e,t,n){e.addBaseLayer(t,n)})),fu.Overlay=gu((function(e,t,n){e.addOverlay(t,n)}));var bu=["children"],Eu=_u((function(e,t){e.children;var n=Xl(e,bu),o=new tu.LayerGroup([],n);return au(o,Ql(t,{layerContainer:o}))})),Su=["position"],Ru=_u((function(e,t){var n=e.position,o=Xl(e,Su),r=new tu.Marker(n,o);return au(r,Ql(t,{overlayContainer:r}))}),(function(e,t,n){t.position!==n.position&&e.setLatLng(t.position),null!=t.icon&&t.icon!==n.icon&&e.setIcon(t.icon),null!=t.zIndexOffset&&t.zIndexOffset!==n.zIndexOffset&&e.setZIndexOffset(t.zIndexOffset),null!=t.opacity&&t.opacity!==n.opacity&&e.setOpacity(t.opacity),null!=e.dragging&&t.draggable!==n.draggable&&(!0===t.draggable?e.dragging.enable():e.dragging.disable())}));function Ou(){var e=jo().webMods,n=(0,o.useState)([]),r=(0,t.Z)(n,2),i=r[0],s=r[1],a=sr().checkPermission;return(0,o.useEffect)((function(){if(e){var t=e.filter((function(e){return e.external.mapComponents.length})).map((function(e){return(0,Po.jsx)(Tu,{modComponent:e.external.mapComponents[0],checkPermission:a},e.name)}));s(t)}}),[JSON.stringify(e)]),i}function Tu(e){var t=e.modComponent,n=e.checkPermission;return Uo(t,{map:mu(),checkPermission:n,LayerGroup:Eu,LayersControl:fu,Marker:Ru,HideBasedOnAuth:Er})}function Pu(e){var t=e.mapInfo,n=mu(),o=nu().tileLayer("../../map/{z}/{x}/{y}.png?t={time}",{maxZoom:t.maxZoom+1,minZoom:Math.max(0,t.maxZoom-5),maxNativeZoom:t.maxZoom,minNativeZoom:0,tileSize:t.tileSize,time:(new Date).getTime()});return o.getTileUrl=function(e){return e.y=-e.y-1,nu().TileLayer.prototype.getTileUrl.bind(o)(e)},o.addTo(n),null}function Au(){var e=mu(),t=nu().Control.extend({options:{position:"bottomleft"},onAdd:function(e){var t=nu().DomUtil.create("div","control-coordinates webmap-control");return t.innerHTML="Mouse pos: - E / - N<br/>Last click: - E / - N",nu().DomEvent.on(t,"mousemove",nu().DomEvent.stopPropagation),this._map=e,this._div=t,e.on("mousemove",this._onMouseMove,this),e.on("mouseout",this._onMouseOut,this),e.on("click",this._onClick,this),t},onRemove:function(e){},_onMouseMove:function(e){this.lastPos=e.latlng,this._updateText()},_onMouseOut:function(e){this.lastPos=!1,this._updateText()},_onClick:function(e){this.lastClick=e.latlng,this._updateText()},_updateText:function(e){this._div.innerHTML="Mouse pos: ".concat(this._formatCoord(this.lastPos),"<br/>Last click: ").concat(this._formatCoord(this.lastClick))},_formatCoord:function(e){return e?Math.abs(e.lat).toFixed(0)+(e.lat>=0?" E":" W")+" / "+Math.abs(e.lng).toFixed(0)+(e.lng>=0?" N":" S"):"- E / - N"},lastPos:!1,lastClick:!1}),n=new t({});return(0,o.useEffect)((function(){return n.addTo(e),function(){e.removeLayer(n)}}),[]),null}function Du(){var e=mu();function t(e){return n.apply(this,arguments)}function n(){return n=Tt(Rt().mark((function e(t){var n,o;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,to.get("/api/serverstats");case 2:n=e.sent,o="Day "+n.gameTime.days+", ",n.gameTime.hours<10&&(o+="0"),o+=n.gameTime.hours,o+=":",n.gameTime.minutes<10&&(o+="0"),o+=n.gameTime.minutes,t.innerHTML=o;case 10:case"end":return e.stop()}}),e)}))),n.apply(this,arguments)}var r=nu().Control.extend({options:{position:"bottomright"},onAdd:function(e){var n=this,o=nu().DomUtil.create("div","control-gametime webmap-control");return o.innerHTML="",nu().DomEvent.on(o,"mousemove",nu().DomEvent.stopPropagation),this._map=e,this._div=o,this.interval=setInterval((function(){return t(n._div)}),1e4),t(this._div),o},onRemove:function(e){clearInterval(this.interval)}}),i=new r({});return(0,o.useEffect)((function(){return i.addTo(e),function(){e.removeLayer(i)}}),[]),null}Tu.propTypes={modComponent:br().func.isRequired},Pu.propTypes={mapInfo:br().object.isRequired};var xu=function(e,n){var r=function(e,t){return function(n,o){var r=eu(),i=e(Cu(n,r),r);return vu(r.map,n.attribution),yu(i.current,n.eventHandlers),t(i.current,r,n,o),i}}(lu(e),n);return function(e){function n(n,r){var i=(0,o.useState)(!1),s=(0,t.Z)(i,2),a=s[0],l=s[1],u=e(n,l).current.instance;(0,o.useImperativeHandle)(r,(function(){return u})),(0,o.useEffect)((function(){a&&u.update()}),[u,a,n.children]);var c=u._contentNode;return c?(0,uu.createPortal)(n.children,c):null}return(0,o.forwardRef)(n)}(r)}((function(e,t){return au(new tu.Popup(e,t.overlayContainer),t)}),(function(e,t,n,r){var i=n.position;(0,o.useEffect)((function(){var n=e.instance;function o(e){e.popup===n&&(n.update(),r(!0))}function s(e){e.popup===n&&r(!1)}return t.map.on({popupopen:o,popupclose:s}),null==t.overlayContainer?(null!=i&&n.setLatLng(i),n.openOn(t.map)):t.overlayContainer.bindPopup(n),function(){var e;t.map.off({popupopen:o,popupclose:s}),null===(e=t.overlayContainer)||void 0===e||e.unbindPopup(),t.map.removeLayer(n)}}),[e,t,r,i])})),Nu=n.p+"files/static/media/ui_game_symbol_tracking_bear.f093e312239e9b55cf62.png",Mu=n.p+"files/static/media/ui_game_symbol_tracking_pig.b7563c410d208abd634c.png",Iu=n.p+"files/static/media/ui_game_symbol_tracking_snake.5d39ffcdaa456ce6ce0f.png";function Lu(e){function t(e){return nu().icon({iconUrl:e,iconSize:[32,32]})}switch(e){case"animalRabbit":return t("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAQAAAAhxq+mAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AACX/SURBVHja7Z15cBbnnec/fbyX9EpIQgIBAnFjgsE2NtiAsfEJzmFn4tjOHLm2pjKZTLKZzexkN7W1Ozu1k62d1GazM5Xs1GY2LueYZNaJkzieZOxkjAm+wBjMYTDmEJJASKADdL13d+8f79vvc3TLtPwqO7tVeijet9/up5/j+/zu39MtYw+zpZZi/nMP4P/3MgtgjWUWwBrLLIA1llkAayyzANZYZgGsscwCWGOZBbDGMgtgjWUWwBrLLIA1llkAayyzANZYZgGssVwTQK/yXxx5ld/iSP5EquVp7bzTWaRW1f96LU+5Nzje4L1eaP3gfPRZhfegFjsKygYeYFSOjGpHBh4eBkb1l18frZY49gftt+lV7/BryH0Y1U9P+hT1qP5GGZ1R6UG0po5PvuKPSb1bbW/qck0K9Ds3AitW7tyo/Pan40/Ik84biEHJ91KFwL9mBD5VujYk+D3lvBFYNhV4pFqg07a86D68cntTl2tSoCd1qq63PHx9ZUVNQxmaTmt6C+r9ngSYSic6ZXjV83KNMDqVaVqncL1leWRTlUgUKNY0KOkEbcm15W5FPVXOBeFXpyvqCSpXaUsepYehUFL4xEU9fYziPrnGDFCgTAdiCPKRuvLq0OTpyPSgsq9MH4ZEm4KKg6JAZky5J1kEyFJOHY2Yi06xwd/vXCJoYTElAZesNSEIRPlb1XH61HU602lUFfny9AVAan/qosjgBHW7uqQCfJnDrg1fRC0sT0RmRllnGYGuVcDU1ddlD9oVlBbV/vQR6IupjyZInbraUrWuroDeuUSQgSoLq/TiD8KvJdhQ14T66uurLIMtaMcIgSrMkDGkMcgqTbXkBL3JFoOhHPvz8BTDZ+oSQQsjDUyWL/r6iQHo1pkRoDNVjqqSR+0n2KPeq6f1JgMWXHKZXzxleeQrhtJyTQD6K2loAw2avDrFqYwSNFX16yp1eICJAZiV/s3KMbiV6btKX2LJDaUHA1XIBHW5Dld0FRIBQCNADTrtqMLaIIxeVfjC2tcNaBsbl4JVSmXnuvHUoFm6uP3KmsmOUl3dQPrC3CMtJxLZJA4FpSWdRlV9rn7L9oBMgdPTwhEpUDaHVbsdbYi6yxdmt8nGebhoSOLSv+7cA/13XV09scAwrFxyZGyZY7l4mJhY+ebTHb9c8/35hxq8LKXAqFRIVDdQFSBhYwoTB1OisydCJdWgUKdMyLfOKjqNymCqUHsYuNQzsmDfn538xEQiJhkrOaAOMChhACWS3rKf3PA/Op+3yCmABFnTC+kn6M3IJBCVAiMA6GmUF+wwaMLKqxgMA+gBBAElQIpL65958sJ1STyKlXMuNuswOImLxTwmGcMCisRZ/ZNt/3b+qTyuIldVOat7IKoRHwxoyItdM4A6GGGSThfFQXYRS6D7vqqsTJBtfGr3mZvrKLCe21lEHJMMNiuBQZ7mRUxWsJlTvM4EJtB8act/uuEbFvkpep3KjjQ04lCpLhoNToOFw7ziIJDGlJQXXAACLRrUc+SRnz4JNr/NB4mHjOY1nuAUq3iYJfyEF3GIY3L94zu+0DiaURZU/VSpUZ3dVNeuXaxPRKgkm6myE+TDqlpTqlUnWpDbmypGZ5G393350hqD+/kkVuhoFrEZh1d5gzQfYy1vMUSSizedv6t9/9zLJW0supUnm9NGdWy6JxKdhSMAqHse8prqbpo8NDE8sQiGBHDQyQebidY3vjg5t47fpX3KEdWzmcWc5B85yYM8wBhdxLjScfqR1kPzzrnK9NWQghysUD0p3dv2iBKLiQSgP20PQ1vTsEiuoUGmGw1BNhbfBjaZphOfzsxJci+t7ziqZaxliIO8xCoeI84xPEp1Zx61xzv3ezgVI1wdq8pBYn6qd66zfY0AqkQtr1N4AF4PIcnDMgJrrEsnk5J1+iOj8y02sfAaI2vlbkocZC/DfJzr2E8G7J4H7LFl+8DR+tEdAFV8IC28OtKaASQwEF1OqDptKk8yqAGNAKuBQTx3cfuF9dDOhmsPnk3M4y2OcYGH2MJrjGPRtdMsrHjJq5o1KlgqhEGjfyo6fdcABl05Ah3L4josKiJAls1oGTZxrY5M3ekPOYxzK3URKGAVSzjGG7zFfbyXIwwR59w9RqbzFdUuFBJY7j040iCf1QigDJC+NrKqEOrCCz1Wg0bGlGttEhvufXSycZgmro80tg5up4+XOMhtPMYperHpuc/ML3vJwAmwo64ygsZ2MMxQE4BeACY1YKW760i/gmFK1fbXnXkwKNI8Ppk+d5fFOTYwNxKEabaR43V+zUYe4Ti92PTeaxWXvQglZAGkmye6J6IrtWuXCCys2+26UgnmUPUMgx4TlDU7yj1g4NJ4vu+hbNMkZ9hBLBKEMbZgcphfcCOPcYwLxOm+xx5f9qob8MwN5beHalyFjakmANEACNJjmPEcFqkJ1pX1n7jXpelq+viZ34sbfZxlS0QI4QZSHOApbuQxTjJAnJ6d6dOLjjkBKa5GCHUTXx91zQCGqX412xuM+wn4VM2mTkQOdsrsU2JeF/nT99ZxinPcQjIihGu5mdf5PrfxMd7iPCa9D6XPLjpWksYjj0T1VdQEfVRTOrIr52mgiWs6O+gWnwB8ql/qhMql42UvfnZ7HV2c4noaI0I4j80c5wfczm/xCsN4Zu/O+Qfau0oB09kgaMrI8SHdznjXAKpeRtBnVCEmcMWHKBgDUdsT3wZlM3jZbq/u3LZ6+tlPxzXNar80s4XTfJs72MUeJvDi53Z1PNt6uaiZWWroP0y1zRALy8Qtr58eOgCVRcQ1nerCDOwgBboYLP8ny+65I84EexlmLYlIEKbZzlm+zf3s5HlKFOt7Ptj5D3OG9TGE+/aG9vtaJZISkYl8qoiF6gjJw1JXUY3OBRdDLJaLwbIXWs72b82nXY7wJkmWRjItEtxJDz/gt9jOHlyyDYNbF/0qNulieBZxbPxEWZCN5fFEsQSvGQ/UNz8EfZPwiHVw04RqfwWVT9jdNil6bvrlE+c3WLjY3Mr7Irh4AEW+wgX+K4f4SyxitB5LjiSupPuaTjWebD47pyvlGeRwqr2GW4fXXq6IAVXdxw3mGNAg0a9MHXDVh6l7Jwkm04f+9aE/GU2nyGKznV2sjzDqEl+jxJd4mq9Tj4W/4a5I8+ii5+cfWvLL9gNJsjiBuQQXdOoSmYVV6SZAUaWFTpmq9KysGbIJHTSFVJPWoES8sHrPgl8Vm0fWmcQ4yj56SL9DvLBcTDbRyjyuw+MgBdwKgDb5ZP/arru7frt/m1tqOR6vRG6mSt2+c4mUVJIpwgvQThhrh9VTKVMsTjCzZ2jXPAzqKHLy4cOf79vuUGKSZm7mQ6yNQCMApxmkQIYrXKSLYYpkAYM6Fr685d+vfKFEQVu2GWNh3Yc10A0SLxQ6Pe4SvlFIhVPtRzd5YphkY2cfOfap3jsLuJikuI33RQbRbz9LL0fZTx/DxDFI5zf9+eavxJy8MpKouZFI4Szd6ddDkYTAGmZ6qxvTVCb2tP6CqSAXB8tddGzVE3PPlOZNLAGT07zAVebSHBlAgxitrGMnK7HoxcWyT98ztqHzmXixJC1xNPgiGtJ6YEANZoXDqrvlqrUoS9ZgcEzcpdOrRxGLxcdWfXf+odzCq502Bod5jQLt1EcGsVza2cpaznORNOevu7Jx+U+TRQedkWsGMDwGKLOuHNiSLSvVt1SzJeq+Ld2TEfER3YMuU2KRmNv+9qofth3OdIwvtshwkEM00hmZbgSI27jKUVL0rxq9fsVP4o4jjXbGciJoFBJ04ATc6i4n+TvcG1ZTUup9qnmu+ilF4sV5J1Z9t3Eg2zHebnOVvcxnxTQBhARbyXGANP1raFzzbHnPlyqBawJQ9YRVeaZmOFT3O0wLy+B5qAwqKFGPyKk2gICxhIPlLDmw8jsJJz/PaxtnLrdNG0CAWxjjOA0MbGo5MO+Mq43/nUuER7301Izuvuk7V/VjWaGIJ5UMPHQDx8DfGRq+HJ7URvmMS4ZUZvufzbmYx4gYvw4rn2EzORzzhcevtFpMR4lE2mTuA6FC5W8ilynKCxyrSkANtpbrmpjY2NjEiBHDxgqRtGosW4BqYHDhpv5teTrYNm3gJpgAIMYf0YrLSPuRL9ghQqUGAPXAVDDb5hG069StPDLsop5FnDoaqMPGo2gWzUx9rq5oFW2qV+JYmi7XA5+QZGDbZLLACpZPCzyHvXydb7AXF1jI3WSBE78/vDBW6SUKHUZ6UinodYgJ6dEV3TlXmdzAq9CbRYahpbm2iUVX1uTnZucWWjzyLYabGHXN5EjqUmy04cLc43X9TRfT5ClonOD3ESOJR88DeTzapgUfHOJb9GNwghSbgId4kfMMt731L+76i1FMjVzeNYC6tabTmg6irDw87b7y5g2Hy9cNbLl4x+TC0VXZtsl0FgNTMX7KSfEYc8bSA+lTbSeWPjP/tVTBqbr95WUwMLnaduTDZ3f170hgTlsDv8UQjXgM8RabgCbu5jsU6fnA+FdjWUcy0WoCUN0lovu94lyQPmTKtLDwKMYu3dj9gf47htZm5mXwDQYTGwsTsAAXcHAoUmKwcajRWG29/8hn0n2dz6380aJXcDxcw7Ozcyc6B2/s396/bWRpBpscS7lumgC2kWACqKvS7jZ+zjADG/s3rNw/yQyxsC5OVX83GMZXdbGBh0WSAoMrz36od9fAlmwSCuQokqKdFDFaWEQDDUAjHhOYjDPEebLkGKUfk0J6Ys3gmuN/sPj5+h43kWvJtV55Tz7txEvkKWDRwE18mM5pAngr3bwCbOHWyplOljDCqN2/Y+V+MfcaAdS3lAsQdTYVJo5sENeT59S9b3/kzMPjTRYuecZZyC00sISbaKIpdBMlQIlhejnEIBc4jQmJM+8VHkyRIlmaWcU6tkXcw6CWFj7JvcBiKet3G2+TZ+C2CTtWKs0UBcqWm1AJgurUaKBfE0xieJz8wNFPdb0/QxyLHK2sZQXv4T1TbJ5Uhzaf+WwC+jnCQY4ySqxqSS6kg+VsYHnkjF2wJFmlnVlJnBJDGwvp1NVSpDYia2HV9w3fmyArjBgWPVte/+K592fs8rVF3MNttE3n8bxKWcAC7qeXY0xgUU8DTSygMWKSaTplMSZwZcmhf7P9SyZuhDsi5USYAio98OTXsahnuPnQnxz9/FgacjRyC9vYSFpr8//F8gRPEaNu9JFb5p4pzZQSkV8uoRosfh2ZoeNYnLxn71cubEzi4HIn97O5Cl3Y3rvojtNvvvwuRzmFN+fMY21fjlI/4gPXMnw+rLoXW/6fIm++8N9f/5xLgnHW8CF24D/dVr5ThKVUty9qBO43W2Js4iBNDN5sK+Z7DQDqaSU9sCpr6hQji//pf554wKJImod4iDlAUYLNU76p3u8hq6t/zrKeZor07bhw44LDhWvWjhRMEJEQPUTvlzI89XRvf+ofTz0QI8cavsTHmEOJIr5vUW7PQ47KiGOXa70T5v9OWcp15Blr7r0ryr6wiIZ0MAodTJzXc3LXM9/PNZuU+CAfpZFSRY/JlKumnFQGDqPxaB7pTJY0y3kZm9FVUdgzMgt7gcnJEJvUcfzBH//Ys1xifIoHgawWt0EyC3SL0g2J+/k19SzKb76Uymn4+Ix4IrKaCOZt/YhekjcfefoHWEXm8hm24pCvXFFbClsY+ZohgSr7NbK0/U3LyAGOkiRG45kovsg0lIhOT2KaCc7e9ewTWAXm8zluJld9SsNT4Jaza/LQ3MqT6KqJXvZmXIk+Xfxn1n+T9HiMN2mleWDlT3MzYQeirb2+I9olzaUlz/5drq5IC3/KOjKaBS9rW7f6AL8aV/TvcEOEhRqPdhR9Hm0j+PTKSVLA0p+1n8zMDIB6HFD+5ZFivOW5Hw0vgHo+zzom8ZMy4Xe4kvTzWw9GcAiFUb7PxdDYXO7r3ZcD7KUBg47dxZkJqKoesCoLIYbL7q+e2RTD4JNsZkLaMOZPKLj3xW+5bEWpTmEYcwaDZroWFxvha5GSPfyKPeQwWHJg2c+cSO1M07MXkq18nODow8c+kSLHh7ibCYqK2aOKfvWcD41OWQJyPz+rLpzfs4us20U9WTxMD8aj/DcGiOPQOHHHF+qyeaJI2ohv7fC0Y6Ny88Dil75mkWMDD1GgGKpV9aiNp9BdMKao58LcyqeugNxKOzKTGxJl6sCrUIzSWD1T4iL7+TmDJMmx+PD9/7LzpVwk+CKzsJpg94cW48CfDy62aOEjNDAZMHiMqiHtKjrYPxtUTeKq37e47qEuixm6WOWjsFyiWMjD/IgJmqirnJugny4aiJO6cudfbvhmw5WMNoIaANS9YNFsilP3nfi4QZaPsJ7RisFhVhnQlGhF332lwuNOMcypcoEiNiQbR6qgkMeqvqp0jG+xjxYK0lLHSAPNPXd/et2zeSan8WrZiK8AVfdkAVgUzUNfGjcN1nEH2ar0E2A4CKZTU+E+zKoKUNlXzezpsE59Rk1+yVEf/1o3PXRg4pHFxsOlnth4w4VlP1v3N/N6xqvmf7To0DSycqqwT3FyR/cOmxjvZS5XJNPXU+6SQ1dCVgk2FZLMN030zZm6kRM2wqA0lFsRYscEXmecZtoP3vRX/bckRqHQMP9A47m2g/WFErLkM5gxJaJqSgOwmYy9+Yd5w+B61nNFAs+V7pT30Pi60qzSqD9An9l9elG9bX1Tk74LogydbLoHjSGZCic5Rj2w7pubv+t8t7xkJRwK5AJiKkpMKLIngsKQMYYXdb8vjs1tJJmogCV7CUZFzOu7nBx05SCY3VCsyGBIwZUUh19cxU9R6U6Gz6e//ZwhTnPvih+NVvoNs1Oj7g6chiGthhKKnPtwJmWwnOvJSGsuGydCn+pqwq/jKjCr667KML+W7scEVYYa/PDb9FP4WZ7HoETH8+mRUoiCUkklSonkyslhpjIb5u23P2qRYzVJigSzw+pLGH1oHXTfVcAc5tLJsMvQ6Sytplpl2OWl8IBnOUYMz137TYsiupQMqrBrgzmN19+JVTYZumVwg0cz6zGrb/ETAzClfIenUKY83eBrJ8RdAh5DOlLZyj9W1ZYPXzB8a9PPcziUuPXxzn0lzcgX89V5qWYKlA0Mr0KB3Q+45NjAPIoVySd0qVndBKQnnLwK3ELKydTqVKfkBhbBd97CJibezuHLyDJNO6gsanGMfjzaLmz8spww0h0FfZ9ZjQCqISMfkO73F3BYTB0ZfEb0u5Q9CbkVT7mm92FWgUCjV5k2VSHhahB5Fcadyna8ShGXtuMt3TlNu+s7yfx7ZmhrR/nbX32bsbn5Noc5dOK/y8/3TWW/d2o/Qw2ylifukiYvWZsiCuRKYMlTLauVsukkvOtgcKJcTKCfSZLEJuNkq+SAdKTuPZsxFpanXTZhBm/JtDu00UJOkTNuFWhfBQjLKhhTlM0Vk4vYLCerqR1ZKsr9mPisG4xWy1lDtUYWE5umk1ZAPMjCRlYrMwKgbtDajFyfjbk00URxiqGAnnxSqU41jjxs2niBLDcwrjFmUB8KfS6Uh1MVHrK16CJcS5srDGNR7847IIdKjcBcp5csiEyBsloY2pDDI06CTJVxPA0qmRkEE8rySq5fZA7reIYEq5jQqEIWAfJd4lPv1a3266s2D5vz9BAjMTr3DUeZWfhGFbSzU5VIjznIQzfJk28BmyYsHDyciiHj4eJUvstSzT9C+uVUE+h+nfK/Cd7DKp6gn1j1vF/TrXw6lXvK5x3klLxb0eR+i6LHsox0OMwgMVqPtPaUCIaGQaT4jerRtUsEAFWLzqRoFhs86mijWJmOW4UM6diTrlKdChJ4fv1y7RF2YvE4hUqMRAbCq4KI0qaAE61/cTe4xBjmCGlsOn9uSaOQUwNl+S07DFGYOWLgS8RjoBRzEuVt4Y5ES2LDhietvA+Uo5xzqhN3pDtcDB7mMD8kXtGtKnz+vSh96BSuj4KKvHyVs8RIFJf/WDyTqb+cRfepo8jCiCwshyXBc8sMJcOkTlilNp89VMYUfxPCvyfLanbxNC9TjyFRnYdg3WBL3hTnBY3GuMpeoMTq77V0OdKs9HkKaNVzNQAoexSy3vJJX5Y+YqriipBbrnSHq8HiVaQa3EM736eLeGVBHAUqrwqjTpnh58vWqcWTnMQm4W74aqyqYoLWn2q+RzOkIz+p5D8eY/sxUHxJJqSPoCX1SExOlZjBfxkWsIteniYXYGNPA0uXu+IqUi8mdezlV5gU2PyfO477G9ZUqILQ6Vp+qhL5VfDF2Pn78TpeyMbrRpNDHi75KlN7kvngIhswsgaXnScPedOcH0Q3KFFkE6/wIjewhSyyANENY/+88KFF1EdML80Bvo2Dy5LDm/6jHHvUjXv1LIFr7xpAD4ti/BdPn7vf9NpfH1u68aumE2OSS5Xn2IIeqxrMEhAaIedEZLB8ZpI2NvE2u9mARUlxD+XFQjuP1Lbfe4I0r/E4Y0DT5D2fTTlZRQCpCypoTt9/ViOAYDK2vHeXC/TdarD7Kzb1lMhWMghi+GIavm8qVjIsBIBCN/7EJriFlzjBK+ziKm4IzekxaFdKA4k69bj8mGfIYBPP73q08+VMiHMpyzqxrUnOydQIYHnS4x1GybLLg41VnK8rDNNEHtlL8devrDBMaaKmRJN+/kQOGghYc7RyA90cYBOpyuvdRYTPqAS6VNjF1XIrNiku8jQvkMAinn3vo+/5xaRCXzr9qsstqLRmCiw3NrHctQsswyPBWUpYlBgjS7MieGUqkZ0wo6Jhhbzzqhvggl6vQZ6N7OM0J9hGDt/3lWWenOVTKdMDLEo8xa8ZIkmJuRd2fnz17oyy0GJuegRGP1szgOXuMm0uJeawkxhHOMgQSTpppCCxjR7+8YOg+go7qEErUd+nwhJtLGU/3WysxglFINbAlXpUmc8PHDzFLwALj9W7d/zxomOZimIxAnMzlCM5nDpDAdVyc1a2LL1imNzMKnqx6cCmoPiRcmjez/0Km17PeOi6WTCyQ4w1vEE3IzSTq7brVBlYDdhTuerr8gJHKDGHhlM3fOOmv7Yqaa+wNGl4DjionmqkwBIDW0uYFMkTo0iS9XgUqvCJUL0Pl0958n5SlXXU3K68W6YcRVlEil6u0iIZRn4GWE4elXtxJXo3sGmlj0m2feuuvx6vhmn95VQtAjXbqKqnGXHlDOL0be3+ALgkKDviJSbJVP4Qj+7T6u6c6tSHGcSect43ixuZR4aRastlRraJU0cS9Q9TOajGtcFi4nhc3jiGV3mY2w8ZCOEh+1dCfqpG0gwACDEGb8rGIcYykpSkyfpTVr/FxAQ06rGr3BEGbJEEc4ExipTfrpCmEZsclzjM+corFGX30LdIPTxKLMYgTs99I8ttTa4JwtDNmOgRGLlEYOECnc+1XBjqiFUycH5iyKyyW3lAQsyXbTcxFD+wKRKQcn1PquEzTgmTBC4udcAoVxmhjzFGuEw38/g4yyt/z0uXbgAlltLKIKMtxz/d+kVTsQZAZl/ZlPZh1a+8c4nw4h2H5pHhFQOb4SJLmIN4jlbfSBGW0fJCP2VJ4wXaKKuKE/SzlFFe5FVe51Ve4xyXyNHAGAZrAJGRVinaI0WB4yS5sm7JTxuGnWpf6jtS9WSmDmwUCCO++qn5ze5Hc415iiypyEE9ix80O4N+sGzhe1PWBJc4g7yAwRBHeJvLjAP12CSwPc+wmGA9KVyE7FKLTRMnGSOfNJOrn3EwQmlNhVLV6VHzwhHf4ts4WjR77o8xQIHlBHMK8rcqfFVbX91DED558IjTx69Jk8MjRZIYJq677gdb/8PSpy7dPtmQo5HVlYd5grETD5cWJjhKguENbfsWdBUC1p0awlJthOlIwQjxwHJU7savLn2hiEN3xXjxJDtPzSXIgl3WsChXCdHWIornkCLBIFlyZCrJ05hrjyz/xaYfrf47F4+DDFZjhnqAy6NEnq2so0DW3v/lXKxOERyq26duMTFQFeOMUCBYFOre/r2RpRYLuQ5574lY9bKfamJrBqmuONQzYjOHaAcckixlEUtZzCLqGcbBNLs2n3/f6h+27D/5h/n4KHnWIeSg7OUCFGgixZvAlUWlhvb9qZwwVOSsoeoBi1EZESkx4t9UsvCMsx8cWJ0gj8UC4opDVdawCSyucpZ+YiSJUc6ZyOlq3ViVd2b51Cwii4tYxVKWs4rVdFLgEgkuL5hccut3Cs65+ywuMIcVFBQIZarJ084Y54hz+ba3Hp2Yn+5quirv8tJfue2DpprZ1wIx4t9Uckk6897oe+BKi0cvV2imjiRWJUodIwWMcYLnOUE3b3KZPPUkCG4yC4tx6Bs9fAAKFUsvRjtrKXCOOIPrm05s+ttzD11ZYHORDuZRUFqSgxomC+ljAIdc84XtXb+T7lr4lr+jQaUyXfPqcrEGAP0OHJqHFu3ufWisMc4lurhMjgJZMkwywhlO8CrHKlM2GOQoLmsrNKju5FN1uBwGFWfEwpX/FbBZwTADZEmYNz05Z1/375QSOS6ylIbKfnuxxcmnQ4c0qzDJMoFFsf7UY57bsdcLjEkPjk0nqBrxHaoABZovL3lm/LqhFTYF+jhDD2c4xSlOcJReCti4NA2kRicbk3hAJ3UVq1FmLRU8FLYOz0yUw19tjHAKl7nnl3+v9VLD0bOPeNYIl1lFCqc6Vn+XRLnHIvWsZwV1jJDDpOeu5NVl+4uKApGlov7+/xlgYZmoizSPrH5yTs/ITflGy3DIMMkEE+SwiGPS3L3h8R1/sPlvh1ddXA3zWIspmTxq8F39LcvCMB80jsNh9pEB1j65aneehafNyTM7LS4xwjIaKvsjglZmkSLNrGEZFxkG+u5ve639TFGjNZVt5UBFzRFpeUeVR4ZE/sb/tfLJ3vt639e3pdRcqvMMPDuTuNq+f8FLnf/Q1G8TIzFRApppYkyTLKohLXsyPpBhMtJimF/ShYFD2ln+8/J7GDZ9bWzJS3+c4C2yPEgnGQqVXVtqDNJlEoulPMLf08eoeez3Vz+rbnQKI5jgor9rAGUlYFDAIDm29ql1T2XtsRW5Ftc03NRwQ3d9wcWhRAmDUsrDqu6Z8f+7UnBL7GfVZaM6IT+Iv4eTpMiRLNzzyc5XshiU8Njxr1x732eT9PL3bOVG0kwgiwNZ/4+zkp18jwKja4ab5lzNS4pkqlB/FCkY+Ukl2Y9wcTCwSq1vmxW6cclVa1jM35d4yKCXXhaTrQSe5Cih7DLJW37Vl6P4U7cwGMHAYfmvt/+7pdXUUAmbez8XH3/1SzZDPM1JNrAWq/pSd0GFJnEyHOEoAGYhXtSTr7pcRhvn1CXiXzaUj4TyL9NcORon1tOlofvsJ7KpEn0kaMImXnldovpmc/+MWf6j35hYlV+GdD5GgpO8SQGbnR+9/uUxhSdMVjxff6H/zkzSZIDTlOgkiW9zlseToMRunuMQPbi43Pz163ZnqyORzSwxMn2vYw0Ays0KatSjuHJ3Dg1jZM691yPHOQbIVFPwFhZ25YWLFjHK2TkHB5cCxepSlF+/aeJRZIKj7GWSEove3PRf3Lz/Zknf4HZZ8kb78/mFE0uxDC4wSpoUSVIkiJPAZIJfs5dRsjjA+qdv/1OvKJ53NwJzUPc3XpO89kQCMBjkCWveZwqTOAc+s+frGaOe8t6sVppIlFOMEj0XKWGQp4RJDheLBGCRqLTkkGGIIRIUsHn4rtV7MqHjszHo2fXyn3dtriNHPatoIYWfJO3iPCbQ0N9wZvVTN/yVRbGarvdHoubmvGnQYOQ/h6Gq96D6V8WvRZK37zv02bMPOtgVKtPdcz877AdkRRpKdrBsLAo09+34wtonC5reFqMyqedK63PfOvmgjUG+asCDQQybIqufv/uz6dNpJ1tVbfrWIjmgHz0eGPlvrAeJXL2ms4FFkqx1cXPfnRfvvnxLvtGzRKxF0KAA0EQk5N0qfAZGqaF/5f/e8DftXVnUiKLODykK1ht/9NYnhtc7dqm6B8bEJpFZ/d3bv9g0llOe1FM3A7zbEhFAAZXu+utX5VoWMUqU7In5I9dPdGTm5VpL6XyTh+mBZ3hmctjOurHEYCwPySGrUEjnW8xiMZ1vxsXDsifr+5pPtr3eMGJWt7Mj9a0zXRzIpvq3DmwdWT/ZbgCeke6b/3LHnnnHzIp2VoWSKut0D3jGKFBl4iBosuWuS8uykPZf+Gkqd8r5Y6pUpfsoYgOlbv6G5TisigaXd7qUd3KDbJiokh3CFEkUACO/N0boJlUHB70JAYXIVrhKPV3ChDFVcLr6lHRh7wcQQJfLepRZ3YMQzI2I1q4NYeT9gUGwdItdxNjUgGqwpjo0VT3JuQj5riAMOrvpFqsMjGyOqXFJuU1PgzNIFsESKaSv7x+RiV6GLSxlJJul8mSMaut+LRkqdd+MboF6qBJMtgzVvlVwPQ2yqcIb0wlnRXrMQU5aEwBEBlOflCdNVoVCwItCf2ERGS9AG/IY9F0FhjZu+V0y+iiD+xDU2V27RNojreZNdcYUubUgY+gR32AIQY3QeEprYnKGVEOtF7b1ndBPle6C6VZdJc0QC+tyJDxjKqhHlpOCPtRa6nQ8DW55d4AuIeVPQ2slmIeWRxuMtaiCQk6OIV2fAQBVUg82rl6R1zmoW72QO9RBy4GA4EjUqatLqEZy1B0LupfraePU5S2hv94lgEFAdDNDvaaG59U9AcHUth/dkXOx+h26VNTNeXmZPdSYjw6p32PQANMVU7S9MRGf1gzGztQBynZh0JILj+OohoweCfa0/nR61kOfYV5s0NbT/V19iaKaz9MEUG9Yt+RUKekpU5FXN7iNVlZOunGuU7cMdLh0UmWmavDrv4Peu7xJObohM+0X77xzvsAI1DAC542QtoMqIqz9qdsK60m/ZrxjT8F7ooUYor+mbLaEllkAayyzANZYZgGsscwCWGOZBbDGMgtgjWUWwBrLLIA1llkAayyzANZYZgGsscwCWGOZBbDGMgtgjeX/AMGFUOXDjiN4AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIzLTAzLTAzVDExOjE1OjQ5KzAxOjAwcSr50gAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMy0wMy0wM1QxMToxNTo0OSswMTowMAB3QW4AAAAASUVORK5CYII=");case"animalBear":return t(Nu);case"animalChicken":return t("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAQAAAAhxq+mAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AACUWSURBVHja7Z15lFzVnd8/79Ve1Zu6tXZLau1CEiCEsUFYgFjEYhACGzMePPE2jj2exOOZjB07y0kmmYljx+OceAEfO7bHjMEegzcwYCyDEQGzWwiEFrRvLbW61epWL7V0Vb2XP6pevd+995X6iWomJ+f01VF11Vvu8r2/9Xvvq7K2MFUaKfb/6w78/16mAGywTAHYYJkCsMEyBWCDZQrABssUgA2WKQAbLFMANlimAGywTAHYYJkCsMEyBWCDZQrABssUgA2WCQF0q//9d271s/9OviKucrV6znYUUav6X7/KVe41+2ve6wZeb45HH1VwC2qJhkHZwgWs6jur1pCFi4uFVfvkXY92lf/e67RXp1u7w7tCtmHVXl3x6l9H7TNK76xqC35tav/kGa9P6t1qfQ0AqHbemzVL/K989ocjpckSQ5Fy4E2GW/urg+SKunVwJRjUplCfCNl3GxsbKNfacmoTqY6IgAk8Wwmlwn41luiseV5KlaWA6kuSd795jX/UNeTNmwoXKVuWcp+vjupUu0QYm/HEt36w9ekvjrVhQylejNsCIEtcrxqYiZXY2jLhJXJOqXVfVUM5XP2dK+ZUhQTjTlP+UGREl0j1DnWy/TNJfnv3c3+eo5XZu1v2t+zrv8SJXPFXS14YNfqljjBMCQGgqjCWAZQOZP16osRxKNQ+EyBnGLXISfD7olpcc6r91zgnVj34opPp4Ch5oiSBEst/veFfpnsco/agaT9bCaHCnsIg4NKFXQei8tdXKpsYGfLx129+c32EuCYrrlKLvFtOmf/fa01vT50Eb1LjHLy1LzOHL/Ae1rCKApBk302/eHR0ZkZzY1Jpw0lhKC8sB2Iqk+pP/ab9riUosveqPR/veefQIqvYte2i/7HiIQdH8466CloGsLqkmk7LPy91Zrx9HJv5fIIch9nCGxwkyqHVW76z7rNt+xwQPVB988QQhvDCut/znb387IPrf6p0JMXp6c/83ZsfG4jZTKMQ23V534Otl85/NY9pN1Wv7kuF7kJkq76TClZyC1xwKBGliZWs4mXuJsIAuza17r36c0XFF5vhztlL5CMTXCDnRn01Jc1vMkGaJFFc4vQu+vlje24uRpZyFetYzjD9kYjb/ZitmQfpXdV4Tj2ut6r7ar8vlX9JSrn9fzQeX8lMirjYTGcVl9PHfjKRBQ+kCyVRoxpDTIIEosy9D6kZ8nrXRIETSw7cMbaoZdeK71nxhzf3LE6ynvW045Amyz6ObxhPJnOyLjVSND2qlFIpo6axd8WERLE4suTIjQmO8DTnY+EyTpQVwC28yK5LI7+88f2ZgZKiDeFdSGgVVpVSyoYq+hYpBpuf/eqejadmF2hm90fadvUuTrGRqylzBosyeWziZyxHrd/0nq72yUJKnQmwf4cXPMcZa976b179s77ZEWawWPS1iM07+Tj/wNarM197z5/YOBNOTEMSqFoaNVmTFjHBqY7Hfrp3PSykiT6OX9h3YYRruZpxxoEoo5wgSuaAXfClT7doqgxIOynDbALO+X2MkuLgu373zQPvzLGQd7OKS6puywM5wp3kuI+df3TB1xa9PIpMEdQEs0EAZYW6h1I9YpSRzOM/239Viiu5muls5qeM0M0luIwDECHPEDYdb0RxhexKOVPjTh+oYDj1bLvSzwgJXr9t8729LQnuYhOzAaeavnlAlYnwfraxLXpo48KXbRwhMgj5bxhA1RuqwYscCMR4/l/tuyrBzdxAjhEu4BhHOJ9ULXiOkKMfm/lb4uQVKHRn5B+RqqnC6aLD7gEa5ZWPbv7+KAv5EOuBcrU+HZAUc9hObpaDrcWT5iS+ZQBlUqVmHaq9ijLUtuPP81zKdeTIAxluo0AKm2Kt61myJEn3q6xKPRLBUvoQnG7pg7VJsvWjm78/xMX8JfNq8AWXDC4739d64JIvW1U7GEwr1CuhCFVTMnx58Q18hn23neiezmWUyWNhUSZOKzbl2n0lTuGS7o2OOLWa/ImS2YfMSnReUJVPPZFMs+/6J+8+xWo+xzyoWT5TMFwsruci+ju2fGnnh2IBgjMJqZw3HE9hdNvnKW+GOP2XZZlLN7law0UKYv5tyvQDyYFI3gNEEqA612OJFn24fSqs8iojSZcUfZ2//oe+1Co+x2zcKnxqzfLTUv6eGxjmlX+bS0WEYZhEQtVM2nX/mWJgxq4P963qva6ZOUSqDsOcBoBIZUCuCowqW3KSZMBuxoiqKYEYxchT3+vt7OTTdOGTW7J2fxLgNDkGaCPB4LK+i7qfL4seheNjQtpArwO6fXKxSPPGLVu+cWJBnhQpWoU3qzcdjuVY0qebaZxJaEkW2kz5vMgvwouf2XVjhD9hlXKn6UAsjvNtjmAzRA6LluPNxxwxVh3ytwyg6eVUb5ji4MW/+UFfRyfLyDGblZTOOg0RwHZsFw0+dVpMgl0aDDUX96+Mc3zVi/91jI3cjLSgKmvjHXmVh+ksO5FUbvahuS9ecE/b0ZJ2x6SyMcFsWZSc9cLfnu7o5n2swMGhGOjz/PC2HZdSphz3ZcfschBNoXIsJnVasbAvfbEns4CPCODNKfTep2mnJX/xl+c+N3tLulymqIRHk8zG6DytJztRDq47eH2GGzmfkbpG1++GTQKLQns5KeuXkKgSr5IKUq11gC0yvPLh125NcBft2rSZxcViFm0UYsvv7zyQJa+MSl/qOlsJHcaoQ6o0EKHAmx/MRhewnEIIn+USIQ3kW8ppW6tPV13VGumrJr7f9Yad5FTni/95lKu5oe70eZ8rdxfIY9mlVB5vsdV3OZ7/nwQAdTFWqcpi4sT6EotpoRiisUq0mGDcyk/zAxcUyCQjLTnn4AjRt6wRtn36yML53FmnXUl0FYFRHiPPrO1t+0ygXNHSRCXUsqbOxvjvczNGu6NMJ3YW3yu74ZCigx6GFpSfUQl8WbuETjcaao2+Le5ZsuNjZW5k8QRjcfglW+nkCNtIsebLqUIR1R350zVJmYirqLAcgM1IZ9FuJnMW+fM7V+l+glYcTq0uYddgsbTa1fVnGdSq1/rDc9j+mRMzl3DTxMPhKE/wS14mw3Wfv+AnZc07yxgzTAm9M8EyIIyQoJRw7NhZZsHSaijTwhxepf9dZTvm+JGdKVNuQE2uANS/2iLG8Yve+HiJjUyfcCw2K4gzPbv03vN+vOiZcjXoUmNQv7VJYWMkAD43EifCGxte+xRRh1KdhizjvUOG6ZQZOY8YBT3O864LlgA3YCIrx222f7YneQHrQ45lHLt85edaxvJU9ECnruQCVsMqrIaznipFiPLiJ3++ecftZ7BJTpB9SHAc2mllZNqxtZ6nkzmtuV1J9cl6CG3hkubwpW/ckeRmWkIB2EIzY+lDGyPViZcBkppbhykTAug7dNntGHsufeqeEqu4hrXMrsZRwbD5d1lYjDOXeYxEj1wfUWI/XWnUIaiLmvJTBIdXP9+XuMgIX+qVS7megciT39y/Ll2Dj1rrVm0ag1Zl3gKA+s4BCxebcbZ/ZtRewPv5ANcRrZO+BYFaZBYzyTJ0gS3m3oNYuiyvbX21WM1U0hy8fNftrWwKnVTtYg6LON7x7N8VE9EA4+S3EiYSDLW5SH6qNJdvPX69xcXMpUikxvepUMm/lpjdOJ0k6F99eloUGaDL6EtP5l2jJ5VrY+TY+p+GWc3lIeEb5js8RIEEJ9cOzI0K8XDrSn1DAAaFGBEOXTPcMZ15FCmeVfrMbkGBpcykf97hG9PIoNVS7gleDdT3UEXYt3HvDU3cHnqr7TBHKOEWMuNrvjJzf1EERHIlxA0J3zmpsBTpgQvHSZGoS5b7cud9srCxsLApsIx5jHL8arfavA+J6v9cpIXyZdSDNsJg+/NfPcNaLgkJH8xmLcPMfukD11z+H0uUFTOiL90yGSrsD0vKhRM/W6qjMojSMVTeR1lBkj137rwuQaJ2Ts2LpQRaWk0V7i9Bmu2f3r90GneEhg+iXEiOkflzfx+lpEi6pDDCszGhwhh1yccFYkMWTsjgxYeuIoU2Jd7BTPpaH/31s18oWU2KvJq0gjqR4BIjQ5SR2dtv2faXOa5m2TkACAvo4lT3vpscVM3ypS98GB3KBuozYuEw+6W4O0rurJ7PRVdkr3tluvhT5tMX/d1/f/invavSREQMpr7qBFaMJnKZN6976isPPvPgrw63Leeuc4IPuljECAc32kJx/dw7PBddKaEYaX1XisOM15tP9c7oZUWdpMuD3kYqsmcHocha5vIjXuDV9x65Yt1/WX13GpcS5apUB21ss4gS4cyMvX+844Mn3jUCTONq3kvHOQKYYT5PMrgqglPNx1USNSh4agBAy5A/gKbBeY+c/OguLiZRZwlJUvSWIoWV7d5nmMdfs5mfcHLGY9/c+8fp06Xo6v+58IkkRUpa7OkSIYpL35LdH91919EFZdpZw6W8i05inHuZTzODC4c60gNlje9Rd9eEkcMQ29t8GHwPmWR42uHbBljILC2Mkd2xQZE+G4sINjYRLErEWcEqoId98w8tP7n0yF2F6akDyYFmEkSrO+ttLJJE6Vv8yl8//e1Xrx9o6+QaPskdXEgbkbcAHxTYymhm7nOz9xTx3ZJv/3QC72wlFB8I6rwkeXPdq1+wGCMbyJyAqxhXS/yTn8ZxWMkqruR3WJzm5eiWv9jxiQWPdD3VcjTZl+pN9cezEGGoa+tndnyivzXHYi7nJua+Jdj8sozp7I6eWWYr8PlkhTreBgFUwwoXiwi55O+/eXj5DG5iJSWNT/P+uhpYdu0f4jNkiXAplwJZHudJ9iX773jxjjSZbKY31R8btdxobnD5kWVFlrKBdcxpEDyAJClyjMyPVMen9jksdCEBNJe/k7yy6ejqVjaxljHGA929TkjJSNCuuRJPZcaJAWney7Vs5TV2cppcemRReVEJF4cYM7iJ65k1CeBVyhwijMwd16DSN4lMkgrrK/pRejcMs5iLGaUsQtEg0slXXFvkIpYCZCWwqVC0rVzN1eToZS9ZCgwDRZpYy9JJAw+gizQj84bT6WzJkDt1z89EJXQY4xnWCAVyrRFasKuJXLDTl6D7/JoPpqWc89qq2M4UC1k4qYDpJUmU4e6R7pZdRSXH0iOOSXMiai5iO+DiKDs+wZs7uXlc/pNW0PewCBkNz8I1WrpIkJ823u7FqarqSn5wohIilVPXIFzipAYczlDApxccdELAJyal2ur/ZAARNnmajDKbOOOx8VYb82k9lURrGEBJNlYqLTPrqWZOcpg05jawSgec2r3emoNqF2XNfkvh9oRORkkQpUixSZJnquubNDpLJToB8ix7pHPHILuwalB5Tcq1DFUe5auXjagBuu6K3s4SB0qUE14qp+92VYWmIQD9xRbPKpRoyi3/QZzfs41mPDbZxUVdEkJRVd/3SrZDVeV/LvggRgKHYkbVCX0DS5gSms6SXmqc1fcsfCnHr9hHvHadaQOZ8N25PFQ1uQCmcRlvLovARY7Y69UkACipRu9TmbbsJX+T4RTPMk6k5jAsQwnlJlyvq55V9K6Uq7L/XCC6OIDtyCVbv8/qAlODAKqLPJ70FMlPi7pFsjjVgEYFWyqBjPo88DwL6D86oyr/2w+gC+DKZQK1F2FdWsg1EdVP2Qy3vvTfhq0VbCRWY2PUB2e8CMvWsmIvcKg4ILkLRl1af3tLpX/eHKuOThLBk7gmAv482Zy47NSCZjbQTREvCqxc6dQcjpoCyjhL3e3gg+/dLX3521PcShZVkoCZOyMmZVnTi5JUXjDXBikS5JUQQN/V7MmrTAZlZOmK++QKnJyStwfEIlksEiPy+SQzOp2Uxxx0B18ZZDxnUVIWNf3oSScX5OMw0qaaIbT6PKZ/b/gNt+EBdLCJeE+gadHAJNtAfcuZhcPsPzSdGeR47XbdGaghi5+TSGicWgLoqbUjznl1OeKoq1zfSBmjRJL4sIOcdr9/anTYIIDqglJlAK098zaX2MYQyZrqyg54Fs3MQVQJswRA3nKS+uVOlgBNbnPy99G8lTJMkZgTH9ZtntSWcDb4nJ6V8y1cjJXfSnGALbjEaxLkD6iSItmCIpDPwaHNtv5tXJYGmDzrasfgrVjJoxTI9Cf7yoZ9l1M0KQvrcteUNySHEkufWvP1Is/yGyKkqsPw9m65wgl4XbGrxytXOlCNIFWf6yigSY+stu+/6l9GFk4qBynQerBlfwk1XHEV+Zs0FZZAUs2HbW74/PmPF/gdD9JHVMlCbHRPqy6Oe131g263BrqrHdH/SeWV6aPcHDmxjTzKGE3HmscdpX8mlTAp29tU6+eJfI5IftOmd9yXzD7HY+SJIelIdc3fD7BtpRa526riMFQllbycb2kd7ahTvU/uoZU7uYLKSaD1cBxfhS0NyrCe/xy/gFFSTzni4xs+1vW6xUnGidS8rLoWou451VXO1VyH+qoCinZFkOr6vluKgF4GGCZD05FSrWf+NSqRMLEEhv7iHfV9pXqHPe87dlmGq2inWE3NVEJBbqx0sIVMeakc6EqubiD3GUeLctUtOVo9Uu58oCXktpBLi5300jY669miaE/dlzWJTsSHTBLv3jdi7f/AICu4otZNS/z1gZPZiictUsocxSH47z0346mqJWJHp+Zy/PpVmymZIFVq9zHA9N1dW8fRyTdJK4SzgaEXlaRN8OEozCjRRLL6jHrlv63MjC+B+hY5F3/7kZR3XQp1Oyz3TzuiT/rikIMaMll4PNBhbGZtjdUez1BXHs+Nmwz5yL++O8ZrNnMozhmyxIWyqjZQLy5+sKLnFa52FCFxoIbaZnwoTb9aY+WdB+ibvEEHS35SFOOQjk9OySQAqG75lx2yKNP9WBN72EGT2LShAietFQpvqA5aHilrLUn1xgBHpoQe4esSNB2Vsp3jdByb+ZIMYaTsyrBtEsIYuSKsZiQuDkt/tvD3OR5iN03VfVfqjizZHWmXzEjPEeGxpflf/xyKvawXM1ak1WR2KrHDH8iw/AepUX0DqMqNTxojrQbQMpsFh+b8lZ9qyx/nh7xM5VFW7xFCdVezmluoausTB/WBUTMTGXY7SuisKrfMc7x3r7GNNnfpj2LKOUnB+Z/D0Amh9geaRtyzhg7tfemDx2/oje/hNGnStJAQ8EkY1b+64zi76Z6I8JePKcha1YwigsN97GH5ljVft5wyvnaZu3rk34YA9DsE5gKgQ5nO7V3P5Bf3LzjEGxxmCItm0pTx0zpEHOZ7RrkTz2xJ/xRmUG7dqytyFeUV/omoe8Xn52/PaVMmV4KtgJreMoCSLZMJml91mRlHlv3j9P12YmDpEd7gTXaToVNc5z8ZbJJH8p25JiKvqCeF5hl1qcCTwChFvsMeVrx45ecdxxHTaWnv5SpkwwCqFGPwRrYSUXfe64sf7Ho2VXI6zzQdpofVZGp8oB4AmcuI9ZgU1+hHcMZSf/L99zGe5AGa3Ws/NWd3Qdg4lUJVc5GJlTjU9jZT0NXQE0qUiBWXbV6wudCyb9PT9/Q0vcSt+DuQvaF7ZIJ6VE39rRrw0hNagfephIO+r8AV/U1zkp9RZOWjyx7NaVZXf8hH1jhRCfmciOSGdQLcG9g4eSA1fMkPl99f4nn6SSF5ERlsgOQDnWr0Rg1eV0va5L1lwb6YQYysxffrCVy+yx7mjb3zC34ura8aqixRuGzkHNgY/VEoL2qSTHWZIiXWfGVW9jBPEMXWojZHUKkSGKeW1zpKpKe/Q4BqQqwGQ/7ZCBF+znM0seaLc3cUa7Knkg4y0w/PcoeygaZh9RfL1eMVsrVtMN9yaF0vS5hHQfHcwdOCpohqQoXyF6Qzk3SBpV3p0QsRkjzB98lx4S+u+QvXdXCVEcg6ZQRbr8dvUQLVaFCvWA1gy1z01e7DwzzCEMnqMCwhHypvIlXZz5XVFM1XbDXcRqtH9sathi4pnuM7DLBwx3X/OuEU0cMmn4bwR6q/q19CSKBqXq3Az+p+U4embPLQoQ8cw+V8Sor/lFPg4rkMM3QxnYd+LnjtWWYVlW9K+j3foJ/u3ts2Td+frd2jxn0on+TxSQljdMZCZabN610sZu0eWdhz0TGmsaT6DaoeV2g6JhU8086asKpH3DrXREnzW+5mkHk9m27oeiMrgrHgEfmBTFgVDpmJyOVJNXryP8tUrUyUzs3Hb+zpPEQX3RRrkKiDNgcuWT4TXN3OeXfIo5WeRclwhh9zP2dY/ObGTfPfGFNgk+vVOs/pa9XEJaQKy4b1J3rdgC5AmXRx5h967jiROko3cymItF8FwbQ0PqBWwBnpK4PPQpw0u/g2v6HAij/cfOfcnWNiJGrPQRoUVXEnplZDkwl+rAS6Z1ZXTbwulWg/0fHKifefjB1gFvNqT3WqQUJw4qZSqJYSuekhiHlfBJef8j0OkOCSB26+c9qxMUVzzEl3MWONSWJjJA8jGRWUVzUR8rpSYs7BaVt7bj8Z30WGBbiUxfB9a+e9eotMcilJt2yudq86JZX2W3iE71Ng3oGb/vTyv43kCzXgUPqtPsYmbWIYhigkgLqZ9edOzxr1jZiVwLprX/uLvRt6mndSYhFpStW1WGoSFrTTX/WlEiBLkzudtIrQyvP8gDFWbnnfzYteLlCsLXK52uSrDJOZAU+KBMpQV3X/+hH9aEWOisw+OPv/nL6qr2Mvp+mkA2pfuSTlQJd0aXstozc+dGpPk7TwEt+lh+7jG98/49Ao5eoe2eCA2Xy8wVX6MnEJ5YXV3Nc34io7YxnzWzk7TvvxRb/MrTy95Bg7KDCPNEXDfknVVv+q+/X05QXElWksHuMf6aPzzM23z301i3zwTNYie6oqri+VegtvEUAZNqvxuh7MyJRKneEizcMr7m/qP3nNidhODpGgkyheFuvDpCqvbt/UnEFd67WIkeAo9/IQWboO33LroheyqEppmiLdBurQTkogHaRMKsElpc2t05USUbpfnrOZ9tHz9lu7OYpNsrqG4q+0eerkh9P+FPq98aEEiwhxEjgMsJn7eI0oK57aeNu8nTmlN+oGNjkKNatXJz+MGk/4s2iqpVCVJui9GiVKaG0SFK39G1/93IF1wzTRxSUsZjrTiJGtcoeqd/dtl+oAAGI0EcUhyxC97GArRxmnq/cdX1/9vzK5QsA36EvbWm9carAexgqG+mE+dVFJlQRTRoOPVe6wiVNiz53bP3Jkw2A0SpoFdLOY5fg5sbdfQbaj29bKDwuNUuAkBzjCGDDzxMqfXHjPzL1FbceBDpFlSKarSZ3puhoAUJJDrgaMJxsmxWBKo5TKJgocveLQhqM3H724QJ4WruR2nOpz677M+XvoVbuU4Dg/ZzfDONjESTB7+6KHV943Z3ep+nXMsi9mCihlzLw6eCwNSKBena4C5u4tdYU/yEJGSFJmeNqJSw/f1HvFoTUWd7GObO23F9Sp8QKRyv1JHO7mZdpID8fH2vZ0Pt39WPv+5lM2Oa2Xbh2ozEAl6Hw4KQz525p6paa4BymArsDqtTYxbByyrQ89vP3K2fwLVjNS/VZTW5EVn8RwSZPgQR4mwvWfvfB/l51IIV6M4VCqso6qLMm/ukaoAqJCGR7A0LmwWq3OSeuqrHo+3bN5V5Up4ZApzHz56Ad7k/vpYAEuJWRG4hGplRrSOPyEJyhxwSPXfDpWiI7bjkux+vUDwZZXZdLV3qiOBGOcE5dQubAan+uJjko2WNrdaMfMzGOc6f0znzqxqT/zJuPMogm5+uGvmEVI0sO9vIDL+b+98a5Yvoi/E1D2VWfOVerNzDbkyN4WCZRxksx0dVJVjfVlnKWy1npyWGROT+cTp6/snbGTA5SpfPVTHEs8CxVhlCf4BW8SZ82P3vOBprFxBTJ9z4SuEUGypqdvkksKE0RDaBsYDKtuBVUZC7JFumn3um+TYmDGlm/tfs9wKsVMFjCPGcwnWvXMCXr5Iccp0Hns4q9d/Pcxxgl2Z35L9SMEVQLVa8LmwKEBVKWqXkhdL/xU4y8zpJBDjOBy7Nptnz68frC14mLWcgtRitgkeIl7mZ698J41X2s/VqgyOkGTJ6dYz37NUKV+WB0uEw6ZyukCL7etWQpIOszSXur3qeRRJZCecXDpP3X/pmtbzI5lSk1HrcVMpwREybGbcvHaP5tzQAY78r9OFfipmW6ApAlSQ3V1fXhSnIieM+rqoC7EyGxSHYSq4KZxr8BaBtp757+y5MHuX558d29nkiVAGZsUxzgYs+YsfMDS5Fpn+nRuRY0eZO9UkXCNEYRxI6G+R1pn/3xKSe2MZIjldVBfTtSpAocso0SL3XuXPAD7yAIuBZo4jyh7bzt2aULpm86yqFxOkDhgSKM/FT4HFNYLh9riq4LpBjTuDyBo5dbSzluiNvOohUuBEp1b2opnOECF2S5wPgs5FXnhq/l4a/XXi+W3oHrUlumo1NhUAlT/HpW6O1sJFcbo5JWuQKrFM0MK1dPV5+LUcDY5eOyanvlNrKSIRYkmYD99809f4jq95w0usAqpM7Fa/uHXVS+iU5czLTE29RkYM8I9WzmHH6Uyswp5LohHM6M+MzfQOUTvXZGZ2XlPvvbukxSqLYzxDk7zDK/dtPemCHYx2TfzzYu/suxxGSO4lGt79IMJe7+/BB6VYXmYcg4/zBdMfsvEzgRdNetqKKuactmaS5Q0o9FyMkGOPPHqslOJ9XTwCqcoQex016muvsvyn8wcL8fdSCSfGLILicGm3mS5KH4M1e+PtM8qjRUkMOrYz4LOlgkvUWkrHwgzysKQSzW8Me+1tFb8Wd2/6fWPH7ylzAauYqQGc4Qo0M8QMMJTnCJRW9OLEKPlaNury3615rslikrrQWG/SXkF5ccTQXgOi0qm8nnngnJKCZkPsRoPyiHI71ZwIy/8za+/dWpZ5RvL22it/mZTZX/rKUaYywJW0sQpXJpJ00QSF4tc64nl+261Il1bIkIlvfrPzh0FBUITAxg6lTMzX3k8aD6DM5SgRF2tM8nOWx96qEgUsDnD5dxW/ZYNiFPg5+ynnTgJWiiQpcQoRSqL9pWdYEXuvPW8XxWMrEjPU4LCf/P17CX0l9DKuVHBDM59Ve/tGlerV6pTMd7qkKD9gBONjbjL9sWOsJACRV5hlG7OUGAoO5QukCBFArBIDkbzxRYnMu2EEx2YB72XL/6V6i50O6zrRHBKN3EJ/RvrpvUITqRU42ySRhI6nTGpfMqz8KFbPmKV5j/qprIdP31hKDaETZzDPMsY++hiiNTwO76V6s/OzLcPLS22DS9InI6fwVr248s/V+jY+eFoftl96gSZi+YycA5S6bAyGPqr4P0G6zEYrgFXEC+nB+amVLskhy+616JAcujxfz+Q6WI2eSySpClxhhxJsrPBdnzZOrXYJUbPuue/vPY/rP9KibzCT8te1Au8zF6FU+HQlH6QkMtzBFwRBG392VXX/Wya2HPFA78bjd7GOgaxyLCF35KoXpMH4tVt7FGWkOAg/Thc/+8u+1JRkz7L6AHKuXOlsGQJ/btyatItB6z7U+96cwJAT5H0RN+7O0GUniVPfWM4upy5DJMgT45LGGAPUeJ0VH/sPsM4A5Q4iEsWG4fj6+0v6esgOuml9kifQt1GTwKAup3wQdIVwuRHdIJJvc6Et9Kpwa7dH9r6V0Mz5tHB48S5hrnkiXILh4ARRjnNMfrppQgkiRWSp7t2FFpH56/8blmRMdm6NxbT0KimJuySZkgApcLJxnQ1VYuawtcLZ70r5XURyvbT39h2e5IUZfYyTIlR3k07ZfIspcwjvEiMFNMPz3h5xisth+Kj8cHU6Wm7C01j86ftLNVqDLLDoNrcoLURmbc07ERkkq3vTjA5XP2JDZPxM8MJV5PTOPuu3He7TYRxcljM3VXKHJp/iiYgRxdL6aOJOGWyrf0rI4WFjy3ZXmScEpnRlp3jyg5rNeP2eq16fT06VO+aEJ0tE8qfmcmeDZAgdTedi0mE+ecjjM7c+bHBVc2H8h25GTP+sOLevnc9+6VTi4pxsMmSZhpNnMImSpYiMeemD625fwxXqz2oj7qSmvbuXEKYkACaqw6mh/PBMPNjk8CqN0VeexaVXxyspG5lIuTiPdeOdFlWNHdg4+Hrh9psorSQYoQiJRIjd17WubNgDDpoqt2AUQSvkoTzzSG3dgQrb71UHGMYQXCbwbYZ6HpHI8Sq9Ok4fWt6Lt9/a//awWaLGDY2Odbcu+GjlusY7ZnTZwbK9cyKeqQBANVOmUd18TcZQ1X+6uWk5qSZwFeefIORRHbeyKxDmw7fPNaVbc2z5Nnb1kfLTqBE6XXWBziIN5wEAIPmygyX69mOejtodONgBdyhD9uvOUoUKFBOleK7P9S7dtn9Cx9FfJVUPaq3HtkRrM6TlImYEhOUdXgdC85ITApCDkTWLGvQ20a7s/Ily1EsylUK1ZQZMxLQ6wvO8yGcDQxNJgRbOZONcQ0o9LAgCHid1TZlVvfVlbpKWLU9CqbFC9qGgnKlH98G8ehhSshMRK04iBiSwOhxoj9sncdRl4Dqcd0m0MHxmWrbzNw3iCuylN6piw1hbOA5rYnIT8FVmxG/ZRy3AupWa7fq1F+/rqCW9HPWWVsy7wmnwuf4BYxTRS9TADZYpgBssEwB2GCZArDBMgVgg2UKwAbLFIANlikAGyxTADZYpgBssEwB2GCZArDBMgVgg2UKwAbL/wXNnlN3BjlPPgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMy0wMy0wM1QxMToxNTo0NyswMTowMCEVgo8AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjMtMDMtMDNUMTE6MTU6NDcrMDE6MDBQSDozAAAAAElFTkSuQmCC");case"animalDeer":return t("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAQAAAAhxq+mAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AABt/SURBVHja7d15fJ1Vnfjxd5JmX5o23dI2dKEbNKWFtoBQCkqlgqIgDqIOjsvob15VHMcZnUHHGRWd+Tmi/vghxR1lURgFREWWFmxLC1balNqFLnShzZ62SdPs250/7k1ykzS5N7lJm/Q13/yT57nnPOc8n+d7zvme79ni1vlfiUXiz3YGRrqMOtsZiCxFdimRa74pZyjFo44YL1dmFGHj1p1FND2l1AmTZYfd2e2PzLHMRvtWmDtk6SYZG/r/CSVkqEmy2CURYw4jDXxDgQokuMSloXs7bODdHjdKi3dtfW72ENQ57elOcbFpjirhCTfb3/SfrzxwnnERYg+jOrBAxTWedaR11avKwUEbuNVTs0etNmOUOyuVDHqqdV4KpvtY0ZINmh0hw823u2S2b8rcGzH+sAFYqoJ/mbry8jzfMG4PqjzPMo/N9w3NDvHDbLmDnm6JOv7/1JXjbnVvtUJlXMYstzDessgfbNgALIPLLvJesoMZ36Q13iO5voj/pt7G3CHI7j4WWPB+H+Nyl+80nm0cNls6K8vUjBSADYySnWk6LDpmn8P8yHmfkGi/TdzpyAVDkG4cbbTJh2UlsjjhZDkWslLESmPYAKwllzHIZBzrWOFjH5SPh6jw00VDUIDJYZfAUSnO55pmqVBWhTzmSTgxUgA2MpYMZDORZr4/zU1Ybw9/59TQmDDpUHQCF3I1tXDsFB1loW8ZNgCbySAFGYzFXc7/MCo9xLOeuDqiQTEwyYZ9JVhEhhWHoLkVk2DWyQjxhw3AVpKCZmkao13hX6+3AI+obvNP44N11BDIeNh2CAukcn0J5GQIlgY5DRHiDxuA8TTTKqSBD0/yQSFD+gt2XTFk6SbK5dkGe3AZt4DcMYKlQXpz5HwPD0niJHUYw+SrZ9whGQ+yx7cvMbUjXKXdjmoZxJRz2cReXMU0X5AqJwdt0BYXIfaw6cqlUkE1VpK8Ug52eJM7UizoCLVZgTZku8RgGTVjqHeocAYLXGPdNxUyT6g5qUyOEHvYaGAGpZqPIccH5YBXOW7t0mBthGJbtH1aoY1V7ywYNC3MhRd3asQqC3hkgbk4CrvGRog9bACOhjdKu9wr4vWgbRiU3cxw91umnH+lO6sGrV88Wh4/OW4P+LJ7fBm8SonNMyPEHjYAJ8Nz21WH3avnFEkd1yUsk/xBF3MFpf1NoleZziuObw1dtZvrR9lFVoS4wwZgupn8rM7msHvZTAo2LEGp5nwmyiROTn1Uz20I1mV9Si5s6u55uZwVst+MEHfYACSf7Z58OOTKgqlcKLM4dNUGCfFIg6ymiE8s9Zyf+Jk/KO4z3HiZ/OaQii5358GyvmMOK4B5cvl8fdO/d3hAlpLs9tcUdgaKixPqfo1pjPjE7d44371+eGjekxEKfEqHDdApCTAqMHIAcjkHvOW4b4euZ7uce134lGOIg9Y2oXppfKQiXOMNPpv66YxP2GLaq72EatYmvCPZKRXwZqRxkWEFcLIbKXDbLg+E7nxUZrx1Mp5UFgIYEAj2XyfVRXhaCay42DckpfvakaBZ0g3RC37ofutU8b68boNWhwjYNn4kAeQ8V/GYrz/jBTDGvzBeQdOEXzskjVKqgobN5EgAM+HIMbnez4dNfqNHiA325Pkvd+2aZJZ3L+n2awn7dBngGgEAuch8vuypH9gBZruL2fZ7yx9kcZhyidKY0KrvWjAJqmpxMXq6548q5d7Ez8f9q0/5fGriim6/H2BLyNkwkgByjUnc5PBdDoC5vmVilpfdUsoWDmIeyyJ5ixOhrglTjeaaSl119gC53vMRi3nnmE++uxuq3Ur5We7I00BYYRSLHP9KcKTENHe7gF972gzlRZjJYpMPRX615mCHbzzTOdXl9xKWMU8uc5aF3DCd8geKrJ8cMa/DEuBo7+WkpY0NdyoCyb5qlZwbbAn67q4gzk27Qzp6emmFpKC3JJVMwi3HZifIj5NnpRvTV3aLu82fuSu+ObIXfFgCZLz3csjFNXWfD9WFXONunzZ75UpMdTn3Wf6stb0ayfUwYTRooSlk2YXkMFx3ESa43YQuMYv8F1v9YGlYP7w3GTburO6S62ZP7jG3ZcNdMz7sXSDdcstDv3/GUUXr/cPe3+09kGqMTJlSpBkb8uQImuN5wauTlAsOGIFCz3Oty1eeJuVKd2mt9Z6MMDfaCATIZLf4bWHzTA89+Nfr3eG8bhn/ltU2ftc3PVG/oX6Pw94M9vbS5JonVwWJ5k3BccWszQjpU4P9NrDAk+dZ3CPVXb6rus1VilaK5Atk2E0u6i4nrXeUFR6XdbmP9WgTy71gc2chrlJit7U22pnpFDd74isutNU3WTpty7tQ7Hm13OrR0XFfN7HL01r91BqOut6uG7t9sBEKEPZZw0S3+J64y7zD/NNgLlKhQo1KhcEexxbfsdemuSl34RFPNUh9i0vs9zyz/LeL5/ts0AfZIa/4lUL+3TcSWt8VNogw4gFSZo+d5FvmS6ZOdKWF5ulttKLKHmvsQI67jBPwT47+2l+9V6U/8jbPpiZ+zsIucSo9b49d633FugUuimj9jTCAUGinw1pHucaHfcCoVAtNdUGvFX2xYvNkYJN7uHbyi7Ot5z1+k+dfevQvHvN46y0JL6r8kU++J2rtG1EAodI+RUpItswNVrpQ3PU+2mecYj/w+ouuzVLN+/xqjrs6dLfI864zRVADr/O8x9skXGrpuQqw/bWPKGnvxn094Uu/7DP0A56p9HMF4mT63gW+2vFLmT945sT1Yzs/wC/8plHK5adpm3uXYWzG9CZTTEGdYs9FEXolY9Z/NtgLfot/CPvlec/UXD/2urA723hJP6cwjUCAQUkzS4GKza0O6mvkbLKP+qgypHYbILqOjOvCDJmd3uSbOSL3f8NlxAKEsSp2UyjS0KNu9l77vdu7XD/HES/O6GcehmlfODqZzAFFrw/Ks3bYzP9NaOvvJLoRDTAXfrZOpDl8kSXg5+xz/+J+WIBBGdEAx5jNg60ta2N+0o8dYVVycCizXzKiATKffb7/hEjD333LY9bw7164Oqq1SV1lhAOcYhZfc/KeoPt0QLLa49zrawvMHkDsEQ6Qi6lwU6EvRDGFo6u02uHnPmId/+wzszs8jf2TEdgT6S5veI63ejHHey2PyocHrf5JEdV+6mlrF7lygKmfAwAFnVSLfcnNicZZ6YYo4uzyVa6xnlz55gw47XMCIG/aqoS3eLdpuR+4J4oYT/olyYubZpzWyI5eRnwdGJRp3usGea+40/7o5g2mQEZJzIsnzhGAMCPoJL1+UVSh58H3iz0WQ/vNOQWQEhItOT+qsDN8nL+yvtL2mNI8pwAWs1xctEtyVvocy32koNuMhf7JOQSwXAl/l9eP5Q+Xu5g7G2Oarn4OATxEghULRFoaEy4rmOPiN/oRo7ucMwDbHORa2f0Zz2CeND58SOTpwr3JOQPwgBPcOf00o8Z9SaE6fp8bdf+lp5wzAHfyVtfc3M9Yj1JiYywLuc8RgPsV86k8l/Ur1g6v85m4xliWco/oMZFO2cpb3bIySn04KlW1Vz3JAb9eLtJ6uL7knAC4z3G+mGdFFGEr3Gd38N9WP/K1xCgnEfUmIw5gmwqV6rVo1qxVs8bg/K0VN0elf8/ZXecjMlXYqHKmpRFXw/UtIwZgmxIlSsOd9+nSpMowxnQ/mGZZVM8pYZ9fZUiVa+YgbGc2AgCeUOKIkuCU3SXeY7ELjJMebjFf5JNRPu0YR7kh4vKFaGXIAFYqcUy1ZnHiJUqUKEmSREkSjTLKKAnixXcUvDZtWkJFs0mTJvVqnAiuYLvIMre6QmK8mabIkixFsiQp0o3vx3SMOqrCl9AOO4DNiu1VEpyhnGOGDAFN6tSoVt0vkz/OeHkudK3r5DLfHHPMCy41jCF/GrtONx9GAI/aGSxqcyzzdlfK6xGkUY1TatSqV69Bs2YtocI4SpIUadJlGi2rfYxxvIUWmtdtPulwkUEDuM9OJcGi9mGXkWuuaSZIRqtGDerVq09uSK7PadQQKqatWrWG+CVIkCRJihRp0qTKMs7UGF3u3SWBUURaxHqGAe6zzTFWuNkqFlpmrhy6+UV6ekmiuTPYMopkMXqhuz0vVtloOyt83nVZVlghqwND+3eOO81VtHdOf2/gkjicAJ60Q4ly7vQfed7pytBrdhaQ06E7uyATSAxtH3C2Ae6xXkuWZW5329U+HgWs01/pRWOHBmQcccOiDnxFATe4z/Rc17puQOh6AzeUIAMEBrOuHSDAXQr4R3fPcLvzu73M8AbZMhzswFNe5iZ3X+GTfcAbniDrOHnWeyI7NKX51iyfiAre2QJ5epRVlIZ2njlbANsc5l1m3RrKarTwzjTI093dq5X1kwbRET8AgCUqWTXX+QIDgtdVQ/rTTvcGsq87XeOVwhuD2SkcEEBcMUtAXJcMx6aF/dHBgVuShTQ4FIsLfxAA1jJBYnavAAYH5OnCxQ5yf1RbmQwxwBzKlRVOjIRsMItzdH2bSLVkod3cm93PtUh9ywBq01xYvd49oWwGQn/h/0W+2/X/aH/p+yrS9cu02Th5EK3AAQHMsYCv+chOpR0Z7Aqqb5C9/T/UIOus4wHFA5mL37sMyA5crtXuF9gf8tX1VnT7Vxv2XpwHxwB62Al+dF6/llMPEUCyKNRUkRQQTR0YS1s9WCD3eJF/tTmarUzOAMBUqDg1JRAFqMFpq2MF+QuO+NZFwR3yzz7AFDhWMyUykuEB8hlvcEdC02Dr34ABJkNVfT8K7JkA2RvW/R7iF367vN9rMYcMYCKcaujoDQ8EX98hB88kb3Q/RT6Z58JBxxcbwNrGsNftLtHii0YPYwN5j3LeF1971RDgGzDAUVDXpHsrHMt/gwuy/epeO7jdn94RxU5sZxBgAjS2CAwavoGA7Atq8Oo+r/IpD1+pv3shnCGAkdrbgf/XX5P8dPHu92fusHqpRUOEb8AA2/d0Hip8g2GS77GZz/jeko5zEocdwPDeZs8QZ7tm/BX73Lekn/OmzxDA9lz2ZcYMJsj+433QQf4xuW0oTJfBAkg3XH2B7JRDNlhuZr9A9rdv84J1/JvfXzmAbSTOHMCAbmZMXyA7/9tgy/4ts7MttTjkGYlVD7uD3OgXPOauBYN2bNDQAIwjMIDie5ISn6q6dc1fr0kZa6H55vThlhxI3+aP/N5tUwa4jcQZARiA+MjdsZ6/NSjiNWuscadlJ276401/HJ1svjmmyeuzCoi+wJezX1Q7J5xdgAnxRKV14XJAHb84zxL7j5X85thvcE3jjQU3FMwj1SQTjZMtQ4oE8QKhOdOTTYga3zH1/CVzEGcfDBnA6BqNrqG2U2Tz+XLlCq7xPbiueJ1/lOvS+msOzT807zQTg3GBT0eFLxDlcWZnGWBwm/WEfulfnIA6r/Grzk0OJ5hgoRolikrKnjr2FEg0xXiZksRr1aReg/zXHyo3PqpiXA0Vqc6MDBDgSTg/p4cdGAnkBg08NL1bxz7DbLPR6IRK1c21h+sPN2sVECfBKE1KJ3DK+KiK8UkoHbzZL0MCsByWTu3VDuwpcQIabOI+Bb35hZNDBbu7/IFyTkVZC1ZDSWyLIYYYYMDrrJA1px92IGxQy4PT+r28L40yqvvo93Qzk06qH9YauMYJvjgpNL0oWjuw1svc78/9P+g2eO7mqdPo9/NecpWVXdI5SclgTmDrW/o9sF5ljf38P2+9WuC0f3q5s1YNP5g5gHGxVFqcqNF9IP64tap+stbxLqkFAZ6pItxPgPs8at8Y3/X3V8vv9jp9gzxqE1+3fSAHLafA8Zoe6a1TX++b9YFXuqR4ZjWwH0V4v4Lgcpqfylvu2i4FKnJBXsub7p5/eiMvgnQfA2wvqhu5x35vnpgeXhfXdDs7ZFgA3G+HEt7mn1030U0m99J8nA4pvG4PXxt1ctGAMpkI1Q269nte08JDKKqa3lkXH1PP1tEx7MMxBAD3B89/+Vu3TXClhbp7YSLr3xr+5KdLBzgumwg1jd1S2cgv7UZluG6egvIzpX9RAtzBtdbmWGqp+D7a2mJ/dqkpPUCuV8qXs6I6YqfXTNY3d3nmIRU8MEkptY06dXMYAixVwt/mWKUvXdvvVaWq3zTtpm6hqm3ix9ZeFtSkAUjnGGBnyodg42SlHX7J4G8nOYNmdFQAi+Hdc/Q+hNnkt3ax1WtZH1/Sw8W1Tl2z78yIYZvN4AlxbV0+2X5eVj9VAcnhffIaqEjpXwJDC/AYc6VN7LXBeNWfVHKHRN9ZajLditqr3OX1RTFkMp6OMcD2T1dIQUg3s1PDdLOKYm0ZA0toaACeZFbwpPOe+lfqd8r4b9/VYNsCV/YI9SK7/MeCmOYldw6itqdcpI4144P6NmV0GNrqM2pGRwGwVTlXJsg9Db7H7eGoj1mLu5Nc16P4HnSEf0ttXRIpmcgSCNfsCtibrYo4c8aF/VLL8e4nBQ+lROyJNEJ28mn6F4/YwyoLE9a+3QwebrJf9/7IFnZ44tJB6xe0P/cYvDFaOUuZGpaveiqdMSswCoDNkJnUA982h/mA+y+qvM0cC3jNM3/qgbmRUwZnu4i48G5cFUVaM0MnDp8K+2QNVA/mYsKYAbZAamKPjvwWnvToVa6SjTzj+U65gh694MFYHN4+AtP51GqKSTebI17eHpZiEzUGbDANAcBWSEnohm+vCu7LdVFHuEWs9dSWbu6EuEHZYC8VympUdnyeGspIDa452loYlmIz9YO5HjhmgO3DR139IAW87IXwnsUck/heuT8J179E0kPVQAwSZw4PBxzueG4tFaRKkcMf6xWH7p/Qyr7M4QSwDUbFd8FX6jCrR3ebc7eAtR4q0BQWMonRXc/1HZhMYb/Cgx3loJ6qYFORyRGqQik2QcOZ3BAsOg2Mj+vSOOylxbPndbOB5sjj+1Vd6sE0xodO+o1JJsCWYu3a3UJDsKCmURJ09wcEghVO85ncljO6tAJd29aDPO14zx3D83nZQwWaO0JmkC67vyd99JTRcOBERzlooyWY+RSOUxfK3XAFGFrwE8x8hXIeHnuavfdmyuMHVTZ3vOhomF4dczYTjeWVptDqvEoBDmaKQzKN6us7cnemJcpGJLwOLEJvO9/ms8n3t6kPhc2G808OQkbTKaWmE1OgHS1qmsLyN8wAtmPsLMRvslPp6V3zM03nx7UKQmHHSeNtJwahFuwsqoHgZ5kZHKULrhdoDscXfyYxRl1dBDpAlvKqbse6d0o+W/1wm5bQK+UwnxMxZzSRGhpDHyZoX3YAbGgHOAqSB29nrEEA2EYXO7DcKX47rteZn9Pk8WCtbaHwuVxKWcwZTaBBR/OUQFIwb/HQ1BpKLX74AeychxUsIsXw8qQ+YuSzyUPbQubzFFItKY6UTESJC33LDk0L7cEWdLa2hnI3Rjzzqgdxd7aYAbYS5vMNKONN5RP6iBFsi0/aLSBgimQ+9KZYG5K2UP8sCDCJrKDZHA8tbR1GVhLpoR788ALYnvXj7BJh7+98NnnytdALzeImMZ3ZEcpHCqNCuUhlTNDV1g6wPX8pZIvhdIZBB9gC6YkdRfgkByM5qGbKZXVFaM/nC5ju2t0xZrSFtHaApDCWhvYf29o67ISUDrTDBGATZCWGivAJDbycHdHjm89aO/8iICBPFreXxHj+ZROZJIaKaio5QYAJhAacOvo+k/X7lMMhBFhPvLGptHtBKInsX54qldX7Q9N+FvI3lmyKSS+ayQo6SkNFeFwQYOd4SVA3xzJLzDXuIAKsI5e0UPbqiWr6bJoZPMVRkC+Tb1d6NAaEjYwmubMODAEMN2MEjexs44YRwGpmCFl9gWCBronG3zuLYr/+S6ghuYrlttQY+OlFTYymfWghnQTja/VshcfA7NgN90ECWK+Qd8TLDTdUk6Lx0o+HktqQZsz2Hha7aecAs9niFBeMkhV6XhpMrNe+dr7T/zPVGP6+yObhAbAEbpzWESwLZkTjXamFycHx2YCAaXJZdWyA5kwzZCR1FNR0mFwrZF0ndjo7Ei3h/e7YGRwzPtsA97LQRXO1f9+J4rm6NApLP9jJb+l4MRo7vMj9l+DQVtCBG2gHOKlOaLr74olhzo5LXMCqhpgtz0EBWMwywqd1pDIhGh/zaLk8eNKGUMMRkMZE/qxuANkMDizEdXyO0VJYUu1EaPZqfQe+gIAspovpvMJBAziK+mBvpH3UtYmT0elRPmv953aPahQQkM9y9x2Ieyw4r6Bfcgqmjw7TszncYtxOuTJZfdAanU63NlrM3Cz2HnjMAHPZqGFthwYe1cwvpkc17jrHhXzRZdWhF5nlUlbZXjdlfb+zWQpXtE8vCdmWky0rkSyfB3zlNQ/YE8K7SFKGl9oueDLo/D2bABewz4dKPR36tjt5QUG09dhbvZM/27IjFHupm8QvcH9Zv82ZBrIlpOjUsnQJXHpMq0vk81Urjq3bFtLO0W6TOtl28zedbYC5ruYJtxeGbPv5XOvbe70U5ePHwq4THRo8xdXc6Or+mjPZVCmvDGuSCrXyy4nqcLXreMErJR1u3PH+Rlqib1WETPmzBpB82bS1f/lZFvE5X/pLlBnLksvDp+zoePV50vlQUT97q7nw/b840FGIJ0vjG2VpjzqF2fJ4ulVhh2M/3XKuN+f1sw2wRhVvSw/5XwIuNY+vWxitDuWz1mMv2RoaXj8aNqYbveTIZ7VXfueRjs7cldxoe1PalvZ0Ntm+IawtzoMP7R/igaaIAMvg0vB9by+VyO0Hg1PMIsocU7jNTzb7sZ97xB80brV6dr9n8OUbXeYKbz+mKITkQrcyy5d2K0euND5f4ZHQLIVKWyWSNtTO1bh1EQIc9AyvTV/49s4oNtl1zJTFTZdHmcjTDnOpZeZJc9jqjOK3D2DGarOX7Zyg7JqwKU0bvFZl1oLjy7HPGlZ6XHqCZG0aTvqR1XMPRXPe4cAl4SMRAqTYq7mt6saJYScAjrIvzUuBg9HuyTLHBE1Fda+0/c4TXrzw1LIBnZOUIMHeWotr5waXi8Uhzc4UL7ftzUeO0Q4e8JiCwJ7mnS2v+D9+ObdqgaGdLx1RA9liM9viFr0jbPvWJxz/jZvfb1y/EqvVLCum+W6/VvYOz1wcdorhQ6p+6YMfCi3hKbVTcagPMlv+oO4YfXqJYiJTvp1qbwg8/czFE5xvklpvqB/QerTYp34vUPas/9r2BebKUqdMQpczkiaZJHiKWPwZmicdBcAU7/L7ktpL3Fi+qvwdYLeNVs88g3Ph22WuQnv+mW2rtrWXzOeszpXTJVTCGVurGVURhgYH7VTBWMsUKmCm/AGtvIxdXrCHcZaZqcyfHBjvYoO7uXZ/JEqAQTnqsBLp5so9C9rXKWX2KnFSmknmnqXP2C79Avi/0lPOkTPWz578D1S7roqTTuNVAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIzLTAzLTAzVDExOjE1OjQ3KzAxOjAwIRWCjwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMy0wMy0wM1QxMToxNTo0NyswMTowMFBIOjMAAAAASUVORK5CYII=");case"animalMountainLion":return t("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAQAAAAhxq+mAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AABkjSURBVHja7Z15fFTluce/M9kmG9lXEgiENQQDgiCLuIBLFVr01kq91rba2l602lpt6+39qLftbW1vvdbee3GvXpcKaN3ABaGsURZBCGExJAhJgOyTbbJn5tw/3nNmzjkzk0zmnDBQ8stHOfOe854573fe8y7P+7zva9nKiIzIGuoHON81AtCgRgAa1AhAgxoBaFAjAA1qBKBBjQA0qBGABjUCcEhyRulDRgAGrMYZW55/uvvt7eUr1KGWraF+rvNErvA1JfYCcbyiKOWgEj6SAwPUm3vsBRAGwOHve8JHAAag2nlv7WiYCXAvAFXXec6Fh/rhQqG+2PpLohuTDwVybcPFR+8ovVsc38MEAFyRnvMXHMDqJUfvFNVA6oHpqwqeG+javrgDP93zqDi2cieLEEVf4jHPNRcYwP0PfvoH5bhxxpZnS+++8nvpe8Xnujll37I6Mz+pne+MLL81ui7v/YpvOHLEuau5jlzgcwDS9nrueEHVwmW3bXoFIIp82qmWQ7+2uHxFw6yOrM4s37HmciPjAajmQVzAzZekuxFeQDmwsUjgm8ldpAA7eIp+4N2/+49TxLXMdn86hAsoeD5dlQMvIIBH7wDI4yH582WM51Fa3edTmQs0kUQkC+llO4uYqLnDBgAmrFGHXTAAa+cfvBfgW6qw0TzGBj6niAUkkaSLMVH3WeIMALmb1KEXDMDjNwEsZromNIVbuTXAO1hIxg44cuJOeUIvmIZ03aUAlxu6Rz8AYb3qsAsGoK0JoN3AHSppA8J6o+vVoRcMwM50gISg4zfwCABTn9eGXzAAWycAZAYbm6foBCyu6U9pz1wgADszu1MhklFBxt+A6Dh/9Wp9D/qCAOiM3P8gwEyD9wnrVte/Qv/wADuyj9y5puTA/QDXBH2Xa8kCnLZ9D+nPhH3nLCfIFeHIdcaEd/UmYLH2D/e31c5/e1vFiu5UgCu5Iej72MhhO9A4I7U06aj6zFkxJnRmnVlYcUvDxUlHHLlNF3nCIzpiz4R1xZ6Jrg/rtdm/vDH2VEydM6p5akd2QkViWeyZce/FV8WfDP57G2au3YcFYCLLuNRgKl5hHRB7ekWRaBKdBYDtYw+tLL/FFd4xOvh7jDqRWtKdlLFn0l9TDwwt5qnF724CiOYBXf8jOPXxADXA9cvHvesJHTaAfXF1cz/5Y+MMfXgYSfTTSjR99A3pjramjF0T18aeTt1vsw98pSOnfnb11YdWiu/7PWNMStPrvA0Urrr8bk/YsPSFG2cc+EnZ7Z7PsUxnPuM4RSpjVdd100wvdtqowcFl9NFKODkkUcsZKjhBIw2eq1Mqb6i8ASChIn1fQsXkV8puc9omvZpUFtYN0B9Tf0nZbb2jmqY3T1XiJPAwuaalS/ThrE51mOk5sHpJ6Y9OfNWD7g4KSDFwvzoqiWUXB6nxe01MTVRr6wSXV2aYx+2Gvluv/6AEuORXcx7xhJkKsHbe3l9Wuqu6yUxnsYkJaOcYO7Fzgo5Brkwmn2wWanK7GfoebcB3M2PqPGGmvcLV15SuPPE1cTyKeVwuj2CZp3hmMQuAGr7kINsoIp2j1MhlaST5TGEsY8gx+ZsVCVNEdKM6zBSArROKnzi5VBxHcxOLvIyT5iqLLBbwL+7PzXSSKQ96D58OIwFxpyyaMtAUgKUrBb4wruV60oc5Id5KGuYfTEi0XSa/og01AeDnPxfG8ltZTPxZSEhodJIDgK2xcJU23DDAHU8KfDNYHuo0Dqt2AzBxjd6cYBDgwR8JfBfzzVCncJi1DYD8v+nDDVljqpfs+DPAYn5hepPhXJPwrDz8g45sbbgBa0zrhHe2uiJhGj8NderOivYD9sLw7pzN6tCgc6Bk/eDtvliIZmWoU3ZWdB3/BEBPojY8aIC7fmcvBPg30kKdtrOkVMDbSzpIgNVLPv8ZwH1e4/f/uNoFQIyuSx5kLXzmCoBFLAh1qkxUHR/j4hr0TlqNbGA7hZQAkLdeezYogJ0ZpSvB6Dj/uaU6fk4nsIs/Eqs58wTlwA4AFjyQsUcbTwewJ7Fm4RfftjVNei17h/8vq1nYkwRzTbHznivaQCcATTzARbRzLUXAYd6h3H3NxY/NeFwfTwOw/pKP3mwfA3D4B2PfX7rU35fVzwFIDnWaTdVJ91ETW4C9RNOLYje48nstUya95mtQQQWw6aI3VNmz8oaNr139z76/rOw2gPmhTrOpms8hoOC5lkln5JKpSz4T4ZjzSMEL/uKpAO77BUAkd3OCd4Bjt4Z3XHmXd5SWSR3ZkMXkUKfZRDXxGgBW541X2KcdvSO8q+LmlkkQU1PwwtQXR33pP6bbIt2T9Lwd4DHygNW8A0DREwvv9470rKMvFl7GFup0m6Y1/A0I6755TkqpEtY7Kqxb68rmS+52oBjktsl92hWIuSQlPyn5sT5KZ4YYq20Y7N7njTr4GIAblnnwQWTb4PhUANtzlY8SEhLf5koAip+oXqKNcmilfRqMMXG0K9T6Le1A3nqt825gcgOsWQhwqYwP4C65mfLexvpL1FF6EwDmyFdKoU69YZXKDRW9qTQwuQE6cgHi5E8CzfeJAWDdRw7VOE1rPsA49+fzHeSbACy6Z+yHwcR2A+xKBwh345CAVH5FONCd/Ml/eaKI8dcwL3DnJ8j9CF+hrOLg4uuMCS4VBAmJLB4EoOLm8luUaxpmAYxzozq/QQoT8+UrU0uCi+8GKFynu1XwBIRCbgJg5+9F2dc8tSsNshklX9V9XoMs5RgQXzXx9WDv4AaYtw6ghH5NwiUklpMDtI8V1YzwNc6Qr+nhO/ToUPkDee6hbOBJAGb/JqrFMMCMPRm7oIbN7sQqybZSBEDdHICeBIAYGUc3+M2D3tjONZAf0wbY7GOCqj50AGHm4wDv0KzBB5LcnDmzCEA4LFrkK5qB5kHQnbsgxZzB677u7fkcFMD8N0dvgXb+rsMnyb3e05d3jIa+OIAo+bySA9Wv/GAgz51S8jQAo7cauYemFp79G4DPdfgkrMwFsBy4HyqvByiSz7cALT7gBVYqhhZkMwAxNca+WAMwZ3PmTjhFsa4UVGzPB+6vXtI2HpAHkiTagLYB4EkDYA01SAEwtsbYXXTtQNGd+RAn2te4gMsAOH6zmGhySj7XBrR75djBcqF5IO0BXONPwt4XYWT6nDfAya+m7YPTfOEF5SoADt8l/JMd7maMUgZqEy75OR4ofw4dpJ0fGkAoWs7x1UHfwBdAyHsfYIcqceIvT7bOqCsR4TXcO2DeC+R4qGWmov3yf8GokvcBKHjWZIBTXwjvhN2c9Mo/YqKUmPVYI59rBVrxlfeGH6TEM8AAxuIB9SF9QMbugQbPggIYXyXs/9s1+Q8k2dQqesJKuSfagb7wSUFCbQgYZA/ipwxGp9kMWJyL7jGGz6dnwqRXAbZRpXuJYykCulMAyuRk9ICqKzcYvsFBNnAv9QHmyCiSgNMBVjdaCQt03nr1+humAczYM/1/AfZoQEhIsou3tR9q5D6zUgbqsQ2Mzz/II8CRQdEpn/qBZuwMpd4WEias6UGZUAcFCBNXg7pBrfzlA8IeOBorEhKdQGdAqAIDWQ484zZoDAZStEZV6zAFCLJPnjITXYdh+QSYVZz1CTRQpktqqnvGd4qMrxVPDgwenye2cH06TmCVjRiVOaz59kBAlnIGyPokWBvgoACV/uEmrxfS49vleUCnn9c3mHwo1jQ4wuDlpQRMAuBjXH7B+QJZxX8CUPSEcXx+Aea9B3CQozoYnfL5UUhI8oP3DoJtKCDFlPwTAZSXIKFMiasYFJz681qcQHxlMGNwAQPM2HPpvwIc0UGIls/HIyG5nR+6AsIWCEgxVF/nA5kvkJmyK9p2P4h9fT7MHgDp+uWRrZggvw6W4iXeTocm8Yvk+UAuzYN1DgnbQCAjAGgdIO9p488FYBO78f+iaz+/CMCs3w119rE/+fUPzNyZt+7ksl4qNE5s8xjHTsJYhIRsWwUcfmcKWZCGEGKRy9heUIV5jtShjVSwCcV14A2mEu91DV6ftlAFRLZNG3DhRVMAQtr+k8tgN4XuEAkLGSx3J0tZCdOBxFBlGSCOxSc+z/WrVeiEzrCJG3W4vEEe5RkArvihkYUEAgY49YWD9/YkllBBvjuvaaU8YuugANvZyhU+V23RIhJYIuQwPb4qtlCDizJV/Pgq4dGY7Bee5/gz+cg+FdM0AMD4qsKn9j0EO+X1G/1HbhkEYDdbWQ8sGzDfiTsBJHGEWOJIoYto2tjAZmIJR93uja+KcBSuSj6cVfzq8fYxUMZlA8IDiQMAzP61GT2QAADC5Ff2P+CK+IwF5Pk8H4YVF9A0IJaX2A3kk666yl9JKEwDSkstDgf51NKBGP9TlHC8cNUMt6/ENSv+9ilsYxGTBsyFp6kBko5OXxVTax7AAWcqRTf2JtbOgzi/kxm20QdEybWhL61nKwDNVDF/UJ/2N1C3LXqBZtXSFKNOTHx93i8K/jL/waxPPVfFnepNrLsUupijQqY/giZK6aQ7LbwrZ4t5AAdJ0ZiPDtwPVbj8lIIxdCLabb5VxQcAJB+yFzZR7uWWrs+JRVQBMHpLT3J3iiMnor0vHsa/NX1VQoUzMrHc97cUvHDwXsn6GS0k4K/iaeO9YfFoHARgVrG13xV+jAb3MJJF82+M/HDNJPqMfxyACWuF71e0X9BKUmexDrA1Lb8KoDvV1lg7L7FssGVOkg8lHG+ZCJ2M8lODw0b2AGE9M/9gZgk46Eyl8K5Jr4G6c6X9UyZYH/F5tleeJFrwXFw1qE2v/v7E2oYZYlIQtkbI3DkYPoDeUQA2/PdyRNEw/X/mPmxmCRjAVK+cTQDH/CRYMS7s8Xn2OA1A+me5m4Tr0olBAW4VyQw6j/jv5QiAwTqxGQCYXQyw32fiu/hCvipeDnFp/hXrfk97DiLbwJftWv8nfAWG3s3qzFA/hS+QYvZR3dyh3tkwwPiTE9cAPCN38V2q5L7sts7M9IlDlJOOHJCsgC62918frUBYb+yZoSVC+Mymoe9vq0EKs+vUv5x1gDDnkbAecPIS5aqHc7HebQuOpHCAEk0Kg6xPQPRYfOVU5V8B3DXk+XuuCPD4zOLnxwEI6wkBwMSypdcDNPE8u6ihiWoOslauIADSfeatMo4DNvu0pyGrOO4UHBmkGhE9DfVeCYFJ5G+L3/uCJDc31BtZmKOAfu2czdcv3/JsVzry9BuPJr9cdjuMR21xUxo6OwGY83DcKYhqSf/MkQOVfpo7QsJU1jvktVOSj1j7XeE19GsW31G3AlupByIcCRVmAwxwwvW4d1cUeddg055pnQgw2cev3s5BwNaU/5aSSEBTCHj/iTHutCCcDYTHzmm/+U90PcZ8ZDa+IcwXjqm96bLqJUfvaJreFxfdGF+Ztz6ruDd+7eeQJedASdNbEX2t7O3KDO/8N/f+Ek747dMA8hCBen3IQCVeTSuSH3NFJQBTXg4hQIDcTdpxhN2/BrWLr5AAKQrt5MNKaOqBtH0Ns85QLY+l6fs0AAvYhnbHooABRigAFWlBil9Ru/qpOTK0box47G6fL45o0WVv91ydWAHQ4Of1dSHJLreB7XWklRjhbfNz72oagJRS80tAgwBFo6BL5SGo/LVQAcSeVpebwvCZOEAZKMypcUE4nAkXjaP4LgHFD6OeSHiOACx4LqoZ8GrVKTtvpO0P7/JcnVgGYlcY/dXKn2iWh3cO9TmUSRoVfn6YNgBGm2jEMgngoZU9SQC7vV5HYZSKq1JfLdZ99B5F9oAU/dVg5mxk77D2Q7lqlos3wBgTHDlMBuhZhEb/yCLjadd6bM8DMcPEXykoWtDBmBKsff7sPS4k+b7mGxIMAxQTpLKY7VWBiMUXxr+lvlos25WPvx7xSSQgc2fs6WCeRfSfW3wWECKRTtN7IYYBtkwCSCFW99jCZ2fSa1rnndp5ADk+X14JSfaaj68M7lnEugaNPn8a4VV2aFgW+TIA0F4othmL83pgsUS+tjbtSXSFg012i/N+zexsBJScNHSJfHvCJ0DhMCJZgrvzsAEsv0WyQhyzvB5YtM7FFgCKRAnovxGziyYgpTS4eeMwbh3Apzh93Hs4t6wwcO/2sQBX+YAiBm+0JaBYXTzVTxOmHWFnn/NIwvHgnibzU2EyO+mjhBXPYxmWGTwGAArvJl+NV5EDnZpVUcRqW3rDq8ud/8qBmFojLmdiNmmujxJWdOSCzdsDy8AaqtY+gFi8f1gHoJ1EVT+7ZiGkk4fvbCDsnOPeC37ekNPmioBwTX9YqIJuIKV0eNqBBgD2xYNn5rA3QLUH8rFbAfLAD0ARw3sL+MAlJoLH+7i/WH9X9FXMlwGAEQ6Afq9HFp7TtsZRJzxhtQsApuGvGBIjl7ZGgpbYM1g4d6gtPJXsAyD/zWGgh6EyMHsb+Gr7i4acMKAqkuTv8a4+XKpSUwr653TkiDJ2ute9RVN0xuPBmGmHG2CxzQ7lXv6p4hfP3KW5WBL/892IdsjQgzEjCIkVDSeQ7/Vzimbl2A+GB58hgLbGzE/B25AuGg3aOk80qv3Z6xS/vaGPxynKKrbZoYIDXvcWtZK53ggmAYS2PBAe++rcJSho9zwQLrUbfXhTS0jMkD0QpaA3ZIg7JWbbvy8PnXrytyhW/bklhRigWEkmUoUCJHnc7bBm5cGs4lFfQjvVPgHu5UsgrNdIS+2iJ5MPgUNnWmvHBUQ3WIe2fdPZAhjdANCBtnQTPtUOzU5QEY5F9wIcwPewN8Co48H2QgAsrst+DPqGvfAe60rrjw7+zsMGsDNL7NmVpsl/buORrk2XVWxrgi/dtbYapHBZDmS1voEkmk16g62wxFRdu/WZp7ue7ir+U4PR/SHNA1i6UrJCvpdHgGg/C2O/R5GtY98HfL7EotVmLzCWFPGTKQ4eSikolp378O3DdzltTlvJfWs/3/2bbhN3qjIA0OIC9ZickqdETdDn5V8g7CXlXi+v4sVldNBHWBJbdPfP87pu7y9Xl5iH0ADACWvBM83L80qKLYH6YvXXZxVH10OFvJiAd1vNaGc/vDOlFPrdK4qIv3HczhSmsIh7+IHsYtwxesPacwBg8uHwLrDTh9aRTIyHeHfLYmov+m8QzpraqkRs0bHl+dNXGktM7kbwtg+NZwUruIo0svk63wLg1FV7Hg05QGWkvwmtQ6OYAHjk+3v/TX+92JPyIDW6136GvKh3qUGju+hc1vvo66grla8A8Nkj+rVhQwBQbn/ocCTJteruX6/TOfOklE59EbzzSDJi0fTmKcYSI0yqp3Q1sX6YaS6itjqxPOQAUw6BMpytBrlE7llUXVusm9Q89QVQprOqX+RUsgB74fGvG3keW1Pux9DltVyG3nwhr8Jk6LtMASh6uC5dmQYS18sbZRxa2aXZryXrk+h6qKHSqyYuAmDnY96Vz1BU8DzA1gEBKoNe+oZWCACKRmk26pdYORb9W2ekWPfSIzFsftCrIplIMtCaf2qxkSfKLo5uEMtI1vnxUpDoRrSXzLHQGDCo1s+uvAEiyESZW6mdnyayUu288W+rY+Wt3/MoHHe7uSmOaFYWsA746M0VRcG7ocXUzPv55r/ALnYBVixEEoUEdNNDGBE43VPHJv3VDIAGcqAoQ6a4Zw3rc6GYfa7vhabtE5vL/l2e9OCJl0sC4Ip4b0PLRABHTvmKXb+1FwbwKCpNfVH0eABcOOmihVZa6QGcdLvxTVibti/EAEXXKR5t+ef5JAaKvF2FprwU1QJtskOvJ2Y4ol3hyH1jb/U1H7z7f9Ufv77voddL3900tNd66dKbFhY+lfSFPwtMRHtqycV/mP8zM/AZ2l94z79/9jCkk+HOR9CPk3566aJD/q2XXTdmgz7myaXvrwO41j0LVBnDqOQ9n981/8GZjzPkcV1nJNbe+L54i0uy2OyRbc6o/mhrnxjLMUsGAHZmri7pGmQr14TjtxRF+NhPufhPJfcB3ESWxmfaQg1vyb7SsYwmki9lr8GU0kU/yt7GOSdDO1wfuXPb0/7N8NH1Yz6avipjt69zknV1iSjdvuHel04BaecQTVzEaKIBB5tR/I1uvFztMnxuyOAW4faC8m/2R1tcWKx9FhdSYrm1J6IzsjW6Ifa0mB/nTy2TV5c4oyCGW4jG3yRpcXyMbXQDyUduKRL7npw7Mn2T+sBln7ZmvysC0rhZ/UA+jqCF13ECy74yHHM9jGg4HZcGUfLhpTcANLgny4K/tYoSuRowbm4wXyEECLkbF38XYK9sxZYGADmaWODkMsdw7UAfpEIKEKa8NOEN8NhnhHyBtMnrdmm9DkOvEANUVtE9iljOXhoApFj4xBwTgHkyYZN6Y8rdVPRkyX2wkSisRBBGOGGIlbmcOHEB/VhRZvwG7/4xPAo5QBj/Vsl90EMgc6EnvBF9ju3GZmCLcLMUX5lY0ZnpCGCXtfFvXfTn+KrBrzubCmE7UKvulJ5EV2RfrDOqP8YZZXGBZA3rCeu19iGFd7kiLP2xNcPnIhS8zoFXWMjWFMw84dAr5LXw+a4RgAY1AtCgRgAa1AhAgxoBaFAjAA1qBKBBjQA0qBGABjUC0KBGABrUCECDGgFoUP8P1krjZSV1me4AAAAldEVYdGRhdGU6Y3JlYXRlADIwMjMtMDMtMDNUMTE6MTU6NDgrMDE6MDDXXfJmAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIzLTAzLTAzVDExOjE1OjQ4KzAxOjAwpgBK2gAAAABJRU5ErkJggg==");case"animalPig":return t(Mu);case"animalSnake":return t(Iu);case"animalWolf":return t("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAQAAAAhxq+mAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QA/4ePzL8AABvsSURBVHja7Z13fBTXtce/q7LqqCChgkECIzCwgDDI3cgYjFtw3BLHiRPH7ZMIf/KJX9oniZNPkpcXv+Z8kpcXe5OXxIlL4hrHce8GDJhiTFsQIEBCHfXeV/v+ODO7M7szu7NaCWGhoz80M3vPnbm/Ofecc889945tI1MUCUVN9AN82mkKwAhpCsAIaQrACGkKwAhpCsAI6WwD0DbWFZ5FAB758t+3PTKy6dGWJWNZq23jRLfrtNDgtI/+w1Wqnn1+RdYn4XC3LHGVukodTodz+gH/384SADc9KvDZ8ADhQNg5d893VOgdzosejGvT/x791Ylu22mgEzdtexjgFr7GCMcBT3TOjtie0JztC/Z+yye5jcX2zrwP9SXOCh0oENzMbeRyL1cBh+7d+dPQfO3z931TeK/nPzU1aeksALDu8uqrYCFfUM7XKVA0rQjO17Zw3wMC2AbuZA5xQPc5Q0n6UmcBgEe+ArDKe57PZwFwlXbMM+eqXb3zZwLfN7gCADsA7nh9uZiJbt54U/XaQ/cCCghCX6KenRy6J2qwZIMRT+V6V+nJa+X4QZYB0EIXAHHt+rKTXgJFiu4kWndV7cbNRf7l+zM3PfraywLfJfxUgQ8aAcj70ObWl5/kALrjTtwMsMbv+lJuA+DZPf5u9Y5/VQ3F53mARd7rrQAk1fjfYZJ34bJ7ABzEB/yyjmcBcJW640/cNJCauX/Gzvl/G04U+G7hRuJ05Y8BkL3Tv55J7kg/faDVAd/iIoPfavkL+wy5buSLAdd+QhlwU0neZv31Sd2Fm5a3OmCOIXwwU9GE/rTOAL4hygDIcPn/Mqm6cFd+2d1V65qLxNVIqUw7BmAeOyjm67zNOi4kkSqO8Xvgam4wKFkLQObe+Fb/XyYFgIPTTl53/Jb2BXqD0FXQVQD46TI9XcmVylE++VxBDfmG5foBiO0O/OU0ADic0JM3lAwxfe54t90TFTUc253Q5D8oH23d1esqPyOenhmts1oZ0SbwBaNxBLAv68RN5be3Lu7LMnzYwewd5/258JmYvvBr7prdPh9by9KT19bo/JMsVrOMAmIBaKIBO+eOSROzAai/zBvO8dK4WOGhpIobXaX1l1op63Au+1VaebAS/dObi5qL6la1LWifbxZRvpQLyWP2OLRFpXvoAu7Jim/WXx9rCbQdu9VVWrtae8lOOvHAIHZisOGmn07UWJKr1FW68M8O54xd/lUNpNVf3rii6tpTFwS7YTHnc4XfOGM8KI0uoDfHH8AxlEBP1ObfasM907iAS5nFNMPSw5SzkQ+850m1aeVRw3Lsju3NbS80n7/IJBcb+RQxj4Rxh07oq/QC96XZO8YFwP7pO37uAy+OBazjAgt8fbzLkyHKpFBAAQvJI3fs54Qs0+cBuD/gAcagC/dn+saPUMg6SizzJrCe69jI21QE/JbEecxlOfMs1zaelEQPMJDmH42JGMDaK1ylx+T1sJx1rAi7hmjWsIZW6hnxXkknZwKlzYhyOA50FPrr6ggBVCdr4HquUYz96CiDjInEJyRJNNDfhEQEYNvC/d8Q+C5kHWM62XoGkrh/No//9VHPym169L2/NBYDrOfrEcnep4MGcQExvee8r78+KgDd9g//V+2693DzRLfttJCND4D6y/uyC17TXd8YdlUd5+79tsB3NbeSOtEtO03kUWLYsCFGG9YPWwe2Lj5wv8C3ni9PdKtOIw0o/x1O/axImAHV4UQVvrvPKvggnm8D4Cod0QldmABufVjge4BrJrpFp5k8/FI5qlulvR4WgAPp6iThJRPdntNO9cp/h1Nvh8MCcPsvAC7k+oluzQRQHrcAgXPJYQDYcLHIn/UI72SiNv6uHHWcq70eBoAC3zWTfsxhTP3Kf4fz3L9rr4cB4JEvA9w90S2ZIMpVvI6ePP11ywB6osMqPglJ5u8qPuu2a69aRqTpfIA5E92KCSM3m5Sj6CHtdcsjkfrLAM6b6HZMEFXyPeXI4dTPy1mXwOVw9krg28p/h/PSb+t/sSiBnigxIQsmuiUTQjuoBuD6Gwpe8f/NIoCV6wGWngVxPz21sIVpOJWzmR8ElrAI4NnpQregTcp3OEedG9M5t+pqyLY0UTmZqMl75HBe8j0j+CwC2LYAIM9K0UlFicr/z67xD+T7yJIVllSNxRPdntNOs5VsrYRm8zKTHsAORpH+5aW5ADQGmey2AOBQSuNKgHw8oQufcZRKLa5RcxcAELgYwkcWAKy9AmAF0YBH+YvkrZ5umoedp2gdFa/AMxITqkRQOn4z4GeBW7xQfhpoPut4nPdxh80pU0nB1nVaALCjECBHA5mbdu+vnw4gZ7CBRh7ikzCfVAYO+hCqniy4Ma2LAc7xnns4TDoe9BsQqA92ZqUE+SiOL3CI53mHKznfckJmAQAty8xLhASw/rKBNJhLogaiw9wIGIN2JgO5iO/zHn/nNVawnHPoYyeVtLOK5SYc4v4VPh0BgDKIW6u5MkwnNjwaiD49QMZxHavYxHbeJ5kjytWtXMtdBqX7+AcADqd5jSEBPHkdwAUa3XGMLBOIPh1AJnM913CY7V4A4Q16WMd8v5IfAzD3H0l15rWFMCLu+IE0iCVBA+BB8nVmI9CMGBmWM8vYRLPYO7sj8rWZH/EzPvI+YQfP84TmdzMKIYH9GQDJCgRCR5XFo/6yZU0ihxUFPvESaaOETUDO9sJnXKXlX4CDHATWsI79/NUL76x3IgAwoQmgU00vBFrpI0Vng8MDclDJqz8TurYMB2K78jZn7YlrUxP23uM9bwmHM7j8hezCUUOA1wH14KGcXM1ZsK5s3LV7z6CuLe5d40qI7SrZcH+UHiyH847Ckg2BW+3oyWpIX/lvo4I8P+kJJYHaczd9BDc2p1MmledXhchTsqHk/qGkI3e4SuPaHc7CZ6zUEQLAgTSARK/T4qGSNZozIyCDAXucORoHyBi0YJ27DUgfT0w9sd2O3zl+Z50hRBeuKwGZzJSO1k8z2fh3vOCdV3vWQgyjtdtDvMWJMYVPpGfEHnkdpiQrQFQv0EYDHjI1JiWczuyhk6gQDrh55z7ESzhGsQolGIn0BBvpWq3DlLpnAqQpjfBQTzJ275lPQjxBznznW1iINfkLvPI4bq4bU3PTzl+AUH5eKAohgb6MGHnwZqULaSUlmBRqz7qoI0njAAVqwGASmczlysOOlQPUAEDultlvjRuA3bP6pwNKswHaSNV04PCAfN27iU04dlu9koxD1/0jB1KCfJGunA/ahXf/oG0hFJHr7ToCoAezTut/7Dsr4zBLwzI++vNk0rFmbKyS7F+yINRi0dEDqK6Du0IDzABJQQEzO27gb5QQYwKdFSCTlNVq5qCFC6Qsk8/eERmApl3YEyXw3YYDX3fp14QV/Lut+XEFj5OsJKZb1Zj+50nUeZduW4v/BO/cL9MMnPtCStU4AXjiJoDzuUr3mAOKFFkFr49GdvIxUdxNtKn2tAJkPHXe5Dpr7k8wLenhKSBSCxwUwIobAIr8oOnHjkezdUVwINv5d8BGFLcxKwB46zYcbCRQaSqhwa4YAykbqBa8ap5xECGAmx6VbQtXeKVG/ttx6x5I+8CBQB7HTR/zuZF8xYKawxVKBuNpNhlCWr2ivSbxlkV/iBQ+EyPSmyv67wZi/GyunSGNsjY2Gb6jbTTTwx4lfhPaUmuP/csl0kwo42N1kPhPPgayd8x5eZwA3PVjgEu9nr/vIex0BoVMe9zLbqW+Z6kNYanl7CQjprDa6aUvhBW3FiWvU4Klkes/EwC7Zov8rQqAx0MKDZZkDzyaLU3e40FlqVQwKdzGj7iTV+k3hCcK6CaUDFoB8g0FvvMeHwsADXTgJ98HuIpZfubCA2RxCLd3VtVMB8rRJl2tz7MaR1A+0efP8RzLKGQ2i7B7y4AdDz1MJ3wHSH/eoOQ7F/2SMaEAAAdTRf4uN4APstnJB8qciJktlqPXaQIKXkmukfr2IPldwey2SvuUjRGXsJArlRlpG+rgywy6ETZxhONcylpSTIGUCQ6HM/X4OAF4+CsAJWRgZG3diio3kjgtIMPeGdX8N9S55T24vb6gEZAycVD4dPnt6rMc4ADPsZYrmUksMBzEk3wbtUc+D8rEv5EEil5e9quxgc9AB1beALJpYaBu6+MJ4EiAZvQ/8ij7kwp8JRvuVXY0ORrE8HQgIrHm7q/Hfeb6FQ8VvKo+0bv8kKfpAwZNtOd+foVWoT2vm8XR6sAaGoD0suDbnYVDARI4HC+XjeRLRj1dYPir7+hFRf8t+x+5EtfmcLpK4WEeIsuww4Ps7rroT9H9kP96/uvgttdeWXGDSO+b9OIhFqPuv4k/KdcW/THvw0P31l0O5d4FGXppzQSgbWH/9PiWsQHQNJjgMfg7BUCF4myYyWEFEmC7qSTNO/V/wU/EafgAM0ssNlvrWkQPzn6zZMN9qXJtm/JaAznFKZ717rW3rL5vwRPz/wqw1cRO25WYtqy7GkcAjTtor/Jrox+w+lKbFCi0+90mNKUeM6tZfLN6IL0sa7f/k9g7SzbEt8AwI94EJy0oPVQCcPXn5r4IsOiPAO/zjonDIztxNRjvSzsWALrjAKINJazTy+QPgVb7fQQsfOzi7+vrlTU++0x0oKwgMOtWIoNximHTS6EgPu85dVMwm1tKP8GQH9xyVgCoSyfHAcDhRNmNaKZhB61WSmWYdt8DbFSabO/U15xcA9CoZDn480omqNl2oLYRgJUkGHTh9zUQC5VskBndbQSaG4+Sd1+9zh1sb9rRAyjJlLOxGchWj2Ink03hO6REeR3OGR8HgKC04ru6kYZ61KYBOZAkQyfJsPNL7nP6EW15gfM9Q42ZomTetywdFwBlMXG0IUR7lTLTTeB7kUc4CDiclz0QeKOBVPVokwGvbHN9zrvGD5n/OsB+Aw2oqpX4Jm35vM15m6FCSV/z7/QyizlWWtAPwORqgDZDA6HGvkcIlE5409uZHM7owcAbJZ5Su1lzAHztihNz7gvGDykG6BQYPJfsOahuHqrSgicAthhafOnEzWZJqZEBmFIV3Q/tDAdAVMZJpYxRQKuM1xT4lv7GLB2nZMNVdwD0B8j3LoXXCHiA6AGARu+dIdBF1tP8pwE2BxgSUBPH2wvHBUBIrgVoD4Bom4YlUBdtUSAo2ZB+2Pxmg6kACfirAEHcTP4gpUpCn9sMLLis4GtdpOeI6ZWRzEECu7Cky0vu9zgAKNN8u/3kr5mD3hJFAdL5AgcAh/P8/wp+s8FpAPF+8JVzBMjbHCy8Pu8F9an8wZcFaNVX+3Ms/DPAhwYym0CRQHj5uAC4+P8A3qFa97DaXnmxnxxsYSsADmdKZfCbDaQDXmdE/RNucYDNKP0QwCHcAepD8pplNZWW8l8VyAcI9DoVqV04LgAm1ouy/0insH06ehXxukf6hBcBKCkNlYqoHWf7IGhTDMj8vwXjTK7J2QZQEaA+ZMxbs9qfI3pw3vMAbxDoM+QA0D4mO2gYDOWKfw7wsWYw5FHySECVP/Vvn6IbHU4rOXVd+QDpusaIalj0B1uIdVhzXgFxZfQSFUc8MJQyGLDftwjCyxwP6MSydcapMVk/bgCgKoPv0YOMP57zfvnlS2Ro4KvmIyoAh3PJI1Zu1jMTULJr1DqOAnDOe6F4Fz4G8BYD+EuUxMq6Z/lzzPxA2rHRwPDMAFoXR5bYZgoglGyQW2/HQz2PeCeH1rJEJwEfcQzx/DIOWrlZXCugvBafCgDI3RaKN6FRsuWPB3TImQA0LwvkWfkLgG28HMAjkwtV144TgLD8YYB3qOI3mquX6x6inF3ArHeNvnlqTCOx6i3VBskKlun7k6tDc4tjciBAC8pmaJWfCeRIqhVBeEVxqX08Mgw5cse4ATjthNxaq9iuI1YnO9sBWPw7q/CpXwWM0ciDjGRTTlrhzvkIVDOi7ZISWCm/XV6PntS+9LgfzxzygFMXtka8DN80oLriIfVIHuEcLvVT/i4gd4t+M7jgJDpnuuYlSPglrsMK94xd007ASZrQa0Gb8h0R4/DAZf8iwO/w68bSiU9G3IlNAUyuEeAkGA8r/by3HRpwrVLfDNBHVcT02oat8Ys7vTdAo8moLNAXBIgekGd8DLfOFovoVUW8FWyQ/MCSDXfl3LRKXb/j9tN/5cCsd4J7b8akbbzMMFvNk5dw/S6/V6n6gtVrjbkWPCmDg7fQSu55ZAE1ayK1xEEzVBNP5X2oylibTovsVR5tNLfUNl1u77YI4PT92duhLkAPSnyl6prhRGM+acM/6dC9PHPjM2YAApRsWPlzkMwA9W9QATD/jTBvNgTq7K7UJJ9sHEy1WsPstwEO+5mEBGVAZxbjy9yrTmlpgRcAT443gKr7m6J5ZPlMXd6m+ObQ3FqSpYvdmlcxTXMHKyRRmTc04Ta0ndh0cy+ZSH9TE4pTozLVa83kdswAHMgAfQxFRg8SJw6HJDCqTVOThbSti4YtfhopuUZc9iZjLWgKYFr53H8AuDT3TlJksObKkLeNDECZkdDGUGRuJPg6WsNmHNU3Hm+akvXlVrlbAE4EjEYygabl5t+slmjjHp3kFgBwKqLgvgUAJQSQ6r1xA/XA9P1Ze0YHYLPmVagAWpVAWPAUwMcB7rS4MubSNPtN4dN6ExLWao5oeikkgCMxAqBvLlhGXeKehkd5HwJU6pxgyV7tzbFah8z3VdDg14nFjNSsNeOLb531NugzewoAqFzvjg911wgAjBqWd+dLrJQpyGknwr+Z5B1UM6hpeEqYAEb3+1I9tN1RJiuPfc7cJRKdfVBz72R1DOMIddcIAITEU6C1nZJFkNQQmjPgZkOFz4JEedTmyw4g/nMaweiiHwJs9Zu3SVKTNkw/SFn4HEieYoDcrgl1z4gAlO0XfWkVAmDiKABUXdq3NKF5kZxwLGFc++LfAxwy7MRVppY4sT5rN3R6ZRDUOWL9By7GGEB3vFipdO+Dyq7y9vbR3C5vk8x9+CbXZZKxNawN+iVY7x+dlu546kJzPnl9WzV84oCevM4okjNGALadB5CtyUtRtoQb5S3VMUGn15WeDXTNbgjjEyW5WwGO0aWRP3WCs3b14DQzvoV/ATio2XsuRc1TuHjcABTPKl0j9rLcsG+UOyJnfaJudKNKQREAZV+1Xkd0v0xaHkarz+IUd9r8VaiZW1s1fKJ8T476EykhARQLlakRe0lrGv20tES7d3rDUmICD91n7gQHUsHLoNWC8mQyWVRbYs4nQ7oDGj4BsGL9uAGo5mn7tI0MHY2/W22F1Gj3S0qWTayyjnPvt6zXkVEGgYme4lMG27AzTRlM1nh5ZpADtC0cbWw6JIAyW9GJT+jF65S17KOji34oPtluRQpWAuAqPWH5G3/JVQJEj86QSFCnO9iHrj2qF+njk+nh0camQwIo+extGqGXvPRIYhhx7dKM1+gBPKQp2+u5Sq3KdUyfDAt7dHZYrEfroqFkc87inwHsYMjLJx1/tK5MSACzPgGoVtIiwWNhY9bQVPCqz5R48HAxRUD12p0/s1rDnH+CKkk+MyKdOJg2VdPsdnq5ZEK5cv3oclZDAhjblV4GMhJRfX6A3txQnMFp2a8BdnkVutqNa1db41dh0MZ2VC3YFDT3T6D3GaBkZf/K47eOC4DqmKMHfWZJxQ2RzWilHVVNiWxHlqOYkpfef3bPtv8++DWZgDKnaRWyWLUZrR2WIGlj0KQN+SbDUSW4Ch4FwNHNElv4umvZXV0FsFjRMDZiGaQeOPqlvuxpFQlNISswoYLX+2Y0FsOw4szOoZd6oDen4ZLKz+z5bs/MhGazrGmA1sV1qyBLmRERSmUr0Liy6NfRA2Z8Ue5WR9siyEV9R9Mpo4uOeXNeTaonTLIAoOv+njxYRhKqT5PJMKeAxmKiUqoSG0cL4bQK1/1QR7SihwqBFtRPFjWtKLunel30YOZ+Y+7h5PLbwc5M4r1r4mIZohoYTNV/xFZP8S1H7oRelmvW0h0G8PgWmI0hgI0XNp0POfj6lJ25jFALNBa7Ss99cbQQJjT1ZTcWQyWyMgDyuYj5ZJCurC/unnXiZv8v+qqUdrQvu7G4hWh8M5M2prMdaCwu/rfAr1Gr1J956D5IUvQuwAw2Ak0rlz4S00tYZAHAVkfNGshETX+StzaLHAZoByKBsOA1gbCKNpIUJZHMOczjAtLppQtoLE49biyFKVWuUuijWHMtnk7qgeRq8R+MAXSVQiK+uEM0fVQDSXU5Ye4jY8GISOptlaJytVl2VyubOblKQ9diRpd8V4zJQZ7UZF55sFPk/QiqWf3TD2Rvh2YO6wzJyqA8ALFdAAM6+y3hoGOfbw/zs1EWJDC5pvGCjsJuBpQQuJANiCGXWrppLJ79jpX8KsMHGCp4LeNQf2bXHDhIDDW00csgidiADHYBNo84PUbcJ26CfpbgWxucTB2t9OZmHGostnkkHOzHNbD7QXCjHTSnUk8z3bOO39q0wt6Zajnebukb6/bO8i9CA4N4aGSQHprpoIUyjtFPN5D3YeY+CxWZUMahnO2eaNGGlZTjYg9b2cbHlNEPDKYu/a3xMrC08t0PQhtF+KY1bMTjAo5/ruJGV2lfdqCZixquuq5n5gi5ZGqAT2AfMJTcuuTIlyvX29zWJs0sASjqGho4wjEOcpAjHOYodTTRDTicKx+yUE0Qim9JO+qJadQqMzwMez8JevEPjE1C1JA8WYyud2TQ4/0ecGOxEYhRwxU3Qh9LNVsNTKcQt5LM3JtXeYMR9KME0KfsjcjhdDhH78p4IWwteC33o8SGvC2pxxKaY7v7M3362eE0dy9G4o7dBkmoKfeqidsGLEMGAIG+Qube1iVti1qZgXbwPY2FFJPHAG1Y9TBsGy03sXWxq7Rjnr2jKx/iWzzR0f3ZO5Lq0w9nb48UPBNoYgZT+zNiexPrZbWmMfXNeOwUwDc1fqoPyD62s5t+ZBGQlq/8trefAQe36sqrR0fYpeRf3DkrmDMfFoBnKr3/WNldcL2uO2qPhniTffiyVYU65j1VDhl8wwA+gAHeZSeBwPvTJPjerUyYn8BsnX2MkgSsd2xkXruVcl08x8cZp+RRu0qD545NAgDnvgRQ5s17CQQylzSgZUmn5tuqthGRx491HFrODEtpwBaNyJlMUcNi4I7RTAJpPoiU/1t4iS5g9ltLf6vlm7m5J7e5qIVOUpQsMe3mP3t5RUmiuvDHwb4rF1FY9Eyhi34oHfQwh8liGjbiSMEOdFGppKIE5nPHdjmch78Ke5V0UTt2IIZ+r/MkXMHWn04KCYSY/vQjUcPNRSOx0EsbrTRRw0lO0qCAMfutS78jgVQtJdfmvzESq05CuRlkkH7NusDMvRf8pPhfg997ElhhlXpmukpdpf0Z/tcXPOlwmueSue2uUldp4Ag4pdLhXOKM7SIETSIAhVqWds3GNpDakzeUAkl1s95Rd6wJRUPJQ8nY3HH2jnD2lp50AJ5umgRuzMTSFIAR0hSAEdIUgBHSFIAR0hSAEdIUgBHSFIAR0hSAEdIUgBHSFIAR0hSAEdIUgBHS/wORiuzU9jpniQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMy0wMy0wM1QxMToxNTo0NSswMTowMLaKk6YAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjMtMDMtMDNUMTE6MTU6NDUrMDE6MDDH1ysaAAAAAElFTkSuQmCC");default:return t("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsSAAALEgHS3X78AAAGHklEQVR42u2bS2wbVRSGW4eK8ippoQio1LKhDyAUumiggQKbVgUWuAKVsqYrKlIJsSmVSEGVQOKxaFkV2NB2ASuyoAJEcBw7TpQ67yhPRUmUh5M4Ud6J8jL/L81IV1fX8dxxHOZOM1IWmWOP5/733nPOP5+9JRQKbbmb/7TfEA6H7+vp6Tk/MzMT6evr+zQSiTwkxmOx2O5EIvHt1NTUPx0dHe/iXJ6vBOjv77+UEo6xsbEb5eXl2xijGNPT0xEx3tXVddY3AmB2H1leXh5LSUdzc/MrjPf29n4sx7AS/oZA9/hCgMbGxqMpxTE4OPgl41gNN+XY0tLSaGVlZb4vBGhoaHhRJQD2/HeMT05O/qEQYCQajT7sCwEwk7s4o4oVcIXx8fHxX+UYRPkLsYCxAjQ1Nb3c2tr6ZlVV1eP8f2Bg4HN5kHjNMca6u7vPybHOzs73GaupqXmqra3t7bq6ugJjBEAZO20PZH5+vqW6uvoJZnpmfvs8SuEnQom8d2Rk5Ac7NjQ09BXP19bWHhKTJ0R41ggBZmdn74izOTo6+qOYD+Lx+NOq99XX1x/GoA9YpfHBubm5Ouk6PxshwMLCQod446urq4tYyvvE17S0tLyBbXGZzQ96hM8w+AIp/pq8LSBIgxECoKmpUOz3QsYw+/snJiZ+V1UFrhQmTL6uvb09qKga3xshAG7+HfnmkQf2YJafRzUYTq1xoFWuYv1nkyTHjMkBSGrbh4eHr9k3jqX+BWv64uLiQMrBwb6AOUBcKegWi73UGTp5UQD7+HWUwhPs+bnfUxoHDRFFQAl8C51kodGNEGY/H0s/oSMAV4HLmwtQPHiJMiZY+JBHxTjLMd0otloU7vQjutSNaIWPpDQP5goIt0P3xugixeswIdvWmysRvcgvYpwuNecCIPm9oCsAGyBdAThAukj5WnSbjKsSKz+HbjWnAnCZ4cb+VQ10ZWVlKo1R+kb3oQirB1ZOUr4WZv0W43Sfqs9yk2O0lwxVxnK7iC6xBo1SOzM8ZqQIXuEx9v1YqiG0za1csvAGH1ZUVNyv+xmsNHSRinxym3G6T5UA7E5zLsAG/QUw2D/lAcJt/matgCtpnjvsMlYANEfP0S3SNfJ/rKaz8iC5oiyHekyOoTyXMEbXSvdKF2uMAOwMxWQGI/UMz9NN2ufhMq/RbdrvoQsVcsNN9hp0q3StQg9y2ggB6A4ls1TLAVlW+iDdpep9dKPivqcHEa9DN2uEAHSH8pJG93lcKsEFdJtsirjc6ULFOLbOXrpV8RpM0kYIQHcoC0AjZj+Gw8z+pMr6rEB0pVZeKJTjrETG5QDhUfur7AfQ6sYydZp0p9j/TypEDBohAN0hurwL4swyB6ieMqsOulP6FLpV+xxc7FW62VyisWgGNFami8bIHegaOXi+V6flpkulkCiBJ638sNVoNOZ09oWtMOSGP7hBY0nFfi2y0FhxGjS2TbMV3pHpiVOaVvhIrtFYYQY0ditNi7pT1wuoGGSmg271/0Zjt1UCMEFp3lgeXaSO66RLdZL01gONJTcCjdFFsvdnLbfcZYhuk66TzwNQKUrR6LTRlbJBkp8YrTcaO7WJxrJHY0kT0VhcAh7XJTS2fw00dtAujTQ3fkJjexVorGQNNHbcz2is1O9oLJgFGoux/tPUmI7GrkpoLD9LNHbBNDS21UJjJy00VqKJxt7bRGN++Z5gFmjM7bfE8riCHPLB8274oCfRmMAHP8g1H9R9GLKds+ECjQVcPCVKxweL15MPZovG2tgLWGhsN/r+MwIaC7tFY5bx2umSDx71Axqz+eBouqS6XnzQy9/lz6OV1uSDSV0+6KlBO+SD5xzywVNO+KCXBi/zwUMWH/zaIR+8wQqh4INBIwTIwAcP0H845IPXJT4YN0IADLjRIR+8ZPHBywo+uE/BBzuMECANHwxq8sGXFHwwYlwOEH+Ko8kH9+jyQc8IoOCDpRvBBz1X/wU++ACNkCYfLLH44AlaeCctuKd/1KgCLRm2QkIXwni5Fd4QPuhpAVzywcN+8QIBF3ywTJcPejoHCHwwLPDBMxYfLGIPwC9CWXzwohs+eFf/cnxTAPz9B2KaIUnJkLawAAAAAElFTkSuQmCC")}}function Fu(e){var t=e.lat,n=e.lng,o=e.name;return(0,Po.jsx)(Ru,{position:[t,n],icon:Lu(o),children:(0,Po.jsx)(xu,{children:o})})}function ku(){var e=(0,o.useState)([]),n=(0,t.Z)(e,2),r=n[0],i=n[1];function s(){return a.apply(this,arguments)}function a(){return a=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,to.getAnimals();case 2:t=e.sent,i(t);case 4:case"end":return e.stop()}}),e)}))),a.apply(this,arguments)}(0,o.useEffect)((function(){var e=setInterval(Tt(Rt().mark((function e(){return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s();case 1:case"end":return e.stop()}}),e)}))),1e4);return s(),function(){return clearInterval(e)}}),[]);var l=r.map((function(e){return(0,Po.jsx)(Fu,{lat:e.position.x,lng:e.position.z,name:e.name},e.id)}));return(0,Po.jsx)(Eu,{children:l})}function Gu(e){var t=e.lat,n=e.lng,o=e.name,r=nu().icon({iconUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsSAAALEgHS3X78AAAG/klEQVR42u1bd2gkVRxObOd5etazHWdBsGA59RQbnB4qitiwomLvvaB/WEBFFOyFs/0hqIcFG2LBdkJ6TzZ9d7PZTbLZlE02m7bJJrtJ1u+THRiWmZ3ZmTdluXsQEibz3rz3vd/7/b5feSVlZWUlO/JPyU4A7P/oLo2NjUf5/f4rw+HwM7FY7ItEIlGbTCY70+l0dGVlJbW0tDS1uLjYPz8/3zYzM/PP2NjYJwMDA092d3dfVFtbu67oAKisrNyLk8dCPkylUuGMyQZgWgHI4/X19Ye5GgBOcGho6GXsaDxjTVsaHx//rKGhYYOrAODCsdtbIc7pjA2Nx6avr++B8vLy3R0FoKqqam/s+EucUMaBNjEx8RWO2xpHAOjs7DwPiiuUcbhNTU39VlFRsdo2AIj4yMjIGxkXtdHR0XdtAQBn/dC5ubmmjAtbT0/PdZYCAHt80MLCQiDj0gbLM63HTBoFoDQej3+fcXmbnJz8GXPdVTgAFK9MkbRQKHSPUACqq6vXiiA2GGOCbC4YDN6B309EIpHno9HoB6C+25eXlxMiaQLHB0fYQwgAGOwxEbPCImdaWlqOUzJZnGxbW9sm2PVtolAAsP+Cp6wxBQCJDndOMItbnJ6e/oPAYtGn5QLi8/muEMUoh4eHXzEFAM7+9TZo70n6Dzxq0ne9Xu9levrCJDfC6bq4vb39DDpfgUDgBnCCN6X/g6gNmAJgdna20i7lBa8x0traeqr0bS2yBSn6mxKqwFUOl0lb0jAATU1NR9utwTnhrq6uLVnlux/jBErvJRKJGvx/36z+2K2jo+McKNXn4JB9FIvFPpe9V2cYgP7+/oecMGM8/1jQuZwD7PpPCkdmqq6u7hAQswPhEd4PctajNhbW8LBhAIBetRULxISDvb29N9Onr6mp2d/j8ZzI3aMukFsMepkqzs/vjAkAqCUtw4NvrDcEANG1yH39Ws19JRg4969TCAR5ib8a5gHQwpdYsXg1ciL/gfifTVOppQAh3g/ClD6Kc/+pElGDNXjHMACwn6+KXDxEehYae63e45fv+/wfFZ/8fXCJPblp8mNERWkYAHYWHcJqbm4+Vi8AoMt3qo0l5wsKvOUama7xGQaABMOKOB64/1bY+lO0PE+I+F9KYzCMnq8vrMPBskiyRzcAucFF0RKgpMnB3jbluq6Yxyo6MvlwBIAb1QCg1pfrHF0A8KMQl14QkPOlZxQfO2w+qGoQSuxjcnbmEJgc0aNPYP/vxW6v49lnEIS8gd4lNb/0HhWkLgAokhInZwaHJEOUKXKywdE6XRcAICW3yMNKenbB7Y1sEdKxShcAYFwvunghk+Fw+Gnoi7PoI8A5q9DTj7lF3REh0kqZ4vgGFqDZDYuHJfiT5zzH3q/G/Oq1+vp8vst1AyCZHHJrupf0spyO/sKj+5IKTsvWqzUlH0AVAGZe2YnpannWx8HI7o/5KDNzE1pjkEvoBoDkIhtD2y4Lhe3jYJbn7VAodLff77+a5o1xRDpnEijkLFpjwJodqRsAyfGgJEjPMMARbtSJsFB9DHbybw2i9QsLM3QBkB3w/2iMZDoYoS12U0gJKpgHgBSdnPXND0ilUoPFDABNpi4AWM4iLZY1PNLzrBQUNSNUCpoqKgaIy1XZyGyYvoGkbGAO/U4uAPMZgkK8C4rwePoq8Xj8h0L6M7Cr1x0uZWKRnQKBwE18xoCjg2tfgYP0mpLvz9A5gPiWIo453gfl3ZGHD2zQHQ9g+jtbtpakLbZT/Mk+meDgjnk8npPokBVQqbI5zxFYW1BABGK22e5zz4QIcwBmSvKUapRA7LoNRYSCweDtdoKA791mtmxHqWolGo2+ZzgkxlwbnRE7ACDLMwsAnbjccXGkLjSdHqdeIBXF2TxG7jUKTJIERFSsgT6/lRM1SqjlH8x8qJS5N5EAQJt/p1GUtR7e37XgJ08xVUc3l5uS+97g4OCzOeL/viVVYkRVZLyQO6f0HQY+JbOsZCJZcE2vUC2PmS/ybFrcSEhEAcD8X+6R0ytlzAYxK8x+JEvSc7lXa1WlaKmougGGwKWSehCwGxmTLDDXkGZFCeuGpWdSet3SUlmv13upqCNAcWeewGTqbSbr0rdrFVALAYDBiXx5eacadv8C24qls7pg2S2L500TtSCIZeXyLKC0646AVpPXF9l6YQJE6QS1ZKZdjW6y41dmWPNHtgiFNOfA7m90zaUpkiXqh0gk8gLMZRkAmbc6geLqa3Os5mAGl7sEBrfNAs2/pZguTpaymlsrrF2AM+Uv9OKUK25vwt0+M51OxwTEEm4t2quzTL4kk8kuo4tnKq/QG2OuuzvMsDU8uUdoRlnYzJgkfoexuA4WapLc0GXmbRXSZb5DpcrkqdErtTsvT+/oAPwHyIWpftzH7b0AAAAASUVORK5CYII=",iconSize:[32,32]});return(0,Po.jsx)(Ru,{position:[t,n],icon:r,children:(0,Po.jsx)(xu,{children:o})})}function Hu(){var e=(0,o.useState)([]),n=(0,t.Z)(e,2),r=n[0],i=n[1];function s(){return a.apply(this,arguments)}function a(){return a=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,to.getHostiles();case 2:t=e.sent,i(t);case 4:case"end":return e.stop()}}),e)}))),a.apply(this,arguments)}(0,o.useEffect)((function(){var e=setInterval(Tt(Rt().mark((function e(){return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s();case 1:case"end":return e.stop()}}),e)}))),1e4);return s(),function(){return clearInterval(e)}}),[]);var l=r.map((function(e){return(0,Po.jsx)(Gu,{lat:e.position.x,lng:e.position.z,name:e.name},e.id)}));return(0,Po.jsx)(Eu,{children:l})}function Bu(e){var t=e.lat,n=e.lng,o=e.name,r=nu().icon({iconUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsSAAALEgHS3X78AAACfUlEQVR42u3ayUojQRgA4OhtFLw4ES/edJC5zAh68BkEL85RBgYfwEdQPPgAcx7MzYvPoMSEkMXprAeTniQSJRkyWWCymD3l/4MBEZdUUul0Vf4fCppeqqq/dNeWttjtdsskJwsBGFiYpmnL6XT6sFqtXnU6nWqr1cqVy2Un7DuAYyvKArjd7vlsNvuTMdZlb0QulzuBcz8qBeD3+1ebzeYd6zPg3Fu8RgmAYDD4BR71MuMMvAavlRoAH2X4NTNswMBrIQ+rtAD5fP6EDRmQh01KAGztmaDAvKQDwK5OFAB2kdIBQD+viQKAvH5LB4CDHFEAmJd0ADDCywsEuJcOAIe3Al8BbaIbwUwmcyRjN/hJFMCoh8WjHAjZhr15mBz9kn0o/HfQm4eG9J/H41lQYTLE3SV2u906XPtVpenwLccvnw2FQmuqLoi8GcVi8czr9S6qvCS28nRJDAc5EAHo6o4DgcBnWhQlABMCuFyuOV3XdwqFwmmj0biBFrrBTBr4WlUqFVcymfzhdDpnhwbAG8f+mEkY0LYEfT7f0sAAqVRqn0kegBB2OBwfuAEikcgmUyTgddjjBoDprEMVAHwKuAGYYkEABEAABEAABCAQoFQqneNyFSQrbF8YfUOP5VuxDrhtOEA4HF7vnYvbRgNAmRs85QsHgJnWTO9cnHUZDcBbvnCAcbcZw9aXAAiAAAiAAAiAAAiAAAiAAAiAAAiAAAiAAJ6ner3+57XM8JjZAGq12jVPfd8FiMfju69lmEgkvpsNQNf1bzz17ecDialYLLaNf5O32+3/mGD7EvfhMbMBYIpGo1tYxxfqOz3yj6TMADDWr8QmHoC+E5Q4PQDfbqj4Rq0JZQAAAABJRU5ErkJggg==",iconSize:[32,32]});return(0,Po.jsx)(Ru,{position:[t,n],icon:r,children:(0,Po.jsx)(xu,{children:o})})}function Vu(){var e=(0,o.useState)([]),n=(0,t.Z)(e,2),r=n[0],i=n[1];function s(){return a.apply(this,arguments)}function a(){return a=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,to.getPlayers();case 2:t=e.sent,i(t);case 4:case"end":return e.stop()}}),e)}))),a.apply(this,arguments)}(0,o.useEffect)((function(){var e=setInterval(Tt(Rt().mark((function e(){return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s();case 1:case"end":return e.stop()}}),e)}))),1e4);return s(),function(){return clearInterval(e)}}),[]);var l=r.map((function(e){return(0,Po.jsx)(Bu,{lat:e.position.x,lng:e.position.z,name:e.name},e.id)}));return(0,Po.jsx)(Eu,{children:l})}var Wu=bt.div.withConfig({displayName:"Map__Container",componentId:"sc-ytilka-0"})(["height:100%;width:100%;"]);function ju(){var e=(0,o.useState)({enabled:!1}),n=(0,t.Z)(e,2),r=n[0],i=n[1],s={regionSize:512,chunkSize:16,tileSize:128,maxZoom:4};(0,o.useEffect)((function(){var e=function(){var e=Tt(Rt().mark((function e(){var t;return Rt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,to.getMapConfig();case 2:t=e.sent,i(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]);var a={project:function(e){return new tu.Point(e.lat/Math.pow(2,s.maxZoom),e.lng/Math.pow(2,s.maxZoom))},unproject:function(e){return new tu.LatLng(e.x*Math.pow(2,s.maxZoom),e.y*Math.pow(2,s.maxZoom))}},l=nu().extend({},nu().CRS.Simple,{projection:a,transformation:new tu.Transformation(1,0,-1,0),scale:function(e){return Math.pow(2,e)}});return r.enabled?(0,Po.jsx)(Wu,{children:(0,Po.jsx)(Er,{requiredPermission:{module:tr,method:"GET"},children:(0,Po.jsxs)(su,{style:{width:"100%",height:"100%"},center:[0,0],zoom:Math.max(0,s.maxZoom-3),scrollWheelZoom:!1,attributionControl:!1,crs:l,children:[(0,Po.jsx)(Pu,{mapInfo:s}),(0,Po.jsx)(Au,{}),(0,Po.jsx)(Er,{requiredPermission:{module:$o,method:"GET"},children:(0,Po.jsx)(Du,{})}),(0,Po.jsxs)(fu,{position:"topright",children:[(0,Po.jsx)(Er,{requiredPermission:{module:Jo,method:"GET"},children:(0,Po.jsx)(fu.Overlay,{name:"Players",children:(0,Po.jsx)(Vu,{})})}),(0,Po.jsx)(Er,{requiredPermission:{module:Ko,method:"GET"},children:(0,Po.jsx)(fu.Overlay,{name:"Animals",children:(0,Po.jsx)(ku,{})})}),(0,Po.jsx)(Er,{requiredPermission:{module:Xo,method:"GET"},children:(0,Po.jsx)(fu.Overlay,{name:"Hostiles",children:(0,Po.jsx)(Hu,{})})}),(0,Po.jsx)(Ou,{})]})]})})}):(0,Po.jsx)("p",{children:"Map is not enabled, you can enable it via the server settings config file."})}var Uu=bt.div.withConfig({displayName:"Profile__Container",componentId:"sc-jtaopp-0"})(["flex:1;flex-direction:column;text-align:left;"]),zu=bt.div.withConfig({displayName:"Profile__CardsContainer",componentId:"sc-jtaopp-1"})(["display:flex;flex-wrap:wrap;"]),Zu=bt.div.withConfig({displayName:"Profile__PermissionCard",componentId:"sc-jtaopp-2"})(["padding:1rem;"]),Yu=bt.ul.withConfig({displayName:"Profile__PermissionUl",componentId:"sc-jtaopp-3"})(["list-style-type:none;padding-left:1rem;"]);function Ku(e){var t=e.modulePermission,n=Object.keys(t.allowed);return(0,Po.jsxs)(Zu,{children:[(0,Po.jsx)("h3",{children:t.module}),(0,Po.jsx)(Yu,{children:n.map((function(e){return(0,Po.jsxs)("li",{children:[t.allowed[e]?"\ud83d\udfe2":"\ud83d\udd34"," ",e]},e)}))})]})}function qu(){var e=sr().status,t=e.permissions.map((function(e){return(0,Po.jsx)(Ku,{modulePermission:e},e.module)}));return(0,Po.jsxs)(Uu,{children:[(0,Po.jsx)("h1",{children:"Profile"}),(0,Po.jsx)("h2",{children:e.username}),(0,Po.jsxs)("small",{children:["Permission level: ",e.permissionLevel]}),(0,Po.jsx)("h2",{children:"Permissions"}),(0,Po.jsx)(zu,{children:t})]})}var Xu=bt.div.withConfig({displayName:"Router__ContentContainer",componentId:"sc-1psfph8-0"})(["min-width:",";padding:1%;"],(function(e){return e.collapsed?"calc(100% - 100px)":"calc(100% - 250px)"}));function Qu(e){var t=e.sidebarCollapsed,n=jo().modRoutes;return(0,Po.jsxs)(G,{children:[(0,Po.jsx)(F,{path:"/",element:(0,Po.jsx)(Xu,{collapsed:t,children:(0,Po.jsx)(ju,{})})}),(0,Po.jsx)(F,{path:"mods",element:(0,Po.jsx)(Xu,{collapsed:t,children:(0,Po.jsx)(ql,{})})}),(0,Po.jsx)(F,{path:"console",element:(0,Po.jsx)(Xu,{collapsed:t,children:(0,Po.jsx)(zl,{})})}),(0,Po.jsx)(F,{path:"settings",element:(0,Po.jsx)(Xu,{collapsed:t,children:(0,Po.jsx)(Qr,{})})}),(0,Po.jsx)(F,{path:"profile",element:(0,Po.jsx)(Xu,{collapsed:t,children:(0,Po.jsx)(qu,{})})}),(0,Po.jsx)(F,{path:"createuser",element:(0,Po.jsx)(li,{})}),n.map((function(e){return(0,Po.jsx)(F,{path:e.path,element:(0,Po.jsx)(Xu,{collapsed:t,children:e.element})},e.path)})),(0,Po.jsx)(F,{path:"error/:code",element:(0,Po.jsx)($r,{})}),(0,Po.jsx)(F,{path:"*",element:(0,Po.jsx)(Xu,{collapsed:t,children:(0,Po.jsx)(Gr,{})})})]})}var Ju={colors:{transparent:"transparent",tfpRed:"#ff0000",tfpBlue:"#00A3E0",tfpLightGrey:"#CCCCCC",tfpDarkGrey:"#828383",tfpDarkGrey20:"rgba(0,0,0, 0.2)",tfpDarkGrey40:"rgba(0,0,0, 0.4)",tfpDarkGrey60:"rgba(0,0,0, 0.6)",tfpDarkGrey80:"rgba(0,0,0, 0.8)",tfpMediumGrey:"#C4C4C4",tfpBlack:"#090C0C",tfpWhite:"#FFFFFF"}},$u=bt.div.withConfig({displayName:"App__PageContainer",componentId:"sc-1jyt4iy-0"})(["display:flex;flex-direction:row;height:100vh;width:100vw;background-color:",";background-image:url(",");background-size:cover;color:",";"],(function(e){return e.theme.colors.tfpBlack}),Fr,(function(e){return e.theme.colors.tfpWhite}));var ec=function(){var e=(0,o.useState)(!1),n=(0,t.Z)(e,2),r=n[0],i=n[1],s=(0,o.useState)(""),a=(0,t.Z)(s,2),l=a[0],u=a[1],c=(0,o.useMemo)((function(){return{command:l,setCommand:u}}),[l]);return(0,Po.jsx)("div",{className:"App",children:(0,Po.jsx)(ir,{children:(0,Po.jsx)(Wo,{children:(0,Po.jsx)(oo.Provider,{value:c,children:(0,Po.jsxs)(vt,{theme:Ju,children:[(0,Po.jsx)(Xn,{position:"bottom-left",reverseOrder:!0}),(0,Po.jsxs)($u,{children:[(0,Po.jsx)(Lr,{collapsed:r,setCollapsed:i}),(0,Po.jsx)(Qu,{sidebarCollapsed:r})]})]})})})})})},tc="7.8.0",nc=n(1917),oc=n(8539),rc=n(6017),ic=[];function sc(e){return e.reduce((function(e,t){return e.every((function(e){return t.name!==e.name}))&&e.push(t),e}),[])}function ac(e){var t=e.defaultIntegrations&&(0,Ft.Z)(e.defaultIntegrations)||[],n=e.integrations,o=(0,Ft.Z)(sc(t));Array.isArray(n)?o=[].concat((0,Ft.Z)(o.filter((function(e){return n.every((function(t){return t.name!==e.name}))}))),(0,Ft.Z)(sc(n))):"function"===typeof n&&(o=n(o),o=Array.isArray(o)?o:[o]);var r,i=o.map((function(e){return e.name})),s="Debug";-1!==i.indexOf(s)&&(r=o).push.apply(r,(0,Ft.Z)(o.splice(i.indexOf(s),1)));return o}function lc(e,t){!0===t.debug&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?rc.kg.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=(0,oc.Gd)(),o=n.getScope();o&&o.update(t.initialScope);var r=new e(t);n.bindClient(r)}var uc=n(6870),cc=n(7050),pc=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],dc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,xt.Z)(this,e),this._options=t,e.prototype.__init.call(this)}return(0,Nt.Z)(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(t,n){var o=function(t){var o=n();if(o){var r=o.getIntegration(e);if(r){var i=o.getClient(),s=i?i.getOptions():{},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:[].concat((0,Ft.Z)(e.allowUrls||[]),(0,Ft.Z)(t.allowUrls||[])),denyUrls:[].concat((0,Ft.Z)(e.denyUrls||[]),(0,Ft.Z)(t.denyUrls||[])),ignoreErrors:[].concat((0,Ft.Z)(e.ignoreErrors||[]),(0,Ft.Z)(t.ignoreErrors||[]),pc),ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(r._options,s);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(Gt){}return!1}(e))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.warn("Event dropped due to being internal Sentry Error.\nEvent: ".concat((0,uc.jH)(e))),!0;if(function(e,t){if(!t||!t.length)return!1;return 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["".concat(i),"".concat(o,": ").concat(i)]}catch(s){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.error("Cannot extract message for event ".concat((0,uc.jH)(e))),[]}return[]}(e).some((function(e){return t.some((function(t){return(0,cc.zC)(e,t)}))}))}(e,t.ignoreErrors))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat((0,uc.jH)(e))),!0;if(function(e,t){if(!t||!t.length)return!1;var n=hc(e);return!!n&&t.some((function(e){return(0,cc.zC)(n,e)}))}(e,t.denyUrls))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat((0,uc.jH)(e),".\nUrl: ").concat(hc(e))),!0;if(!function(e,t){if(!t||!t.length)return!0;var n=hc(e);return!n||t.some((function(e){return(0,cc.zC)(n,e)}))}(e,t.allowUrls))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat((0,uc.jH)(e),".\nUrl: ").concat(hc(e))),!0;return!1}(t,a)?null:t}}return t};o.id=this.name,t(o)}}],[{key:"__initStatic",value:function(){this.id="InboundFilters"}}]),e}();function hc(e){try{var t;try{t=e.exception.values[0].stacktrace.frames}catch(Gt){}return t?function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.length-1;t>=0;t--){var n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(n){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.error("Cannot extract url for event ".concat((0,uc.jH)(e))),null}}dc.__initStatic();var fc,gc=n(5256),mc=function(){function e(){(0,xt.Z)(this,e),e.prototype.__init.call(this)}return(0,Nt.Z)(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(){fc=Function.prototype.toString,Function.prototype.toString=function(){for(var e=(0,gc.HK)(this)||this,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return fc.apply(e,n)}}}],[{key:"__initStatic",value:function(){this.id="FunctionToString"}}]),e}();mc.__initStatic();var vc=n(2968),yc=n(8578),Cc=n(4678),wc=n(2034),_c=n(1752),bc=n(1120),Ec=n(7277);function Sc(e){var t=e.protocol?"".concat(e.protocol,":"):"",n=e.port?":".concat(e.port):"";return"".concat(t,"//").concat(e.host).concat(n).concat(e.path?"/".concat(e.path):"","/api/")}function Rc(e){return"".concat(Sc(e)).concat(e.projectId,"/envelope/")}function Oc(e,t){return(0,gc._j)((0,Et.Z)({sentry_key:e.publicKey,sentry_version:"7"},t&&{sentry_client:"".concat(t.name,"/").concat(t.version)}))}function Tc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"===typeof t?t:t.tunnel,o="string"!==typeof t&&t._metadata?t._metadata.sdk:void 0;return n||"".concat(Rc(e),"?").concat(Oc(e,o))}var Pc=n(3082),Ac=n(7326);var Dc=n(8814);function xc(e,t,n){return xc=(0,Dc.Z)()?Reflect.construct.bind():function(e,t,n){var o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&(0,Pt.Z)(r,n.prototype),r},xc.apply(null,arguments)}function Nc(e){var t="function"===typeof Map?new Map:void 0;return Nc=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return xc(e,arguments,(0,bc.Z)(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),(0,Pt.Z)(o,e)},Nc(e)}var Mc=function(e){(0,At.Z)(n,e);var t=(0,Ec.Z)(n);function n(e){var o;return(0,xt.Z)(this,n),(o=t.call(this,e)).message=e,o.name=(this instanceof n?this.constructor:void 0).prototype.constructor.name,Object.setPrototypeOf((0,Ac.Z)(o),(this instanceof n?this.constructor:void 0).prototype),o}return(0,Nt.Z)(n)}(Nc(Error)),Ic=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Lc(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.host,o=e.path,r=e.pass,i=e.port,s=e.projectId,a=e.protocol,l=e.publicKey;return"".concat(a,"://").concat(l).concat(t&&r?":".concat(r):"")+"@".concat(n).concat(i?":".concat(i):"","/").concat(o?"".concat(o,"/"):o).concat(s)}function Fc(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function kc(e){var n="string"===typeof e?function(e){var n=Ic.exec(e);if(!n)throw new Mc("Invalid Sentry Dsn: ".concat(e));var o=n.slice(1),r=(0,t.Z)(o,6),i=r[0],s=r[1],a=r[2],l=void 0===a?"":a,u=r[3],c=r[4],p=void 0===c?"":c,d="",h=r[5],f=h.split("/");if(f.length>1&&(d=f.slice(0,-1).join("/"),h=f.pop()),h){var g=h.match(/^\d+/);g&&(h=g[0])}return Fc({host:u,pass:l,path:d,projectId:h,port:p,protocol:i,publicKey:s})}(e):Fc(e);return function(e){if("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__){var t=e.port,n=e.projectId,o=e.protocol;if(["protocol","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new Mc("Invalid Sentry Dsn: ".concat(t," missing"))})),!n.match(/^\d+$/))throw new Mc("Invalid Sentry Dsn: Invalid projectId ".concat(n));if(!function(e){return"http"===e||"https"===e}(o))throw new Mc("Invalid Sentry Dsn: Invalid protocol ".concat(o));if(t&&isNaN(parseInt(t,10)))throw new Mc("Invalid Sentry Dsn: Invalid port ".concat(t))}}(n),n}var Gc=n(8805),Hc=n(9153);function Bc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[e,t]}function Vc(e,n){var o=(0,t.Z)(e,2),r=o[0],i=o[1];return[r,[].concat((0,Ft.Z)(i),[n])]}function Wc(e,t){e[1].forEach((function(e){var n=e[0].type;t(e,n)}))}function jc(e,t){return(t||new TextEncoder).encode(e)}function Uc(e,n){var o=(0,t.Z)(e,2),r=o[0],i=o[1],s=JSON.stringify(r);function a(e){"string"===typeof s?s="string"===typeof e?s+e:[jc(s,n),e]:s.push("string"===typeof e?jc(e,n):e)}var l,u=(0,Bo.Z)(i);try{for(u.s();!(l=u.n()).done;){var c=l.value,p=(0,t.Z)(c,2),d=p[0],h=p[1];a("\n".concat(JSON.stringify(d),"\n")),a("string"===typeof h||h instanceof Uint8Array?h:JSON.stringify(h))}}catch(f){u.e(f)}finally{u.f()}return"string"===typeof s?s:function(e){var t,n=e.reduce((function(e,t){return e+t.length}),0),o=new Uint8Array(n),r=0,i=(0,Bo.Z)(e);try{for(i.s();!(t=i.n()).done;){var s=t.value;o.set(s,r),r+=s.length}}catch(f){i.e(f)}finally{i.f()}return o}(s)}function zc(e,t){var n="string"===typeof e.data?jc(e.data,t):e.data;return[(0,gc.Jr)({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var Zc={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default"};function Yc(e){return Zc[e]}var Kc=n(9846);function qc(){var e="function"===typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(var o=0;o<t.length;o++){if(t[o]===n)return!0}return t.push(n),!1},function(n){if(e)t.delete(n);else for(var o=0;o<t.length;o++)if(t[o]===n){t.splice(o,1);break}}]}function Xc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return Jc("",e,t,n)}catch(o){return{ERROR:"**non-serializable** (".concat(o,")")}}}function Qc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,o=Xc(e,t);return ep(o)>n?Qc(e,t-1,n):o}function Jc(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:qc(),s=(0,t.Z)(i,2),a=s[0],l=s[1];if(null===n||["number","boolean","string"].includes(typeof n)&&!(0,Gc.i2)(n))return n;var u=$c(e,n);if(!u.startsWith("[object "))return u;if(n.__sentry_skip_normalization__)return n;if(0===o)return u.replace("object ","");if(a(n))return"[Circular ~]";var c=n;if(c&&"function"===typeof c.toJSON)try{var p=c.toJSON();return Jc("",p,o-1,r,i)}catch(v){}var d=Array.isArray(n)?[]:{},h=0,f=(0,gc.Sh)(n);for(var g in f)if(Object.prototype.hasOwnProperty.call(f,g)){if(h>=r){d[g]="[MaxProperties ~]";break}var m=f[g];d[g]=Jc(g,m,o-1,r,i),h+=1}return l(n),d}function $c(e,t){try{return"domain"===e&&t&&"object"===typeof t&&t._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":"undefined"!==typeof n.g&&t===n.g?"[Global]":"undefined"!==typeof window&&t===window?"[Window]":"undefined"!==typeof document&&t===document?"[Document]":(0,Gc.Cy)(t)?"[SyntheticEvent]":"number"===typeof t&&t!==t?"[NaN]":void 0===t?"[undefined]":"function"===typeof t?"[Function: ".concat((0,yc.$P)(t),"]"):"symbol"===typeof t?"[".concat(String(t),"]"):"bigint"===typeof t?"[BigInt: ".concat(String(t),"]"):"[object ".concat(Object.getPrototypeOf(t).constructor.name,"]")}catch(o){return"**non-serializable** (".concat(o,")")}}function ep(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}var tp=n(437);function np(e){if(e&&e.sdk){var t=e.sdk;return{name:t.name,version:t.version}}}function op(e,t,n,o){var r=np(n),i=e.type||"event",s=(e.sdkProcessingMetadata||{}).transactionSampling||{},a=s.method,l=s.rate;!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[].concat((0,Ft.Z)(e.sdk.integrations||[]),(0,Ft.Z)(t.integrations||[])),e.sdk.packages=[].concat((0,Ft.Z)(e.sdk.packages||[]),(0,Ft.Z)(t.packages||[])))}(e,n&&n.sdk);var u=function(e,t,n,o){var r=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baggage,i=r&&(0,tp.Hk)(r);return(0,Et.Z)((0,Et.Z)((0,Et.Z)({event_id:e.event_id,sent_at:(new Date).toISOString()},t&&{sdk:t}),!!n&&{dsn:Lc(o)}),"transaction"===e.type&&i&&{trace:(0,gc.Jr)((0,Et.Z)({},i))})}(e,r,o,t);return delete e.sdkProcessingMetadata,Bc(u,[[{type:i,sample_rates:[{id:a,rate:l}]},e]])}var rp="Not capturing exception because it's already been captured.",ip=function(){function e(t){if((0,xt.Z)(this,e),e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._options=t,t.dsn){this._dsn=kc(t.dsn);var n=Tc(this._dsn,t);this._transport=t.transport((0,Et.Z)((0,Et.Z)({recordDroppedEvent:this.recordDroppedEvent.bind(this)},t.transportOptions),{},{url:n}))}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.warn("No DSN provided, client will not do anything.")}return(0,Nt.Z)(e,[{key:"__init",value:function(){this._integrations={}}},{key:"__init2",value:function(){this._integrationsInitialized=!1}},{key:"__init3",value:function(){this._numProcessing=0}},{key:"__init4",value:function(){this._outcomes={}}},{key:"captureException",value:function(e,t,n){var o=this;if(!(0,uc.YO)(e)){var r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((function(e){return o._captureEvent(e,t,n)})).then((function(e){r=e}))),r}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.log(rp)}},{key:"captureMessage",value:function(e,t,n,o){var r=this,i=n&&n.event_id,s=(0,Gc.pt)(e)?this.eventFromMessage(String(e),t,n):this.eventFromException(e,n);return this._process(s.then((function(e){return r._captureEvent(e,n,o)})).then((function(e){i=e}))),i}},{key:"captureEvent",value:function(e,t,n){if(!(t&&t.originalException&&(0,uc.YO)(t.originalException))){var o=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){o=e}))),o}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.log(rp)}},{key:"captureSession",value:function(e){this._isEnabled()?"string"!==typeof e.release?("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,Pc.CT)(e,{init:!1})):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.warn("SDK not enabled, will not capture session.")}},{key:"getDsn",value:function(){return this._dsn}},{key:"getOptions",value:function(){return this._options}},{key:"getTransport",value:function(){return this._transport}},{key:"flush",value:function(e){var t=this._transport;return t?this._isClientDoneProcessing(e).then((function(n){return t.flush(e).then((function(e){return n&&e}))})):(0,Hc.WD)(!0)}},{key:"close",value:function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))}},{key:"setupIntegrations",value:function(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=function(e){var t={};return e.forEach((function(e){t[e.name]=e,-1===ic.indexOf(e.name)&&(e.setupOnce(nc.c,oc.Gd),ic.push(e.name),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.log("Integration installed: ".concat(e.name)))})),t}(this._options.integrations),this._integrationsInitialized=!0)}},{key:"getIntegrationById",value:function(e){return this._integrations[e]}},{key:"getIntegration",value:function(e){try{return this._integrations[e.id]||null}catch(t){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.warn("Cannot retrieve integration ".concat(e.id," from the current Client")),null}}},{key:"sendEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._dsn){var n,o=op(e,this._dsn,this._options._metadata,this._options.tunnel),r=(0,Bo.Z)(t.attachments||[]);try{for(r.s();!(n=r.n()).done;){var i=n.value;o=Vc(o,zc(i,this._options.transportOptions&&this._options.transportOptions.textEncoder))}}catch(s){r.e(s)}finally{r.f()}this._sendEnvelope(o)}}},{key:"sendSession",value:function(e){if(this._dsn){var t=function(e,t,n,o){var r=np(n);return Bc((0,Et.Z)((0,Et.Z)({sent_at:(new Date).toISOString()},r&&{sdk:r}),!!o&&{dsn:Lc(t)}),["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}}},{key:"recordDroppedEvent",value:function(e,t){if(this._options.sendClientReports){var n="".concat(e,":").concat(t);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.log('Adding outcome: "'.concat(n,'"')),this._outcomes[n]=this._outcomes[n]+1||1}}},{key:"_updateSessionFromEvent",value:function(e,t){var n=!1,o=!1,r=t.exception&&t.exception.values;if(r){o=!0;var i,s=(0,Bo.Z)(r);try{for(s.s();!(i=s.n()).done;){var a=i.value.mechanism;if(a&&!1===a.handled){n=!0;break}}}catch(u){s.e(u)}finally{s.f()}}var l="ok"===e.status;(l&&0===e.errors||l&&n)&&((0,Pc.CT)(e,(0,Et.Z)((0,Et.Z)({},n&&{status:"crashed"}),{},{errors:e.errors||Number(o||n)})),this.captureSession(e))}},{key:"_isClientDoneProcessing",value:function(e){var t=this;return new Hc.cW((function(n){var o=0,r=setInterval((function(){0==t._numProcessing?(clearInterval(r),n(!0)):(o+=1,e&&o>=e&&(clearInterval(r),n(!1)))}),1)}))}},{key:"_isEnabled",value:function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn}},{key:"_prepareEvent",value:function(e,t,n){var o=this,r=this.getOptions(),i=r.normalizeDepth,s=void 0===i?3:i,a=r.normalizeMaxBreadth,l=void 0===a?1e3:a,u=(0,Et.Z)((0,Et.Z)({},e),{},{event_id:e.event_id||t.event_id||(0,uc.DM)(),timestamp:e.timestamp||(0,Kc.yW)()});this._applyClientOptions(u),this._applyIntegrationsMetadata(u);var c=n;t.captureContext&&(c=nc.s.clone(c).update(t.captureContext));var p=(0,Hc.WD)(u);if(c){var d=[].concat((0,Ft.Z)(t.attachments||[]),(0,Ft.Z)(c.getAttachments()));d.length&&(t.attachments=d),p=c.applyToEvent(u,t)}return p.then((function(e){return"number"===typeof s&&s>0?o._normalizeEvent(e,s,l):e}))}},{key:"_normalizeEvent",value:function(e,t,n){if(!e)return null;var o=(0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return(0,Et.Z)((0,Et.Z)({},e),e.data&&{data:Xc(e.data,t,n)})}))}),e.user&&{user:Xc(e.user,t,n)}),e.contexts&&{contexts:Xc(e.contexts,t,n)}),e.extra&&{extra:Xc(e.extra,t,n)});return e.contexts&&e.contexts.trace&&o.contexts&&(o.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(o.contexts.trace.data=Xc(e.contexts.trace.data,t,n))),e.spans&&(o.spans=e.spans.map((function(e){return e.data&&(e.data=Xc(e.data,t,n)),e}))),o}},{key:"_applyClientOptions",value:function(e){var t=this.getOptions(),n=t.environment,o=t.release,r=t.dist,i=t.maxValueLength,s=void 0===i?250:i;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==o&&(e.release=o),void 0===e.dist&&void 0!==r&&(e.dist=r),e.message&&(e.message=(0,cc.$G)(e.message,s));var a=e.exception&&e.exception.values&&e.exception.values[0];a&&a.value&&(a.value=(0,cc.$G)(a.value,s));var l=e.request;l&&l.url&&(l.url=(0,cc.$G)(l.url,s))}},{key:"_applyIntegrationsMetadata",value:function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[].concat((0,Ft.Z)(e.sdk.integrations||[]),t))}},{key:"_captureEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.warn(e)}))}},{key:"_processEvent",value:function(e,t,n){var o=this,r=this.getOptions(),i=r.beforeSend,s=r.sampleRate;if(!this._isEnabled())return(0,Hc.$2)(new Mc("SDK not enabled, will not capture event."));var a="transaction"===e.type;return!a&&"number"===typeof s&&Math.random()>s?(this.recordDroppedEvent("sample_rate","error"),(0,Hc.$2)(new Mc("Discarding event because it's not included in the random sample (sampling rate = ".concat(s,")")))):this._prepareEvent(e,t,n).then((function(n){if(null===n)throw o.recordDroppedEvent("event_processor",e.type||"error"),new Mc("An event processor returned null, will not send event.");return t.data&&!0===t.data.__sentry__||a||!i?n:function(e){var t="`beforeSend` method has to return `null` or a valid event.";if((0,Gc.J8)(e))return e.then((function(e){if(!(0,Gc.PO)(e)&&null!==e)throw new Mc(t);return e}),(function(e){throw new Mc("beforeSend rejected with ".concat(e))}));if(!(0,Gc.PO)(e)&&null!==e)throw new Mc(t);return e}(i(n,t))})).then((function(r){if(null===r)throw o.recordDroppedEvent("before_send",e.type||"error"),new Mc("`beforeSend` returned `null`, will not send event.");var i=n&&n.getSession();return!a&&i&&o._updateSessionFromEvent(i,r),o.sendEvent(r,t),r})).then(null,(function(e){if(e instanceof Mc)throw e;throw o.captureException(e,{data:{__sentry__:!0},originalException:e}),new Mc("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(e))}))}},{key:"_process",value:function(e){var t=this;this._numProcessing+=1,e.then((function(e){return t._numProcessing-=1,e}),(function(e){return t._numProcessing-=1,e}))}},{key:"_sendEnvelope",value:function(e){this._transport&&this._dsn?this._transport.send(e).then(null,(function(e){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.error("Error while sending event:",e)})):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.error("Transport disabled")}},{key:"_clearOutcomes",value:function(){var e=this._outcomes;return this._outcomes={},Object.keys(e).map((function(n){var o=n.split(":"),r=(0,t.Z)(o,2);return{reason:r[0],category:r[1],quantity:e[n]}}))}}]),e}();function sp(e,t){var n=lp(e,t),o={type:t&&t.name,value:cp(t)};return n.length&&(o.stacktrace={frames:n}),void 0===o.type&&""===o.value&&(o.value="Unrecoverable error caught"),o}function ap(e,t){return{exception:{values:[sp(e,t)]}}}function lp(e,t){var n=t.stacktrace||t.stack||"",o=function(e){if(e){if("number"===typeof e.framesToPop)return e.framesToPop;if(up.test(e.message))return 1}return 0}(t);try{return e(n,o)}catch(Gt){}return[]}var up=/Minified React error #\d+;/i;function cp(e){var t=e&&e.message;return t?t.error&&"string"===typeof t.error.message?t.error.message:t:"No error message"}function pp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",o=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,i=o&&o.syntheticException||void 0,s=hp(e,t,i,r);return s.level=n,o&&o.event_id&&(s.event_id=o.event_id),(0,Hc.WD)(s)}function dp(e,t,n,o,r){var i;if((0,Gc.VW)(t)&&t.error)return ap(e,t.error);if((0,Gc.TX)(t)||(0,Gc.fm)(t)){var s=t;if("stack"in t)i=ap(e,t);else{var a=s.name||((0,Gc.TX)(s)?"DOMError":"DOMException"),l=s.message?"".concat(a,": ").concat(s.message):a;i=hp(e,l,n,o),(0,uc.Db)(i,l)}return"code"in s&&(i.tags=(0,Et.Z)((0,Et.Z)({},i.tags),{},{"DOMException.code":"".concat(s.code)})),i}return(0,Gc.VZ)(t)?ap(e,t):(0,Gc.PO)(t)||(0,Gc.cO)(t)?(i=function(e,t,n,o){var r={exception:{values:[{type:(0,Gc.cO)(t)?t.constructor.name:o?"UnhandledRejection":"Error",value:"Non-Error ".concat(o?"promise rejection":"exception"," captured with keys: ").concat((0,gc.zf)(t))}]},extra:{__serialized__:Qc(t)}};if(n){var i=lp(e,n);i.length&&(r.exception.values[0].stacktrace={frames:i})}return r}(e,t,n,r),(0,uc.EG)(i,{synthetic:!0}),i):(i=hp(e,t,n,o),(0,uc.Db)(i,"".concat(t),void 0),(0,uc.EG)(i,{synthetic:!0}),i)}function hp(e,t,n,o){var r={message:t};if(o&&n){var i=lp(e,n);i.length&&(r.exception={values:[{value:t,stacktrace:{frames:i}}]})}return r}var fp=n(128),gp=["fatal","error","warning","log","info","debug"];function mp(e){return"warn"===e?"warning":gp.includes(e)?e:"log"}var vp="Breadcrumbs",yp=function(){function e(t){(0,xt.Z)(this,e),e.prototype.__init.call(this),this.options=(0,Et.Z)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return(0,Nt.Z)(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(){this.options.console&&(0,wc.o)("console",Cp),this.options.dom&&(0,wc.o)("dom",function(e){function t(t){var n,o="object"===typeof e?e.serializeAttribute:void 0;"string"===typeof o&&(o=[o]);try{n=t.event.target?(0,fp.R)(t.event.target,o):(0,fp.R)(t.event,o)}catch(Gt){n="<unknown>"}0!==n.length&&(0,oc.Gd)().addBreadcrumb({category:"ui.".concat(t.name),message:n},{event:t.event,name:t.name,global:t.global})}return t}(this.options.dom)),this.options.xhr&&(0,wc.o)("xhr",wp),this.options.fetch&&(0,wc.o)("fetch",_p),this.options.history&&(0,wc.o)("history",bp)}}],[{key:"__initStatic",value:function(){this.id=vp}}]),e}();function Cp(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:mp(e.level),message:(0,cc.nK)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: ".concat((0,cc.nK)(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}(0,oc.Gd)().addBreadcrumb(t,{input:e.args,level:e.level})}function wp(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,o=t.url,r=t.status_code,i=t.body;(0,oc.Gd)().addBreadcrumb({category:"xhr",data:{method:n,url:o,status_code:r},type:"http"},{xhr:e.xhr,input:i})}else;}function _p(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?(0,oc.Gd)().addBreadcrumb({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args}):(0,oc.Gd)().addBreadcrumb({category:"fetch",data:(0,Et.Z)((0,Et.Z)({},e.fetchData),{},{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))}function bp(e){var t=(0,vc.R)(),n=e.from,o=e.to,r=(0,uc.en)(t.location.href),i=(0,uc.en)(n),s=(0,uc.en)(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),(0,oc.Gd)().addBreadcrumb({category:"navigation",data:{from:n,to:o}})}yp.__initStatic();var Ep,Sp=(0,vc.R)();function Rp(){if(Ep)return Ep;if((0,Cc.Du)(Sp.fetch))return Ep=Sp.fetch.bind(Sp);var e=Sp.document,t=Sp.fetch;if(e&&"function"===typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var o=n.contentWindow;o&&o.fetch&&(t=o.fetch),e.head.removeChild(n)}catch(Gt){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",Gt)}return Ep=t.bind(Sp)}var Op=(0,vc.R)(),Tp=function(e){(0,At.Z)(n,e);var t=(0,Ec.Z)(n);function n(e){var o;return(0,xt.Z)(this,n),e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:tc}],version:tc},o=t.call(this,e),e.sendClientReports&&Op.document&&Op.document.addEventListener("visibilitychange",(function(){"hidden"===Op.document.visibilityState&&o._flushOutcomes()})),o}return(0,Nt.Z)(n,[{key:"eventFromException",value:function(e,t){return function(e,t,n,o){var r=dp(e,t,n&&n.syntheticException||void 0,o);return(0,uc.EG)(r),r.level="error",n&&n.event_id&&(r.event_id=n.event_id),(0,Hc.WD)(r)}(this._options.stackParser,e,t,this._options.attachStacktrace)}},{key:"eventFromMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2?arguments[2]:void 0;return pp(this._options.stackParser,e,t,n,this._options.attachStacktrace)}},{key:"sendEvent",value:function(e,t){var o=this.getIntegrationById(vp);o&&o.options&&o.options.sentry&&(0,oc.Gd)().addBreadcrumb({category:"sentry.".concat("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,uc.jH)(e)},{event:e}),(0,_c.Z)((0,bc.Z)(n.prototype),"sendEvent",this).call(this,e,t)}},{key:"_prepareEvent",value:function(e,t,o){return e.platform=e.platform||"javascript",(0,_c.Z)((0,bc.Z)(n.prototype),"_prepareEvent",this).call(this,e,t,o)}},{key:"_flushOutcomes",value:function(){var e=this._clearOutcomes();if(0!==e.length)if(this._dsn){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.log("Sending outcomes:",e);var t,n,o,r=Tc(this._dsn,this._options),i=(t=e,Bc((n=this._options.tunnel&&Lc(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:o||(0,Kc.yW)(),discarded_events:t}]]));try{!function(e,t){"[object Navigator]"===Object.prototype.toString.call(Sp&&Sp.navigator)&&"function"===typeof Sp.navigator.sendBeacon?Sp.navigator.sendBeacon.bind(Sp.navigator)(e,t):(0,Cc.Ak)()&&Rp()(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,(function(e){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.error(e)}))}(r,Uc(i))}catch(Gt){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.error(Gt)}}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.log("No dsn provided, will not send outcomes");else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.log("No outcomes to send")}}]),n}(ip),Pp="?";function Ap(e,t,n,o){var r={filename:e,function:t,in_app:!0};return void 0!==n&&(r.lineno=n),void 0!==o&&(r.colno=o),r}var Dp=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,xp=/\((\S*)(?::(\d+))(?::(\d+))\)/,Np=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Mp=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ip=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Lp=[[30,function(e){var n=Dp.exec(e);if(n){if(n[2]&&0===n[2].indexOf("eval")){var o=xp.exec(n[2]);o&&(n[2]=o[1],n[3]=o[2],n[4]=o[3])}var r=kp(n[1]||Pp,n[2]),i=(0,t.Z)(r,2),s=i[0];return Ap(i[1],s,n[3]?+n[3]:void 0,n[4]?+n[4]:void 0)}}],[50,function(e){var n=Np.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var o=Mp.exec(n[3]);o&&(n[1]=n[1]||"eval",n[3]=o[1],n[4]=o[2],n[5]="")}var r=n[3],i=n[1]||Pp,s=kp(i,r),a=(0,t.Z)(s,2);return i=a[0],Ap(r=a[1],i,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],[40,function(e){var t=Ip.exec(e);return t?Ap(t[2],t[1]||Pp,+t[3],t[4]?+t[4]:void 0):void 0}]],Fp=yc.pE.apply(void 0,Lp),kp=function(e,t){var n=-1!==e.indexOf("safari-extension"),o=-1!==e.indexOf("safari-web-extension");return n||o?[-1!==e.indexOf("@")?e.split("@")[0]:Pp,n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]};function Gp(e,t){return(0,oc.Gd)().captureException(e,{captureContext:t})}function Hp(e){(0,oc.Gd)().withScope(e)}var Bp=0;function Vp(){return Bp>0}function Wp(){Bp+=1,setTimeout((function(){Bp-=1}))}function jp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if("function"!==typeof e)return e;try{var o=e.__sentry_wrapped__;if(o)return o;if((0,gc.HK)(e))return e}catch(Gt){return e}var r=function(){var o=Array.prototype.slice.call(arguments);try{n&&"function"===typeof n&&n.apply(this,arguments);var r=o.map((function(e){return jp(e,t)}));return e.apply(this,r)}catch(i){throw Wp(),Hp((function(e){e.addEventProcessor((function(e){return t.mechanism&&((0,uc.Db)(e,void 0,void 0),(0,uc.EG)(e,t.mechanism)),e.extra=(0,Et.Z)((0,Et.Z)({},e.extra),{},{arguments:o}),e})),Gp(i)})),i}};try{for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch(a){}(0,gc.$Q)(r,e),(0,gc.xp)(e,"__sentry_wrapped__",r);try{var s=Object.getOwnPropertyDescriptor(r,"name");s.configurable&&Object.defineProperty(r,"name",{get:function(){return e.name}})}catch(a){}return r}var Up=["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"],zp=function(){function e(t){(0,xt.Z)(this,e),e.prototype.__init.call(this),this._options=(0,Et.Z)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return(0,Nt.Z)(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(){var e=(0,vc.R)();this._options.setTimeout&&(0,gc.hl)(e,"setTimeout",Zp),this._options.setInterval&&(0,gc.hl)(e,"setInterval",Zp),this._options.requestAnimationFrame&&(0,gc.hl)(e,"requestAnimationFrame",Yp),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&(0,gc.hl)(XMLHttpRequest.prototype,"send",Kp);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:Up).forEach(qp)}}],[{key:"__initStatic",value:function(){this.id="TryCatch"}}]),e}();function Zp(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var r=n[0];return n[0]=jp(r,{mechanism:{data:{function:(0,yc.$P)(e)},handled:!0,type:"instrument"}}),e.apply(this,n)}}function Yp(e){return function(t){return e.apply(this,[jp(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,yc.$P)(e)},handled:!0,type:"instrument"}})])}}function Kp(e){return function(){var t=this,n=["onload","onerror","onprogress","onreadystatechange"];n.forEach((function(e){e in t&&"function"===typeof t[e]&&(0,gc.hl)(t,e,(function(t){var n={mechanism:{data:{function:e,handler:(0,yc.$P)(t)},handled:!0,type:"instrument"}},o=(0,gc.HK)(t);return o&&(n.mechanism.data.handler=(0,yc.$P)(o)),jp(t,n)}))}));for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return e.apply(this,r)}}function qp(e){var t=(0,vc.R)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,gc.hl)(n,"addEventListener",(function(t){return function(n,o,r){try{"function"===typeof o.handleEvent&&(o.handleEvent=jp(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,yc.$P)(o),target:e},handled:!0,type:"instrument"}}))}catch(i){}return t.apply(this,[n,jp(o,{mechanism:{data:{function:"addEventListener",handler:(0,yc.$P)(o),target:e},handled:!0,type:"instrument"}}),r])}})),(0,gc.hl)(n,"removeEventListener",(function(e){return function(t,n,o){var r=n;try{var i=r&&r.__sentry_wrapped__;i&&e.call(this,t,i,o)}catch(Gt){}return e.call(this,t,r,o)}})))}zp.__initStatic();var Xp=function(){function e(t){(0,xt.Z)(this,e),e.prototype.__init.call(this),e.prototype.__init2.call(this),this._options=(0,Et.Z)({onerror:!0,onunhandledrejection:!0},t)}return(0,Nt.Z)(e,[{key:"__init",value:function(){this.name=e.id}},{key:"__init2",value:function(){this._installFunc={onerror:Qp,onunhandledrejection:Jp}}},{key:"setupOnce",value:function(){Error.stackTraceLimit=50;var e,t=this._options;for(var n in t){var o=this._installFunc[n];o&&t[n]&&(e=n,("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.log("Global Handler attached: ".concat(e)),o(),this._installFunc[n]=void 0)}}}],[{key:"__initStatic",value:function(){this.id="GlobalHandlers"}}]),e}();function Qp(){(0,wc.o)("error",(function(e){var n=td(),o=(0,t.Z)(n,3),r=o[0],i=o[1],s=o[2];if(r.getIntegration(Xp)){var a=e.msg,l=e.url,u=e.line,c=e.column,p=e.error;if(!(Vp()||p&&p.__sentry_own_request__)){var d=void 0===p&&(0,Gc.HD)(a)?function(e,t,n,o){var r=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,i=(0,Gc.VW)(e)?e.message:e,s="Error",a=i.match(r);a&&(s=a[1],i=a[2]);return $p({exception:{values:[{type:s,value:i}]}},t,n,o)}(a,l,u,c):$p(dp(i,p||a,void 0,s,!1),l,u,c);d.level="error",ed(r,p,d,"onerror")}}}))}function Jp(){(0,wc.o)("unhandledrejection",(function(e){var n=td(),o=(0,t.Z)(n,3),r=o[0],i=o[1],s=o[2];if(r.getIntegration(Xp)){var a=e;try{"reason"in e?a=e.reason:"detail"in e&&"reason"in e.detail&&(a=e.detail.reason)}catch(u){}if(Vp()||a&&a.__sentry_own_request__)return!0;var l=(0,Gc.pt)(a)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(a))}]}}:dp(i,a,void 0,s,!0);l.level="error",ed(r,a,l,"onunhandledrejection")}}))}function $p(e,t,n,o){var r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],u=isNaN(parseInt(o,10))?void 0:o,c=isNaN(parseInt(n,10))?void 0:n,p=(0,Gc.HD)(t)&&t.length>0?t:(0,fp.l)();return 0===l.length&&l.push({colno:u,filename:p,function:"?",in_app:!0,lineno:c}),e}function ed(e,t,n,o){(0,uc.EG)(n,{handled:!1,type:o}),e.captureEvent(n,{originalException:t})}function td(){var e=(0,oc.Gd)(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:function(){return[]},attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}Xp.__initStatic();var nd="cause",od=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,xt.Z)(this,e),e.prototype.__init.call(this),this._key=t.key||nd,this._limit=t.limit||5}return(0,Nt.Z)(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(){var t=(0,oc.Gd)().getClient();t&&(0,nc.c)((function(n,o){var r=(0,oc.Gd)().getIntegration(e);return r?function(e,t,n,o,r){if(!o.exception||!o.exception.values||!r||!(0,Gc.V9)(r.originalException,Error))return o;var i=rd(e,n,r.originalException,t);return o.exception.values=[].concat((0,Ft.Z)(i),(0,Ft.Z)(o.exception.values)),o}(t.getOptions().stackParser,r._key,r._limit,n,o):n}))}}],[{key:"__initStatic",value:function(){this.id="LinkedErrors"}}]),e}();function rd(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];if(!(0,Gc.V9)(n[o],Error)||r.length+1>=t)return r;var i=sp(e,n[o]);return rd(e,t,n[o],o,[i].concat((0,Ft.Z)(r)))}od.__initStatic();var id=function(){function e(){(0,xt.Z)(this,e),e.prototype.__init.call(this)}return(0,Nt.Z)(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(t,n){var o=function(t){var o=n().getIntegration(e);if(o){try{if(function(e,t){if(!t)return!1;if(function(e,t){var n=e.message,o=t.message;if(!n&&!o)return!1;if(n&&!o||!n&&o)return!1;if(n!==o)return!1;if(!ad(e,t))return!1;if(!sd(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){var n=ld(t),o=ld(e);if(!n||!o)return!1;if(n.type!==o.type||n.value!==o.value)return!1;if(!ad(e,t))return!1;if(!sd(e,t))return!1;return!0}(e,t))return!0;return!1}(t,o._previousEvent))return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(r){return o._previousEvent=t}return o._previousEvent=t}return t};o.id=this.name,t(o)}}],[{key:"__initStatic",value:function(){this.id="Dedupe"}}]),e}();function sd(e,t){var n=ud(e),o=ud(t);if(!n&&!o)return!0;if(n&&!o||!n&&o)return!1;if(o.length!==n.length)return!1;for(var r=0;r<o.length;r++){var i=o[r],s=n[r];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function ad(e,t){var n=e.fingerprint,o=t.fingerprint;if(!n&&!o)return!0;if(n&&!o||!n&&o)return!1;try{return!(n.join("")!==o.join(""))}catch(r){return!1}}function ld(e){return e.exception&&e.exception.values&&e.exception.values[0]}function ud(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(n){return}}id.__initStatic();var cd=(0,vc.R)(),pd=function(){function e(){(0,xt.Z)(this,e),e.prototype.__init.call(this)}return(0,Nt.Z)(e,[{key:"__init",value:function(){this.name=e.id}},{key:"setupOnce",value:function(){(0,nc.c)((function(t){if((0,oc.Gd)().getIntegration(e)){if(!cd.navigator&&!cd.location&&!cd.document)return t;var n=t.request&&t.request.url||cd.location&&cd.location.href,o=(cd.document||{}).referrer,r=(cd.navigator||{}).userAgent,i=(0,Et.Z)((0,Et.Z)((0,Et.Z)({},t.request&&t.request.headers),o&&{Referer:o}),r&&{"User-Agent":r}),s=(0,Et.Z)((0,Et.Z)({},n&&{url:n}),{},{headers:i});return(0,Et.Z)((0,Et.Z)({},t),{},{request:s})}return t}))}}],[{key:"__initStatic",value:function(){this.id="HttpContext"}}]),e}();function dd(e){var t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(o){if(!(void 0===e||t.length<e))return(0,Hc.$2)(new Mc("Not adding Promise due to buffer limit reached."));var r=o();return-1===t.indexOf(r)&&t.push(r),r.then((function(){return n(r)})).then(null,(function(){return n(r).then(null,(function(){}))})),r},drain:function(e){return new Hc.cW((function(n,o){var r=t.length;if(!r)return n(!0);var i=setTimeout((function(){e&&e>0&&n(!1)}),e);t.forEach((function(e){(0,Hc.WD)(e).then((function(){--r||(clearTimeout(i),n(!0))}),o)}))}))}}}pd.__initStatic();function hd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),n=parseInt("".concat(e),10);if(!isNaN(n))return 1e3*n;var o=Date.parse("".concat(e));return isNaN(o)?6e4:o-t}function fd(e,t){return e[t]||e.all||0}function gd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return fd(e,t)>n}function md(e,n){var o=n.statusCode,r=n.headers,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now(),s=(0,Et.Z)({},e),a=r&&r["x-sentry-rate-limits"],l=r&&r["retry-after"];if(a){var u,c=(0,Bo.Z)(a.trim().split(","));try{for(c.s();!(u=c.n()).done;){var p=u.value,d=p.split(":",2),h=(0,t.Z)(d,2),f=h[0],g=h[1],m=parseInt(f,10),v=1e3*(isNaN(m)?60:m);if(g){var y,C=(0,Bo.Z)(g.split(";"));try{for(C.s();!(y=C.n()).done;){var w=y.value;s[w]=i+v}}catch(_){C.e(_)}finally{C.f()}}else s.all=i+v}}catch(_){c.e(_)}finally{c.f()}}else l?s.all=i+hd(l,i):429===o&&(s.all=i+6e4);return s}function vd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:dd(e.bufferSize||30),o={},r=function(e){return n.drain(e)};function i(r){var i=[];if(Wc(r,(function(t,n){var r=Yc(n);gd(o,r)?e.recordDroppedEvent("ratelimit_backoff",r):i.push(t)})),0===i.length)return(0,Hc.WD)();var s=Bc(r[0],i),a=function(t){Wc(s,(function(n,o){e.recordDroppedEvent(t,Yc(o))}))};return n.add((function(){return t({body:Uc(s,e.textEncoder)}).then((function(e){void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.warn("Sentry responded with status code ".concat(e.statusCode," to sent event.")),o=md(o,e)}),(function(e){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.error("Failed while sending event:",e),a("network_error")}))})).then((function(e){return e}),(function(e){if(e instanceof Mc)return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.error("Skipped sending event due to full buffer"),a("queue_overflow"),(0,Hc.WD)();throw e}))}return{send:i,flush:r}}function yd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rp();function n(n){var o=(0,Et.Z)({body:n.body,method:"POST",referrerPolicy:"origin",headers:e.headers},e.fetchOptions);return t(e.url,o).then((function(e){return{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}}))}return vd(e,n)}function Cd(e){return vd(e,(function(t){return new Hc.cW((function(n,o){var r=new XMLHttpRequest;for(var i in r.onerror=o,r.onreadystatechange=function(){4===r.readyState&&n({statusCode:r.status,headers:{"x-sentry-rate-limits":r.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":r.getResponseHeader("Retry-After")}})},r.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,i)&&r.setRequestHeader(i,e.headers[i]);r.send(t.body)}))}))}var wd=[new dc,new mc,new zp,new yp,new Xp,new od,new id,new pd];function _d(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function bd(){if("undefined"!==typeof(0,vc.R)().document){var e=(0,oc.Gd)();e.captureSession&&(_d(e),(0,wc.o)("history",(function(e){var t=e.from,n=e.to;void 0!==t&&t!==n&&_d((0,oc.Gd)())})))}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}var Ed=n(3499),Sd=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");var Rd=n(5522),Od=n(5129),Td=(0,vc.R)();var Pd=n(7717),Ad=function(e,t,n){var o;return function(r){t.value>=0&&(r||n)&&(t.delta=t.value-(o||0),(t.delta||void 0===o)&&(o=t.value,e(t)))}},Dd=function(e,t){return{name:e,value:(0,Pd.h)(t,(function(){return-1})),delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},xd=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(Gt){}},Nd=function(e,t){var n=function n(o){"pagehide"!==o.type&&"hidden"!==(0,vc.R)().document.visibilityState||(e(o),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},Md=-1,Id=function(){return Md<0&&(Md="hidden"===(0,vc.R)().document.visibilityState?0:1/0,Nd((function(e){var t=e.timeStamp;Md=t}),!0)),{get firstHiddenTime(){return Md}}},Ld={},Fd=["startTimestamp"];function kd(e){return"number"===typeof e&&isFinite(e)}function Gd(e,t){var n=t.startTimestamp,o=Xl(t,Fd);return n&&e.startTimestamp>n&&(e.startTimestamp=n),e.startChild((0,Et.Z)({startTimestamp:n},o))}var Hd=(0,vc.R)();function Bd(){return Hd&&Hd.addEventListener&&Hd.performance}var Vd,Wd,jd=0,Ud={};function zd(){!function(e,t){var n,o=Dd("CLS",0),r=0,i=[],s=function(e){if(e&&!e.hadRecentInput){var t=i[0],s=i[i.length-1];r&&0!==i.length&&e.startTime-s.startTime<1e3&&e.startTime-t.startTime<5e3?(r+=e.value,i.push(e)):(r=e.value,i=[e]),r>o.value&&(o.value=r,o.entries=i,n&&n())}},a=xd("layout-shift",s);a&&(n=Ad(e,o,t),Nd((function(){a.takeRecords().map(s),n(!0)})))}((function(e){var t=e.entries.pop();t&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.log("[Measurements] Adding CLS"),Ud.cls={value:e.value,unit:""},Wd=t)}))}function Zd(e){!function(e,t){var n,o=Id(),r=Dd("LCP"),i=function(e){var t=e.startTime;t<o.firstHiddenTime&&(r.value=t,r.entries.push(e)),n&&n()},s=xd("largest-contentful-paint",i);if(s){n=Ad(e,r,t);var a=function(){Ld[r.id]||(s.takeRecords().map(i),s.disconnect(),Ld[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,a,{once:!0,capture:!0})})),Nd(a,!0)}}((function(e){var t=e.entries.pop();if(t){var n=(0,Od.XL)(Kc.Z1),o=(0,Od.XL)(t.startTime);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.log("[Measurements] Adding LCP"),Ud.lcp={value:e.value,unit:"millisecond"},Ud["mark.lcp"]={value:n+o,unit:"second"},Vd=t}}),e)}function Yd(){!function(e,t){var n,o=Id(),r=Dd("FID"),i=function(e){n&&e.startTime<o.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},s=xd("first-input",i);s&&(n=Ad(e,r,t),Nd((function(){s.takeRecords().map(i),s.disconnect()}),!0))}((function(e){var t=e.entries.pop();if(t){var n=(0,Od.XL)(Kc.Z1),o=(0,Od.XL)(t.startTime);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.log("[Measurements] Adding FID"),Ud.fid={value:e.value,unit:"millisecond"},Ud["mark.fid"]={value:n+o,unit:"second"}}}))}function Kd(e){var t=Bd();if(t&&Hd.performance.getEntries&&Kc.Z1){("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.log("[Tracing] Adding & adjusting spans using Performance API");var n,o,r=(0,Od.XL)(Kc.Z1),i=t.getEntries();i.slice(jd).forEach((function(t){var i=(0,Od.XL)(t.startTime),s=(0,Od.XL)(t.duration);if(!("navigation"===e.op&&r+i<e.startTimestamp))switch(t.entryType){case"navigation":!function(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach((function(o){qd(e,t,o,n)})),qd(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),qd(e,t,"fetch",n,"cache","domainLookupStart"),qd(e,t,"domainLookup",n,"DNS"),function(e,t,n){Gd(e,{op:"browser",description:"request",startTimestamp:n+(0,Od.XL)(t.requestStart),endTimestamp:n+(0,Od.XL)(t.responseEnd)}),Gd(e,{op:"browser",description:"response",startTimestamp:n+(0,Od.XL)(t.responseStart),endTimestamp:n+(0,Od.XL)(t.responseEnd)})}(e,t,n)}(e,t,r),n=r+(0,Od.XL)(t.responseStart),o=r+(0,Od.XL)(t.requestStart);break;case"mark":case"paint":case"measure":var a=function(e,t,n,o,r){var i=r+n,s=i+o;return Gd(e,{description:t.name,endTimestamp:s,op:t.entryType,startTimestamp:i}),i}(e,t,i,s,r),l=Id(),u=t.startTime<l.firstHiddenTime;"first-paint"===t.name&&u&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.log("[Measurements] Adding FP"),Ud.fp={value:t.startTime,unit:"millisecond"},Ud["mark.fp"]={value:a,unit:"second"}),"first-contentful-paint"===t.name&&u&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.log("[Measurements] Adding FCP"),Ud.fcp={value:t.startTime,unit:"millisecond"},Ud["mark.fcp"]={value:a,unit:"second"});break;case"resource":var c=t.name.replace(Hd.location.origin,"");!function(e,t,n,o,r,i){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;var s={};"transferSize"in t&&(s["Transfer Size"]=t.transferSize);"encodedBodySize"in t&&(s["Encoded Body Size"]=t.encodedBodySize);"decodedBodySize"in t&&(s["Decoded Body Size"]=t.decodedBodySize);var a=i+o;Gd(e,{description:n,endTimestamp:a+r,op:t.initiatorType?"resource.".concat(t.initiatorType):"resource",startTimestamp:a,data:s})}(e,t,c,i,s,r)}})),jd=Math.max(i.length-1,0),function(e){var t=Hd.navigator;if(!t)return;var n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),kd(n.rtt)&&(Ud["connection.rtt"]={value:n.rtt,unit:"millisecond"}),kd(n.downlink)&&(Ud["connection.downlink"]={value:n.downlink,unit:""}));kd(t.deviceMemory)&&e.setTag("deviceMemory","".concat(t.deviceMemory," GB"));kd(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===e.op&&("number"===typeof n&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.log("[Measurements] Adding TTFB"),Ud.ttfb={value:1e3*(n-e.startTimestamp),unit:"millisecond"},"number"===typeof o&&o<=n&&(Ud["ttfb.requestTime"]={value:1e3*(n-o),unit:"millisecond"})),["fcp","fp","lcp"].forEach((function(t){if(Ud[t]&&!(r>=e.startTimestamp)){var n=Ud[t].value,o=r+(0,Od.XL)(n),i=Math.abs(1e3*(o-e.startTimestamp)),s=i-n;("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.log("[Measurements] Normalized ".concat(t," from ").concat(n," to ").concat(i," (").concat(s,")")),Ud[t].value=i}})),Ud["mark.fid"]&&Ud.fid&&Gd(e,{description:"first input delay",endTimestamp:Ud["mark.fid"].value+(0,Od.XL)(Ud.fid.value),op:"web.vitals",startTimestamp:Ud["mark.fid"].value}),"fcp"in Ud||delete Ud.cls,Object.keys(Ud).forEach((function(t){e.setMeasurement(t,Ud[t].value,Ud[t].unit)})),function(e){Vd&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.log("[Measurements] Adding LCP Data"),Vd.element&&e.setTag("lcp.element",(0,fp.R)(Vd.element)),Vd.id&&e.setTag("lcp.id",Vd.id),Vd.url&&e.setTag("lcp.url",Vd.url.trim().slice(0,200)),e.setTag("lcp.size",Vd.size));Wd&&Wd.sources&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.log("[Measurements] Adding CLS Data"),Wd.sources.forEach((function(t,n){return e.setTag("cls.source.".concat(n+1),(0,fp.R)(t.node))})))}(e)),Vd=void 0,Wd=void 0,Ud={}}}function qd(e,t,n,o,r,i){var s=i?t[i]:t["".concat(n,"End")],a=t["".concat(n,"Start")];a&&s&&Gd(e,{op:"browser",description:(0,Pd.h)(r,(function(){return n})),startTimestamp:o+(0,Od.XL)(a),endTimestamp:o+(0,Od.XL)(s)})}var Xd={traceFetch:!0,traceXHR:!0,tracingOrigins:["localhost",/^\//]};function Qd(e){var n=(0,Et.Z)((0,Et.Z)({},Xd),e),o=n.traceFetch,r=n.traceXHR,i=n.tracingOrigins,s=n.shouldCreateSpanForRequest,a={},l=function(e){if(a[e])return a[e];var t=i;return a[e]=t.some((function(t){return(0,cc.zC)(e,t)}))&&!(0,cc.zC)(e,"sentry_key"),a[e]},u=l;"function"===typeof s&&(u=function(e){return l(e)&&s(e)});var c={};o&&(0,wc.o)("fetch",(function(e){!function(e,n,o){if(!(0,Od.zu)()||!e.fetchData||!n(e.fetchData.url))return;if(e.endTimestamp){var r=e.fetchData.__span;if(!r)return;return void((s=o[r])&&(e.response?s.setHttpStatus(e.response.status):e.error&&s.setStatus("internal_error"),s.finish(),delete o[r]))}var i=(0,Od.x1)();if(i){var s=i.startChild({data:(0,Et.Z)((0,Et.Z)({},e.fetchData),{},{type:"fetch"}),description:"".concat(e.fetchData.method," ").concat(e.fetchData.url),op:"http.client"});e.fetchData.__span=s.spanId,o[s.spanId]=s;var a=e.args[0]=e.args[0],l=e.args[1]=e.args[1]||{};l.headers=function(e,n,o,r){var i=r.headers;(0,Gc.V9)(e,Request)&&(i=e.headers);if(i)if("function"===typeof i.append)i.append("sentry-trace",o.toTraceparent()),i.append(tp.bU,(0,tp.J8)(n,i.get(tp.bU)));else if(Array.isArray(i)){var s=i.find((function(e){var n=(0,t.Z)(e,2),o=n[0];n[1];return o===tp.bU})),a=(0,t.Z)(s,2)[1];i=[].concat((0,Ft.Z)(i),[["sentry-trace",o.toTraceparent()],[tp.bU,(0,tp.J8)(n,a)]])}else i=(0,Et.Z)((0,Et.Z)({},i),{},{"sentry-trace":o.toTraceparent(),baggage:(0,tp.J8)(n,i.baggage)});else i={"sentry-trace":o.toTraceparent(),baggage:(0,tp.J8)(n)};return i}(a,i.getBaggage(),s,l)}}(e,u,c)})),r&&(0,wc.o)("xhr",(function(e){!function(e,t,n){if(!(0,Od.zu)()||e.xhr&&e.xhr.__sentry_own_request__||!(e.xhr&&e.xhr.__sentry_xhr__&&t(e.xhr.__sentry_xhr__.url)))return;var o=e.xhr.__sentry_xhr__;if(e.endTimestamp){var r=e.xhr.__sentry_xhr_span_id__;if(!r)return;return void((s=n[r])&&(s.setHttpStatus(o.status_code),s.finish(),delete n[r]))}var i=(0,Od.x1)();if(i){var s=i.startChild({data:(0,Et.Z)((0,Et.Z)({},o.data),{},{type:"xhr",method:o.method,url:o.url}),description:"".concat(o.method," ").concat(o.url),op:"http.client"});if(e.xhr.__sentry_xhr_span_id__=s.spanId,n[e.xhr.__sentry_xhr_span_id__]=s,e.xhr.setRequestHeader)try{e.xhr.setRequestHeader("sentry-trace",s.toTraceparent());var a=e.xhr.getRequestHeader&&e.xhr.getRequestHeader(tp.bU);e.xhr.setRequestHeader(tp.bU,(0,tp.J8)(i.getBaggage(),a))}catch(ae){}}}(e,u,c)}))}var Jd=(0,vc.R)();var $d=(0,Et.Z)({idleTimeout:Rd.nT,finalTimeout:Rd.mg,markBackgroundTransactions:!0,routingInstrumentation:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(Jd&&Jd.location){var o,r=Jd.location.href;t&&(o=e({name:Jd.location.pathname,op:"pageload",metadata:{source:"url"}})),n&&(0,wc.o)("history",(function(t){var n=t.to,i=t.from;void 0===i&&r&&-1!==r.indexOf(n)?r=void 0:i!==n&&(r=void 0,o&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.log("[Tracing] Finishing current transaction with op: ".concat(o.op)),o.finish()),o=e({name:Jd.location.pathname,op:"navigation",metadata:{source:"url"}}))}))}else("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.warn("Could not initialize routing instrumentation due to invalid location")},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0},Xd),eh=function(){function e(t){(0,xt.Z)(this,e),e.prototype.__init.call(this);var n=Xd.tracingOrigins;t&&(t.tracingOrigins&&Array.isArray(t.tracingOrigins)&&0!==t.tracingOrigins.length?n=t.tracingOrigins:("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&(this._emitOptionsWarning=!0)),this.options=(0,Et.Z)((0,Et.Z)((0,Et.Z)({},$d),t),{},{tracingOrigins:n});var o=this.options._metricOptions;!function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Bd();t&&Kc.Z1&&(t.mark&&Hd.performance.mark("sentry-tracing-init"),zd(),Zd(e),Yd())}(o&&o._reportAllChanges)}return(0,Nt.Z)(e,[{key:"__init",value:function(){this.name="BrowserTracing"}},{key:"setupOnce",value:function(e,t){var n=this;this._getCurrentHub=t,this._emitOptionsWarning&&(("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.warn("[Tracing] You need to define `tracingOrigins` in the options. Set an array of urls or patterns to trace."),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.warn("[Tracing] We added a reasonable default for you: ".concat(Xd.tracingOrigins)));var o=this.options,r=o.routingInstrumentation,i=o.startTransactionOnLocationChange,s=o.startTransactionOnPageLoad,a=o.markBackgroundTransactions,l=o.traceFetch,u=o.traceXHR,c=o.tracingOrigins,p=o.shouldCreateSpanForRequest;r((function(e){return n._createRouteTransaction(e)}),s,i),a&&(Td&&Td.document?Td.document.addEventListener("visibilitychange",(function(){var e=(0,Od.x1)();if(Td.document.hidden&&e){var t="cancelled";("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.log("[Tracing] Transaction: ".concat(t," -> since tab moved to the background, op: ").concat(e.op)),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}})):("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")),Qd({traceFetch:l,traceXHR:u,tracingOrigins:c,shouldCreateSpanForRequest:p})}},{key:"_createRouteTransaction",value:function(e){var t=this;if(this._getCurrentHub){var n=this.options,o=n.beforeNavigate,r=n.idleTimeout,i=n.finalTimeout,s="pageload"===e.op?function(){var e=th("sentry-trace"),t=th("baggage"),n=e?function(e){var t,n=e.match(Sd);if(n)return"1"===n[3]?t=!0:"0"===n[3]&&(t=!1),{traceId:n[1],parentSampled:t,parentSpanId:n[2]}}(e):void 0,o=(0,tp.rg)(t,e);if(n||o)return(0,Et.Z)((0,Et.Z)({},n&&n),o&&{metadata:{baggage:o}});return}():void 0,a=(0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)({},e),s),s&&{metadata:(0,Et.Z)((0,Et.Z)({},e.metadata),s.metadata)}),{},{trimEnd:!0}),l="function"===typeof o?o(a):a,u=void 0===l?(0,Et.Z)((0,Et.Z)({},a),{},{sampled:!1}):l;u.metadata=u.name!==a.name?(0,Et.Z)((0,Et.Z)({},u.metadata),{},{source:"custom"}):u.metadata,!1===u.sampled&&("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.log("[Tracing] Will not send ".concat(u.op," transaction because of beforeNavigate.")),("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.log("[Tracing] Starting ".concat(u.op," transaction on scope"));var c=this._getCurrentHub(),p=(0,vc.R)().location,d=(0,Ed.lb)(c,u,r,i,!0,{location:p});return d.registerBeforeFinishCallback((function(e){Kd(e),e.setTag("sentry_reportAllChanges",Boolean(t.options._metricOptions&&t.options._metricOptions._reportAllChanges))})),d}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&rc.kg.warn("[Tracing] Did not create ".concat(e.op," transaction because _getCurrentHub is invalid."))}}]),e}();function th(e){var t=(0,vc.R)();if(t.document&&t.document.querySelector){var n=t.document.querySelector("meta[name=".concat(e,"]"));return n?n.getAttribute("content"):null}return null}("undefined"===typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&(0,Ed.ro)();var nh,oh,rh=function(e){e&&e instanceof Function&&n.e(787).then(n.bind(n,787)).then((function(t){var n=t.getCLS,o=t.getFID,r=t.getFCP,i=t.getLCP,s=t.getTTFB;n(e),o(e),r(e),i(e),s(e)}))};(oh={dsn:null!==(nh={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SENTRY_DSN)&&void 0!==nh?nh:"https://7c5d37a228d341199489039e51f58011@o387782.ingest.sentry.io/6613470",integrations:[new eh],tracesSampleRate:.1,environment:"production",release:"v0.6.0"})._metadata=oh._metadata||{},oh._metadata.sdk=oh._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:tc}],version:tc},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(void 0===e.defaultIntegrations&&(e.defaultIntegrations=wd),void 0===e.release){var t=(0,vc.R)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);var n=(0,Et.Z)((0,Et.Z)({},e),{},{stackParser:(0,yc.Sq)(e.stackParser||Fp),integrations:ac(e),transport:e.transport||((0,Cc.Ak)()?yd:Cd)});lc(Tp,n),e.autoSessionTracking&&bd()}(oh),z.createRoot(document.getElementById("root")).render((0,Po.jsx)(j,{basename:"/app",children:(0,Po.jsx)(ec,{})})),rh()}()}();
+//# sourceMappingURL=main.b4f546c3.js.map
